/* ============================================================
   AVERTON WEALTH — shared stylesheet
   Single source of truth for all pages.

   ART DIRECTION
   Palette:    Deep bronze gold on warm linen
   Typography: Cormorant Garamond (display) + DM Sans (body)
   Density:    Spacious. The audience is 57-68 and wants clarity,
               not clutter.

   ACCESSIBILITY CONTRACT
   Every text/background pair in this file meets WCAG AA (4.5:1).
   --color-accent is DECORATIVE ONLY: rules, dots, borders, fills.
   Never set it as a text color. Use --color-label for small
   uppercase labels and --color-primary for links and buttons.
============================================================ */

/* ── Type scale ─────────────────────────────────────────────
   Floors raised: nothing renders below 14px. Age-related
   contrast and acuity loss makes 12px a real barrier here.  */
:root {
  --text-xs:   clamp(0.875rem, 0.82rem + 0.20vw, 0.9375rem);
  --text-sm:   clamp(0.9375rem, 0.89rem + 0.25vw, 1.0625rem);
  --text-base: clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  --text-lg:   clamp(1.1875rem, 1.05rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.375rem, 1.1rem + 3.4vw, 4rem);

  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-7: 1.75rem;  --space-8: 2rem;     --space-10: 2.5rem;
  --space-12: 3rem;    --space-14: 3.5rem;  --space-16: 4rem;
  --space-20: 5rem;    --space-24: 6rem;

  /* Backgrounds */
  --color-bg:             #F5F3EF;
  --color-surface:        #F5F3EF;
  --color-surface-2:      #ECE7DF;
  --color-surface-offset: #E2DBCF;
  --color-divider:        #D9CFBF;
  --color-border:         #D3CCC0;

  /* Text — all AA-compliant on bg, surface-2 and offset */
  --color-text:         #0D0D0C;  /* 17.6:1 on bg              */
  --color-text-muted:   #5F5C56;  /* 6.0:1 bg / 5.4:1 s2       */
  --color-text-faint:   #6B6861;  /* 5.0:1 bg / 4.5:1 s2       */
  --color-text-inverse: #F5F3EF;

  /* Brand
     One bronze for every piece of text that has to be read:
     links, buttons and small-caps labels. Verified >=4.5:1 on
     all three grounds (bg 5.84, surface-2 5.26, offset 4.71)
     and cream-on-bronze reads at 5.84 for button labels. */
  --color-primary:           #7A5820;  /* links, buttons        */
  --color-primary-hover:     #66481A;
  --color-primary-active:    #573F17;
  --color-label:             #7A5820;  /* small caps labels     */
  /* Decorative numerals. They are aria-hidden, so they carry no
     information, but at 32-40px they still need to clear the 3:1
     large-text threshold on the darkest ground they sit on
     (surface-2, 3.3:1) to be reliably visible. */
  --color-numeral:           #9E782B;
  --color-primary-highlight: #E8D5A8;  /* decorative fills only */
  --color-primary-bg:        #F5EBD4;
  --color-accent:            #D3A864;  /* DECORATIVE ONLY       */

  /* The deep ground used for inverted CTA bands. Cream text on
     this reads at ~9:1, versus 4.75:1 on --color-primary, which
     left no headroom for secondary copy. */
  --color-deep: #573F17;

  --radius-sm: 0.25rem; --radius-md: 0.5rem;
  --radius-lg: 0.75rem; --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-fast: 140ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgb(13 13 12 / 0.07);
  --shadow-md: 0 4px 16px rgb(13 13 12 / 0.08);
  --shadow-lg: 0 12px 40px rgb(13 13 12 / 0.10);

  --content-narrow: 880px;
  --content-default: 1200px;
  --content-wide: 1400px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth; scroll-padding-top: 88px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

/* No hardcoded <br> in headings anywhere — balance handles it */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; max-width: 72ch; }

button { cursor: pointer; background: none; border: none; }

a, button, [role="button"] {
  transition: color var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast), opacity var(--transition-fast),
              box-shadow var(--transition-fast);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--color-deep); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  border-radius: 0 0 var(--radius-md) 0;
  transition: transform var(--transition-fast);
}
.skip-link:focus { transform: translateY(0); }

