/* =========================================================================
   Stixtraprow — styles.css
   Sections:
   01. Reset
   02. Custom properties (palette, typography, spacing, radii, shadows)
   03. Base typography
   04. Layout primitives
   05. Buttons
   06. Header
   07. Trap-line hero (UNIQUE)
   08. Six-trap stats strip (UNIQUE)
   09. Trap-jacket brand cards (UNIQUE)
   10. Race-card fixtures (UNIQUE)
   11. Four numbers + grade ladder tiles (UNIQUE)
   12. Pub-tannoy pull-quote (UNIQUE)
   13. Six Slips flow (UNIQUE)
   14. Three Classics format cards (UNIQUE)
   15. Heritage drop-cap
   16. Heritage stat call-outs (UNIQUE)
   17. Card reviews (UNIQUE)
   18. Responsibility commitment cards
   19. Trackside-hut contact (UNIQUE)
   20. Email subscription
   21. Footer + trap-row silhouette (UNIQUE)
   22. Help links
   23. Age-verification modal
   24. Mobile menu offcanvas
   25. Photo-finish divider (UNIQUE)
   26. Policy-content (cookies, privacy)
   27. Utilities
   28. Responsive breakpoints
   ========================================================================= */

/* 01. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body { margin: 0; line-height: 1.6; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; }
hr { border: none; }

/* 02. Custom properties */
:root {
    /* Palette — Floodlit Friday Night, Cinder-Grey Mid */
    --color-primary:        #3A3F47;   /* cinder-grey */
    --color-primary-deep:   #222730;   /* night-charcoal */
    --color-primary-light:  #5A6068;
    --color-accent:         #E8B547;   /* kennel-yellow */
    --color-accent-deep:    #C99535;   /* hover ONLY — NEVER text on cream */
    --color-accent-light:   #F2C76A;
    --color-secondary:      #2E78B5;   /* floodlight-blue — bg only on dark; text only on cream */
    --color-secondary-deep: #1E5A8E;   /* floodlight-blue text on cream/white */
    --color-secondary-light:#7BAFD4;   /* floodlight-blue text on cinder/charcoal */
    --color-trap-red:       #B83A2E;   /* trap 1 jacket */
    --color-background:     #EFEAD8;   /* warm-clipboard cream */
    --color-surface:        #FFFFFF;
    --color-surface-warm:   #F4EFE0;
    --color-text:           #1F1F1F;
    --color-text-muted:     #5A6068;
    --color-border:         #D8D2BD;
    --color-error:          #B22222;
    --color-success:        #2A6B3D;

    /* Typography */
    --ff-heading: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
    --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --fs-xs:    0.75rem;
    --fs-sm:    0.875rem;
    --fs-base:  1rem;
    --fs-md:    1.125rem;
    --fs-lg:    1.25rem;
    --fs-xl:    1.5rem;
    --fs-2xl:   1.875rem;
    --fs-3xl:   2.25rem;
    --fs-4xl:   3rem;
    --fs-5xl:   4rem;
    --fs-6xl:   5.5rem;

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

    --lh-tight: 1.1;
    --lh-base:  1.6;
    --lh-loose: 1.8;

    /* 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:  3rem;
    --sp-8:  4rem;
    --sp-9:  6rem;

    /* Radii — squared, post-war industrial aesthetic */
    --radius-sm: 2px;
    --radius-md: 4px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(31, 31, 31, 0.07);
    --shadow-md: 0 4px 12px rgba(31, 31, 31, 0.10);
    --shadow-lg: 0 8px 28px rgba(31, 31, 31, 0.14);

    /* Transitions */
    --tx-fast: 150ms ease;
    --tx-base: 250ms ease;

    /* Layout */
    --max-content: 1180px;
    --header-h:    72px;
}

/* 03. Base typography */
body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    color: var(--color-primary-deep);
    line-height: var(--lh-tight);
    margin: 0 0 var(--sp-4);
    font-weight: var(--fw-bold);
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); font-weight: var(--fw-bold); }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); text-transform: none; }
h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); text-transform: none; }

p { margin: 0 0 var(--sp-4); }

a {
    color: var(--color-secondary-deep);
    text-decoration: underline;
    text-decoration-color: var(--color-secondary-deep);
    text-underline-offset: 2px;
    transition: color var(--tx-fast);
}
a:hover { color: var(--color-trap-red); }

strong { font-weight: var(--fw-bold); }

