/* ============================================================
   assets/css/site.css
   ------------------------------------------------------------
   Design system for the Kirk's Tire marketing site.
   This file defines: tokens (palette / spacing / type / layout),
   the reset, base typography, and a handful of utilities.
   No section, header, nav, or component styles live here yet -
   those arrive in STEP 4 and onward.

   Rule 5 (CLAUDE.md): palette hex values live ONLY in the :root
   block below. Do not hard-code hex elsewhere; re-theme by
   editing just the six --color-* tokens.
   ============================================================ */


/* ----- 1. Tokens ----- */

:root {
    /* Palette - six roles, values from DESIGN_INVENTORY.md section 3. */
    --color-primary:     #C8A04A;   /* anniversary gold */
    --color-secondary:   #D32F2F;   /* red CTA */
    --color-surface:     #F7F3EC;   /* warm off-white */
    --color-surface-alt: #EEE7DA;   /* card / zebra bg */
    --color-ink:         #1A1A1A;   /* near-black text */
    --color-muted:       #6B6B6B;   /* captions / meta */

    /* Spacing scale (rem-based, 0.25rem .. 6rem). */
    --space-xs:   0.25rem;   /*  4px */
    --space-sm:   0.5rem;    /*  8px */
    --space-md:   1rem;      /* 16px */
    --space-lg:   2rem;      /* 32px */
    --space-xl:   3rem;      /* 48px */
    --space-2xl:  4rem;      /* 64px */
    --space-3xl:  6rem;      /* 96px */

    /* Typography families. Google Fonts load in header.php (STEP 4).
       Fallbacks give a sensible render even before webfonts arrive. */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;

    /* Fluid type scale. clamp(min, preferred, max) scales with viewport
       but caps at sensible bounds for readability. */
    --fs-h1:    clamp(2.25rem, 5vw + 1rem,    4.5rem);
    --fs-h2:    clamp(1.75rem, 3vw + 1rem,    3rem);
    --fs-h3:    clamp(1.375rem, 2vw + 0.75rem, 2rem);
    --fs-h4:    clamp(1.125rem, 1.5vw + 0.75rem, 1.5rem);
    --fs-body:  clamp(1rem, 0.3vw + 0.95rem,  1.125rem);
    --fs-small: 0.875rem;

    /* Layout. Header height is the uncompacted default; JS toggles a
       .scrolled class that shrinks it (STEP 8). */
    --max-width:       1200px;
    --header-height:   4.5rem;
    --section-padding: clamp(3rem, 6vw, 6rem);
}


/* ----- 2. Reset / base ----- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
picture {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ----- 3. Base typography ----- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin: 0 0 var(--space-md);
}

h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Balance the wrap on h1/h2 so long display headlines split into
   lines of roughly equal length instead of leaving an orphaned
   word on the last line. Browser-handled; older browsers that
   do not support text-wrap: balance fall back silently to the
   default wrap. Scoped to h1/h2 only - h3/h4 are short enough
   that balance can produce surprising layouts. */
h1, h2 {
    text-wrap: balance;
}

p {
    margin: 0 0 var(--space-md);
}

a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: opacity 120ms ease, color 120ms ease;
}

a:hover,
a:focus-visible {
    opacity: 0.8;
}

ul, ol {
    margin: 0 0 var(--space-md);
    padding-left: 1.5rem;
}

li + li {
    margin-top: var(--space-xs);
}


/* ----- 4. Utilities ----- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.button-primary {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

.button-primary:hover,
.button-primary:focus-visible {
    opacity: 0.9;
}

.button-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-link: hidden until keyboard focus, then revealed as a prominent
   pill at the top-left corner. First focusable element on the page so
   keyboard users can bypass the header and jump straight to <main>. */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus-visible {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.75rem 1.25rem;
    margin: 0;
    background-color: var(--color-secondary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}


/* ----- 5. Breakpoints (mobile-first) ----- */

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        padding-inline: var(--space-xl);
    }
}


/* ----- 6. Reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   Chrome: sticky header, primary nav, mobile overlay, footer.
   Section-specific content styles arrive in STEP 6+.
   ============================================================ */


