/* =====================================================================
   Blue Ribbon Bookkeepers — Direction C v2
   Single stylesheet. CSS custom properties drive light + dark.

   STATUS: SCAFFOLD. Tokens + base/reset are real and final.
   Component sections are stubbed (commented headers) — built next session
   by normalizing the inline styles in design/deploy/{index,equine}.html.

   Normalization rule: keep the design's EXACT hexes/clamps/spacing, but
   reference them through the tokens below so dark mode is a value-swap only
   (never re-declare component styles inside the dark @media block).
   ===================================================================== */

/* ---------------------------------------------------------------------
   DESIGN TOKENS — light (canonical hexes from CLAUDE.md)
   --------------------------------------------------------------------- */
:root {
  /* Core palette */
  --paper:       #FBFAF7;  /* page background, light cream */
  --ink:         #2A4574;  /* PRIMARY TEXT + headings (deep navy) */
  --ink-soft:    #4A5468;  /* body copy, secondary text */
  --muted:       #656A7C;  /* footer fine print (a11y-nudged from #6B7186 → AA on cream footer) */
  --hero-blue:   #3E63A6;  /* hero ground / primary button fill */
  --gold:        #C0913C;  /* rules, bullets, underlines, chip, btn hover */
  --gold-deep:   #8F6C28;  /* gold-on-light / italic heading accent / hover — AA on cream (was #9A742C) */
  --line:        #DDD9CC;  /* section borders */
  --line-soft:   #E7E5DD;  /* card borders */
  --divider:     #EDEBE3;  /* in-card dividers, mobile-nav row borders */
  --card:        #FFFFFF;  /* pricing cards, form fields */
  --footer-bg:   #F2F0E9;  /* home/equine footer (3px gold top border) */
  --error:       #B4452E;  /* form error text */

  /* Fixed-context tokens — these do NOT invert in dark mode.
     The design reuses #2A4574 for two different jobs; we must split them
     so that a value-swap doesn't put light text on a light gold chip. */
  --on-gold:     #2A4574;  /* navy text/elements sitting ON a gold fill   */
  --on-hero:     #FBFAF7;  /* cream text sitting ON the blue hero/imagery */
  --ink-fill:    #2A4574;  /* navy used AS a fill (selected chip) — stays navy in dark */

  /* Structural extras (still tokenized for dark mode) */
  --input-border:   #D9D6CB;  /* form field border (rest)            */
  --burger-border:  #C9C5B6;  /* mobile burger button / card hover   */
  --chip-box:       #B6B2A3;  /* unchecked chip checkbox border      */
  --hint:           #776E52;  /* form helper text — AA on cream (dark theme keeps a lighter value) */
  --header-bg:      rgba(251, 250, 247, 0.94); /* translucent sticky header */
  --footer-dark:    #18335A;  /* privacy/terms dark footer ground    */
  --footer-dark-tx: #B6C0D8;  /* privacy/terms dark footer muted text */
  --shadow-card:    0 20px 44px -24px rgba(10, 22, 51, 0.40);
  --shadow-badge:   0 14px 30px -12px rgba(10, 22, 51, 0.45);

  /* Type */
  --font-display: 'Instrument Serif', Georgia, serif;  /* H1/H2 + numerals */
  --font-sans:    'Archivo', 'Helvetica Neue', sans-serif; /* everything else */

  /* Layout */
  --maxw:          1400px;  /* content max width                   */
  --maxw-article:  760px;   /* privacy/terms reading column        */
  --gutter:        32px;    /* horizontal page padding             */
  --header-offset: 90px;    /* scroll-margin for anchor targets    */
}

/* ---------------------------------------------------------------------
   DESIGN TOKENS — dark  (value-swap ONLY; never restyle components here)
   AA-checked in both themes. Golds are lifted for legibility on dark;
   fills that carry fixed text (--on-gold / --on-hero / --ink-fill) do NOT
   invert. Component fix-ups (light logo/badge chips, hairline flips) live
   at the bottom under "DARK MODE — component fix-ups".
   --------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper:       #0F1626;  /* deep navy-ink page ground */
    --ink:         #ECF0F8;  /* primary text / headings (near-white) */
    --ink-soft:    #B7C0D2;  /* body copy */
    --muted:       #8A93A8;  /* fine print */
    --hero-blue:   #2F4D85;  /* hero fallback ground (behind the image) */
    --gold:        #CBA24C;  /* lifted so rules/checks/chip read on dark */
    --gold-deep:   #D6AE58;  /* accents/eyebrows — legible as small text on dark */
    --line:        #283349;  /* section borders */
    --line-soft:   #222C40;  /* card borders */
    --divider:     #1C2538;  /* in-card dividers */
    --card:        #161F30;  /* cards / form fields ground */
    --footer-bg:   #121A29;  /* cream footer → dark */
    --input-border:  #33405C;
    --burger-border: #33405C;
    --hint:          #9A8F77;  /* lighter tan reads fine on dark fields */
    --header-bg:     rgba(15, 22, 38, 0.92);
    /* fixed on purpose: --on-gold --on-hero --ink-fill --error
       --footer-dark --footer-dark-tx do NOT invert */
  }
}

