/* ==========================================================================
   variables.css - design tokens. Loaded first, no selectors except :root
   and two media queries. Every other stylesheet reads from here.

   Palette: Trust Blue #1A5276 (primary) and Conversion Green #27AE60
   (the single accent, used for the one conversion action on a screen).
   Darker shades #154360 / #1E8449 are used in the brand mark and for
   text on tinted surfaces, where the base shades fall short of WCAG AA.
   ========================================================================== */
:root {
  /* ---- Colour -------------------------------------------------------- */
  --color-primary: #1A5276;
  --color-primary-dark: #154360;
  --color-primary-tint: #EAF1F7;

  --color-accent: #27AE60;
  --color-accent-hover: #229954;
  --color-accent-dark: #1E8449;
  --color-accent-tint: #E9F7EF;
  --color-on-accent: #0B3D22;

  --color-bg: #F5F8FA;
  --color-surface: #FFFFFF;
  --color-border: #D6DEE6;
  --color-border-strong: #AEBCCA;

  --color-text: #1F2A36;
  --color-text-muted: #55657A;

  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #C9D6E2;

  --color-warning: #D68910;
  --color-warning-tint: #FDF3E1;
  --color-warning-text: #5C3B00;

  --color-danger: #B03A2E;
  --color-danger-tint: #FBEBE9;

  --color-focus: #1A5276;
  --focus-ring-w: 3px;
  --focus-ring-offset: 2px;

  /* ---- Typography ----------------------------------------------------- */
  --font-sans: "Noto Sans Georgian", "Sylfaen", "BPG Arial", "Segoe UI", Arial, sans-serif;

  --fs-xs: 0.8125rem;                                   /* 13px */
  --fs-sm: 0.9rem;                                      /* 14.4px */
  --fs-base: 1rem;                                      /* 16px */
  --fs-md: 1.125rem;                                    /* 18px */
  --fs-lg: 1.3rem;                                      /* 20.8px */
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.4vw, 2.875rem);

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

  --lh-body: 1.6;
  --lh-snug: 1.4;
  --lh-heading: 1.2;

  --measure: 42rem;                                     /* comfortable line length */

  /* ---- Spacing (4px base) --------------------------------------------- */
  --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-section: clamp(3rem, 2rem + 4vw, 5rem);

  /* ---- Layout --------------------------------------------------------- */
  --container-w: 75rem;                                 /* 1200px */
  --container-narrow-w: 48rem;
  --gutter: 1rem;
  --header-h: 4.25rem;
  --sidebar-w: 18rem;
  --tap-target: 2.75rem;                                /* 44px */

  /* ---- Shape + depth -------------------------------------------------- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(21 67 96 / 0.08);
  --shadow-md: 0 4px 14px rgb(21 67 96 / 0.12);
  --shadow-lg: 0 12px 32px rgb(21 67 96 / 0.18);

  /* ---- Motion --------------------------------------------------------- */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* ---- Stacking ------------------------------------------------------- */
  --z-dropdown: 30;
  --z-header: 40;
  --z-sticky: 50;
}

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

@media (min-width: 64rem) {
  :root {
    --gutter: 2rem;
    --header-h: 4.5rem;
  }
}

/* Motion off for people who asked for it: transitions collapse to zero */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
  }
}
