/* ==========================================================================
   OMEIDA TRADING 105 — Design tokens

   Deep navy sections with the logo green as a bright accent. The green does the
   job a contractor site's yellow does, but it is OMEIDA's own brand colour.

   Contrast audit (WCAG 2.1, verified with a script — see docs):
     #FFFFFF on #0B2E42 .... 13.15:1  AAA   body copy on navy
     #8AC24B on #0B2E42 ....  6.67:1  AA    green accent text on navy
     #1B2E08 on #8AC24B ....  9.40:1  AAA   text ON a green button
     #4E6B24 on #FFFFFF ....  5.90:1  AA    green that may carry text on white
     #8AC24B on #FFFFFF ....  2.12:1  FAIL  GRAPHIC USE ONLY on light
     #111A20 on #FFFFFF .... 17.9:1   AAA   headings
     #3E4A52 on #FFFFFF ....  9.24:1  AAA   body copy
     #6B767D on #FFFFFF ....  4.79:1  AA    muted copy

   RULE: --green is a fill, never text on a light background. Green text on white
   uses --olive. Text sitting ON green uses --green-ink.
   ========================================================================== */

/* Self-hosted variable fonts — one file per family covers every weight, and
   keeps the production CSP at font-src 'self' with no third-party host. */
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
    font-weight: 100 900;
    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+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
    font-weight: 200 900;
    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+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* ── Brand ─────────────────────────────────────────────────────────── */
    --navy:        #0B2E42;
    --navy-2:      #10405C;
    --navy-3:      #164F70;
    --navy-tint:   #EAF1F6;

    --green:       #8AC24B;   /* fills, rules, accents on dark */
    --green-d:     #6FA338;   /* hover on green fills */
    --green-ink:   #1B2E08;   /* text ON green */
    --olive:       #4E6B24;   /* green text on light backgrounds */
    --green-tint:  #F2F7EA;

    /* ── Neutrals ──────────────────────────────────────────────────────── */
    --ink:         #111A20;
    --body:        #3E4A52;
    --muted:       #6B767D;
    --line:        #E2E7EA;
    --line-2:      #CBD3D8;
    --grey:        #F4F6F7;
    --grey-2:      #E9EDEF;
    --white:       #FFFFFF;

    /* ── Type ──────────────────────────────────────────────────────────────
       Two faces, assigned by ROLE — not by taste, so the site stays consistent:

       --head (Montserrat)
         headings (h1-h4) · eyebrows · buttons · primary navigation, including
         the dropdown and mobile menu · uppercase letter-spaced micro-labels
         (stat labels, contact keys, form labels, footer titles, categories) ·
         numerals and stat figures

       --sans (Source Sans 3)
         body copy · list items · descriptions and supporting sentences ·
         form inputs and their values · addresses · secondary links
         (footer navigation, breadcrumbs, the utility contact strip)

       When adding a component, decide which of the two roles its text plays
       and set the family explicitly. Text that inherits by accident is how
       the two faces drift apart.
       ────────────────────────────────────────────────────────────────────── */
    --head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Fluid between 360px and 1400px. NOTE: the `+` inside clamp() math MUST be
       surrounded by whitespace — without it the whole declaration is discarded. */
    --fs-eyebrow: 0.78rem;
    --fs-sm:      0.94rem;
    --fs-base:    1rem;
    --fs-lead:    clamp(1.05rem, 0.98rem + 0.32vw, 1.19rem);
    --fs-h4:      1.02rem;
    --fs-h3:      clamp(1.08rem, 1.02rem + 0.28vw, 1.24rem);
    --fs-h2:      clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
    --fs-h1:      clamp(2.1rem, 1.45rem + 2.9vw, 3.6rem);
    --fs-display: clamp(2.3rem, 1.4rem + 3.7vw, 4rem);

    --tracking-eyebrow: 0.18em;
    --tracking-btn:     0.1em;
    --tracking-nav:     0.07em;

    /* ── Spacing ───────────────────────────────────────────────────────── */
    --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;  --sp-4: 1rem;
    --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 2.5rem;   --sp-8: 3rem;
    --sp-9: 4rem;     --sp-10: 5rem;   --sp-11: 6rem;

    --section-y:       clamp(3.5rem, 2rem + 5vw, 6.5rem);
    --section-y-tight: clamp(2.5rem, 1.7rem + 2.8vw, 4rem);

    --maxw:      1240px;
    --pad:       clamp(1.1rem, 0.5rem + 2.4vw, 2.5rem);
    --measure:   68ch;

    /* ── Shape & depth ─────────────────────────────────────────────────── */
    --radius-sm: 2px;
    --radius:    3px;
    --radius-lg: 4px;

    --shadow-sm: 0 1px 2px rgba(11, 46, 66, 0.07), 0 1px 3px rgba(11, 46, 66, 0.05);
    --shadow:    0 4px 10px rgba(11, 46, 66, 0.08), 0 10px 24px rgba(11, 46, 66, 0.08);
    --shadow-lg: 0 18px 40px rgba(11, 46, 66, 0.14);

    /* ── Motion ────────────────────────────────────────────────────────── */
    --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 140ms;
    --dur:      240ms;
    --dur-slow: 520ms;

    --util-h:   46px;
    --header-h: 92px;
}

@media (max-width: 1049.98px) {
    :root { --header-h: 72px; }
}

/* Single switch that disables every animation in the stylesheet. */
@media (prefers-reduced-motion: reduce) {
    :root { --dur-fast: 0.01ms; --dur: 0.01ms; --dur-slow: 0.01ms; }
}
