/* =============================================================
   Elevate Wealth LLC: Design System
   Hand-built. No framework. WCAG AA target.
   Brand: deep navy + gold accent on warm off-white.
   NOTE: All colors approximate the supplied logo; fine-tune in preview.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy:        #13294c;   /* primary brand navy (approx.) */
  --navy-deep:   #0e2340;   /* deepest: footer / matches primary logo bg */
  --navy-soft:   #1d3a63;   /* raised navy surfaces */
  --navy-line:   rgba(255,255,255,.14);

  --gold:        #b7883f;   /* accent: lines, ticks, hovers (NOT body text) */
  --gold-soft:   #c9a25b;
  --gold-tint:   #efe3c6;

  /* Neutrals, warm */
  --bg:          #f8f5ef;   /* warm off-white canvas (match logo bg; tune live) */
  --paper:       #ffffff;
  --sand:        #f1ebe0;   /* alternating warm section */
  --line:        #e4ddce;   /* hairline borders on light */

  /* Ink */
  --ink:         #1a2334;   /* body text: AA on --bg */
  --ink-2:       #39435a;   /* secondary text */
  --muted:       #5b6579;   /* meta / eyebrow on light (use >= 16px or bold) */

  /* On-navy text */
  --on-navy:        #eef2f8;
  --on-navy-muted:  rgba(233,238,246,.74);

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(2.75rem, 5.5vw, 4.75rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .7s;

  --shadow-sm: 0 1px 2px rgba(14,35,64,.06), 0 2px 8px rgba(14,35,64,.05);
  --shadow-md: 0 12px 32px rgba(14,35,64,.10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;         /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); }
