/* Freedom Senior Services | Design tokens
   Source: Freedom_Brand_Guidelines_PENDING_FEEDBACK.pdf (v1.0, Oct 2026) and
   Design_Tokens_and_Asset_Rules.md. Brand guidelines are pending client feedback. */

:root {
  /* Core palette */
  --navy: #023C5A;
  --orange: #EE7724;
  --teal: #3C786B;
  --sand: #EFE8D6;

  /* Supporting palette */
  --slate: #3D5666;
  --teal-dark: #2B5E53;
  --mint: #8CCFC0;
  --blue-gray: #5E8BA3;
  --sand-light: #F7F2E7;
  --sand-line: #D6C9AC;   /* sand-card borders only; page rules use --line */
  --white: #FFFFFF;

  /* Derived, prototype-only (tonal helpers, documented in design log) */
  --navy-tint: #125070;        /* "one shade lighter" house on navy, taken from PPT cover artwork */
  --navy-deep: #022E45;        /* footer base */
  --sand-deep: #E6DCC3;        /* house on sand, one shade darker */
  --orange-hover: #D96A1C;
  --teal-hover: #2F6358;
  --focus: #023C5A;
  --focus-on-dark: #8CCFC0;

  /* v1.5.0 colour system: white canvas, navy structure, orange action, teal accent, sand for selective cards */
  --line: #D8E0E5;             /* neutral rules and borders on white */
  --tint-teal: #E8F4F1;        /* pale teal surface, used sparingly */
  --sky: #E3ECF2;              /* pale navy tint: door graphic on white */
  --on-dark: #F4F8FA;          /* text on navy (was sand-light) */
  --navy-line: rgba(255,255,255,.18);

  /* Semantic */
  --bg: var(--white);
  --bg-soft: #F3F6F8;          /* v1.5.0: light cool neutral for alternating sections (was sand-light) */
  --bg-sand: var(--sand);
  --text: var(--slate);
  --heading: var(--navy);
  --link: var(--navy);
  --rule: var(--line);

  /* Type */
  --font-heading: Georgia, "Gelasio", "Liberation Serif", "Times New Roman", serif;
  --font-body: "Carlito", Calibri, "Segoe UI", Arial, sans-serif;

  /* Fluid type scale (16px floor for body text; older-adult readability) */
  --fs-xs: 0.875rem;                                  /* 14px labels, never body */
  --fs-sm: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);   /* 16-17 */
  --fs-body: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); /* 17-19 */
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem); /* 19-22 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);      /* 20-24 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);       /* 28-40 */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.625rem);     /* 36-58 */
  --fs-eyebrow: 0.8125rem;                                 /* 13px bold caps */

  --lh-tight: 1.15;
  --lh-heading: 1.2;
  --lh-body: 1.6;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);

  /* Layout */
  --measure: 62ch;
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Shape: the door handle. Buttons, tags and portraits share its rounded shape. */
  --radius-pill: 999px;
  --radius-card: 1rem;
  --radius-soft: 0.5rem;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 180ms;

  /* Touch */
  --tap: 44px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}