/* ----- 7. Site header ----- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-surface);
    transition: padding 200ms ease, box-shadow 200ms ease;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: var(--header-height);
    padding-block: var(--space-sm);
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-header__logo img {
    display: block;
    height: calc(var(--header-height) - var(--space-md));
    width: auto;
    transition: height 200ms ease;
}

/* Compacted state - JS toggles .scrolled after ~80px scroll (STEP 8). */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .site-header__inner {
    min-height: calc(var(--header-height) - 0.75rem);
}

.site-header.scrolled .site-header__logo img {
    height: calc(var(--header-height) - var(--space-md) - 0.75rem);
}


/* ----- 8. Primary nav ----- */

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    color: var(--color-ink);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
    color: var(--color-secondary);
    opacity: 1;
}

/* Reset the li+li top margin inherited from section 3 base typography.
   That rule is meant for prose lists - inside a flex-row nav it offsets
   every item except the first by space-xs, leaving the Home link ~4px
   higher than its siblings. Covers both the header and footer nav lists. */
.site-nav__list li,
.site-footer__nav-list li {
    margin-top: 0;
}


/* ----- 9. Mobile hamburger + overlay nav ----- */

/* Body scroll-lock while the mobile overlay is open. STEP 8 JS toggles
   the .nav-open class on <body> alongside .is-open on .site-header. */
body.nav-open {
    overflow: hidden;
}

.site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--color-ink);
    cursor: pointer;
}

.site-nav-toggle__icon {
    display: none;
}

.site-nav-toggle__icon--bars {
    display: block;
}

.site-header.is-open .site-nav-toggle__icon--bars {
    display: none;
}

.site-header.is-open .site-nav-toggle__icon--x {
    display: block;
}

/* Mobile (< 768px): inline nav hidden, overlay revealed when .is-open. */
@media (max-width: 767.98px) {
    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background-color: var(--color-surface);
        transform: translateY(-110%);
        transition: transform 250ms ease;
        padding: var(--space-lg);
        visibility: hidden;
        overflow-y: auto;
    }
    .site-header.is-open .site-nav {
        transform: translateY(0);
        visibility: visible;
    }
    .site-nav__list {
        flex-direction: column;
        gap: var(--space-md);
    }
    .site-nav__list a {
        display: block;
        padding: var(--space-sm) 0;
        font-size: 1.25rem;
    }
}

/* Desktop (>= 768px): hamburger hidden, inline nav restored. */
@media (min-width: 768px) {
    .site-nav-toggle {
        display: none;
    }
    .site-nav {
        /* Reset anything the mobile overlay block may have applied. */
        position: static;
        transform: none;
        visibility: visible;
        padding: 0;
        background-color: transparent;
    }
}


/* ----- 10. Site footer ----- */

.site-footer {
    margin-top: var(--space-3xl);
    background-color: var(--color-surface-alt);
    color: var(--color-ink);
    padding-block: var(--space-xl);
}

.site-footer__inner {
    display: grid;
    gap: var(--space-lg);
    align-items: start;
}

.site-footer__brand p,
.site-footer__contact p {
    margin: 0 0 var(--space-sm);
}

.site-footer__nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}

.site-footer__nav-list a {
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__nav-list a:hover,
.site-footer__nav-list a:focus-visible {
    color: var(--color-secondary);
    opacity: 1;
}

.site-footer__legal {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-surface);
    color: var(--color-muted);
    font-size: var(--fs-small);
}

.site-footer__legal p {
    margin: 0;
}

/* Tablet and up: three zones side-by-side. */
@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-2xl);
    }
    .site-footer__contact {
        text-align: center;
    }
    .site-footer__nav {
        justify-self: end;
    }
}


/* ============================================================
   Section-specific styles. Sections 7-10 above are chrome
   (header, nav, footer). Sections 11+ are content blocks -
   Hero / About / Services arrive in M3 STEP 6; Locations /
   Events / Show & Shine promo / Contact arrive in STEP 7.
   ============================================================ */


/* ----- 11. Hero ----- */