/* ---------------------------------------------------------------------
   BASE / RESET  (lifted + normalized from the design's helmet <style>)
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word; /* long emails/URLs never force horizontal scroll */
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: var(--header-offset); }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* Respect reduced-motion for the smooth scroll + header transition */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Mobile nav visibility (from design — burger < 820px) */
@media (max-width: 819px) {
  #nav-links  { display: none !important; }
  #nav-burger { display: flex !important; }
}
@media (min-width: 820px) {
  #nav-burger { display: none !important; }
  #nav-panel  { display: none !important; }
}

/* Tighter side gutters on small phones (more usable width at ≤480px) */
@media (max-width: 480px) { :root { --gutter: 20px; } }

/* Minimal display-heading base so scaffold stubs render on-brand.
   Full heading scale (clamp sizes, gold italic accents) lands per-section. */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* =====================================================================
   LAYOUT PRIMITIVES
   ===================================================================== */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section   { border-bottom: 1px solid var(--line); }
.section-body { padding-block: clamp(72px, 9vw, 130px); }

/* Section head: display H2 on the left, small letterspaced note on the right */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head__note {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-soft);
}

/* Display headings (Instrument Serif) */
.h-display, .section-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance;
}
.section-title { font-size: clamp(40px, 5.5vw, 76px); }
.h-display em, .section-title em { font-style: italic; }
.accent-gold { color: var(--gold-deep); }
.accent-ink  { color: var(--ink); }

/* Eyebrow — letterspaced uppercase gold label */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--gold-deep);
}

.prose { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink-soft); text-wrap: pretty; }

/* =====================================================================
   BUTTONS  (pill CTAs)
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; letter-spacing: 0.18em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Blue fill → transparent on hover (pricing "GET STARTED", equine CTAs) */
.btn--primary {
  background: var(--hero-blue); color: var(--on-hero); border-color: var(--ink);
  font-size: 12px; padding: 15px 30px;
}
.btn--primary:hover { background: transparent; color: var(--ink); }
/* Blue fill → gold fill on hover (form submit) */
.btn--submit {
  background: var(--hero-blue); color: var(--on-hero); border-color: var(--ink);
  font-size: 13px; padding: 18px 38px;
}
.btn--submit:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
/* Ghost on the hero image → gold fill on hover */
.btn--hero {
  background: transparent; color: var(--on-hero); border-color: var(--gold);
  font-size: 12px; letter-spacing: 0.16em; padding: 13px 28px;
}
.btn--hero:hover { background: var(--gold); color: var(--on-gold); }

/* =====================================================================
   HEADER  (sticky, translucent blur, shrink-on-scroll)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: var(--maxw); margin-inline: auto; padding: 22px var(--gutter);
  transition: padding 0.25s ease;
}
.site-header.is-scrolled .site-header__bar { padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { width: 210px; height: auto; transition: width 0.25s ease; }
.site-header.is-scrolled .brand__logo { width: 150px; }

.nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  text-decoration: none; color: var(--ink-soft);
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__cta {
  text-decoration: none; color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav__cta:hover { color: var(--gold-deep); }

.burger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 40px; height: 40px; padding: 0;
  background: none; border: 1.5px solid var(--burger-border); border-radius: 8px; cursor: pointer;
}
.burger__bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.nav-panel { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.nav-panel__inner {
  display: flex; flex-direction: column;
  max-width: var(--maxw); margin-inline: auto; padding: 8px var(--gutter) 20px;
}
.nav-panel__link {
  text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  padding: 15px 0; border-bottom: 1px solid var(--divider);
}
.nav-panel__link:last-child { border-bottom: 0; }
/* JS toggles this; the base-layer media query hides #nav-panel ≥820px */
.nav-panel.is-open { display: block; }

