/* =========================================================================
   Verify Wealth — Shared Site Stylesheet
   site.css — loaded by every page; page-specific CSS lives inline per page.
   ========================================================================= */

/* ── 0. Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ── 1. Design tokens ──────────────────────────────────────────────────── */
:root {
  /* Navy family */
  --ink:           #090F18;
  --navy:          #162534;
  --navy-mid:      #1E3050;
  --navy-light:    #243A5E;
  --navy-accent:   #2C4878;
  --navy-tint:     #4A6694;

  /* Gold family */
  --gold-dark:     #9A641E;
  --gold:          #D08B31;
  --gold-light:    #E5A44A;
  --gold-pale:     #F0D4A0;

  /* Warm neutrals */
  --warm-white:    #F5F0E8;
  --white:         #FFFFFF;

  /* Extended neutrals */
  --vw-cream:      #E8DCC2;
  --vw-paper:      #FBF8F2;
  --vw-slate:      #8A9BB8;
  --vw-mist:       #C9D3E2;
  --vw-mist-2:     #D8E0EC;
  --vw-parchment:  #E0D9CC;

  /* Semantic surfaces */
  --bg:            var(--navy);
  --bg-deep:       var(--ink);
  --bg-raised:     var(--navy-mid);
  --bg-elevated:   var(--navy-light);

  /* Foreground / text */
  --fg:            var(--warm-white);
  --fg-1:          var(--warm-white);
  --fg-2:          var(--vw-mist);
  --fg-3:          var(--navy-tint);
  --fg-inverse:    var(--ink);

  /* Borders */
  --border:        var(--navy-accent);
  --border-soft:   rgba(74, 102, 148, 0.28);
  --border-strong: var(--navy-tint);

  /* Accent */
  --accent:        var(--gold);
  --accent-hover:  var(--gold-light);
  --accent-press:  var(--gold-dark);
  --accent-soft:   rgba(208, 139, 49, 0.14);
  --accent-line:   rgba(208, 139, 49, 0.20);
  --on-accent:     var(--ink);

  /* Shadows */
  --shadow-1:    0 1px 2px rgba(9, 15, 24, 0.40);
  --shadow-2:    0 4px 16px rgba(9, 15, 24, 0.45);
  --shadow-3:    0 16px 48px rgba(9, 15, 24, 0.55);
  --shadow-gold: 0 8px 24px rgba(208, 139, 49, 0.22);
  --focus-ring:  0 0 0 2px var(--bg), 0 0 0 4px var(--gold-light);

  /* Aliases for nav/footer */
  --vw-ink:        var(--ink);
  --vw-navy:       var(--navy);
  --hairline-gold: rgba(208, 139, 49, 0.18);
  --hairline:      rgba(255, 255, 255, 0.06);
  --sh-gold-glow:  0 0 0 1px rgba(208, 139, 49, 0.35), 0 8px 24px rgba(208, 139, 49, 0.18);

  /* Typography */
  --font-serif: "Lora", "Times New Roman", Georgia, serif;
  --font-sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --w-regular: 400;
  --w-medium:  500;
  --w-semi:    600;
  --w-bold:    700;

  --fs-display: 64px;  --lh-display: 1.05;  --ls-display: -0.02em;
  --fs-h1:      44px;  --lh-h1:      1.12;  --ls-h1:      -0.015em;
  --fs-h2:      32px;  --lh-h2:      1.18;  --ls-h2:      -0.01em;
  --fs-h3:      24px;  --lh-h3:      1.25;  --ls-h3:      -0.005em;
  --fs-h4:      19px;  --lh-h4:      1.35;  --ls-h4:      0;
  --fs-body:    16px;  --lh-body:    1.55;
  --fs-small:   14px;  --lh-small:   1.5;
  --fs-eyebrow: 12px;  --ls-eyebrow: 0.22em;

  /* Spacing (4px base) */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter:    cubic-bezier(0, 0, 0.2, 1);
  --ease-exit:     cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   360ms;

  --content-max: 1200px;

  /* Nav */
  --nav-h:     80px;
  --nav-clear: calc(var(--nav-h) + var(--s-5));
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
html {
  background: var(--ink);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-clear);
}
body { background: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: var(--w-regular);
  color: var(--fg-1);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4);
     font-family: var(--font-sans); font-weight: var(--w-semi); }

p { margin: 0 0 var(--s-4); color: var(--fg-2); text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-standard),
              color       var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent-hover); border-bottom-color: currentColor; }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }

hr { border: 0; height: 1px; background: var(--border); margin: var(--s-6) 0; }
::selection { background: var(--gold-pale); color: var(--ink); }
[id] { scroll-margin-top: var(--nav-clear); }