.hero {
    position: relative;
    padding-top: var(--space-3xl);
    padding-bottom: calc(var(--space-3xl) + var(--space-lg));
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* Hero background: vintage 1930s photo of the original Kirk's Tire
       Shop storefront. The KIRK'S TIRE SHOP roof sign is the brand-
       recognizable focal element; the text block is pushed to the
       bottom (justify-content: flex-end) so the sign and building read
       cleanly at the top, with h1 / subtitle / CTA sitting over the
       quiet road area at the bottom. Padding-bottom is bumped to
       calc(var(--space-3xl) + var(--space-lg)) = 8rem (asymmetric with
       top padding at 6rem) so the text block lifts comfortably above
       the absolute-positioned .hero__scroll chevron. Steeper gradient
       than the prior hero: 20% at top (light-touch over the sky and
       the sign area) to 75% at bottom (dark backing for white text
       contrast over the foreground). Applies at every viewport -
       the asymmetric right-sided layout from the previous hero was
       tuned for a left-subject photo and does not fit this centered-
       subject storefront image. */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.75)),
        url('/assets/img/hero-vintage-store-1930s.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.hero__logo {
    width: clamp(200px, 20vw + 120px, 340px);
    height: auto;
    /* 2026-06-01: PNG swapped to "90th-anniversary-retro-gold.png"
       (transparent background, no stripe artefact), so the M3-era
       clip-path:inset(0 0 0 4%) workaround has been removed. New
       asset is portrait-oriented (badge + tire + KIRKS TRAIL TIRE
       wordmark + 90 YEARS + EST 1936) - CSS lets it size naturally
       on its own intrinsic aspect ratio. */
}

.hero__title {
    color: #ffffff;
    margin: 0;
}

.hero__subtitle {
    color: #f5f5f5;
    font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem);
    max-width: 40rem;
    margin: 0 0 var(--space-md);
}

.hero__cta {
    margin-top: var(--space-sm);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    opacity: 0.75;
    padding: var(--space-sm);
    animation: hero-scroll-hint 2s ease-in-out infinite;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
    opacity: 1;
}

@keyframes hero-scroll-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
    }
    /* Cap the text column at 560px so the h1 and subtitle do not
       stretch across the full container on wide viewports. Logo is
       already clamp()-capped via .hero__logo. All flex / alignment
       / background properties are now defined in the base .hero
       rule (mobile-first) and inherit here - the centered-subject
       vintage-store image uses the same layout at every viewport. */
    .hero__title,
    .hero__subtitle {
        max-width: 560px;
    }
}


/* ----- 12. About ----- */

.about {
    padding-block: var(--section-padding);
}

.about__inner {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.about__content h2 {
    margin-top: 0;
}

.about__content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.about__thanks {
    margin-top: var(--space-lg);
    font-weight: 600;
}

.about__signature {
    margin-top: var(--space-sm);
    font-style: italic;
    color: var(--color-muted);
}

.about__image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .about__inner {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-2xl);
    }
}


/* ----- 13. Services ----- */

