/* ============================================================
   SIGNAL — DESIGN TOKENS
   Template 4 · Rehab CEOs · "A clinic you can measure."
   Recovery-telemetry instrument: neutral graphite + lab white,
   one magenta signal accent, tick-strip apparatus, zero print DNA.
   Per-client rebrand: change --accent-h/s/l; everything derives.
   Token NAMES are frozen (interior pages consume them); only the
   VALUES express the new identity.
   ============================================================ */

:root {
  /* ---- accent: signal magenta ---- */
  /* Peak Potential brand teal #1AA193 (live nav-chrome colour, confirmed by
     rendered header screenshot 2026-08-15). Reserved-territory conflict is
     logged in BUILD-STATE.md: this is the client's real mark, so it wins. */
  /* Client feedback 2026-10-22: match the live site's colours as closely as
     WCAG AA allows. The live site uses indigo #2F3690 for its buttons (submit,
     outlined Request An Appointment / Make A Payment), so indigo carries CTA
     fills here (white text 10.2:1). Teal #1AA193 is the live nav bar and
     heading colour; white on it is only 3.2:1, so the bar and any teal text
     use --teal-deep (#147B71, white 5.1:1). --teal itself is decorative or
     large-text only. */
  --accent-h: 236;
  --accent-s: 51%;
  --accent-l: 37%;
  --accent: #2f3690;
  --accent-deep: #2f3690;
  --accent-hot: #3d45b3;
  --accent-lift: #a8f0e6;                         /* accent on dark (deep teal) surfaces: 5.8:1 */
  --accent-wash: #e6f4f2;
  --accent-wash-2: #c9e9e5;
  --accent-on: #ffffff;

  --teal: #1aa193;                                /* live brand teal: rules, icons, large headings */
  --teal-deep: #147b71;                           /* teal text / fills under white text */
  --navy: #002e62;                                /* live heading navy */

  /* ---- accent 2: brand orange, the SECONDARY brand colour (client request
     2026-09-23: use it as much as possible without making it the primary;
     teal stays the CTA/primary colour) ----
     Peak Potential's orange #FC6337, sampled from the live site (top bar,
     footer headings, button accents). Contrast rules (WCAG 2.2 AA):
       --accent2       #FC6337  decorative only on light (3.0:1 on white, 2.8:1
                                on paper): rules, bars, dots, strikes, borders,
                                and fills that carry --ink text (5.9:1).
       --accent2-deep  #BD350F  orange TEXT on light surfaces (5.7:1 white,
                                5.25:1 paper, 4.8:1 paper-2).
       --accent2-lift  #FF7F5C  orange TEXT on espresso (7.5:1).
     Never put white text on --accent2 (3.0:1). */
  --accent2-h: 13;
  --accent2-s: 97%;
  --accent2-l: 60%;
  --accent2: hsl(var(--accent2-h) var(--accent2-s) var(--accent2-l));
  --accent2-deep: hsl(var(--accent2-h) 85% 40%);
  --accent2-lift: #ffc0aa;                           /* orange TEXT on deep-teal surfaces (4.8:1) */
  --accent2-glow: #ff8a66;                           /* orange for LARGE text / graphics on deep teal (3.25:1) */
  --accent2-on: var(--ink);                          /* text on an --accent2 fill */

  /* ---- signal gradient (measurement fills) ---- */
  --heat: linear-gradient(100deg, hsl(var(--accent-h) 82% 38%), hsl(var(--accent-h) 92% 55%));
  --heat-v: linear-gradient(175deg, hsl(var(--accent-h) 82% 38%), hsl(var(--accent-h) 92% 55%));

  /* ---- surfaces: neutral lab ladder (names frozen, values neutral) ---- */
  --paper: #f1f5f9;               /* live light section grey-blue */
  --paper-2: #e2eaf0;             /* live top bar */
  --card: #ffffff;
  /* dark surfaces: deep brand teal (client request 2026-10-22: green, not
     blue, as the primary background). #0F5F57 keeps white text at 7.5:1;
     the brighter live teal #1AA193 only reaches 3.2:1. */
  --espresso: #0f5f57;
  --espresso-2: #147b71;
  --espresso-3: #1a8a7e;

  /* ---- ink (neutral graphite) ---- */
  --ink: #1f2b33;                 /* live dark slate */
  --ink-soft: #565656;            /* live body grey (6.0:1 on paper-2) */
  --ink-faint: #5a6470;
  --paper-on-espresso: #f1f5f9;
  --paper-on-espresso-dim: #c3e3de;

  /* ---- rules ---- */
  --rule: #d5dee6;
  --rule-strong: #9aa8b5;
  --rule-dark: #2e7f76;

  /* ---- type: engineered, zero editorial ---- */
  /* Live site fonts as visitors actually see them. Divi names Arya / Noto Sans
     Tamil / Montserrat, but the site's optimizer runs with
     two_font_actions = "not_load", so no web font is ever downloaded and every
     page renders in the system sans (Helvetica on Apple, Arial on Windows).
     Matching that keeps the look the client knows, with zero font requests. */
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-quote: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* labels: uppercase, tracked, like the live buttons */

  --fs-display: clamp(2.5rem, 1.15rem + 5.4vw, 5.5rem);
  --fs-h2: clamp(1.9rem, 1.15rem + 2.9vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;
  --fs-mono-xs: 0.65rem;
  --fs-quote: clamp(1.4rem, 1.05rem + 1.7vw, 2.3rem);

  /* ---- space ---- */
  --sp-section: clamp(4.5rem, 3rem + 6vw, 8.75rem);
  --sp-head: clamp(2.25rem, 1.5rem + 2.5vw, 4rem);
  --sp-gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  --sp-row: clamp(1rem, .85rem + .6vw, 1.5rem);

  /* ---- geometry ---- */
  --radius: 0px;                  /* live buttons and panels are square */
  --frame: 1px solid var(--rule);
  --frame-strong: 1px solid var(--rule-strong);
  --frame-ink: 1px solid var(--ink);
  --shadow-print: 0 1px 2px hsl(240 6% 10% / 0.06);           /* flat, near-invisible */
  --shadow-print-dark: 0 1px 2px hsl(0 0% 0% / 0.3);
  --shear: clamp(1.5rem, 3.5vw, 3.25rem);

  /* ---- apparatus (tick strips, grids) ---- */
  --tick-strip: linear-gradient(currentColor, currentColor) left top / 100% 2px no-repeat;
  /* honeycomb (hero backgrounds), pointy-top hexagons, faint white on deep teal */
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60' viewBox='0 0 34.64 60'%3E%3Cpath d='M0 10L17.32 0L34.64 10M0 10V30L17.32 40L34.64 30M17.32 40V60' fill='none' stroke='rgba(255,255,255,0.13)' stroke-width='1'/%3E%3C/svg%3E");
  --honeycomb-size: 48.5px 84px;
  --dot-grid-dark: radial-gradient(hsl(240 5% 100% / 0.07) 1px, transparent 1px);
  --dot-grid-light: radial-gradient(hsl(240 6% 10% / 0.10) 1px, transparent 1px);

  /* ---- motion: press for entrances, out for the hand ---- */
  --ease-press: cubic-bezier(0.7, 0, 0.2, 1);     /* entrances, panel swaps */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* everything pointer-driven */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);        /* collapses, exits */
  --dur-ui: 220ms;
  --dur-swap: 400ms;
  --dur-rise: 650ms;
  --dur-frame: 900ms;
  --dur-rule: 800ms;
  --stagger: 80ms;

  /* ---- layout / z ---- */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 72px;
  --z-bar: 190;
  --z-overlay: 199;
  --z-masthead: 210;
  --z-skip: 300;
}