.eyebrow {
    display: block;
    font-family: var(--ff-body);
    font-style: italic;
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary-deep);
    margin-bottom: var(--sp-2);
}
/* On cinder/charcoal sections, eyebrow uses sand-tinged cream */
/* Note: `.hero .eyebrow` is NOT in this list — the eyebrow sits inside `.hero__card`
   which has a fully-opaque cream background, so cream-on-cream would be invisible.
   The default `.eyebrow` rule (secondary-deep blue on cream, 5.93:1) applies there. */
.section--cinder .eyebrow,
.section--cinder-deep .eyebrow,
.pull-quote .eyebrow,
.responsible-play .eyebrow,
.reviews .eyebrow {
    color: var(--color-background);
    opacity: 0.85;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* 04. Layout primitives */
.container {
    width: 100%;
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--sp-5);
}

.site-main { display: block; }

.section { padding: var(--sp-8) 0; }
.section--surface       { background: var(--color-surface-warm); }
.section--surface-cream { background: var(--color-background); }
.section--white         { background: var(--color-surface); }
.section--cinder {
    background: var(--color-primary);
    color: var(--color-background);
}
.section--cinder h2,
.section--cinder h3,
.section--cinder h4 { color: var(--color-background); }
.section--cinder p { color: var(--color-background); }

.section--cinder-deep {
    background: var(--color-primary-deep);
    color: var(--color-background);
}
.section--cinder-deep h2,
.section--cinder-deep h3,
.section--cinder-deep h4,
.section--cinder-deep p { color: var(--color-background); }

.no-scroll { overflow: hidden; }

/* 05. Buttons */
.btn {
    display: inline-block;
    padding: var(--sp-3) var(--sp-5);
    font-family: var(--ff-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: background var(--tx-fast), color var(--tx-fast), border-color var(--tx-fast);
    text-align: center;
}

/* Primary CTA — kennel-yellow background + charcoal text on cream sections */
.btn--accent {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}
.btn--accent:hover {
    background: var(--color-accent-deep);
    border-color: var(--color-accent-deep);
    color: var(--color-text);
}

/* CTA on cinder sections — kennel-yellow bg + charcoal text */
.btn--yellow {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}
.btn--yellow:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-text);
}

/* Ghost button on cinder — cream border + cream text */
.btn--ghost {
    background: transparent;
    color: var(--color-background);
    border-color: var(--color-background);
}
.btn--ghost:hover {
    background: var(--color-background);
    color: var(--color-text);
    border-color: var(--color-background);
}

/* Sand button on cinder sections — cream bg + charcoal text */
.btn--sand {
    background: var(--color-background);
    color: var(--color-text);
    border-color: var(--color-background);
}
.btn--sand:hover {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}

/* 06. Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary-deep);
    border-bottom: 3px solid var(--color-accent);
    transition: box-shadow var(--tx-base);
}
.site-header--scrolled { box-shadow: var(--shadow-md); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.header-brand__logo { height: 36px; width: auto; }
.header-brand__separator {
    width: 1px;
    height: 28px;
    background: var(--color-accent);
    opacity: 0.5;
}
.header-brand__18plus { width: 36px; height: 36px; }

.header-nav__list {
    display: flex;
    gap: var(--sp-5);
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav__link {
    color: var(--color-background);
    text-decoration: none;
    font-family: var(--ff-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-md);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: var(--sp-2) 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--tx-fast), color var(--tx-fast);
}
.header-nav__link:hover {
    border-bottom-color: var(--color-accent);
    color: var(--color-background);
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-accent);
}

/* 07. Trap-line hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary-deep);
    padding: var(--sp-9) 0;
    overflow: hidden;
}
/* Charcoal overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(34, 39, 48, 0.78) 0%,
        rgba(34, 39, 48, 0.92) 100%);
}
/* Sodium-vapour halo — yellow tint that fades down */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(232, 181, 71, 0.18) 0%,
        rgba(232, 181, 71, 0.06) 35%,
        transparent 60%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero__card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-background);
    border: 1px solid var(--color-accent);
    padding: var(--sp-7) var(--sp-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.hero__card h1 {
    color: var(--color-primary-deep);
    margin-bottom: var(--sp-4);
}
.hero__rule {
    width: 80px;
    height: 2px;
    background: var(--color-accent);
    margin: var(--sp-4) auto;
    border: none;
}
.hero__card p {
    color: var(--color-text);
    font-size: var(--fs-md);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero__cta {
    margin-top: var(--sp-5);
}

/* 08. Six-trap stats strip — 4 mini tiles below hero card */
.hero-stats {
    margin-top: var(--sp-6);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}
.hero-stats__tile {
    background: var(--color-background);
    border-top: 3px solid var(--color-accent);
    padding: var(--sp-4) var(--sp-3);
    text-align: center;
}
.hero-stats__label {
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary-deep);
    margin-bottom: var(--sp-2);
}
.hero-stats__value {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    line-height: 1;
}

/* 09. Brand cards — trap-jackets */
.brand-cards {
    padding: var(--sp-8) 0;
    background: var(--color-surface-warm);
}
.brand-cards__heading {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.brand-cards__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
.brand-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--tx-base), box-shadow var(--tx-base);
}
.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Trap-jacket coloured top-band — full width strip */
.brand-card__band {
    height: 14px;
    width: 100%;
}
.brand-card--trap1 .brand-card__band { background: var(--color-trap-red); }
.brand-card--trap2 .brand-card__band { background: var(--color-secondary); }
.brand-card--trap3 .brand-card__band {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-primary); /* spec: "cinder-grey border to be visible" */
}
.brand-card--trap4 .brand-card__band { background: var(--color-primary-deep); }