.services {
    padding-block: var(--section-padding);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service {
    background-color: var(--color-surface-alt);
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service__icon {
    width: 48px;
    height: 48px;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.service__icon svg {
    width: 100%;
    height: 100%;
}

.service__title {
    font-size: var(--fs-h4);
    margin: 0 0 var(--space-sm);
}

.service__desc {
    margin: 0;
    color: var(--color-ink);
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .services__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/* ----- 14. Locations ----- */

.locations {
    padding-block: var(--section-padding);
    background-color: var(--color-surface-alt);
}

.locations__lede {
    max-width: 48rem;
    margin: var(--space-md) 0 var(--space-lg);
    color: var(--color-muted);
}

.locations__map {
    margin: 0 0 var(--space-xl);
    padding: var(--space-md);
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.locations__map img {
    display: block;
    width: 100%;
    height: auto;
}

.locations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .locations__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .locations__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* M8 polish: when there's only one location, constrain the grid so the
   lone card doesn't get marooned in a 3-column layout on desktop. */
.locations__grid--single {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .locations__grid--single {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 1200px) {
    .locations__grid--single {
        grid-template-columns: 1fr;
    }
}

.locations__empty {
    grid-column: 1 / -1;
    background-color: var(--color-surface);
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-muted);
}

.locations__empty p {
    margin: 0;
}

/* Location card. */

.location {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.location:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Head Office gets a subtle gold accent stripe + thicker border. */
.location--head-office {
    border-color: var(--color-primary);
    border-width: 1px;
    box-shadow: inset 4px 0 0 var(--color-primary), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding-left: calc(var(--space-lg) + 4px);
}

.location--head-office:hover {
    box-shadow: inset 4px 0 0 var(--color-primary), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.location__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.location__name {
    font-size: var(--fs-h4);
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.25;
}

.location__badge {
    flex: 0 0 auto;
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
}

.location__address,
.location__phone,
.location__hours {
    margin: 0;
}

.location__hours {
    color: var(--color-muted);
    font-size: var(--fs-small);
    line-height: 1.5;
}

.location__address-link {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    align-items: start;
    color: var(--color-ink);
    text-decoration: none;
    line-height: 1.45;
}

.location__pin-icon,
.location__phone-icon {
    color: var(--color-primary);
    flex: 0 0 auto;
    margin-top: 3px;
}

.location__address-text {
    display: block;
}

.location__address-cta {
    grid-column: 2;
    font-size: 0.8125rem;
    color: var(--color-muted);
    transition: color 0.15s ease;
}

.location__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location__phone a {
    color: var(--color-ink);
    text-decoration: none;
}

.location__address-link:hover .location__address-text,
.location__address-link:focus-visible .location__address-text,
.location__address-link:hover .location__address-cta,
.location__address-link:focus-visible .location__address-cta,
.location__phone a:hover,
.location__phone a:focus-visible {
    color: var(--color-secondary);
    text-decoration: underline;
}


/* ----- 15. Events ----- */

.events {
    padding-block: var(--section-padding);
    background-color: var(--color-surface-alt);
}

.events__subhead {
    color: var(--color-muted);
    font-size: var(--fs-body);
    max-width: 40rem;
    margin: 0 0 var(--space-lg);
}

.events__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.event {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event__date {
    color: var(--color-secondary);
    font-size: var(--fs-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-sm);
}

.event__title {
    font-size: var(--fs-h4);
    margin: 0 0 var(--space-sm);
}

.event__desc {
    margin: 0;
}

/* Linked event card (rendered as <a class="event event--linked">).
   2026-06-01: Bulls Game, Street Wheelers, Whoop Up Days, and the
   new Essex Charity Golf Classic open in a new tab via the card
   wrapper. Reset anchor styling to look identical to the
   non-linked <article> version, then add a subtle lift + arrow
   colour on hover so it reads as actionable. */
.event--linked {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.event--linked:hover,
.event--linked:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}
.event--linked:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}
.event__link-arrow {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 600;
    transition: transform 120ms ease-out;
}
.event--linked:hover .event__link-arrow,
.event--linked:focus-visible .event__link-arrow {
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .events__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .events__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/* ----- 16. Show & Shine promo ----- */

.showshine {
    padding-block: var(--section-padding);
    text-align: center;
    background-color: var(--color-surface);
    border-top: 4px solid var(--color-primary);
}

.showshine__title {
    max-width: 40rem;
    margin: 0 auto var(--space-md);
}

.showshine__pitch {
    max-width: 45rem;
    margin: 0 auto var(--space-lg);
    font-size: clamp(1.125rem, 1vw + 0.9rem, 1.25rem);
}

.showshine__cta--disabled {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-surface-alt);
    color: var(--color-muted);
    border: 2px solid var(--color-surface-alt);
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: not-allowed;
}


/* ----- 17. Contact ----- */

.contact {
    padding-block: var(--section-padding);
    background-color: var(--color-surface-alt);
}

.contact__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    max-width: 45rem;
    margin: var(--space-xl) auto 0;
}

.contact__list dt {
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    font-size: var(--fs-small);
    letter-spacing: 0.05em;
    margin-top: var(--space-sm);
}

.contact__list dd {
    margin: 0;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact__list dd:last-of-type {
    border-bottom: 0;
}

.contact__list a {
    color: var(--color-ink);
    text-decoration: none;
}

.contact__list a:hover,
.contact__list a:focus-visible {
    color: var(--color-secondary);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .contact__list {
        grid-template-columns: auto 1fr;
        gap: var(--space-sm) var(--space-lg);
    }
    .contact__list dt {
        margin-top: 0;
        padding-top: var(--space-sm);
    }
}


/* ----- 18. Reveal-on-scroll ----- */

/* Scoped to .js (set by site.js on <html> at IIFE start) so no-JS
   browsers never hide content. If JS fails to load, is blocked, or
   returns 404, .reveal-on-scroll elements stay visible by default.
   Under prefers-reduced-motion the section 6 global rule neutralises
   the transition-duration; site.js also short-circuits the observer
   and applies .revealed immediately. */
.js .reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ----- 19. Heritage banner ----- */

/* Full-width decorative band between About and Services. Acts as a
   visual chapter break between heritage-story content (About) and
   present-day business sections (Services / Locations / Events / ...).
   Single heritage-collage-1 source, cropped to an upper-middle
   horizontal slice via background-position. 12% neutral darkening
   overlay unifies tones with the surrounding warm palette. No border -
   the band's density makes it feel distinct from neighbours without
   hard edges. */
.heritage-banner {
    height: 180px;
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.12), rgba(26, 26, 26, 0.12)),
        url('/assets/img/heritage-collage-1.png');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .heritage-banner {
        height: 220px;
    }
}

@media (min-width: 1200px) {
    .heritage-banner {
        height: 260px;
        background-position: center 45%;
    }
}


/* ----- 16. Form pages (Show & Shine registration, Thanks) ----- */

.form-page {
    padding-block: var(--section-padding);
    background-color: var(--color-surface);
}

.form-page__inner {
    max-width: 760px;
}

.form-page__title {
    margin-bottom: var(--space-sm);
}

.form-page__lede {
    color: var(--color-muted);
    margin-bottom: var(--space-lg);
    max-width: 56ch;
}

.form-page__deadline {
    background-color: var(--color-surface-alt);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    margin: 0 0 var(--space-lg);
    border-radius: 0 4px 4px 0;
}

.form-page__notice {
    background-color: var(--color-surface-alt);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.form-page__notice h2 {
    margin-top: 0;
}

.form-page__errors {
    background-color: #FBE9E9;
    border-left: 4px solid var(--color-secondary);
    color: #6A1A1A;
    padding: var(--space-md);
    border-radius: 0 4px 4px 0;
    margin-bottom: var(--space-lg);
}

.ss-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ss-form__fieldset {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 8px;
    padding: var(--space-lg);
    margin: 0 0 var(--space-lg);
    background-color: var(--color-surface-alt);
}

.ss-form__fieldset legend {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-h4);
    padding: 0 var(--space-sm);
}

.ss-form__field {
    margin-bottom: var(--space-md);
}

.ss-form__field:last-child {
    margin-bottom: 0;
}

.ss-form__field label,
.ss-form__label-row {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.ss-form__field input[type="text"],
.ss-form__field input[type="email"],
.ss-form__field input[type="tel"],
.ss-form__field input[type="number"],
.ss-form__field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font: inherit;
    color: var(--color-ink);
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.20);
    border-radius: 4px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ss-form__field input:focus,
.ss-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.25);
}

.ss-form__field textarea {
    resize: vertical;
    min-height: 6rem;
}

.ss-form__row {
    display: grid;
    gap: var(--space-md);
}

.ss-form__radio,
.ss-form__check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    line-height: 1.4;
}

.ss-form__radio input,
.ss-form__check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.ss-form__required {
    color: var(--color-secondary);
    font-weight: 700;
    margin-left: 0.15rem;
}

.ss-form__error {
    color: var(--color-secondary);
    font-size: var(--fs-small);
    margin: var(--space-xs) 0 0;
}

.ss-form__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.ss-form__cancel {
    color: var(--color-muted);
    text-decoration: none;
}

.ss-form__cancel:hover,
.ss-form__cancel:focus-visible {
    color: var(--color-ink);
    text-decoration: underline;
}

@media (min-width: 600px) {
    .ss-form__row--two {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .ss-form__row--three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.thanks__details {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: var(--space-lg);
    row-gap: var(--space-sm);
    background-color: var(--color-surface-alt);
    padding: var(--space-lg);
    border-radius: 8px;
    margin: 0 0 var(--space-xl);
}

.thanks__details dt {
    font-weight: 600;
    color: var(--color-muted);
}

.thanks__details dd {
    margin: 0;
}

.thanks__next-title {
    margin-top: var(--space-lg);
}

.thanks__next {
    margin: 0 0 var(--space-xl);
    padding-left: var(--space-lg);
}

.thanks__next li {
    margin-bottom: var(--space-sm);
}
