:root {
  /* ----------------------------------------------------------
     BRAND COLORS
     ---------------------------------------------------------- */
  --sos-primary:          #00341c;  /* emerald forest — logo green. Buttons, links, eyebrows, icons, dark grounds. PRIMARY brand color. */
  --sos-primary-dark:     #004d2c;  /* darker emerald — hover/pressed on primary */
  --sos-primary-tint:     #92d5a9;  /* light emerald — on-dark accents, subtle fills */

  --sos-cta:              #f5b820;  /* warm marigold yellow — the "do this next" CTA color. ONE loud color, used sparingly. */
  --sos-cta-hover:        #f8c84d;  /* LIGHTER yellow — hover/pressed (yellow lightens on hover, doesn't darken) */
  --sos-cta-text:         #3d2b0f;  /* dark brown-ink — required text color ON the yellow CTA for contrast */

  --sos-gold:             #c19b2e;  /* heritage gold — hairline rules, accent words, seasoning only */

  /* ----------------------------------------------------------
     TEXT / INK
     ---------------------------------------------------------- */
  --sos-ink:              #1a1a1a;  /* neutral near-black — headlines & body. No color cast, no blue tint. */
  --sos-ink-subtle:       #404942;  /* muted slate — labels, secondary text, captions */
  --sos-on-dark:          #ffffff;  /* text on emerald / photo grounds */

  /* ----------------------------------------------------------
     SURFACES / NEUTRALS  (calm warm slate family, no cold grey)
     ---------------------------------------------------------- */
  --sos-page:             #ffffff;  /* page background — crisp white. Lets cards float on real white. */
  --sos-surface-slate:    #f8fafc;  /* faint slate — optional alternating section tint, used sparingly */
  --sos-card:             #ffffff;  /* card / panel background */
  --sos-hairline:         #bfc9bf;  /* thin slate borders / dividers */

  /* MINT — the signature soft eyebrow badge fill (matches the
     "CALIFORNIA PROPERTY DIVISION SOLUTIONS" pill on the live site).
     Text on mint uses --sos-primary. */
  --sos-mint:             #e1f5ee;
  --sos-mint-text:        #00341c;

  /* ----------------------------------------------------------
     SEMANTIC
     ---------------------------------------------------------- */
  --sos-success:          #7bbd93;  /* check-circles, positive states */
  --sos-error:            #ba1a1a;  /* form errors */
  --sos-info:             #002967;  /* support navy — result panels, charts */

  /* ----------------------------------------------------------
     TYPOGRAPHY
     One family sitewide: Inter (matches the live site).
     ---------------------------------------------------------- */
  --sos-font:             'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale — weights & sizes pulled from live headlines/body */
  --sos-display:    800 clamp(2.5rem, 5vw, 4.5rem)/1.08 var(--sos-font);  /* hero headline */
  --sos-title:      800 clamp(1.75rem, 3vw, 2.75rem)/1.15 var(--sos-font); /* section title */
  --sos-headline:   700 1.375rem/1.35 var(--sos-font);                     /* card / sub heads */
  --sos-body:       400 1rem/1.65 var(--sos-font);                         /* body copy */
  --sos-eyebrow:    700 0.8125rem/1 var(--sos-font);                       /* ALL-CAPS overline */

  --sos-tracking-tight:   -0.022em;  /* heavy headlines tracked in */
  --sos-tracking-eyebrow:  0.14em;   /* eyebrows tracked out */

  /* ----------------------------------------------------------
     SPACING  (8px rhythm, large 96px section gaps)
     ---------------------------------------------------------- */
  --sos-space-1:   8px;
  --sos-space-2:   16px;
  --sos-space-3:   24px;
  --sos-space-4:   32px;   /* grid gutter */
  --sos-space-6:   28px;   /* card inner padding — balanced (was 48px) */
  --sos-space-section: 96px;  /* vertical gap between sections */

  --sos-container:  1280px; /* max content width */
  --sos-gutter:     32px;   /* page side padding */

  /* ----------------------------------------------------------
     RADIUS
     ---------------------------------------------------------- */
  --sos-radius-input:  10px;   /* inputs, small controls */
  --sos-radius-card:   6px;    /* standard card — tight, crisp corners (was 16px) */
  --sos-radius-xl:     8px;    /* large feature panel — slightly larger than card, still tight */
  --sos-radius-btn:    10px;   /* BUTTONS — soft, not pill (was 9999px) */
  --sos-radius-pill:   9999px; /* buttons, chips, badges */

  /* ----------------------------------------------------------
     SHADOWS  (emerald-tinted, never neutral black)
     ---------------------------------------------------------- */
  --sos-shadow-sm:  0 2px 8px -2px rgba(0, 52, 28, 0.10);   /* hairline-level lift */
  --sos-shadow-md:  0 16px 32px -12px rgba(0, 52, 28, 0.16); /* DEFAULT card shadow */
  --sos-shadow-lg:  0 24px 48px -12px rgba(0, 52, 28, 0.20); /* prominent/floating elements */

  /* ----------------------------------------------------------
     MOTION
     ---------------------------------------------------------- */
  --sos-ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --sos-duration:   130ms;  /* snappy, not lazy — was 200ms */
}
.nav-bar {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Hairline drawn as a shadow, not a border — a border would add 1px to the
     bar's height, and every page hardcodes its top padding to clear it. */
  box-shadow: 0 1px 0 rgba(191,201,191,0.45), 0 8px 24px -18px rgba(0,52,28,0.18);
}

.nav-item { position: relative; }