/* ── Scroll reveals ─────────────────────────────────────────
   The range is a LENGTH, not a percentage. A percentage range
   is measured against the element's own height, so a grid
   taller than the viewport stayed semi-transparent for the
   entire time it was being read. 240px of entry completes the
   fade regardless of how tall the subject is.               */
.fade-in { opacity: 1; }

@supports (animation-timeline: view()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 240px;
  }
}

@keyframes reveal-fade { to { opacity: 1; } }

/* Reduced motion. Scroll-driven animations are progress-based,
   so zeroing animation-duration is not a reliable way to stop
   them — the animation has to be removed outright and the end
   state forced, or the content can stay invisible. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1 !important; animation: none !important; }
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
.container--wide { max-width: var(--content-wide); }
.container--narrow { max-width: var(--content-narrow); }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-alt { background: var(--color-surface-2); }
.section-border {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.section-label {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-label);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 500; line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch; line-height: 1.65;
  margin-bottom: var(--space-10);
}

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ── Header & navigation ────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: var(--space-4);
}

.nav-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: var(--space-1);
  list-style: none; margin-left: auto;
}
.nav-links a {
  display: block;
  font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.01em;
  color: #1B1A18; text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface-offset); }
.nav-links a[aria-current="page"] { color: var(--color-primary); font-weight: 500; }

.nav-actions {
  display: flex; align-items: center; gap: var(--space-3);
  margin-left: var(--space-4);
}

/* ── Nav dropdown ("Who I Help") ───────────────────────────
   Groups the two audience links behind one trigger so the top
   row has 5 items instead of 6 — the extra width is what lets
   the row survive down to the new 1100px collapse point. */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  font: inherit; font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.01em;
  color: #1B1A18; background: none; border: none; cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.nav-dropdown-trigger:hover { color: var(--color-text); background: var(--color-surface-offset); }
.nav-dropdown-trigger.is-active { color: var(--color-primary); font-weight: 500; }
.nav-dropdown-caret { flex-shrink: 0; transition: transform 0.15s ease; }
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + var(--space-2)); left: 0;
  min-width: 220px; list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 10;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; font-size: var(--text-sm);
  color: #1B1A18; text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--color-text); background: var(--color-surface-offset); }
.nav-dropdown-menu a[aria-current="page"] { color: var(--color-primary); font-weight: 500; }

/* Phone in the header. For this audience the number is a trust
   signal as much as a contact method — it should never be more
   than one glance away. */
.nav-phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text); text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.nav-phone:hover { background: var(--color-surface-offset); }
.nav-phone svg { color: var(--color-primary); flex-shrink: 0; }
/* Hidden by default; only meaningful once .nav-phone-text exists
   in the markup (added on index.html). On pages that still send
   the digits as a bare text node, this rule has nothing to hide
   and the number stays visible, so it degrades safely. */
.nav-phone-text { }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  text-decoration: none; white-space: nowrap; letter-spacing: 0.01em;
  min-height: 44px; /* touch target */
}
.btn-primary {
  background: var(--color-primary); color: var(--color-text-inverse);
  border: 1px solid transparent;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }

.btn-ghost {
  background: transparent; color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.22);
}
.btn-ghost:hover { background: var(--color-surface-offset); }

.btn-light {
  background: var(--color-text-inverse); color: var(--color-primary-active);
  font-weight: 500; border: 1px solid transparent;
}
.btn-light:hover { background: #FFFFFF; }

.btn-lg { padding: 0.9rem 1.85rem; font-size: var(--text-base); min-height: 52px; }

/* Text link that reads as an action without competing with a
   filled button. Replaces the old outlined secondary CTA, which
   was being mistaken for a form field. */
.btn-text {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-base); font-weight: 500;
  color: var(--color-primary); text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid oklch(from var(--color-primary) l c h / 0.35);
}
.btn-text:hover { color: var(--color-primary-hover); border-bottom-color: currentColor; }