/* Trap-number badge — circle floating over the band */
.brand-card__trap {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary-deep);
    color: var(--color-background);
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    line-height: 28px;
    text-align: center;
    border: 2px solid var(--color-background);
    box-shadow: var(--shadow-sm);
}

.brand-card__body {
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    flex: 1;
}
.brand-card__logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
}
.brand-card__logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-card__license {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: var(--lh-base);
}
.brand-card__cta {
    color: var(--color-secondary-deep);
    font-family: var(--ff-heading);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
    margin-top: auto;
    transition: color var(--tx-fast);
}
.brand-card__cta:hover {
    color: var(--color-trap-red);
    border-bottom-color: var(--color-trap-red);
}

/* 10. Race-card fixtures */
.races {
    padding: var(--sp-8) 0;
}
.races__heading {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.races__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
.race-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    padding: var(--sp-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--tx-base), box-shadow var(--tx-base);
    display: flex;
    flex-direction: column;
}
.race-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.race-card__time {
    font-family: var(--ff-heading);
    font-style: normal;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-trap-red);
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-2);
}
.race-card__track {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--color-primary-deep);
    margin-bottom: var(--sp-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.race-card__grade,
.race-card__distance {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-1);
}
.race-card__broadcaster {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px dashed var(--color-border);
}

/* 11. Four-numbers / grade-ladder tiles (shared component) */
.numbers {
    background: var(--color-surface-warm);
    padding: var(--sp-8) 0;
}
.numbers__heading {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
.number-tile {
    background: var(--color-background);
    border-top: 4px solid var(--color-accent);
    padding: var(--sp-5);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.number-tile__value {
    font-family: var(--ff-heading);
    font-size: var(--fs-6xl);
    font-weight: var(--fw-bold);
    color: var(--color-trap-red);
    line-height: 1;
    margin-bottom: var(--sp-3);
    letter-spacing: -0.02em;
}
.number-tile__label {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--color-text-muted);
    margin-bottom: var(--sp-2);
}
.number-tile__copy {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    color: var(--color-text);
    line-height: var(--lh-base);
}

/* 12. Pub-tannoy pull-quote */
.pull-quote {
    padding: var(--sp-8) 0;
    background: var(--color-primary-deep);
    color: var(--color-background);
}
.pull-quote__inner {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--color-accent);
    padding: var(--sp-7) var(--sp-6);
    position: relative;
    text-align: center;
}
.pull-quote__inner::before {
    content: '\25C9';
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-4);
    font-size: var(--fs-xl);
    color: var(--color-accent);
    line-height: 1;
}
.pull-quote__text {
    font-family: var(--ff-heading);
    font-style: normal;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--color-accent);
    margin: 0 0 var(--sp-5);
    letter-spacing: 0.01em;
}
.pull-quote__cite {
    display: block;
    font-family: var(--ff-body);
    font-style: italic;
    font-size: var(--fs-sm);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-background);
    opacity: 0.75;
}

