
* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(64, 120, 116, 0.16), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(76, 96, 80, 0.1), transparent 24%),
    linear-gradient(180deg, #ebe5dc 0%, #e5e0d8 42%, #f4f0ea 100%);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px base floor (WCAG-friendly body copy) */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 33, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 58, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
}

/* ── Accessibility baseline (WCAG 2.1) ──────────────────────────────────
   Site-wide defaults so the live site and every generated region inherit a
   compliant starting point. Component rules with a class selector override
   these (e.g. the bespoke .text-input / .site-nav / calendar focus styles),
   so this only fills the gaps — controls that previously had no visible
   keyboard focus. */

/* Visible keyboard focus ring for any control lacking a bespoke focus style.
   Universal :focus-visible is the lowest specificity, so the custom rings
   defined elsewhere win; this is purely a fallback, and only shows for
   keyboard/AT users (not mouse clicks). */
:focus-visible {
  outline: 2px solid var(--accent-deep, #2d5b57);
  outline-offset: 2px;
}

/* Primary call-to-action meets a 44px minimum tap target. Existing padding
   already clears this, so there's no visual change here — it guarantees the
   target size for generated regions even if a theme tightens the padding.
   .button-small (compact CRM controls) is excluded: it sits ~30px, which
   still clears the AA 24px minimum, and forcing it to 44px would bloat the
   CRM toolbar. */
.button:not(.button-small) {
  min-height: 44px;
}

/* Respect the OS "reduce motion" setting: stop smooth-scroll and collapse
   animations/transitions to near-instant for users prone to motion sickness
   or vestibular disorders (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 24px;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 6px 22px;
  margin-bottom: 0;
  /* Linear gradient: warm cream on the left, fading to a subtle accent tint
     on the right. Adds a touch of brand color without competing with the
     nav content. */
  background: linear-gradient(
    100deg,
    rgba(245, 241, 233, 0.82) 0%,
    rgba(245, 241, 233, 0.80) 55%,
    rgba(64, 120, 116, 0.14) 92%,
    rgba(64, 120, 116, 0.20) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 60px rgba(20, 33, 58, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-width: 96px;
  min-height: 72px;
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
}

.brand-logo-fallback {
  display: none;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #7eafb6);
  color: #fff9f0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

/* Nav links carry no resting background — icon + label do the visual work.
   Hover/active surface a soft accent-deep wash so the affordance + current-
   page indicator are clear without adding chrome to the resting state. */
.site-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #1f2730);
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  background: rgba(45, 91, 87, 0.08);
  color: var(--accent-deep);
}

.site-nav > a:hover .nav-icon,
.site-nav > a:focus-visible .nav-icon {
  opacity: 0.85;
}

.site-nav > a.is-current {
  background: rgba(45, 91, 87, 0.14);
  color: var(--accent-deep);
}

.site-nav > a.is-current .nav-icon {
  opacity: 0.85;
}

/* Top-level nav icons sit beside their text label. Muted via opacity so they
   add personality without competing with the words. inherits stroke color
   from text via currentColor. */
.site-nav .nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.55;
}

.site-nav .nav-chevron {
  margin-left: 2px;
  opacity: 0.5;
}

