/* ==========================================================================
   Your Chiropractic Pros — global design tokens (single source of truth)
   Brand colours and font families are imported from the workbook "Design System"
   tab into the settings table and injected as :root overrides in the layout <head>.
   The values below are the same workbook values, used as fallbacks.
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand colours (workbook) */
    --color-primary: #173B57;
    --color-secondary: #E7F1F7;
    --color-accent: #F28C28;
    --color-bg: #F7FAFC;
    --color-text: #17212B;

    /* Derived colours */
    --color-primary-700: #0F2B41;
    --color-primary-900: #0B1F2F;
    --color-accent-hover: #DA7516;
    --color-accent-ink: #17212B;          /* text on accent buttons (AA contrast) */
    --color-surface: #FFFFFF;
    --color-muted: #4A5B6B;
    --color-border: #D5E3EC;
    --color-border-strong: #B9CEDC;
    --color-focus: #F28C28;
    --color-error: #B42318;
    --color-on-dark: #FFFFFF;
    --color-on-dark-muted: #C9DCE8;

    /* Typography */
    --font-fallback: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "Manrope", var(--font-fallback);
    --font-body: "Inter", var(--font-fallback);
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --fs-h4: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
    --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
    --fs-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.625rem);
    --fs-h1: clamp(2.125rem, 1.6rem + 2.4vw, 3.75rem);
    --lh-tight: 1.12;
    --lh-heading: 1.2;
    --lh-body: 1.65;
    --tracking-heading: -0.02em;
    --tracking-eyebrow: 0.08em;

    /* Shape (workbook: 10px cards, 10px buttons, restrained shadows) */
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(23, 59, 87, 0.06), 0 1px 3px rgba(23, 59, 87, 0.06);
    --shadow-md: 0 6px 18px rgba(23, 59, 87, 0.08);
    --shadow-lg: 0 18px 40px rgba(23, 59, 87, 0.12);

    /* Layout & spacing */
    --container: 1200px;
    --container-narrow: 760px;
    --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
    --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;
    --section-y: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
    --header-h: 76px;
    --tap: 44px;

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-fast: 160ms;
    --dur: 260ms;
    --dur-slow: 600ms;
}