/* ── Mobile navigation ──────────────────────────────────── */
.nav-hamburger {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center;
  color: var(--color-text);
}
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  /* Raised from 900px: even after grouping the two audience
     links under one "Who I Help" dropdown, 5 top-level items +
     logo + CTA don't reliably fit between 900-1100px (small
     laptops, split-screen windows, browser zoom) without
     crowding or overlap. The hamburger now takes over before
     that happens instead of after.

     The phone number and Schedule button are the two highest-
     value actions on the site and must survive collapse — only
     the link list goes behind the hamburger. Previously both
     .nav-links AND .nav-actions were hidden here, which buried
     the phone number and CTA behind the menu on every phone. */
  .nav-links { display: none; }
  .nav-actions { gap: var(--space-2); margin-left: auto; }
  .nav-hamburger { display: flex; }

  .mobile-nav {
    display: block; position: fixed; inset: 72px 0 0 0;
    background: var(--color-bg);
    padding: var(--space-6) var(--space-5) var(--space-12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99; overflow-y: auto;
    border-top: 1px solid var(--color-divider);
    visibility: hidden;
  }
  .mobile-nav.open { transform: translateX(0); visibility: visible; }

  .mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
  .mobile-nav ul a {
    display: block; font-size: var(--text-lg);
    padding: var(--space-4) var(--space-2);
    color: var(--color-text); text-decoration: none;
    border-bottom: 1px solid var(--color-divider);
  }
  .mobile-nav ul a:hover { color: var(--color-primary); }
  .mobile-nav .btn { margin-top: var(--space-8); width: 100%; }
  .mobile-nav .nav-phone {
    margin-top: var(--space-5); font-size: var(--text-lg);
    padding-inline: var(--space-2);
  }
}

/* Below ~560px there isn't room for logo + full phone number +
   button + hamburger on one line. The phone link stays tappable
   (icon only, full accessible name via aria-label on the link
   itself) rather than disappearing, per the requirement that it
   never be hidden behind the menu. */
@media (max-width: 560px) {
  .nav-phone-text { display: none; }
  .nav-phone { padding: var(--space-2); }
  .nav-actions .btn { padding-inline: var(--space-3); }
}

/* Below ~430px, logo + full "Schedule a Call" + hamburger no longer
   fit on one line without the button crowding into (and covering)
   the hamburger. Drop to the shorter "Schedule" label so the
   hamburger always stays clear and tappable. */
@media (max-width: 430px) {
  .btn-label-full { display: none; }
  .nav-actions .btn { padding-inline: var(--space-2); }
}

/* The wordmark SVG's real aspect ratio (895:163, ~5.49:1) is wider
   than its width/height attributes (150:38, ~3.95:1) imply, so at a
   fixed 38px height it actually renders ~209px wide — not 150px.
   That extra width was enough to push the header row past 100% on
   narrow phones, and since .nav-hamburger had no flex-shrink:0 of
   its own, the hamburger absorbed the overflow and got crushed to
   0px (invisible, no menu). flex-shrink:0 above stops that, and
   this shrinks the wordmark on narrow screens so there's enough
   room for it not to be needed. Verified down to a 320px viewport. */
@media (max-width: 480px) {
  .nav-logo img { height: 30px; }
}

/* ── Hero ───────────────────────────────────────────────── */
/* Deliberately no border-bottom. --color-surface and --color-bg are the
   same value, so a plain .section after the hero is the same color as
   the hero, and a rule there renders as a line across the page with
   identical background on both sides. Where the next band is
   .section-alt, that band's own .section-border draws the rule at the
   real color change, so the boundary stays crisp without this one
   doubling it. */
.hero {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  background: var(--color-surface);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-label);
  background: var(--color-primary-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-primary-highlight);
}
.hero-badge-sep { color: var(--color-primary); margin-inline: 1px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 500;
  line-height: 1.06; letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  max-width: 16ch;
}
.hero-headline em { font-style: italic; color: var(--color-primary); }

.hero-sub {
  font-size: var(--text-lg); color: var(--color-text-muted);
  line-height: 1.6; margin-bottom: var(--space-8); max-width: 52ch;
}

/* No min-width. The old 300px floor forced both buttons to wrap
   to full width inside a half-width grid column on every desktop
   screen, which read as two stacked slabs rather than a primary
   and a secondary action. */