/* ── 3. Layout helpers ─────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--s-7); }
@media (max-width: 720px) { .container { padding: 0 var(--s-5); } }

.section { padding: var(--s-10) 0; border-bottom: 1px solid var(--border-soft); }
@media (max-width: 720px) { .section { padding: var(--s-9) 0; } }

.section--ink  { background: var(--ink);  color: var(--warm-white); }
.section--navy { background: var(--navy); color: var(--warm-white); }

/* ── 4. Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 20px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(9, 15, 24, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-gold);
  --fg-1: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.72);
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .nav { background: var(--ink); }
}

.nav__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; border-bottom: none;
}
.nav__brand:hover { border-bottom: none; }
.nav__brand img { width: 28px; height: 28px; }
.nav__brand span {
  font-family: var(--font-serif);
  font-weight: 400; font-size: 15px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-1);
}

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-family: var(--font-sans);
  font-weight: 300; font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--fg-2);
  transition: color 0.2s;
  text-decoration: none; border-bottom: none;
}
.nav__links a:hover, .nav__link--active { color: var(--accent); }

.nav__cta {
  font-family: var(--font-sans);
  font-weight: 400; font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--vw-navy);
  background: var(--accent);
  padding: 11px 20px;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  border: none; text-decoration: none;
  display: inline-block; border-bottom: none; white-space: nowrap;
}
.nav__cta:hover { background: var(--accent-hover); box-shadow: var(--sh-gold-glow); color: var(--vw-navy); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  padding: 10px; line-height: 0;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.nav__toggle:hover { border-color: var(--accent); }
.nav__toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold-light); }
.nav__toggle svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-gold);
  padding: var(--s-5) 32px var(--s-6);
}
.nav__mobile.open { display: block; }
.nav__mobile a {
  display: block;
  font-family: var(--font-sans); font-weight: 300; font-size: 12px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile a:hover { color: var(--accent); }

@media (max-width: 880px) {
  .nav { padding-left: 32px; padding-right: 32px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
}

/* ── 5. Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--vw-ink);
  padding: 72px 64px 32px;
  border-top: 1px solid var(--accent-line);
  --fg-2: rgba(255, 255, 255, 0.72);
  --fg-3: rgba(255, 255, 255, 0.52);
  --fg-4: rgba(255, 255, 255, 0.32);
}
.foot__inner { max-width: 1400px; margin: 0 auto; }
.foot__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 60px; padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

/* Lockup (icon + wordmark) used in footer brand */
.foot__lockup {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.foot__lockup img { width: 28px; height: 28px; }
.foot__lockup span {
  font-family: var(--font-serif);
  font-size: 15px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-white);
  line-height: 1.2;
  font-weight: 400;
}
.foot__brand img { width: 180px; display: block; margin-bottom: 18px; }
.foot__brand p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; line-height: 1.7;
  color: var(--fg-3); max-width: 340px; margin: 0;
}
.foot__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot__col h4 {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot__col a {
  font-family: var(--font-serif); font-size: 14px;
  color: var(--fg-2);
  transition: color 0.2s;
  text-decoration: none; border-bottom: none;
}
.foot__col a:hover { color: var(--accent); }
.foot__disc {
  padding-top: 18px;
  font-family: var(--font-sans); font-weight: 300;
  font-size: 11px; line-height: 1.7;
  color: var(--fg-4); max-width: 920px;
}
.foot__bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-weight: 300;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--fg-4); flex-wrap: wrap; gap: 12px;
}
.foot__legal { display: flex; gap: 20px; }
.foot__legal a { color: var(--fg-4); text-decoration: none; border-bottom: none; letter-spacing: 0.25em; }
.foot__legal a:hover { color: var(--accent); }
@media (max-width: 880px) {
  footer { padding-left: 32px; padding-right: 32px; padding-top: 48px; }
}

/* ── 6. Button ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px; font-weight: var(--w-semi);
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none; border: none; border-bottom: none;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover {
  background: var(--gold-light);
  color: var(--ink);
  box-shadow: var(--sh-gold-glow);
  border-bottom-color: transparent;
}

/* ── 7. Shared text components ─────────────────────────────────────────── */
.marker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.marker--muted { color: var(--vw-slate); }

.marker-row {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-7);
}

.statement {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--warm-white);
  margin-bottom: var(--s-8);
}
.statement em { font-style: italic; color: var(--accent); }

/* Large display heading (used on h2 elements) */
.display {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--warm-white);
  font-weight: var(--w-regular);
}
.display em { font-style: italic; color: var(--accent); }

/* ── 8. Closing CTA section ────────────────────────────────────────────── */
.close-cta {
  background: var(--navy);
  padding: var(--s-10) 0;
  text-align: center;
}
.close-cta .marker { display: block; margin-bottom: var(--s-7); }
.close-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--warm-white);
  margin: 0 auto var(--s-6);
  max-width: 16ch;
}
.close-cta h2 em { font-style: normal; color: var(--accent); }
.close-cta p {
  font-family: var(--font-serif);
  font-size: 18px; line-height: 1.7;
  color: var(--vw-mist);
  max-width: 44ch;
  margin: 0 auto var(--s-8);
}