/* 13. Six Slips flow */
.slips-flow {
    padding: var(--sp-8) 0;
}
.slips-flow__heading {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.slips-flow__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--sp-3);
    position: relative;
    margin-top: var(--sp-6);
}
/* Horizontal kennel-yellow connector */
.slips-flow__row::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--color-accent);
    z-index: 0;
}
.slips-flow__step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.slips-flow__badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary-deep);
    color: var(--color-accent);
    margin: 0 auto var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xl);
    border: 2px solid var(--color-accent);
}
.slips-flow__name {
    font-family: var(--ff-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-md);
    color: var(--color-primary-deep);
    margin-bottom: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.slips-flow__copy {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-base);
}
/* Mini variant for homepage teaser */
.slips-flow--mini .slips-flow__row {
    margin-top: var(--sp-4);
}
.slips-flow--mini .slips-flow__badge {
    width: 48px;
    height: 48px;
    font-size: var(--fs-md);
}
.slips-flow--mini .slips-flow__name {
    font-size: var(--fs-sm);
}
.slips-flow--mini .slips-flow__copy {
    display: none;
}

/* 14. Three Classics format cards */
.classics {
    padding: var(--sp-8) 0;
}
.classics__heading {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.classics__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
.classic-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.classic-card__band { height: 8px; }
.classic-card--derby   .classic-card__band { background: var(--color-trap-red); }
.classic-card--leger   .classic-card__band { background: var(--color-primary); }
.classic-card--oaks    .classic-card__band { background: var(--color-accent); }

.classic-card__body { padding: var(--sp-5); }
.classic-card__title {
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-2xl);
    color: var(--color-primary-deep);
    margin-bottom: var(--sp-2);
    line-height: var(--lh-tight);
    text-transform: uppercase;
}
.classic-card__tagline {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--color-border);
}
.classic-card__row {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-2) 0;
}
.classic-card__label {
    font-family: var(--ff-body);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary-deep);
}
.classic-card__value {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

/* 15. Heritage drop-cap */
.heritage {
    padding: var(--sp-8) 0;
    background: var(--color-surface-warm);
}
.heritage__heading {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.heritage-content {
    max-width: 880px;
    margin: 0 auto var(--sp-7);
    column-count: 2;
    column-gap: var(--sp-7);
}
.heritage-content p { break-inside: avoid-column; margin-bottom: var(--sp-4); }
.drop-cap p:first-of-type::first-letter {
    font-family: var(--ff-heading);
    float: left;
    font-size: 5em;
    line-height: 0.85;
    margin: 0.05em 0.12em 0 0;
    color: var(--color-trap-red);
    font-weight: var(--fw-bold);
}
.drop-cap p { font-size: var(--fs-md); line-height: var(--lh-loose); }
@media (max-width: 767px) {
    .heritage-content { column-count: 1; }
}

/* 16. Heritage stat call-outs — 89 / 1929 / 6 */
.heritage-stats {
    display: grid;
    gap: var(--sp-4);
    max-width: 880px;
    margin: 0 auto;
}
.heritage-stat {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--sp-6);
    align-items: center;
    background: var(--color-background);
    border: 1px solid var(--color-accent);
    padding: var(--sp-5);
}
.heritage-stat__number {
    font-family: var(--ff-heading);
    font-size: var(--fs-5xl);
    font-weight: var(--fw-bold);
    color: var(--color-trap-red);
    text-align: center;
    line-height: 1;
}
.heritage-stat__copy {
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    color: var(--color-text);
    line-height: var(--lh-base);
}
.heritage-stat__copy strong {
    color: var(--color-primary-deep);
}

/* 17. Card reviews — asymmetric scorecards */
.reviews {
    padding: var(--sp-8) 0;
    background: var(--color-primary);
    color: var(--color-background);
}
.reviews__heading {
    text-align: center;
    color: var(--color-background);
    margin-bottom: var(--sp-6);
}
.reviews__stack {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    max-width: 920px;
    margin: 0 auto;
}
.review-card {
    background: var(--color-surface);
    border-top: 3px solid var(--color-accent);
    padding: var(--sp-5);
    position: relative;
    box-shadow: var(--shadow-md);
}
.review-card:nth-child(1) { width: 80%; align-self: flex-start; }
.review-card:nth-child(2) { width: 60%; align-self: flex-end; }
.review-card:nth-child(3) { width: 80%; align-self: flex-start; }

.review-card__signature {
    display: block;
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-trap-red);
    margin-bottom: var(--sp-3);
}
.review-card__text {
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    line-height: var(--lh-base);
    color: var(--color-text);
}
.review-card__pin {
    position: absolute;
    bottom: var(--sp-4);
    right: var(--sp-4);
    font-size: var(--fs-2xl);
    color: var(--color-accent);
    opacity: 0.30;
}