.hero-ctas {
  display: flex; align-items: center;
  gap: var(--space-5); flex-wrap: wrap;
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo-wrap {
  width: 100%; max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; aspect-ratio: 4 / 5;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-headline { max-width: 100%; }
  /* The source photo is portrait (4:5) with both faces near the top
     third. Cropping to a wide 16:10 strip with the default centered
     object-position cuts through their heads, so pull the crop
     window up to keep both faces in frame. */
  .hero-photo-wrap { max-width: 100%; aspect-ratio: 3 / 2; margin-top: var(--space-4); }
  .hero-photo-wrap img { object-position: center 18%; }
}

/* ── Custodian badge ────────────────────────────────────────
   Just the Schwab logo, no label or card — the logo's own
   blue square already reads clearly against the photo. */
.hero-photo-wrap .custodian-badge-logo {
  position: absolute; bottom: var(--space-4); right: var(--space-4); z-index: 2;
  display: block;
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ── Trust bar ──────────────────────────────────────────── */
.trust-bar {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
}
/* 240px min with a 24px gap fits all four across at the 1200px
   container width. A larger minimum dropped to three columns and
   left one item orphaned on a second row. */
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5) var(--space-6);
}
.trust-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.trust-item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.trust-item strong { color: var(--color-text); font-weight: 500; }
/* Explicit two-by-two below the point where auto-fit's 240px
   minimum would otherwise collapse to a single column. */
@media (max-width: 620px) {
  .trust-bar-inner { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
}
@media (max-width: 420px) {
  .trust-bar-inner { grid-template-columns: 1fr; }
}

/* ── Cards: generic ─────────────────────────────────────── */
.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.section-alt .card { background: var(--color-surface); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-5);
}

/* ── Pillars ────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-5);
}
.pillar-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.section-alt .pillar-card { background: var(--color-surface); }
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pillar-number {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 500; line-height: 1;
  color: var(--color-numeral);
  margin-bottom: var(--space-4); user-select: none;
}
.pillar-title {
  font-size: var(--text-lg); font-weight: 500;
  color: var(--color-text); margin-bottom: var(--space-3); line-height: 1.25;
}
.pillar-body { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.65; }

/* ── Question / quote cards ─────────────────────────────── */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--space-4);
}
.question-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.section-alt .question-card { background: var(--color-surface); }
.question-card p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.0625rem, 1.1vw + 0.8rem, 1.3rem);
  line-height: 1.5; color: var(--color-text); max-width: 100%;
}
.question-tag {
  display: block; font-family: var(--font-body); font-style: normal;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-label);
  margin-bottom: var(--space-3);
}

/* ── Philosophy attribution ─────────────────────────────────
   Small-caps line under a two-paragraph statement, right-
   aligned per brief. */
.philosophy-attribution {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-faint);
  text-align: right; margin-top: var(--space-6);
}

/* ── "What I'll tell you not to do" ─────────────────────────
   Replaces the old Averton-vs-Typical-Advisor comparison table.
   Same differentiating work, no comparative claims about other
   firms, and it demonstrates the fiduciary posture instead of
   asserting it. */
.restraint-list { list-style: none; display: flex; flex-direction: column; }
.restraint-item {
  display: grid; grid-template-columns: 28px 1fr;
  gap: var(--space-4); align-items: start;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}
.restraint-item:last-child { border-bottom: none; }
.restraint-item svg { color: var(--color-primary); margin-top: 4px; }
.restraint-title {
  font-size: var(--text-base); font-weight: 500;
  color: var(--color-text); margin-bottom: var(--space-1);
}
.restraint-body {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.65; max-width: 60ch;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 44px 1fr;
  gap: var(--space-5); align-items: start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg); color: var(--color-primary-active);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-primary-highlight);
}
.step-title { font-size: var(--text-base); font-weight: 500; margin-bottom: var(--space-2); }
.step-body { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.65; }

/* ── Numbered editorial list (About: "How I work") ──────── */
.how-list { list-style: none; display: flex; flex-direction: column; }
.how-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: var(--space-6); align-items: center;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--color-divider);
}
.how-item:last-child { border-bottom: 1px solid var(--color-divider); }
.how-item-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 500; line-height: 1;
  color: var(--color-numeral);
}
.how-item-title {
  font-size: var(--text-base); font-weight: 500;
  color: var(--color-text); margin-bottom: var(--space-2);
}
.how-item-desc {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.65; max-width: 62ch;
}
.how-item-tag {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-label); background: var(--color-primary-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-highlight);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .how-item { grid-template-columns: 40px 1fr; gap: var(--space-4); }
  .how-item-tag { display: none; }
}

/* ── Door cards (the three entry doors) ─────────────────── */
.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-5);
}
.door-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-decoration: none; color: inherit;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.door-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* Icon slot, optional. Cards that don't include it (the three
   existing door pages) are unaffected. */
