/* ============================================================
   Design tokens - Law Office of Hollingsworth & Hollingsworth
   Warm, trustworthy, conversion-first. Tuned for AA contrast.
   ============================================================ */

/* Self-hosted variable fonts (no external requests) */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  font-style: normal;
}

:root {
  /* ---- Color ---- */
  --navy: #15294D;       /* primary, trust */
  --navy-700: #1d3766;   /* lighter navy for hovers on dark */
  --gold: #E8A13A;       /* accent + CTA */
  --gold-600: #cf8a26;   /* gold hover */
  --gold-ink: #94600f;   /* gold text on light backgrounds (AA: 5.1:1 on bg) */
  --green: #1E7A52;      /* success / results */
  --bg: #FBF9F5;         /* warm off-white page background */
  --surface: #FFFFFF;
  --ink: #1C2433;        /* body text */
  --slate: #5A6473;      /* muted text */
  --border: #E7E2D9;

  /* Derived, AA-checked pairings:
     - navy text on bg/white: ~12:1  (pass)
     - white text on navy: ~12:1     (pass)
     - navy text on gold: ~7:1       (pass, used for CTA labels)
     - slate on bg: ~5.4:1           (pass for body-muted)
     - green on white: ~4.8:1        (pass for large/semibold)
     - gold-ink on bg: ~5.1:1        (pass, eyebrow labels on light) */

  /* ---- Type ---- */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-base: 1.0625rem;          /* 17px */
  --fs-lg: 1.1875rem;            /* 19px */
  --fs-sm: 0.9375rem;            /* 15px */
  --fs-xs: 0.8125rem;            /* 13px */
  --lh-body: 1.7;
  --lh-head: 1.15;

  /* Fluid heading scale */
  --fs-h1: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.9vw, 2.4rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
  --fs-eyebrow: 0.8125rem;

  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* ---- Layout ---- */
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* ---- Elevation: navy-tinted, layered ---- */
  --shadow-sm: 0 1px 2px rgba(21, 41, 77, 0.06), 0 3px 10px rgba(21, 41, 77, 0.07);
  --shadow-md: 0 4px 12px rgba(21, 41, 77, 0.08), 0 16px 32px rgba(21, 41, 77, 0.12);
  --shadow-lg: 0 12px 28px rgba(21, 41, 77, 0.12), 0 34px 70px rgba(21, 41, 77, 0.20);
  --shadow-gold: 0 10px 26px rgba(232, 161, 58, 0.32);
  /* inner top highlight for a lifted-glass feel on cards */
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.75);

  /* ---- Gradient accents ---- */
  --grad-gold: linear-gradient(135deg, #F4B860 0%, #E8A13A 52%, #D2861F 100%);
  --grad-navy: linear-gradient(160deg, #20396A 0%, #15294D 52%, #0E1C38 100%);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #FAF7F1 100%);
  /* gradient hairline borders (used via border-box trick) */
  --border-grad: linear-gradient(135deg, rgba(232,161,58,0.45) 0%, rgba(21,41,77,0.14) 55%, rgba(21,41,77,0.05) 100%);
  --border-grad-dark: linear-gradient(135deg, rgba(232,161,58,0.55) 0%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0.04) 100%);

  /* ---- Glass (only over media / dark sections) ---- */
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);


  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;

  /* Heights used by sticky elements */
  --callbar-h: 44px;
}