/* No caret, no underline. The item simply lifts onto a soft surface of its own
   when you point at it — the whole word becomes the target, which reads calmer
   and more deliberate than a rule drawn under it. */
.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.012em;
  color: var(--sos-ink-subtle); white-space: nowrap;
  background: transparent;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-link:focus-visible {
  color: var(--sos-primary);
  background: rgba(0, 52, 28, 0.045);
}
.nav-link:focus-visible { outline: 2px solid var(--sos-primary); outline-offset: 2px; }

/* Dropdown — a calm sheet, not a popup */
.nav-panel {
  position: absolute; left: -8px; top: 100%; padding-top: 14px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-panel-inner {
  position: relative; background: #fff; padding: 8px;
  min-width: 306px; border: 1px solid rgba(191,201,191,0.45); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,52,28,0.04), 0 24px 48px -20px rgba(0,52,28,0.22);
}
.nav-opt {
  display: block; padding: 10px 14px; border-radius: 10px;
  transition: background-color 180ms ease;
}
.nav-opt:hover { background: #f4f9f6; }
.nav-opt-t {
  display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--sos-ink); transition: color 180ms ease;
}
.nav-opt:hover .nav-opt-t { color: var(--sos-primary); }
.nav-opt-d {
  display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45;
  color: var(--sos-ink-subtle); opacity: 0.72;
}

/* Login steps down to a quiet outline — the marigold Apply stays the
   only loud button on the page (§3: CTA is the one loud colour). */
.nav-login {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  color: var(--sos-primary); background: transparent;
  border: 1px solid rgba(0, 52, 28, 0.2);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.nav-login:hover { border-color: var(--sos-primary); background: rgba(0, 52, 28, 0.04); }

@media (prefers-reduced-motion: reduce) {
  .nav-link, .nav-link::after, .nav-caret, .nav-panel, .nav-opt, .nav-login { transition: none; }
}

/* ============================================================
   MOBILE NAV — full-bleed forest panel.
   Not a dropdown under the bar: it takes the whole screen, the way a
   premium app sheet does. Big type, generous rhythm, the two actions
   parked at the foot as pills.
   ============================================================ */
#mobileMenu.mnav {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #00341c 0%, #002512 55%, #001b0d 100%);
  overflow-y: auto; overscroll-behavior: contain;
  animation: mnavIn 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
#mobileMenu.mnav.hidden { display: none; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Items rise in behind the panel, one after another */
.mnav-row { animation: mnavRow 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.mnav-row:nth-child(1) { animation-delay: 40ms; }
.mnav-row:nth-child(2) { animation-delay: 85ms; }
.mnav-row:nth-child(3) { animation-delay: 130ms; }
.mnav-row:nth-child(4) { animation-delay: 175ms; }
.mnav-row:nth-child(5) { animation-delay: 220ms; }
@keyframes mnavRow { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mnav-link {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; background: none; border: 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
  color: #fff; text-align: left; cursor: pointer;
  transition: color 180ms ease;
}
.mnav-link:active { color: var(--sos-primary-tint, #92d5a9); }
.mnav-caret {
  font-size: 22px; font-variation-settings: 'wght' 300;
  color: rgba(255,255,255,0.45);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms ease;
}

.mnav-sub a {
  display: block; padding: 11px 0 11px 2px;
  font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.62);
  transition: color 180ms ease;
}
.mnav-sub a:active { color: #fff; }

.mnav-divider { height: 1px; background: rgba(255,255,255,0.09); }

/* Actions — marigold stays the one loud thing (§3) */
.mnav-cta {
  display: block; width: 100%; text-align: center;
  padding: 16px 24px; border-radius: 9999px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--sos-cta, #f5b820); color: var(--sos-cta-text, #3d2b0f);
  transition: transform 130ms ease;
}
.mnav-cta:active { transform: scale(0.985); }
.mnav-login {
  display: block; width: 100%; text-align: center;
  padding: 16px 24px; border-radius: 9999px;
  font-size: 16px; font-weight: 600;
  color: var(--sos-cta, #f5b820);
  border: 1px solid rgba(245, 184, 32, 0.5);
  background: transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.mnav-login:active { background: rgba(245, 184, 32, 0.08); border-color: rgba(245, 184, 32, 0.9); }

/* Icon only — the glyph and the word "Close" said the same thing twice.
   Sized as a proper 44px touch target and given a surface to land on, since
   the bare mark no longer has a word beside it to make it feel deliberate. */
.mnav-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;   /* optical alignment to the edge */
  border-radius: 9999px;
  color: rgba(255,255,255,0.75);
  background: transparent; border: 0; cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}
.mnav-close .material-symbols-outlined { font-size: 27px; }
.mnav-close:hover, .mnav-close:active {
  color: #fff; background: rgba(255,255,255,0.08);
}
.mnav-close:focus-visible { outline: 2px solid rgba(245,184,32,0.8); outline-offset: 2px; }
.mnav-close:active { color: #fff; }

/* Page must not scroll behind the panel */
body.mnav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  #mobileMenu.mnav, .mnav-row { animation: none; }
  .mnav-link, .mnav-caret, .mnav-sub a, .mnav-cta, .mnav-login { transition: none; }
}


.bg-cta{background-color:var(--sos-cta,#f5b820);}
.text-cta-text{color:var(--sos-cta-text,#3d2b0f);}
.hover\:bg-cta-hover:hover{background-color:var(--sos-cta-hover,#f8c84d);}
.text-primary{color:var(--sos-primary,#00341c);}