.door-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg); color: var(--color-primary);
  margin-bottom: var(--space-5);
}
/* Explicit two-column grid, for sections that need a strict 2x2
   on desktop rather than door-grid's auto-fit (which settles
   into three-up for four cards at typical container widths). */
.door-grid-2up {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 700px) { .door-grid-2up { grid-template-columns: 1fr; } }
.door-card-eyebrow {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-label); margin-bottom: var(--space-4);
}
.door-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 500; line-height: 1.2;
  color: var(--color-text); margin-bottom: var(--space-3);
}
.door-card-body {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7; margin-bottom: var(--space-6);
}
.door-card-cue {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-primary);
}
.door-card:hover .door-card-cue { color: var(--color-primary-hover); }

/* ── Fit lists (good fit / poor fit) ────────────────────── */
.fit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-5); align-items: stretch;
}
.fit-card { border-radius: var(--radius-xl); padding: var(--space-8); background: var(--color-surface); }
.fit-card-yes { border: 1px solid var(--color-divider); border-top: 3px solid var(--color-primary); }
.fit-card-no  { border: 1px solid var(--color-divider); border-top: 3px solid var(--color-border); }
.fit-heading {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.fit-card-yes .fit-heading { color: var(--color-label); }
.fit-card-no  .fit-heading { color: var(--color-text-faint); }
.fit-list { list-style: none; }
.fit-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm); line-height: 1.65; color: var(--color-text);
}
.fit-item:last-child { border-bottom: none; }
.fit-card-no .fit-item { color: var(--color-text-muted); }
.fit-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.fit-dot-yes { background: var(--color-primary); }
.fit-dot-no  { background: var(--color-border); }
@media (max-width: 760px) { .fit-grid { grid-template-columns: 1fr; } }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-6); align-items: stretch;
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.price-card-one  { border-top: 3px solid var(--color-primary); }
.price-card-ongoing { border-top: 3px solid var(--color-accent); }
.price-eyebrow {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-label); margin-bottom: var(--space-5);
}
.price-name {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 500; line-height: 1.1;
  color: var(--color-text); margin-bottom: var(--space-2);
}
/* Lining figures — the display face defaults to old-style
   numerals, which made prices hard to read at a glance. */
.price-amount {
  font-family: var(--font-body);
  font-size: var(--text-lg); font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-primary-active);
  margin-bottom: var(--space-6);
}
.price-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); flex: 1;
  border-top: 1px solid var(--color-divider); padding-top: var(--space-6); }
.price-feature {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm); line-height: 1.65;
}
.price-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary); flex-shrink: 0; margin-top: 9px;
}
.price-note {
  font-size: var(--text-xs); color: var(--color-text-muted);
  line-height: 1.7; margin-top: var(--space-6);
  padding-top: var(--space-5); border-top: 1px solid var(--color-divider);
}

.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.fee-table th {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-label); text-align: left;
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider);
}
.fee-table th:last-child, .fee-table td:last-child { text-align: right; }
.fee-table td {
  font-size: var(--text-sm); color: var(--color-text);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider);
}
.fee-table tr:last-child td { border-bottom: none; }

/* Any wide element scrolls inside its own box rather than
   forcing the page to scroll sideways. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Prose (articles, privacy policy) ───────────────────── */
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 500;
  margin-top: var(--space-12); margin-bottom: var(--space-4);
}
.prose h3 {
  font-size: var(--text-lg); font-weight: 500;
  margin-top: var(--space-8); margin-bottom: var(--space-3);
}
.prose p { margin-bottom: var(--space-5); color: var(--color-text-muted); line-height: 1.8; }
.prose strong { color: var(--color-text); font-weight: 500; }
.prose ul, .prose ol { margin: 0 0 var(--space-5) var(--space-6); }
.prose li { margin-bottom: var(--space-2); color: var(--color-text-muted); line-height: 1.8; }
.prose a { color: var(--color-primary); }
.prose > *:first-child { margin-top: 0; }

/* ── Insights list ──────────────────────────────────────── */
.article-list { list-style: none; display: flex; flex-direction: column; }
.article-item { border-bottom: 1px solid var(--color-divider); }
.article-link {
  display: block; padding: var(--space-8) 0; text-decoration: none; color: inherit;
}
.article-link:hover .article-title { color: var(--color-primary); }
.article-meta {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-label); margin-bottom: var(--space-3);
}
.article-title {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 500; line-height: 1.2;
  color: var(--color-text); margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}