/* 18. Responsibility — commitment cards on cinder section */
.responsible-play {
    padding: var(--sp-8) 0;
    background: var(--color-primary);
    color: var(--color-background);
}
.responsible-play__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--sp-7);
    align-items: start;
}
.responsible-play__left h2 { color: var(--color-background); margin-bottom: var(--sp-4); }
.responsible-play__left p {
    color: var(--color-background);
    font-size: var(--fs-md);
    opacity: 0.9;
}
.responsible-play__right {
    display: grid;
    gap: var(--sp-4);
}
.responsible-play__card {
    background: rgba(239, 234, 216, 0.06);
    border: 1px solid var(--color-accent);
    padding: var(--sp-4);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--sp-4);
    align-items: start;
}
.responsible-play__badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text);
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}
.responsible-play__card h3 {
    color: var(--color-background);
    font-size: var(--fs-md);
    margin-bottom: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.responsible-play__card p {
    color: var(--color-background);
    font-size: var(--fs-sm);
    margin: 0;
    opacity: 0.9;
}

.warning-text {
    padding: var(--sp-8) 0;
    background: var(--color-surface-warm);
}
.warning-text__inner {
    max-width: 720px;
    margin: 0 auto;
}

/* 19. Trackside-hut contact */
.contact-section {
    padding: var(--sp-8) 0;
    background: var(--color-background);
}
.contact-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: var(--sp-7);
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.contact-info__card {
    background: var(--color-surface);
    border-top: 3px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-5);
}
.contact-info__icon {
    font-size: var(--fs-3xl);
    color: var(--color-trap-red);
    line-height: 1;
    margin-bottom: var(--sp-3);
}
.contact-info__card h3 {
    font-family: var(--ff-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-lg);
    color: var(--color-primary-deep);
    margin-bottom: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.contact-info__card p {
    font-size: var(--fs-sm);
    color: var(--color-text);
    margin: 0;
}
.contact-info__card a {
    color: var(--color-secondary-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--color-secondary-deep);
}
.contact-info__card a:hover { color: var(--color-trap-red); border-bottom-color: var(--color-trap-red); }

.contact-form-card {
    background: var(--color-surface-warm);
    border-top: 3px solid var(--color-accent);
    padding: var(--sp-7) var(--sp-6);
    box-shadow: var(--shadow-sm);
    transition: border-top-color var(--tx-fast);
}
.contact-form-card:focus-within { border-top-color: var(--color-trap-red); }

.contact-form__field {
    margin-bottom: var(--sp-4);
    position: relative;
}
.contact-form__field label {
    display: block;
    font-family: var(--ff-body);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--sp-1);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: var(--sp-3);
    font-size: var(--fs-base);
    font-family: var(--ff-body);
    transition: border-color var(--tx-fast);
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    border-width: 2px;
    padding: calc(var(--sp-3) - 1px);
}
.contact-form__field textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form__error {
    display: none;
    color: var(--color-error);
    font-size: var(--fs-xs);
    margin-top: var(--sp-1);
}
.contact-form__field--error .contact-form__error { display: block; }
.contact-form__field--error input,
.contact-form__field--error select,
.contact-form__field--error textarea { border-color: var(--color-error); }

