/* =========================================================================
   ANA Legal Funding — Design Tokens  (v3 · "photographic law-firm")
   Slate Navy + Antique Gold + clean white / light-grey
   Type: Newsreader (serif display) + Hanken Grotesk (sans body & labels)
   ========================================================================= */

:root {
  /* ---- Brand: Slate Navy scale ---- */
  --navy-900: #1a2431;   /* darkest — overlays, footer */
  --navy-800: #283546;   /* PRIMARY brand */
  --navy-700: #33425a;
  --navy-600: #44546f;
  --navy-500: #5a6b86;
  --navy-200: #b6c0cd;
  --navy-100: #dde2e9;

  /* ---- Accent: Antique Gold ---- */
  --gold-600: #a87c24;   /* gold text on white */
  --gold-500: #d2a24c;   /* ACCENT — CTAs, rule, period */
  --gold-400: #e0bd7e;   /* gold on dark */
  --gold-100: #f1e7d2;
  --gold-050: #f8f2e6;

  /* ---- Supportive green (reassurance / checks only) ---- */
  --green-600: #3f7d57;
  --green-500: #5a9e6f;
  --green-100: #e3efe7;

  /* ---- Feedback (form error) ---- */
  --error-600: #b3261e;
  --error-050: #fdecea;

  /* ---- Neutrals (cool) ---- */
  --ink-900: #1c2630;    /* serif headline ink */
  --ink-700: #3d4753;    /* body text */
  --ink-500: #646e79;    /* secondary text */
  --ink-400: #959ea8;    /* muted / captions */

  --surface:    #ffffff; /* cards */
  --bg:         #ffffff; /* page white */
  --bg-alt:     #eef0f3; /* light grey offset band */
  --line:       #e2e5ea; /* cool hairline */
  --line-cool:  #e2e5ea;

  /* ---- Semantic ---- */
  --primary: var(--navy-800);
  --accent:  var(--gold-500);
  --focus:   #44546f;

  /* ---- Typography ---- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --fs-display: clamp(2.7rem, 5.4vw, 4.4rem);   /* 43 → 70 */
  --fs-h1:      clamp(2.3rem, 4.2vw, 3.4rem);    /* 37 → 54 */
  --fs-h2:      clamp(2rem, 3.4vw, 2.85rem);     /* 32 → 46 */
  --fs-h3:      1.375rem;
  --fs-h4:      1.0625rem;
  --fs-lead:    1.1875rem;
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  --lh-tight: 1.06;
  --lh-snug:  1.2;
  --lh-body:  1.62;

  --tracking-kicker: 0.2em;

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

  /* ---- Radius (squared, corporate) ---- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(20,28,40,0.06);
  --shadow-md: 0 16px 38px -18px rgba(20,28,40,0.30);
  --shadow-lg: 0 30px 70px -24px rgba(20,28,40,0.40);
  --shadow-gold: 0 12px 26px -12px rgba(168,124,36,0.45);

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 940px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
}
/* Serif display — the signature voice */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  color: var(--ink-900);
}
.display em { font-style: italic; color: var(--gold-600); font-weight: 500; }
.display .dot { color: var(--gold-500); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Visible keyboard focus everywhere (mouse clicks stay clean via :focus-visible).
   Gold reads on both the navy header/footer and the white sections.
   .btn keeps its own (higher-specificity) focus ring defined below. */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Accessibility utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold-500); color: var(--navy-900);
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: .04em; padding: 12px 18px; border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Shared primitives ---------- */
.kicker {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--gold-600);
  white-space: nowrap;
}
.kicker--light { color: var(--gold-400); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

/* Section header: kicker + gold vertical rule + serif heading w/ gold period */
.sec-head { margin-bottom: var(--space-8); }
.sec-head .kicker { display: inline-block; margin-bottom: var(--space-4); }
.head-row { display: flex; gap: 20px; align-items: stretch; }
.gold-rule { width: 4px; background: var(--gold-500); border-radius: 2px; flex-shrink: 0; }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head .sec-lead { margin-top: var(--space-5); color: var(--ink-500); font-size: var(--fs-lead); max-width: 58ch; }
.sec-head--light h2 { color: #fff; }
.sec-head--light .sec-lead { color: rgba(255,255,255,0.78); }
.sec-head.split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-6); }
.sec-head.split .sec-lead { margin-top: 0; }

/* ---------- Buttons (squared, uppercase) ---------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  padding: 18px 28px;
  min-height: 54px;
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  text-align: center;
}
.btn .ms { font-size: 18px; transition: transform .2s ease; }
.btn-primary { box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: #c2913c; transform: translateY(-2px); }
.btn-primary:hover .ms { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn-light:hover { background: var(--bg-alt); transform: translateY(-2px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy-800); border: 1.5px solid var(--navy-200); }
.btn-outline:hover { border-color: var(--navy-600); background: rgba(40,53,70,0.04); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 13px 20px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Inline SVG icon host ---------- */
.ms { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.ms svg { width: 1em; height: 1em; display: block; }
