/* Design tokens — every visual decision lives here.
   Change a token, the whole site updates. */

:root {
  /* ---------- color ---------- */
  --color-accent:        #f26618;
  --color-accent-hover:  #d54e09;
  --color-accent-bright: #fb923c;
  --color-accent-soft:   rgba(242, 102, 24, 0.15);
  --color-accent-ink:    #8a3a06;           /* deep marker — for chips & on-cream text */
  --color-ink:           #1e3a8a;
  --color-ink-soft:      #3b5998;
  --color-ink-deep:      #0f2560;           /* deeper navy — richer dark sections */
  --color-text:          #1f2937;
  --color-muted:         #6b7280;
  --color-bg:            #ffffff;
  --color-bg-alt:        #e8f0fb;
  --color-bg-warm:       #fdf8f1;           /* warm cream — paper feel for select sections */
  --color-bg-dark:       #1e3a8a;
  --color-border:        #e5e7eb;
  --color-border-strong: #cbd5e1;
  --color-highlight:     rgba(242, 102, 24, 0.35);  /* marker highlighter */
  --color-error:         #b91c1c;
  --color-success:       #15803d;

  /* ---------- typography ---------- */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-hero: 3.25rem;

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-body:  1.55;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  --tracking-tight: -0.015em;
  --tracking-base:  0;
  --tracking-wide:  0.04em;

  /* ---------- spacing (4px base) ---------- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-section: 6rem;

  /* ---------- radius / shadow / motion ---------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-pill: 999px;

  --shadow-sm:    0 1px 2px rgba(30, 58, 138, 0.08);
  --shadow-md:    0 4px 12px rgba(30, 58, 138, 0.10);
  --shadow-lg:    0 12px 32px rgba(30, 58, 138, 0.14);
  --shadow-xl:    0 24px 48px -12px rgba(30, 58, 138, 0.20), 0 4px 10px rgba(30, 58, 138, 0.06);
  --shadow-focus: 0 0 0 3px rgba(242, 102, 24, 0.4);
  --shadow-press: inset 0 2px 4px rgba(30, 58, 138, 0.18);
  --shadow-cta:   0 -8px 24px -8px rgba(30, 58, 138, 0.30);

  /* ---------- tap targets (mobile) ---------- */
  --tap-min: 44px;

  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 320ms;
  --dur-xslow: 700ms;

  /* ---------- layout ---------- */
  --container-max: 1200px;
  --content-max:   72ch;
  --nav-h:         72px;
  --sticky-cta-h:  64px;
}

/* Mobile: tighten the scale so the page doesn't shout. Display headings use a
   fluid clamp so they breathe between 320px and 640px instead of jumping. */
@media (max-width: 640px) {
  :root {
    --fs-hero: clamp(2.1rem, 8.4vw, 2.6rem);
    --fs-3xl:  clamp(1.7rem, 6.6vw, 2rem);
    --fs-2xl:  clamp(1.4rem, 5.4vw, 1.65rem);
    --fs-xl:   1.2rem;
    --space-section: 3.75rem;
    --space-3xl:     2.75rem;
    --space-2xl:     2.25rem;
    --nav-h:         60px;
  }
}

/* Extra-narrow phones: shave another sliver of vertical so dense pages
   (services, faqs) don't feel padding-heavy. */
@media (max-width: 380px) {
  :root {
    --space-section: 3.25rem;
    --space-3xl:     2.25rem;
  }
}