.article-excerpt { font-size: var(--text-base); color: var(--color-text-muted); max-width: 62ch; }

.empty-state {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  text-align: center; background: var(--color-surface-2);
}
.empty-state p { margin-inline: auto; }

/* Insights category filter: reuses .btn-ghost, just needs a
   pressed/selected state since these are toggle buttons, not links. */
.insights-filter .btn.is-active {
  background: var(--color-primary); color: var(--color-text-inverse);
  border-color: transparent;
}

/* ── Forms ──────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.form-input, .form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  min-height: 48px;
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-input:focus, .form-textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }

/* ── Headshot band ──────────────────────────────────────────
   Slim, quiet strip beneath the hero. Its only job is to put a
   face to the first-person copy the visitor is about to read. */
/* Keeps its own top rule now that .hero no longer supplies one. This
   strip is a short credential band rather than a section to read, so
   it is deliberately bracketed by rules on both edges. */
.headshot-band {
  padding-block: var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.headshot-band-inner {
  display: flex; align-items: center; gap: var(--space-4);
}
.headshot-band-photo {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; object-fit: cover;
  border: 1px solid var(--color-divider);
}
.headshot-band-text {
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.headshot-band-text strong { color: var(--color-text); font-weight: 500; }

/* ── Line break utility ─────────────────────────────────────
   For headings that are deliberately two separate sentences
   meant to stack (per copy, not a browser-wrap accident). Do
   not use this to force-break what should be one flowing
   sentence — text-wrap: balance already handles that case, and
   forcing it there is what produced orphaned single words on
   the previous build. */
.line-break { display: block; }
.line-break-accent { font-style: italic; color: var(--color-primary); }

/* ── Fees teaser ────────────────────────────────────────────
   Slim, quiet band. One line and one link, nothing else. */
.fees-teaser { padding-block: var(--space-12); }
.fees-teaser-text {
  font-size: var(--text-lg); color: var(--color-text);
  margin-bottom: var(--space-4); max-width: 48ch; margin-inline: auto;
}

/* ── CTA band ───────────────────────────────────────────────
   Deep bronze ground. Cream on --color-deep reads at ~9:1,
   which leaves room for a secondary line that is still legible.
   The previous band used opacity to build hierarchy on a
   mid-tone gold and pushed the secondary copy to 2.4:1. */
.cta-section {
  background: var(--color-deep);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  text-align: center;
}
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta-label {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary-highlight); margin-bottom: var(--space-4);
}
.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 500; line-height: 1.1;
  color: var(--color-text-inverse); margin-bottom: var(--space-5);
  max-width: 100%;
}
.cta-sub {
  font-size: var(--text-base); color: #E8E2D6;
  line-height: 1.7; margin-inline: auto; margin-bottom: var(--space-8);
  max-width: 52ch;
}
.cta-note {
  font-size: var(--text-sm); color: #D6CEBE;
  margin-top: var(--space-5); margin-inline: auto; max-width: 46ch;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 38px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7; max-width: 44ch;
}
.footer-heading {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-label);
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none;
}
.footer-links a:hover { color: var(--color-text); text-decoration: underline; }

.footer-contact { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact a, .footer-contact span {
  font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none;
  display: block;
}
.footer-contact a:hover { color: var(--color-text); text-decoration: underline; }

/* The regulatory disclaimer was the least readable text on the
   site at 2.1:1. It is now --color-text-faint at 4.5:1. */
.footer-bottom {
  margin-top: var(--space-10); padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs); color: var(--color-text-faint);
  line-height: 1.7;
}
.footer-bottom p { max-width: 100%; margin-bottom: var(--space-3); }
.footer-bottom p:last-child { margin-bottom: 0; }

/* ── Scheduler embed ────────────────────────────────────────
   Calendly's own layout is considerably taller on narrow
   screens. The previous fixed 700px produced a scrollbar
   inside a scrolling page on every phone. */
.scheduler {
  min-width: 280px;
  height: 760px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 820px) { .scheduler { height: 1000px; } }
@media (max-width: 560px) { .scheduler { height: 1180px; } }

.scheduler-fallback {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: var(--color-surface-2);
  text-align: center;
}

/* ── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack-8 > * + * { margin-top: var(--space-8); }
@media (max-width: 900px) { .hide-mobile { display: none; } }