/* =====================================================================
   HERO  (home: image + 102° gradient, cream serif H1 with gold italic)
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-blue); border-bottom: 1px solid var(--line);
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 20% 50%; opacity: 0.97;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(42,70,124,0.80) 0%, rgba(74,111,176,0.46) 44%, rgba(122,156,210,0.10) 100%);
}
.hero__inner {
  position: relative; box-sizing: border-box;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding: clamp(64px,12vw,92px) var(--gutter) clamp(56px,7vw,92px);
  min-height: clamp(420px, 58vh, 600px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(42px, 7vw, 70px); line-height: 0.95; letter-spacing: -0.01em;
  color: var(--on-hero); max-width: 900px; text-wrap: balance;
  text-shadow: 0 2px 28px rgba(20,30,55,0.5);
}
.hero__title em { color: var(--gold-deep); font-style: italic; }
.hero__lede { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__sub {
  margin: 0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
  color: var(--on-hero); max-width: 600px; text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(20,30,55,0.6);
}

/* =====================================================================
   TRUST BAR  (credibility strip under the hero)
   ===================================================================== */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trustbar__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item {
  min-width: 0;                                     /* let cells shrink so all 5 stay in one row */
  display: flex; align-items: center; gap: clamp(8px, 1vw, 13px);
  padding: clamp(18px, 2.4vw, 32px) clamp(10px, 1.4vw, 28px);
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.trust-item__icon { flex: none; width: clamp(22px, 3vw, 30px); height: clamp(22px, 3vw, 30px); color: var(--gold); }
.trust-item__icon svg { width: 100%; height: 100%; display: block; }
.trust-item__text { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.trust-item__t1 { font-size: clamp(7px, 2.3vw, 13.5px); font-weight: 700; color: var(--ink); line-height: 1.25; }
.trust-item__t2 { font-size: clamp(7px, 2.3vw, 13.5px); font-weight: 500; color: var(--ink-soft); line-height: 1.25; }
/* Narrow screens: stack icon over text (centered) so all 5 keep to one row */
@media (max-width: 720px) {
  .trust-item { flex-direction: column; text-align: center; gap: 8px; padding: 16px 4px; border-left: 0; }
  .trust-item__text { align-items: center; }
}

/* =====================================================================
   SERVICES
   ===================================================================== */
.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(30px,3.5vw,56px) clamp(28px,3vw,48px);
}
.services__core { padding-top: clamp(36px, 4vw, 56px); }
.service { display: flex; flex-direction: column; gap: 16px; }
.service__title {
  margin: 0; align-self: flex-start;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--ink);
  border-bottom: 2px solid var(--gold); padding-bottom: 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.service:hover .service__title { color: var(--gold-deep); border-color: var(--gold-deep); }
.service__desc { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }

/* "ADD-ON SERVICES" divider */
.divider-label {
  display: flex; align-items: center; gap: 20px;
  margin: clamp(48px,6vw,80px) 0 clamp(36px,4vw,56px);
}
.divider-label__text {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--gold-deep); white-space: nowrap;
}
.divider-label__line { flex: 1; height: 1px; background: var(--line); }

/* =====================================================================
   PRICING
   ===================================================================== */
.grid-pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px; align-items: stretch;
}
.price-card {
  display: flex; flex-direction: column; gap: 22px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: clamp(30px, 3vw, 42px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--burger-border); }
.price-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-card__tier { font-size: 12px; font-weight: 700; letter-spacing: 0.28em; color: var(--ink-soft); }
.badge-popular {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--on-gold);
  background: var(--gold); padding: 5px 12px; border-radius: 3px;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price__num { font-family: var(--font-display); font-size: clamp(52px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.price__per { font-size: 13px; color: var(--ink-soft); }
.price-card__desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.rule { height: 1px; background: var(--divider); }
.features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.feature { display: flex; gap: 11px; }
.feature__check { color: var(--gold); font-weight: 700; }
.price-card__cta { margin-top: auto; align-self: flex-start; }
.pricing__note { margin: clamp(30px,3.5vw,44px) 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); text-align: center; }
.link-underline { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); transition: color 0.2s ease; }
.link-underline:hover { color: var(--gold-deep); }

/* =====================================================================
   ABOUT  (2-col: text left, 4:5 photo right with Intuit badge overlap)
   ===================================================================== */
.grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.about__media { position: relative; align-self: start; max-width: 460px; width: 100%; order: 2; justify-self: end; }
.about__frame { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: 24px; bottom: -24px; width: 104px; height: 104px;
  box-sizing: border-box; border-radius: 50%; background: var(--paper); padding: 10px;
  box-shadow: var(--shadow-badge); display: flex; align-items: center; justify-content: center;
}
.about__badge img { width: 100%; height: 100%; object-fit: contain; }
.about__text { display: flex; flex-direction: column; gap: 22px; order: 1; }
.about__signature { width: 230px; height: auto; margin-top: 2px; }

/* =====================================================================
   CONTACT  (info column + quote form)
   ===================================================================== */
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance;
}
.contact__title em { font-style: italic; }
.contact__details { display: flex; flex-direction: column; gap: 12px; }
.contact__email { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; transition: color 0.2s ease; }
.contact__email:hover { color: var(--gold-deep); }
.contact__phone { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; }
.contact__hours { font-size: 14px; color: var(--ink-soft); }
.contact__social { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.contact__social a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; transition: color 0.2s ease; }
.contact__social a:hover { color: var(--gold-deep); }
.contact__form-col { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 48px); }
/* When the 2-col contact stacks, drop the divider rule + indent */
@media (max-width: 700px) { .contact__form-col { border-left: 0; padding-left: 0; } }

/* --- form --- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.form__row--quad { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink-soft); }
.field__control {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 20px; border: 1.5px solid var(--input-border); border-radius: 999px;
  background: var(--card); outline: none; transition: border-color 0.2s ease;
}
.field__control:focus { border-color: var(--ink); }
.field__control::placeholder { color: var(--muted); opacity: 1; }
.field__control--area { padding: 14px 18px; border-radius: 20px; resize: vertical; }
.field--start { max-width: 250px; }
.notes-count { align-self: flex-end; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--hint); }
.form__rule { height: 1px; background: var(--line); }

.chips-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.chips-label__hint { font-weight: 500; letter-spacing: 0; color: var(--hint); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; box-sizing: border-box;
  padding: 9px 16px 9px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer; user-select: none;
  border: 1.5px solid var(--input-border); background: var(--card); color: var(--ink);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.chip:hover { box-shadow: 0 0 0 3px rgba(192,145,60,0.28); border-color: var(--gold); }
.chip__box {
  flex: none; width: 17px; height: 17px; box-sizing: border-box; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--chip-box); background: var(--card); color: transparent;
}
.chip__box::after { content: "\2713"; } /* ✓ inherits box color → invisible until selected */
.chip.is-selected,
.chip:has(input:checked) { border-color: var(--ink); background: var(--ink-fill); color: var(--on-hero); }
.chip.is-selected .chip__box,
.chip:has(input:checked) .chip__box { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
/* real checkbox drives state (native toggle, no-JS friendly) but stays hidden */
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:focus-within { box-shadow: 0 0 0 3px rgba(192,145,60,0.28); border-color: var(--gold); }

.form__error { margin: -10px 0 0; font-size: 13.5px; color: var(--error); }
/* honeypot — visually removed, off-screen for AT */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   FOOTER  (cream, gold top rule) — legal dark variant added with privacy/terms
   ===================================================================== */
.site-footer { background: var(--footer-bg); border-top: 3px solid var(--gold); }
.site-footer__inner { display: flex; flex-direction: column; gap: 32px; max-width: var(--maxw); margin-inline: auto; padding: 56px var(--gutter); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__logo { width: 248px; height: auto; }
.site-footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-link { text-decoration: none; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; transition: color 0.2s ease; }
.footer-link:hover { color: var(--ink); }
.site-footer__rule { height: 1px; background: rgba(10,22,51,0.14); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.site-footer__meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-footer__meta a { text-decoration: none; color: var(--ink-soft); font-weight: 600; transition: color 0.2s ease; }
.site-footer__meta a:hover { color: var(--ink); }
.site-footer__sep { color: rgba(10,22,51,0.22); }
.site-footer__legal-link { color: var(--muted); }

/* =====================================================================
   EQUINE PAGE
   ===================================================================== */
.btn--lg { font-size: 13px; padding: 18px 38px; }

/* Hero: centered cream intro + full-bleed image band */
.ehero { border-bottom: 1px solid var(--line); }
.ehero__intro {
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  padding: clamp(64px,7vw,112px) clamp(32px,3.5vw,64px) clamp(48px,5vw,72px);
}
.ehero__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 116px); line-height: 0.98; letter-spacing: -0.015em;
  color: var(--ink); max-width: 1060px; text-wrap: balance;
}
.ehero__title em { color: var(--gold-deep); font-style: italic; }
.ehero__sub {
  margin: 0; font-size: clamp(15px,1.5vw,18px); line-height: 1.65;
  color: var(--ink-soft); max-width: 640px; text-wrap: pretty;
}
.ehero__band {
  position: relative; height: clamp(360px, 64vw, 620px); overflow: hidden;
  background: var(--hero-blue); border-top: 3px solid var(--gold);
}
.ehero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; opacity: 0.97; }
.ehero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,70,124,0.04) 0%, rgba(42,70,124,0.10) 55%, rgba(42,70,124,0.46) 100%); }

