/* ==========================================================================
   Fort Bend County MUD No. 182 — Digital Platform Design Tokens
   BP-01 Visual Design System · 2026-10-05
   BP-16 Visual Refresh · 2026-10-09 — adopts the Owner reference look
     (navy / teal / aqua, rounded cards, soft shadows, gentle reveal) while
     keeping every colour pairing verified against WCAG 2.1 AA.
   Source: Post-AR2 Authoritative Design Baseline (BL) §19, §20; IP-12 UX B.7;
     Owner reference look 2026-10-09 (look reference only, not design authority);
     MC-DESIGN-01 / MC-REQ-01 / MC-REQ-02.
   Self-hosted / system fonts only. No third-party font CDN (BP-01 Task 1).
   All colour pairings in this file are verified by contrast_check.py against
   WCAG 2.1 AA (BL §20). Token NAMES are stable so templates/components are
   unchanged by the refresh; only values and a few additive tokens change.
   ========================================================================== */

:root {
  /* --- Brand palette (navy / teal / aqua) ---------------------------------
     Civic/utility identity carried over from the Owner reference look: a deep
     navy for governance surfaces (header, footer, sidebar, hero base), a teal
     for water/sewer accents, actions and links-on-tint, and an aqua used only
     as a FILL behind dark (navy) text. Every value below that is used as text
     or as a UI boundary is contrast-checked. --------------------------------- */
  --c-brand-900: #0b2742;   /* darkest navy — header, footer, sidebar, hero base */
  --c-brand-800: #123b5d;   /* navy-2 — nav bar, gradient partner */
  --c-brand-700: #14507f;   /* primary action + links on white (AA 8.46:1) */
  --c-brand-600: #1a63a0;   /* accents (card top-rules, non-text) */
  --c-brand-500: #2a7bbf;   /* accents only (not for text on white) */
  --c-brand-050: #eef4fa;   /* tint background */
  --c-brand-100: #dbe8f3;

  /* Teal: packet-fixed #0b7a72 for text and buttons (replaces reference
     #0f8c83, which failed AA for text on white). AA on white 5.20:1 and on
     every tint used in the system. */
  --c-teal-800: #0b7a72;    /* teal text / accents / primary teal action (AA) */
  --c-teal-900: #0b6b64;    /* teal action hover (white on it: 6.36:1) */
  --c-teal-050: #e4f6f3;    /* teal tint background */

  /* Aqua: reference accent. Used ONLY as a fill under navy text (hero primary
     button, hero-panel icons) or as a non-text accent on navy; never as text
     on a light surface. navy-on-aqua 7.57:1; aqua-on-navy 7.57:1. */
  --c-aqua:      #62c7c3;
  --c-aqua-600:  #4fb8b4;   /* aqua button hover (navy text 6.40:1) */
  --c-aqua-ink:  #0b2742;   /* the only text colour placed on aqua (= navy-900) */
  --c-sky:       #dff4f7;   /* soft aqua-tinted section band */

  /* --- Neutral / ink ------------------------------------------------------- */
  --c-ink-900: #10181f;     /* body text (AA on every surface/tint) */
  --c-ink-700: #33414d;     /* secondary text (AA on white and tints) */
  --c-ink-600: #55697a;     /* muted text — packet-fixed #55697a (AA >=4.9:1 on
                               white and every tint; replaces reference
                               #607887 / #6e8290 / #667789) */
  --c-ink-400: #6b7a88;     /* non-text / icon hints only */
  --c-line:    #d7e2e7;     /* hairline separators between content (decorative,
                               reference --line; NOT used as a standalone UI
                               control boundary that must meet 3:1) */
  --c-line-strong: #71808d; /* >=3:1 on white — input borders / UI components
                               (WCAG 1.4.11) */
  --c-surface: #ffffff;
  --c-surface-2: #f4f7fa;   /* page background */
  --c-surface-3: #eef3f8;   /* neutral tint — table headers, chips (teal-safe) */

  /* --- Status / semantic (each paired with a text token that passes AA) ---- */
  --c-emergency-900: #7a1120;   /* emergency text/ink on light */
  --c-emergency-700: #a21427;   /* emergency banner background base */
  --c-emergency-050: #fbe9eb;
  --c-warn-800: #8a5300;        /* "important" / caution text on white */
  --c-warn-050: #fdf3e2;
  --c-success-800: #1d5b2a;     /* verified / live */
  --c-success-050: #e7f4ea;
  --c-info-800: #104e8a;
  --c-info-050: #e8f1fb;

  /* --- Typography ----------------------------------------------------------
     System font stacks only (no CDN). ------------------------------------- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Type scale (1.200 minor-third, 16px base) */
  --fs-300: 0.833rem;   /* 13.3px — fine print */
  --fs-400: 1rem;       /* 16px   — body */
  --fs-500: 1.2rem;     /* 19.2px — lead */
  --fs-600: 1.44rem;    /* 23px   — h3 */
  --fs-700: 1.728rem;   /* 27.6px — h2 */
  --fs-800: 2.074rem;   /* 33px   — h1 */
  --fs-900: 2.488rem;   /* 40px   — hero */

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

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

  /* --- Spacing (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;

  /* --- Radius / elevation / layout -----------------------------------------
     Rounded cards + soft shadows carried from the reference look (reference
     --radius 22px; softened for civic restraint). ---------------------------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-1: 0 1px 2px rgba(11, 39, 66, 0.07), 0 6px 18px rgba(11, 39, 66, 0.06);
  --shadow-2: 0 10px 28px rgba(11, 39, 66, 0.10), 0 18px 45px rgba(11, 39, 66, 0.10);
  --shadow-hover: 0 18px 44px rgba(11, 39, 66, 0.16);
  --container: 1120px;
  --container-narrow: 760px;

  /* --- Motion (gentle "floating" reveal; added only, respects reduced motion) */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --reveal-shift: 16px;
  --reveal-dur: 0.55s;

  /* --- Focus (WCAG 2.4.7 / 2.4.11) ----------------------------------------- */
  --focus-ring: 3px solid #1452a8;
  --focus-offset: 2px;
}

/* Reduced motion (UX-035 / WCAG 2.3.3 controlled). The scroll-reveal and hover
   lift are disabled here; content is already fully present without motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