.contact-form__submit { margin-top: var(--sp-3); }
.contact-form__status {
    margin-top: var(--sp-4);
    padding: var(--sp-3);
    font-size: var(--fs-sm);
    display: none;
}
.contact-form__status--success {
    display: block;
    background: rgba(42, 107, 61, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}
.contact-form__status--error {
    display: block;
    background: rgba(178, 34, 34, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

/* 20. Email subscription */
.email-subscription {
    background: var(--color-surface-warm);
    padding: var(--sp-7) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.email-subscription h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-4);
}
.email-subscription__form {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    gap: var(--sp-2);
}
.email-subscription__input {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: var(--sp-3) var(--sp-4);
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    transition: border-color var(--tx-fast);
}
.email-subscription__input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.email-sub__status {
    margin-top: var(--sp-3);
    font-size: var(--fs-sm);
}
.email-sub__status--success { color: var(--color-success); }
.email-sub__status--error   { color: var(--color-error); }

/* 21. Footer + trap-row silhouette */
.site-footer {
    background: var(--color-primary-deep);
    color: var(--color-background);
    position: relative;
    padding: 0 0 var(--sp-6);
}
.site-footer__horizon {
    display: block;
    width: 100%;
    height: 36px;
    fill: var(--color-surface-warm);
}
.site-footer .container { padding-top: var(--sp-7); }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}
.footer-logo { height: 36px; width: auto; }
.footer-nav {
    display: flex;
    gap: var(--sp-5);
}
.footer-nav__link {
    color: var(--color-background);
    text-decoration: none;
    font-family: var(--ff-heading);
    font-weight: var(--fw-medium);
    font-size: var(--fs-md);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid transparent;
    transition: border-color var(--tx-fast);
}
.footer-nav__link:hover {
    border-bottom-color: var(--color-accent);
    color: var(--color-background);
}
.footer-description {
    color: var(--color-background);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    max-width: 720px;
    opacity: 0.9;
}
.footer-hairline {
    height: 1px;
    background: rgba(239, 234, 216, 0.2);
    margin: var(--sp-5) 0;
    border: none;
}
.footer-regulators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-5);
    align-items: center;
}
.footer-regulators img {
    max-height: 40px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--tx-fast);
}
.footer-regulators a:hover img { opacity: 1; }
.footer-bottom {
    text-align: center;
    color: var(--color-background);
    opacity: 0.75;
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: var(--sp-5);
}

/* 22. Help links */
.help-links {
    list-style: none;
    padding: 0;
    margin: var(--sp-5) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4) var(--sp-5);
    justify-content: center;
}
.help-links li {
    position: relative;
    padding-left: 0;
}
.help-links li::before {
    content: '\25B7';
    color: var(--color-accent);
    margin-right: var(--sp-2);
    font-size: 0.85em;
}
/* Kennel-yellow on cream fails AA (1.54:1) per spec hard rule #1.
   Override the bullet to cinder when help-links sits on a cream surface. */
.section--surface-cream .help-links li::before,
.slips-flow--mini .help-links li::before {
    color: var(--color-primary);
}
.help-links a {
    color: var(--color-secondary-deep);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    border-bottom: 1px solid var(--color-secondary-deep);
    padding-bottom: 1px;
}
.section--cinder .help-links a,
.section--cinder-deep .help-links a,
.responsible-play .help-links a {
    color: var(--color-background);
    border-bottom-color: var(--color-accent);
}
/* Border-only hover — text color stays put. trap-red on cinder fails AA at 1.1:1,
   so changing color on hover would make help-links inside `.responsible-play`
   (cinder bg) effectively invisible. Match niblickbay's safe pattern. */
.help-links a:hover {
    border-bottom-color: var(--color-accent-deep);
}

/* 23. Age-verification modal — visible by default, JS adds .hidden when verified */
.age-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 39, 48, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-5);
}
.age-modal-overlay.hidden { display: none; }
.age-modal {
    background: var(--color-surface-warm);
    border: 2px solid var(--color-accent);
    max-width: 480px;
    width: 100%;
    padding: var(--sp-7) var(--sp-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.age-modal__badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text);
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-4);
}
.age-modal h2 {
    font-size: var(--fs-2xl);
    color: var(--color-primary-deep);
    margin-bottom: var(--sp-3);
}
.age-modal p {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-5);
}
.age-modal__fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}
.age-modal__field label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--sp-1);
}
.age-modal__field input {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--sp-3);
    font-size: var(--fs-md);
    font-family: var(--ff-body);
    text-align: center;
    color: var(--color-text);
}
.age-modal__field input:focus {
    outline: none;
    border-color: var(--color-accent);
    border-width: 2px;
    padding: calc(var(--sp-3) - 1px);
}
.age-modal__checkbox {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--color-text);
    text-align: left;
    justify-content: center;
}
.age-modal__submit {
    width: 100%;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    padding: var(--sp-3) var(--sp-5);
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--tx-fast);
}
.age-modal__submit:hover { background: var(--color-accent-deep); }
.age-modal__error {
    display: none;
    margin-top: var(--sp-3);
    color: var(--color-error);
    font-size: var(--fs-sm);
}
.age-modal__error.is-active { display: block; }