h3 { font-family: var(--font-sans); font-size: 1.3rem; line-height: 1.3; }
h4 { font-family: var(--font-sans); font-size: 1.05rem; letter-spacing: .01em; }
p  { margin: 0 0 1.1rem; }
strong { color: var(--ink); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1rem;
  border-radius: var(--radius); transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; color: #fff; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Navy focus ring vanishes on dark surfaces: flip to gold there (>=3:1 on navy). */
.section--navy :focus-visible,
.site-footer :focus-visible,
.schedule-card :focus-visible,
.draft-bar :focus-visible { outline-color: var(--gold-soft); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: var(--on-navy-muted); }

.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.lede { font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.section--navy .lede { color: var(--on-navy); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section--navy .eyebrow { color: var(--gold-soft); }

/* Section heading block */
.section-head { max-width: 62ch; margin-bottom: clamp(1.4rem, 2.8vw, 2.1rem); }
.section-head.center { margin-inline: auto; text-align: center; }
/* Eyebrow only, heading hidden: close the gap the heading used to fill. */
.section-head--label-only { margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  line-height: 1; padding: .95rem 1.5rem; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn:hover { color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--navy); --btn-fg:#fff; --btn-bd: var(--navy); }
.btn--primary:hover { --btn-bg: #0f2340; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: color-mix(in srgb, var(--navy) 60%, #fff); }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); color: var(--navy); box-shadow: none; }

/* on-navy variants */
.btn--onnavy { --btn-bg:#fff; --btn-fg: var(--navy); --btn-bd:#fff; }
.btn--onnavy:hover { --btn-bg: var(--gold-tint); color: var(--navy); }
.btn--outline-light { --btn-bg: transparent; --btn-fg:#fff; --btn-bd: rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-bd: var(--gold-soft); color:#fff; box-shadow:none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy);
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--navy .link-arrow { color: #fff; }

/* ---------- Draft / compliance bar ---------- */
.draft-bar {
  background: #23324d; color: #e9edf5;
  font-size: .82rem; letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.draft-bar .container { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding-block: .5rem; text-align: center; }
.draft-bar strong { color: var(--gold-soft); font-weight: 700; }
.draft-toggle {
  font: inherit; font-weight: 600; color:#fff; background: transparent;
  border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: .2rem .7rem; cursor: pointer;
}
.draft-toggle:hover { border-color: var(--gold-soft); }

/* Review-mode highlighting (off by default) */
[data-review] { position: relative; }
body.show-review [data-review] { outline: 1px dashed var(--gold); outline-offset: 8px; }
body.show-review [data-review]::after {
  content: "NEW: needs compliance review";
  position: absolute; top: -.2rem; right: 0; transform: translateY(-100%);
  background: var(--gold); color:#231a05; font-family: var(--font-sans);
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 3px 3px 0 0; pointer-events: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 97%, #fff);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(14,35,64,.03);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: clamp(.5rem, 1.4vw, 1.25rem); padding-block: .85rem; }
/* Desktop: links and the CTA share one row, CTA last. Below the mobile
   breakpoint the drawer's column layout overrides this. */
@media (min-width: 1000px) {
  .nav-menu { display: flex; align-items: center; gap: clamp(.4rem, .8vw, 1.1rem); margin-left: auto; }
  .site-header .nav { max-width: 1320px; }
}
.brand { display: inline-flex; align-items: center; flex: none; }
/* Trimmed, alpha-cut logo: the supplied PNG was a navy mark on a solid white
   plate that was 62% padding, so it needed mix-blend-mode to hide the plate and
   only ever showed ~38% of its height as artwork. This one has real
   transparency, so it sizes honestly and needs no blend mode.
   Heights below are 3x the artwork's previous rendered size. */
.brand img { height: clamp(40px, 12vw, 52px); width: auto; }
@media (min-width: 900px){ .brand img { height: 52px; } }

.nav-links { display: flex; align-items: center; gap: clamp(.45rem, .85vw, 1.15rem); list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a {
  font-family: var(--font-sans); font-weight: 500; font-size: clamp(.78rem, .5rem + .58vw, .95rem); letter-spacing: .01em;
  color: var(--ink); text-decoration: none; padding: .35rem 0; position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.1rem; height: 1.5px;
  background: var(--gold); transition: right .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-links a[aria-current="page"]::after { background: var(--navy); height: 2px; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-cta { padding: .68rem .9rem; font-size: .85rem; white-space: nowrap; }

/* Mobile nav */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 999px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--paper); box-shadow: var(--shadow-md);
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
    display: flex; flex-direction: column; gap: 1.5rem; padding: 5.5rem 2rem 2rem;
    z-index: 90; overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nav-links a { font-size: 1.1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-actions .btn { justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,20,38,.4); opacity: 0; visibility: hidden; transition: .25s var(--ease); z-index: 80; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}

/* ---------- Dropdown navigation ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent {
  font-family: var(--font-sans); font-weight: 500; font-size: clamp(.78rem, .5rem + .58vw, .95rem); letter-spacing: .01em;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0; position: relative;
  white-space: nowrap;
}
.nav-parent .caret {
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; opacity: .6;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-item.open .nav-parent .caret { transform: rotate(-135deg); margin-top: 2px; opacity: 1; }
.nav-parent::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.1rem; height: 1.5px;
  background: var(--gold); transition: right .25s var(--ease);
}
.nav-parent:hover, .nav-item.open .nav-parent { color: var(--navy); }
.nav-parent:hover::after, .nav-item.open .nav-parent::after { right: 0; }
.nav-item.is-active > .nav-link, .nav-item.is-active > .nav-parent { color: var(--navy); font-weight: 600; }
.nav-item.is-active > .nav-link::after, .nav-item.is-active > .nav-parent::after { right: 0; background: var(--navy); height: 2px; }

.nav-dropdown {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 236px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: .5rem; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  z-index: 120;
}
.nav-dropdown::before {
  content: ""; position: absolute; top: -1px; left: 1rem; right: 1rem; height: 2px;
  background: var(--gold); border-radius: 2px; opacity: .85;
}
.nav-item.open .nav-dropdown, .nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-dropdown a {
  display: block; padding: .58rem .8rem; border-radius: 6px; font-size: .92rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; position: static; letter-spacing: 0;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--sand); color: var(--navy); }
.nav-dropdown a[aria-current="page"] { color: var(--navy); font-weight: 600; }

@media (max-width: 999px) {
  .nav-item { display: block; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-parent { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .75rem 0; }
  .nav-parent::after { display: none; }
  .nav-dropdown, .nav-item.has-dropdown:focus-within .nav-dropdown {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 .6rem .4rem;
    min-width: 0; display: none; visibility: hidden;
  }
  .nav-dropdown::before { display: none; }
  .nav-item.has-dropdown.open .nav-dropdown { display: grid; visibility: visible; }
  .nav-dropdown a { font-size: 1rem; padding: .5rem .5rem; }
  .nav-item.is-active > .nav-link::after, .nav-item.is-active > .nav-parent::after { display: none; }
}

/* ---------- Anchor targets ---------- */
/* The header is sticky, so a jump to #section would land under it. Only takes
   effect when an element is actually scrolled to, so scoping it broadly is safe. */
[id] { scroll-margin-top: 6.5rem; }
@media (min-width: 900px) { [id] { scroll-margin-top: 8rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(460px, 74vh, 720px); display: grid; align-items: center; overflow: hidden; background: #0e2340; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,20,38,.68) 0%, rgba(10,20,38,.4) 42%, rgba(10,20,38,.05) 100%),
              linear-gradient(0deg, rgba(10,20,38,.26), rgba(10,20,38,0) 45%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 760px; }
.hero-content .eyebrow { color: var(--gold-soft); }
.hero-content .eyebrow::before { background: var(--gold-soft); }
.hero-quote { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; max-width: 22ch; margin: .15em 0 .6em; }
.hero-content .lede { color: rgba(255,255,255,.9); max-width: 46ch; margin-bottom: 1.7rem; }
.hero-content .btn-row { margin-top: .5rem; }
@media (max-width: 620px){ .hero-overlay { background: linear-gradient(0deg, rgba(10,20,38,.78) 5%, rgba(10,20,38,.4) 60%, rgba(10,20,38,.2) 100%); } }

/* Hero carousel */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce){ .hero-slide { transition: none; } }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(10,20,38,.35); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s var(--ease, ease), border-color .2s var(--ease, ease);
}
.hero-nav:hover { background: rgba(10,20,38,.6); border-color: var(--gold-soft); }
.hero-nav svg { width: 20px; height: 20px; }
.hero-prev { left: clamp(.75rem, 2vw, 1.5rem); }
.hero-next { right: clamp(.75rem, 2vw, 1.5rem); }
.hero-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(1rem, 3vw, 1.75rem); display: flex; gap: .55rem; justify-content: center; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: transparent; cursor: pointer; transition: background .2s, transform .2s; }
.hero-dot.is-active { background: var(--gold-soft); border-color: var(--gold-soft); transform: scale(1.15); }
@media (max-width: 620px){ .hero-nav { display: none; } }

/* Decorative mark motif */
.hero-motif { position: relative; aspect-ratio: 3/2; max-width: 420px; margin-inline: auto; width: 100%; }
.hero-motif img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(14,35,64,.14);
}
@media (max-width: 939px){ .hero-motif { display: none; } }

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--paper); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; padding-block: 1.15rem; }
.trust-item { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; color: var(--ink-2); font-weight: 500; letter-spacing: .01em; }
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* Deterministic 2-up (avoids auto-fit's 3+1 orphan for 4-item grids) */
.grid-2up { grid-template-columns: 1fr; }
@media (min-width: 720px){ .grid-2up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card .card-icon { color: var(--navy); margin-bottom: 1.1rem; }
.card .card-icon svg { width: 34px; height: 34px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .98rem; margin-bottom: 1rem; }
.card .link-arrow { font-size: .9rem; }
.card--flush { background: transparent; border: 0; padding: 0; }
.card--flush:hover { transform: none; box-shadow: none; }

/* number-tagged step */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.15rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num {
  counter-increment: step; width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--navy); font-family: var(--font-serif);
  font-size: 1.4rem; display: grid; place-items: center;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-2); margin: 0; }

/* Feature list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 8px; height: 8px;
  border: 1.5px solid var(--gold); transform: rotate(45deg); border-radius: 1px;
}
.section--navy .check-list li { color: var(--on-navy-muted); }

/* Service block */
.service-block { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; }
@media (min-width: 860px){ .service-block { grid-template-columns: .8fr 1.2fr; } }
.service-block .service-meta .eyebrow { margin-bottom: .6rem; }

/* Fee table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table.fees { width: 100%; border-collapse: collapse; min-width: 460px; font-size: .96rem; }
table.fees caption { text-align: left; padding: 1rem 1.25rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
table.fees th, table.fees td { text-align: left; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); }
table.fees thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sand); }
table.fees tbody tr:last-child td { border-bottom: 0; }
table.fees td.num { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }

/* Pricing: the two fee components, set off from the surrounding prose. */
.fee-item {
  border-left: 3px solid var(--gold);
  padding: .15rem 0 .15rem 1.25rem;
  margin: 1.4rem 0;
}
.fee-item h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.fee-item p { margin-bottom: 0; }
.fee-item strong { color: var(--navy); }

/* Callout / note */
.note {
  border-left: 3px solid var(--gold); background: var(--sand);
  padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; color: var(--ink-2);
}
.note strong { color: var(--navy); }

/* Disclosure placeholder block */
.disclosure-block {
  border: 1.5px dashed var(--gold); background: #fbf6ea; border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem; margin: 1.25rem 0; color: var(--ink-2);
}
.disclosure-block .tag {
  display: inline-block; background: var(--navy); color:#fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 3px; margin-bottom: .6rem;
}
.disclosure-block p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .container { max-width: 720px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-bottom: 1.6rem; }
.cta-band .btn-row { justify-content: center; }
.cta-fallback { margin-top: 1.4rem; font-size: .9rem; color: var(--on-navy-muted); }
.cta-fallback a { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem,3vw,2.5rem); }
@media (min-width: 820px){ .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-detail { display: grid; gap: 1.4rem; }
.contact-detail .row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-detail .row .ico { color: var(--gold); margin-top: .15rem; }
.contact-detail .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: .15rem; }
.contact-detail a { color: var(--navy); text-decoration: none; font-weight: 500; }
.contact-detail a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.schedule-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: clamp(1.75rem,4vw,2.75rem); }
.schedule-card h2 { color:#fff; }
.schedule-card p { color: var(--on-navy-muted); }

/* ---------- About ---------- */
.bio-grid { display: grid; gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
@media (min-width: 820px){ .bio-grid { grid-template-columns: .8fr 1.2fr; } }
.headshot {
  aspect-ratio: 4/5; background: linear-gradient(160deg, var(--sand), #e7dfd0);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; color: var(--muted); overflow: hidden;
}
.headshot { position: relative; }
.headshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.headshot .placeholder { padding: 1.5rem; font-size: .85rem; }
.headshot .placeholder svg { width: 54px; height: 54px; margin: 0 auto .75rem; color: var(--gold); opacity: .7; }
.cred-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.cred-list li { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--navy); background: var(--sand); border: 1px solid var(--line); border-radius: 100px; padding: .35rem .85rem; }

/* ---------- Newsletter letters ---------- */
.letter-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
}
.letter-meta time { color: var(--navy); }
.letter-meta span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: .7rem; vertical-align: middle; }

/* Letters stack newest-first; each is separated by a rule so where one ends
   and the next begins stays obvious as the archive grows. */
.letter + .letter { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.letter h2 { margin-bottom: 1rem; }
.letter-title-link { color: var(--navy); text-decoration: none; }
.letter-title-link:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* Jump list, used once there is more than one letter. */
.letter-index { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.letter-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.letter-index a { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; color: var(--navy); text-decoration: none; font-weight: 500; }
.letter-index a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.letter-index .li-date { flex: none; min-width: 7.5em; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Per-letter regulatory footnote: present on every letter, but it should read
   as fine print rather than compete with the letter itself. */
.letter-disclosure {
  margin-top: 2rem; font-size: .78rem; line-height: 1.6; color: var(--muted);
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.letter-disclosure a { color: var(--muted); text-decoration-color: var(--gold); }
.letter-disclosure a:hover { color: var(--navy); }

.letter-sign { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.letter-sign p { margin: 0; }
.letter-sign .sign-off { color: var(--ink-2); margin-bottom: .35rem; }
.letter-sign .sign-name { font-family: var(--font-serif); font-size: 1.45rem; color: var(--navy); line-height: 1.2; }
.letter-sign .sign-role { font-size: .9rem; color: var(--muted); margin-top: .15rem; }

/* ---------- Questionnaire form ----------
   The site had no form controls before this page, so these are all new. */
.q-form { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }

.q {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(1.1rem, 2.2vw, 1.6rem);
  margin: 0; min-width: 0;
}
/* A <legend> is painted over the fieldset's top border by default, which made
   the question read as floating outside the card and left a gap in the outline.
   Floating it opts out of that placement so it sits inside the padding like any
   other child, and the card keeps an unbroken border. */
.q legend {
  float: left; width: 100%;
  display: flex; gap: .7rem; align-items: baseline;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem;
  color: var(--navy); line-height: 1.35; padding: 0;
  /* Clearance swallows the following element's top margin, so the gap
     below the question has to live on the float itself. */
  margin: 0 0 1rem;
}
.q legend + * { clear: both; }
.q::after { content: ""; display: table; clear: both; }
.q-num {
  flex: none; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--navy);
  font-family: var(--font-serif); font-size: .95rem; line-height: 1;
}
.q-note { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.opts { display: grid; gap: .5rem; margin-top: 1rem; }

/* Whole row is clickable, not just the 16px control. */
.opt {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--ink-2); font-size: .97rem;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.opt:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--sand); }
.opt input { margin-top: .28rem; accent-color: var(--navy); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--sand); }
.opt:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }

.q input[type="text"], .q input[type="email"], .q input[type="tel"], .q textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .65rem .8rem;
}
.q textarea { resize: vertical; min-height: 5.5rem; }
.q input:focus-visible, .q textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }

.sub-q { margin-top: .85rem; padding-left: .1rem; }
.sub-q label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .3rem; }

/* Contact block */
.field-row { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.req { color: var(--gold); font-weight: 700; }
.opt-tag { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Experience matrix */
.exp-table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: .93rem; }
.exp-table th, .exp-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }
.exp-table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); background: var(--sand); font-weight: 600; }
.exp-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.exp-table tbody tr:last-child th, .exp-table tbody tr:last-child td { border-bottom: 0; }
.cell { display: grid; place-items: center; padding: .3rem; cursor: pointer; }
.cell input { accent-color: var(--navy); }

/* Honeypot: off-screen rather than display:none so bots still fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent { font-size: .82rem; line-height: 1.6; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-status { margin: 0; font-size: .92rem; color: var(--ink-2); }
.form-status.is-error { color: #9a3b3b; }
.form-actions .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.attrib { font-size: .82em; color: var(--muted); }

.form-done { text-align: center; padding: clamp(2rem,5vw,3.5rem) 0; }
.form-done h2 { margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: clamp(2.25rem, 3.5vw, 3rem) 1.75rem; }
.footer-top { display: grid; gap: 2rem; padding-bottom: 1.9rem; border-bottom: 1px solid var(--navy-line); }
@media (min-width: 780px){ .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
/* Circular wordmark, ported from the React Bits <CircularText /> to plain
   CSS: the glyph transforms are pre-rendered into the HTML and the spin is a
   keyframe animation, so it needs no framework and works with JS disabled.
   main.js only enhances the hover speed-up (see there). */
.footer-mark {
  position: relative; display: grid; place-items: center;
  width: var(--ring-size); height: var(--ring-size);
  --ring-size: clamp(132px, 15vw, 168px);
  margin-bottom: 1.25rem;
}
.circular-text {
  position: absolute; inset: 0;
  border-radius: 50%;
  color: #fff; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .02em; text-align: center;
  transform-origin: 50% 50%; -webkit-transform-origin: 50% 50%;
  animation: circular-text-spin 20s linear infinite;
  will-change: transform;
}
.circular-text span {
  position: absolute; inset: 0; display: inline-block;
  font-size: calc(var(--ring-size) * .105);
  transition: all .5s cubic-bezier(0, 0, 0, 1);
}
@keyframes circular-text-spin { to { transform: rotate(360deg); } }

/* The emblem sits inside the ring and deliberately does not rotate. It is the
   same mark as the header logo, recoloured white for the navy footer. */
.footer-mark-emblem { width: 44%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .circular-text { animation: none; }
}
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-col h3 { color:#fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-sans); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: var(--on-navy-muted); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-style: normal; font-size: .93rem; display: grid; gap: .55rem; }
.footer-contact a { color: var(--on-navy-muted); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-disclosure { padding-top: 1.5rem; font-size: .8rem; line-height: 1.6; color: rgba(233,238,246,.6); }
.footer-disclosure .disclosure-block { background: rgba(255,255,255,.03); border-color: rgba(201,162,91,.5); color: rgba(233,238,246,.75); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 1.5rem; font-size: .82rem; color: rgba(233,238,246,.55); }
.footer-legal a { color: rgba(233,238,246,.7); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
html.js .reveal.d1 { transition-delay: .08s; }
html.js .reveal.d2 { transition-delay: .16s; }
html.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .nav-links a::after, .link-arrow::after { transition: none !important; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.divider-gold { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 1.25rem 0; }
.center .divider-gold { margin-inline: auto; }
