/* ==========================================================================
   Riverside Homecare — Design tokens
   --------------------------------------------------------------------------
   Every color, font, size, radius and spacing value on the site lives here.
   Change a value once and it updates everywhere.

   BRAND RULES (from the owner — do not break these):
   - Blue leads (~70%): headings, navigation, phone number, primary buttons,
     dark sections.
   - Light grass green is the signature ACCENT (~30%): tiles, chips, icon
     fills, the self-assessment panel, map shading, staff uniforms in photos.
   - Grass green is NEVER text on a light background (2.17:1 on white).
     Green text uses --color-grass-ink (6.57:1 on white, AA pass).
     Grass green text IS allowed on the dark river blues (6.2:1 – 7.3:1),
     and as large text on river-700 (4.29:1, large text only).

   Contrast ratios measured against WCAG 2.1 (AA = 4.5:1 body text,
   3:1 large text and UI outlines).
   ========================================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* EB Garamond: the classic serif for headlines (matches the style of the
   reference site the client sent, Oct 28 2026). Variable weight 400–800. */
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* ---- River blue (leads) ---------------------------------------------- */
  --color-river-950: #082531; /* footer. White text 15.92:1, grass-300 7.32:1 */
  --color-river-900: #0B3242; /* dark sections. White 13.56:1, grass-300 6.24:1 */
  --color-river-800: #0E4058; /* hover on dark buttons. White 11.09:1 */
  --color-river-700: #134C65; /* PRIMARY: headings, nav, phone, buttons. 9.34:1 on white */
  --color-river-600: #1C6283; /* focus ring, link hover. 6.39:1 on paper */
  --color-river-200: #B9D3DF; /* body text on dark sections. 8.0:1 on river-900 */
  --color-river-100: #DCEAF0;
  --color-river-50:  #EEF5F8;

  /* ---- Grass green (signature accent, matched to the logo green) -------- */
  --color-grass-300: #7BC24B; /* tiles, chips, accent buttons. river-900 text on it: 6.24:1 */
  --color-grass-200: #B6DC98; /* softer fills, map shading */
  --color-grass-100: #E3F2D6; /* tint panels. river-700 text on it: 7.97:1 */
  --color-grass-50:  #F2F9EC;
  --color-grass-ink: #2F6A17; /* the ONLY green allowed as text on light. 6.57:1 on white */

  /* ---- Logo colors (from the Riverside Homecare business card) --------- */
  /* Used in the logo itself. The logo is exempt from text-contrast rules. */
  --color-logo-green:  #66AE3B;
  --color-wordmark:    #4E9A2B; /* logo green, one step deeper for the web wordmark: 3.34:1 on paper (bold, large text) */
  --color-logo-teal:   #29ABE2;
  --color-logo-purple: #3E3A9C;
  --color-logo-grey:   #6B6C6E;

  /* ---- Warm neutrals --------------------------------------------------- */
  --color-paper:  #FBF9F5; /* page background */
  --color-sand:   #F3EFE7; /* warm tiles */
  --color-sand-2: #ECE6DA;
  --color-line:   #E2DBCD; /* hairlines (decorative) */
  --color-line-strong: #8A8274; /* form field borders: 3.61:1, passes the UI rule */
  --color-ink:    #1D2A31; /* body text. 13.99:1 on paper */
  --color-ink-muted: #4B5860; /* secondary text. 6.97:1 on paper */
  --color-white:  #FFFFFF;

  --color-error: #A1271B; /* 7.44:1 on white */

  /* ---- Typography ------------------------------------------------------ */
  /* Body: Atkinson Hyperlegible Next, designed by the Braille Institute for
     low-vision readers. Headlines: EB Garamond, a classic serif. Accent: the
     same serif in italic, for a few emphasized words inside headlines only. */
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-accent: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-wordmark: "Lora", Georgia, "Times New Roman", serif;   /* logo wordmark only */

  /* Body text never drops below 18px (audience skews older). */
  --text-sm:   1.0625rem;                                  /* 17px: labels, fine print only */
  --text-base: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);  /* 18–20px */
  --text-lg:   clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);    /* 20–24px */
  --text-xl:   clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem);  /* 26–34px (Garamond runs small) */
  --text-2xl:  clamp(2.375rem, 1.7rem + 2.8vw, 4rem);      /* 38–64px: section titles */
  --text-3xl:  clamp(2.875rem, 1.6rem + 5.2vw, 5.75rem);   /* 46–92px: page titles */

  --leading-body: 1.6;
  --leading-tight: 1.08;
  --tracking-display: -0.01em;

  /* ---- Spacing --------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-pad: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* ---- Layout ---------------------------------------------------------- */
  --container: 80rem;            /* 1280px */
  --container-narrow: 48rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --inset: clamp(0.5rem, 0.2rem + 1vw, 1rem);   /* gap around the floating call bar */
  --header-h: 6rem;

  /* ---- Shape & depth --------------------------------------------------- */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgb(11 50 66 / 0.05), 0 8px 24px -8px rgb(11 50 66 / 0.12);
  --shadow-lift: 0 2px 6px rgb(11 50 66 / 0.06), 0 24px 48px -16px rgb(11 50 66 / 0.22);

  /* ---- Interaction ----------------------------------------------------- */
  --tap-min: 3rem;               /* 48px minimum tap target */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
