/* =========================================================================
   Ford — Bootstrap 5.3 core variable overrides
   Loaded by BaseLayout when `franchise="ford"`. Layered on top of the
   project's customised Bootstrap (src/styles/global/bootstrap), so this file
   only re-tints the palette, type and shape — nothing structural.
   ========================================================================= */

html body {
    /* -----------------------------------------------------------------
       Brand palette
       Ford Bright Blue (#066fef) is the digital primary — it's the colour
       used across ford.co.uk for CTAs, links and accent surfaces. The deep
       navy (#00095b) is the secondary, used for headers, footers and dark
       hero treatments. The two map to $primary-franchise /
       $secondary-franchise in the upstream SCSS so the build pipeline stays
       consistent.
       ----------------------------------------------------------------- */
    --bs-blue: #066fef;
    --bs-primary: #066fef;
    --bs-primary-rgb: 6, 111, 239;

    --bs-secondary: #00095b;
    --bs-secondary-rgb: 0, 9, 91;

    --bs-dark: #00142e;
    --bs-dark-rgb: 0, 20, 46;

    --bs-light: #f4f4f4;
    --bs-light-rgb: 244, 244, 244;

    /* Semantic colours — kept in the blue/green/amber/red family but pulled
       toward Ford's tonal range. The previous --bs-info (#1700f4) was a
       pure electric indigo that fought the primary; this is a lighter
       sibling of Ford Bright Blue so info surfaces sit in the same family. */
    --bs-info: #2b85f1;
    --bs-info-rgb: 43, 133, 241;

    --bs-success: #1f7a3a;
    --bs-success-rgb: 31, 122, 58;

    --bs-warning: #f0a500;
    --bs-warning-rgb: 240, 165, 0;

    --bs-danger: #d62828;
    --bs-danger-rgb: 214, 40, 40;

    /* Subtle/emphasis tones derived from the new primary so alerts, badges
       and bg-subtle utilities stay on-brand without per-component overrides. */
    --bs-primary-text-emphasis: #00264f;
    --bs-primary-bg-subtle: #d9e8fc;
    --bs-primary-border-subtle: #95befa;

    --bs-secondary-text-emphasis: #00071f;
    --bs-secondary-bg-subtle: #d6d8e2;
    --bs-secondary-border-subtle: #8a8fa9;

    --bs-dark-text-emphasis: #00142e;
    --bs-dark-bg-subtle: #d6d8de;
    --bs-dark-border-subtle: #6c7080;

    --bs-info-text-emphasis: #0a3a78;
    --bs-info-bg-subtle: #dceafd;
    --bs-info-border-subtle: #9bc2f8;

    --bs-success-text-emphasis: #0e3d1d;
    --bs-success-bg-subtle: #d8ecdf;
    --bs-success-border-subtle: #93c8a4;

    --bs-warning-text-emphasis: #784f00;
    --bs-warning-bg-subtle: #fcecc4;
    --bs-warning-border-subtle: #f7d27a;

    --bs-danger-text-emphasis: #6b1414;
    --bs-danger-bg-subtle: #f7d4d4;
    --bs-danger-border-subtle: #ea9090;

    /* -----------------------------------------------------------------
       Body / surface tiers
       Bootstrap exposes three background levels (body / secondary / tertiary)
       and three text levels. Tuned here so each tier is distinguishable
       without being grey-on-grey-on-grey: tertiary is the lightest fill,
       secondary is a touch darker for cards-on-tertiary nesting.
       ----------------------------------------------------------------- */
    --bs-body-color: #1a1a1a;
    --bs-body-color-rgb: 26, 26, 26;
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 255, 255, 255;

    --bs-emphasis-color: #00142e;
    --bs-emphasis-color-rgb: 0, 20, 46;

    --bs-secondary-color: rgba(26, 26, 26, 0.72);
    --bs-secondary-color-rgb: 26, 26, 26;
    --bs-secondary-bg: #ebebeb;
    --bs-secondary-bg-rgb: 235, 235, 235;

    --bs-tertiary-color: rgba(26, 26, 26, 0.55);
    --bs-tertiary-color-rgb: 26, 26, 26;
    --bs-tertiary-bg: #f7f7f7;
    --bs-tertiary-bg-rgb: 247, 247, 247;

    --bs-heading-color: #00142e;

    /* -----------------------------------------------------------------
       Links — Ford treats links as the bright blue primary, no underline
       at rest, with a hover deepening toward the navy secondary so the
       interaction feels weighted rather than colour-shifted.
       ----------------------------------------------------------------- */
    --bs-link-color: #066fef;
    --bs-link-color-rgb: 6, 111, 239;
    --bs-link-hover-color: #00095b;
    --bs-link-hover-color-rgb: 0, 9, 91;
    --bs-link-decoration: none;
    --bs-link-hover-decoration: underline;

    /* -----------------------------------------------------------------
       Borders & shape
       Ford UI is architectural, not playful. Tight radii across the board.
       The pill radius stays available for CTAs that opt in — Ford's primary
       buttons on the live site are pill-shaped, but other components
       (cards, inputs, alerts) keep the small architectural radius.
       ----------------------------------------------------------------- */
    --bs-border-color: #d9d9d9;
    --bs-border-color-translucent: rgba(0, 20, 46, 0.12);

    --bs-border-radius: 0.25rem;
    --bs-border-radius-sm: 0.125rem;
    --bs-border-radius-lg: 0.375rem;
    --bs-border-radius-xl: 0.5rem;
    --bs-border-radius-xxl: 0.75rem;
    --bs-border-radius-pill: 50rem;

    /* Focus ring tinted to primary so keyboard navigation reads on-brand */
    --bs-focus-ring-color: rgba(6, 111, 239, 0.35);
    --bs-focus-ring-width: 0.2rem;

    /* Code / highlight */
    --bs-code-color: #066fef;
    --bs-highlight-color: #00142e;
    --bs-highlight-bg: #fff3cd;

    /* Form validation — semantic green/red kept in the brand-adjacent tones
       defined above so validation states match the rest of the system. */
    --bs-form-valid-color: #1f7a3a;
    --bs-form-valid-border-color: #1f7a3a;
    --bs-form-invalid-color: #d62828;
    --bs-form-invalid-border-color: #d62828;

    /* -----------------------------------------------------------------
       Typography
       Ford Antenna first, then a clean neo-grotesque fallback chain — no
       system-ui to avoid platform drift. Display headings get tighter
       leading and a touch of negative tracking to match the way Antenna
       is set on Ford's own marketing pages.
       ----------------------------------------------------------------- */
    --bs-font-sans-serif:
        "FordAntenna", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.55;

    --bs-headings-font-family: var(--bs-font-sans-serif);
    --bs-headings-font-weight: 600;
    --bs-headings-line-height: 1.15;
    --bs-headings-letter-spacing: -0.01em;

    /* -----------------------------------------------------------------
       Buttons
       Three filled variants cover the common cases on Ford pages:
         - .btn-primary   bright blue, the default CTA
         - .btn-secondary deep navy, for darker surfaces or paired CTAs
         - .btn-dark      near-black navy, used over photography hero areas
       Plus matching ghost (outline) variants for the "ghost-on-image"
       treatment Ford uses extensively on hero sections.
       ----------------------------------------------------------------- */

    .btn-primary {
        --bs-btn-color: #fff;
        --bs-btn-bg: #066fef;
        --bs-btn-border-color: #066fef;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #055ecb;
        --bs-btn-hover-border-color: #0559bf;
        --bs-btn-focus-shadow-rgb: 43, 133, 241;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #0559bf;
        --bs-btn-active-border-color: #0553b3;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #066fef;
        --bs-btn-disabled-border-color: #066fef;
    }

    .btn-secondary {
        --bs-btn-color: #fff;
        --bs-btn-bg: #00095b;
        --bs-btn-border-color: #00095b;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #1a216b;
        --bs-btn-hover-border-color: #262e74;
        --bs-btn-focus-shadow-rgb: 38, 46, 116;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #262e74;
        --bs-btn-active-border-color: #333a7c;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #00095b;
        --bs-btn-disabled-border-color: #00095b;
    }

    .btn-dark {
        --bs-btn-color: #fff;
        --bs-btn-bg: #00142e;
        --bs-btn-border-color: #00142e;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #0a2548;
        --bs-btn-hover-border-color: #14305a;
        --bs-btn-focus-shadow-rgb: 20, 48, 90;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #14305a;
        --bs-btn-active-border-color: #1c3b6a;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #00142e;
        --bs-btn-disabled-border-color: #00142e;
    }

    .btn-outline-primary {
        --bs-btn-color: #066fef;
        --bs-btn-border-color: #066fef;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #066fef;
        --bs-btn-hover-border-color: #066fef;
        --bs-btn-focus-shadow-rgb: 6, 111, 239;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #0559bf;
        --bs-btn-active-border-color: #0559bf;
        --bs-btn-disabled-color: #066fef;
        --bs-btn-disabled-bg: transparent;
        --bs-btn-disabled-border-color: #066fef;
    }

    .btn-outline-secondary {
        --bs-btn-color: #00095b;
        --bs-btn-border-color: #00095b;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #00095b;
        --bs-btn-hover-border-color: #00095b;
        --bs-btn-focus-shadow-rgb: 0, 9, 91;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #00071f;
        --bs-btn-active-border-color: #00071f;
        --bs-btn-disabled-color: #00095b;
        --bs-btn-disabled-bg: transparent;
        --bs-btn-disabled-border-color: #00095b;
    }

    /* Ghost / "on-image" button — white outline used over hero photography.
       Not a default Bootstrap class; opt-in via .btn.btn-ghost-light. */
}