/* Who it's for — segmented grid */
.section-title--eq-who  { font-size: clamp(38px, 5.2vw, 72px); max-width: 900px; margin-bottom: clamp(40px,5vw,64px); }
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); border-top: 1px solid var(--hero-blue); }
.segment  { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 44px 0; border-bottom: 1px solid var(--line); }

/* Equine services — intro + numbered list */
.section-title--eq-serv { font-size: clamp(38px, 5vw, 68px); }
.eservices__intro { display: flex; flex-direction: column; gap: 20px; }
.eservices__lede { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 420px; text-wrap: pretty; }
.eservices__note { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.numlist { display: flex; flex-direction: column; border-top: 1px solid var(--hero-blue); }
.numlist__item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.numlist__body { display: flex; flex-direction: column; gap: 6px; }
.numlist__title { margin: 0; font-size: 16.5px; font-weight: 700; transition: color 0.2s ease; }
.numlist__item:hover .numlist__title { color: var(--gold-deep); }
.numlist__desc { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

/* Closing band */
.section-title--eq-cta { font-size: clamp(44px, 7vw, 104px); line-height: 1; }
.eband__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.eband__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; text-wrap: pretty; }

/* =====================================================================
   THANK-YOU
   ===================================================================== */
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  max-width: 560px; margin-inline: auto; padding: clamp(80px,12vw,160px) var(--gutter); }
.thanks__title { margin: 0; font-family: var(--font-display); font-style: italic; color: var(--gold-deep);
  font-size: clamp(52px, 8vw, 92px); line-height: 1; }
.thanks__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 480px; }
.thanks .btn { margin-top: 10px; }

/* =====================================================================
   LEGAL PAGES (privacy / terms) — slim header, 760px article, dark footer
   ===================================================================== */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 900px; margin-inline: auto; padding: 22px var(--gutter); }
.legal-header__logo { width: 190px; height: auto; }

.article { max-width: var(--maxw-article); margin-inline: auto; width: 100%; box-sizing: border-box;
  padding: clamp(48px,7vw,88px) var(--gutter) clamp(64px,8vw,110px); display: flex; flex-direction: column; gap: 28px; }
.article__title { margin: 8px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px,6vw,64px); line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
.article__eff { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-deep); }
.article h2 { margin: 16px 0 0; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink); }
.article p  { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.article ul { margin: 0; padding: 0 0 0 20px; font-size: 15px; line-height: 1.8; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 8px; }
.article a  { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--gold); transition: color 0.2s ease; }
.article a:hover { color: var(--gold-deep); }
.article__card { margin: 4px 0 0; padding: 22px 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.article__card-name { font-weight: 700; color: var(--ink); }

.legal-footer { background: var(--footer-dark); margin-top: auto; }
.legal-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 900px; margin-inline: auto; padding: 32px var(--gutter); font-size: 13px; color: var(--footer-dark-tx); }
.legal-footer__meta { display: flex; gap: 18px; align-items: center; }
.legal-footer__meta a { color: var(--footer-dark-tx); font-weight: 600; transition: color 0.2s ease; }
.legal-footer__meta a:hover, .legal-footer__meta a[aria-current="page"] { color: #FBFAF7; }

/* =====================================================================
   DARK MODE — component fix-ups  (what a token value-swap can't cover)
   ===================================================================== */
@media (prefers-color-scheme: dark) {
  /* Navy wordmark stays legible on a light chip */
  .brand__logo, .site-footer__logo, .legal-header__logo {
    background: #FBFAF7; padding: 8px 12px; border-radius: 10px; box-sizing: border-box;
  }
  /* Intuit shield keeps a light ground so its dark-teal edges don't vanish */
  .about__badge { background: #FBFAF7; }
  /* Dark-translucent hairlines flip light on the now-dark footer */
  .site-footer__rule { background: rgba(255,255,255,0.12); }
  .site-footer__sep  { color: rgba(255,255,255,0.22); }
}