/* 24. Mobile menu offcanvas */
.offcanvas {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 75%;
    max-width: 400px;
    background: var(--color-primary-deep);
    transform: translateX(100%);
    transition: transform var(--tx-base);
    z-index: 999;
    padding: var(--sp-6) var(--sp-5);
    overflow-y: auto;
}
.offcanvas.is-active { transform: translateX(0); }
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 39, 48, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tx-base);
}
.offcanvas-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.offcanvas__close {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-4);
    color: var(--color-background);
    font-size: var(--fs-3xl);
    line-height: 1;
}
.offcanvas__nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-7);
}
.offcanvas__link {
    color: var(--color-background);
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(239, 234, 216, 0.15);
    padding-bottom: var(--sp-3);
    transition: color var(--tx-fast);
}
.offcanvas__link:hover {
    color: var(--color-background);
    border-bottom-color: var(--color-accent);
}

/* 25. Photo-finish divider */
.photo-finish {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    margin: var(--sp-8) auto;
    max-width: 720px;
    padding: 0 var(--sp-5);
}
.photo-finish__line {
    flex: 1;
    height: 2px;
    background-image: linear-gradient(90deg, var(--color-trap-red) 50%, transparent 50%);
    background-size: 4px 2px;
    background-repeat: repeat-x;
    background-position: center;
}
.photo-finish__caption {
    font-family: var(--ff-heading);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.section--cinder .photo-finish__caption,
.section--cinder-deep .photo-finish__caption {
    color: var(--color-background);
    opacity: 0.75;
}

/* 26. Policy content */
.policy-content {
    padding: var(--sp-8) 0;
    background: var(--color-background);
}
.policy-content .container { max-width: 880px; }
.policy-content h1 {
    margin-bottom: var(--sp-5);
    color: var(--color-primary-deep);
}
.policy-content h2 {
    margin-top: var(--sp-7);
    margin-bottom: var(--sp-4);
    color: var(--color-primary-deep);
    position: relative;
    padding-bottom: var(--sp-2);
}
.policy-content h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--color-accent);
    margin-top: var(--sp-2);
}
.policy-content p {
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    color: var(--color-text);
}
.policy-content p:first-of-type::first-letter {
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: 5em;
    color: var(--color-trap-red);
    float: left;
    line-height: 0.85;
    margin: 0.05em 0.12em 0 0;
}
.policy-content ul {
    list-style: none;
    padding: 0;
    margin: var(--sp-4) 0;
}
.policy-content ul li {
    padding-left: var(--sp-4);
    position: relative;
    margin-bottom: var(--sp-2);
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
}
.policy-content ul li::before {
    content: '\25B7';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-size: 0.85em;
}
.policy-content a {
    color: var(--color-secondary-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.policy-content a:hover { color: var(--color-trap-red); }

/* 27. Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-yellow  { color: var(--color-accent); }
.text-cinder  { color: var(--color-primary-deep); }
.text-sand    { color: var(--color-background); }
.text-trap-red { color: var(--color-trap-red); }

/* 28. Responsive breakpoints */
@media (max-width: 1199px) {
    .brand-cards__grid { grid-template-columns: repeat(2, 1fr); }
    .races__grid { grid-template-columns: repeat(2, 1fr); }
    .numbers__grid { grid-template-columns: repeat(2, 1fr); }
    .classics__grid { grid-template-columns: 1fr; }
    .slips-flow__row { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-5); }
    .slips-flow__row::before { display: none; }
}

@media (max-width: 767px) {
    :root { --header-h: 60px; }

    .header-nav { display: none; }
    .menu-toggle { display: flex; }

    .hero { padding: var(--sp-7) 0; }
    .hero__card { padding: var(--sp-5) var(--sp-4); }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }

    .brand-cards__grid { grid-template-columns: 1fr; }
    .races__grid { grid-template-columns: 1fr; }
    .numbers__grid { grid-template-columns: 1fr; }

    .slips-flow__row { grid-template-columns: 1fr; gap: var(--sp-5); }

    .heritage-stat {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .review-card,
    .review-card:nth-child(1),
    .review-card:nth-child(2),
    .review-card:nth-child(3) { width: 100%; }

    .responsible-play__grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .email-subscription__form { flex-direction: column; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }

    .pull-quote__inner { padding: var(--sp-5) var(--sp-4); }
    .pull-quote__text { font-size: var(--fs-xl); }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .age-modal__fields { grid-template-columns: 1fr; }
}
