/* ==========================================================================
   Ergo Rehab: design tokens. The ONE place for colours, fonts, sizes and
   spacing. Values come from the 2025 WordPress site (Elementor global kit),
   so the rebuild looks like the old site. See docs/DESIGN.md.
   ========================================================================== */

/* --- Font: Plus Jakarta Sans, self-hosted (one variable file, weights 400-800).
   Chosen 2026-11-13 over the old Roboto set: friendlier, more distinctive, and one
   file instead of three. --------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plusjakartasans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Colours (old site's global kit) --------------------------------- */
  --navy:        #1B3D8A;   /* primary: top bar, menu, headings, buttons, footer */
  --navy-dark:   #142E69;   /* hover/pressed on navy buttons */
  --steel:       #5C7BA5;   /* old link hover blue. Decorative only: 4.2:1 on white */
  --steel-text:  #45648F;   /* steel darkened to pass AA (5.9:1) when used for text */
  --slate:       #4B4F56;   /* body text (8.1:1 on white) */
  --stone:       #D1CFCB;   /* warm light grey: icons and hover on navy (7.9:1 on navy) */
  --sage:        #A5B89C;   /* old kit accent, kept for reference */
  --mist:        #F9F9F9;   /* light section background */
  --linen:       #EBEBE9;   /* card / divider grey */
  --white:       #FFFFFF;
  --focus:       #F2B705;   /* focus ring: visible on both white and navy */

  /* --- Type ------------------------------------------------------------ */
  --font-body:    "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-hero:    var(--font-body);   /* home headline (800) */
  --font-title:   var(--font-body);   /* inner-page hero titles (800) */
  --tracking-head: -0.015em;          /* headings sit slightly tighter */

  --fs-xs:   0.875rem;  /* 14 */
  --fs-sm:   0.9375rem; /* 15 */
  --fs-base: 1.0625rem; /* 17: old body copy */
  --fs-md:   1.125rem;  /* 18: list items, accordion titles */
  --fs-lg:   1.375rem;  /* 22: footer headings */
  --fs-h2:   clamp(1.5rem, 1.1rem + 1.6vw, 2rem);         /* 24 -> 32 */
  --fs-title: clamp(1.875rem, 1.2rem + 3.6vw, 3.75rem);   /* 30 -> 60: inner-page hero */
  --fs-hero:  clamp(2.5rem, 1.6rem + 3.8vw, 3.3125rem);   /* 40 -> 53: home hero */

  --lh-tight: 1.15;
  --lh-head:  1.25;
  --lh-body:  1.7;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-heavy:   800;

  /* --- Spacing (4px steps) -------------------------------------------- */
  --sp-1: 0.25rem;  /* 4 */
  --sp-2: 0.5rem;   /* 8 */
  --sp-3: 0.75rem;  /* 12 */
  --sp-4: 1rem;     /* 16 */
  --sp-5: 1.5rem;   /* 24 */
  --sp-6: 2rem;     /* 32 */
  --sp-7: 3rem;     /* 48 */
  --sp-8: 4rem;     /* 64 */
  --sp-9: 6rem;     /* 96 */
  --section-y: clamp(3rem, 2rem + 4vw, 5rem);

  /* --- Layout ---------------------------------------------------------- */
  --container: 1140px;   /* old site's content width */
  --gutter: 1rem;        /* 16px side gutter on phones */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;     /* old dropdown panel / image corners */
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(20, 46, 105, 0.12);

  --header-logo-w: clamp(210px, 50vw, 300px);
  --tap: 44px;           /* minimum touch target */
  --ease: 200ms ease;
}

@media (min-width: 768px) {
  :root { --gutter: 1.5rem; }
}
