/*
Theme Name: Racing Sponsor
Description: Detailed, responsive sponsorship site for a racing driver: schedule with results, photo and video galleries, shop (built-in or WooCommerce), sponsor tiers and inquiry form.
Version: 3.0
Author: Custom
Text Domain: racing-sponsor
*/

:root {
  --red: #ff6a00;
  --red-dark: #d95500;
  --white: #f5f5f5;
  --muted: #bdbdbd;
  --bg: #0d0d0d;
  --panel: #151515;
  --panel-2: #1c1c1c;
  --line: #2a2a2a;
  --header-h: 76px;
  --radius: 6px;
  --pad: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(16px, 1.1vw + 12px, 18px);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff;
  padding: 12px 18px; border-radius: var(--radius); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }

h1, h2, h3, .display {
  font-family: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}
h3 { line-height: 1.1; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); --header-h: 64px; height: 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-family: 'Anton', Impact, sans-serif; font-size: 1.45rem; text-transform: uppercase; font-style: italic;
  border-left: 6px solid var(--red); padding-left: 12px; line-height: 1; white-space: nowrap;
}
.logo span { color: var(--red); display: block; font-size: .65rem; letter-spacing: .35em; margin-top: 3px; }
.logo img { max-height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .06em;
  font-size: .95rem; color: var(--muted); padding: 8px 0; position: relative; transition: color .2s;
}
.main-nav ul a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--red);
  transition: right .25s;
}
.main-nav ul a:hover, .main-nav ul a.active { color: #fff; }
.main-nav ul a:hover::after, .main-nav ul a.active::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  background: var(--red); color: #fff; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase;
  letter-spacing: .05em; padding: 12px 24px; border-radius: var(--radius); border: 2px solid var(--red);
  cursor: pointer; font-size: .95rem; line-height: 1.1; text-align: center;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,106,0,.25); }
.btn:active { transform: translateY(0); }
.btn.outline { background: transparent; color: #fff; }
.btn.outline:hover { background: var(--red); border-color: var(--red); }
.btn.big { width: 100%; min-height: 54px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; z-index: 70;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; }
.nav-backdrop[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(70px, 10vh, 110px);
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg, #25301d 0%, #161616 45%, #3a1d08 100%);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.85) 100%);
}
.hero-inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  background: rgba(20,20,10,.75); border: 1px solid var(--red);
  padding: 11px 18px; margin-bottom: clamp(18px, 3vw, 28px);
  font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
}
.eyebrow::before { content: '\2691'; color: var(--red); font-size: 1.1rem; flex: none; }
.hero h1 { font-size: clamp(3.4rem, 13.5vw, 11rem); line-height: .92; }
.hero h1 .red { color: var(--red); display: block; }
.hero .lead { max-width: 580px; margin: clamp(22px, 3vw, 36px) 0 clamp(22px, 3vw, 32px); color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.quick-facts { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); flex-wrap: wrap; }
.quick-facts li { display: flex; flex-direction: column; }
.quick-facts strong { font-family: 'Anton', Impact, sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: #fff; }
.quick-facts span { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-top: 6px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track { display: inline-flex; gap: 36px; animation: tick 40s linear infinite; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: var(--pad) 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--panel); }
.section-label { color: var(--red); font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; margin-bottom: 14px; }
section.block h2 { font-size: clamp(2.3rem, 7vw, 4.8rem); margin-bottom: clamp(28px, 4vw, 44px); }
.red { color: var(--red); }
.section-intro { color: var(--muted); max-width: 620px; margin: -16px 0 40px; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.story-grid p { color: var(--muted); margin-bottom: 18px; }
.story-grid .btn { margin-top: 10px; }
.story-photo {
  aspect-ratio: 4/5; background: #222 linear-gradient(160deg, #2a2a2a, #161616) center/cover no-repeat;
  border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius);
}
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 80px); position: relative; }
.timeline::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 38px 20px 0 0; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--bg); }
.tl-year { font-family: 'Anton', Impact, sans-serif; color: var(--red); font-size: 1.5rem; margin-bottom: 4px; }
.timeline h3 { font-size: 1.35rem; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, border-color .25s; }
.benefit:hover { transform: translateY(-4px); border-color: var(--red); }
.b-icon { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,106,0,.12); color: var(--red); border-radius: 50%; font-size: 1.3rem; margin-bottom: 18px; }
.benefit h3 { font-size: 1.4rem; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: .98rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); padding: 32px 22px; border-top: 4px solid var(--red); border-radius: var(--radius); }
.stat .num { font-family: 'Anton', Impact, sans-serif; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.stat .label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-top: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 22vw, 260px); gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel-2); margin: 0; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-ph { height: 100%; display: grid; place-items: center; text-align: center; color: #777; border: 2px dashed #333; border-radius: var(--radius); font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.g-ph small { font-family: 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; font-size: .78rem; color: #666; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 30px 32px; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.tier:hover { border-color: #444; }
.tier.featured { border-color: var(--red); background: #1f130a; transform: translateY(-12px); box-shadow: 0 20px 50px rgba(255,106,0,.12); }
.badge { position: absolute; top: -14px; left: 30px; background: var(--red); color: #fff; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; padding: 6px 14px; border-radius: 99px; }
.tier h3 { font-size: 2rem; }
.tier-blurb { color: var(--muted); font-size: .95rem; margin: 6px 0 18px; }
.price { color: var(--red); font-family: 'Anton', Impact, sans-serif; font-size: 2.6rem; line-height: 1; margin-bottom: 22px; }
.price small { font-family: 'Barlow', sans-serif; font-size: .85rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.tier ul { margin-bottom: 30px; flex: 1; }
.tier li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.tier li::before { content: '\25B6'; color: var(--red); font-size: .6rem; margin-right: 12px; vertical-align: middle; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; background: var(--red); border-radius: 50%; font-family: 'Anton', Impact, sans-serif; font-size: 1.3rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.partner { min-height: 110px; display: grid; place-items: center; padding: 20px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; }
.partner.empty { border: 2px dashed #3a3a3a; color: var(--muted); transition: border-color .2s, color .2s; grid-column: 1 / -1; }
.partner.empty:hover { border-color: var(--red); color: #fff; }
.partner.empty span { display: block; font-family: 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; font-size: .95rem; margin-top: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 1.1rem; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--red); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 680px; }

/* Inquire */
.inquire-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.inquire-info h2 { margin-bottom: 20px; }
.contact-list { margin-top: 32px; display: grid; gap: 16px; }
.contact-list li { border-left: 3px solid var(--red); padding-left: 16px; }
.contact-list span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.inquire-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.rs-form { display: grid; gap: 18px; }
.rs-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field label b { color: var(--red); }
.rs-form input, .rs-form select, .rs-form textarea {
  width: 100%; background: var(--panel); border: 1px solid #333; color: #fff; padding: 14px 16px;
  font: inherit; font-size: 16px; /* 16px prevents iOS zoom */ border-radius: var(--radius); min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.rs-form textarea { resize: vertical; min-height: 130px; }
.rs-form input:focus, .rs-form select:focus, .rs-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,106,0,.25); }
.rs-form .invalid { border-color: #ff4d4d; }
.err-msg { display: none; color: #ff7a7a; font-size: .82rem; margin-top: 6px; }
.err-msg.show { display: block; }
.rs-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note { color: #888; font-size: .82rem; text-align: center; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; }
.notice.ok { background: #12301a; border: 1px solid #2e7d46; }
.notice.err { background: #3a1212; border: 1px solid var(--red); }

/* Footer */
.site-footer { background: #080808; border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.site-footer h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--red); letter-spacing: .08em; }
.footer-links li { padding: 5px 0; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.socials a { display: inline-block; padding: 8px 14px; border: 1px solid #333; border-radius: 99px; font-size: .85rem; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); color: #888; font-size: .88rem; }
.to-top-link:hover { color: #fff; }

/* Floating helpers */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center;
  background: #1f1f1f; border: 1px solid #333; border-radius: 50%; font-size: 1.3rem; transition: background .2s;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--red); }
.sticky-cta {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  z-index: 45; background: var(--red); color: #fff; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase;
  letter-spacing: .06em; padding: 14px 28px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .35s; display: none;
}
.sticky-cta.show { transform: translate(-50%, 0); }

/* Generic content (posts/pages) */
.page-content { padding: calc(var(--header-h) + 60px) 0 80px; }
.page-content h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 30px; }
.page-content .entry > * + * { margin-top: 1em; }
.page-content a { color: var(--red); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { margin-bottom: 0 !important; }
.link-all { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--red); padding: 10px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.link-all:hover { color: #fff; border-color: var(--red); }
.more-note { text-align: center; margin-top: 32px; }
.sample-note { background: #2a2208; border: 1px dashed #8a7320; color: #e8d27a; padding: 10px 14px; border-radius: var(--radius); font-size: .85rem; margin-bottom: 22px; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(36px, 5vw, 56px); background: linear-gradient(135deg, #25301d 0%, #161616 50%, #3a1d08 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3rem, 10vw, 7rem); margin-bottom: 18px; }
.page-hero .lead { max-width: 620px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.page-intro { margin-bottom: 40px; color: var(--muted); }
.page-intro > * + * { margin-top: 1em; }

/* ---------- Race schedule ---------- */
.next-race { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; background: linear-gradient(120deg, #2e1505, #170d05); border: 1px solid var(--red); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin-bottom: 28px; }
.nr-label { color: var(--red); font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; margin-bottom: 8px; }
.next-race h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.next-race p { color: var(--muted); }
.countdown { display: flex; gap: 12px; }
.countdown div { min-width: 70px; text-align: center; background: rgba(0,0,0,.45); border: 1px solid #4a2a10; border-radius: var(--radius); padding: 12px 8px; }
.countdown b { display: block; font-family: 'Anton', Impact, sans-serif; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.countdown .go { font-family: 'Anton', Impact, sans-serif; font-size: 1.8rem; color: var(--red); min-width: 0; border: 0; background: none; }

.tabs, .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tab, .chip { min-height: 44px; padding: 10px 20px; background: transparent; color: var(--muted); border: 1px solid #333; border-radius: 99px; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tab:hover, .chip:hover { color: #fff; border-color: #666; }
.tab[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.races { display: grid; gap: 12px; }
.race { display: grid; grid-template-columns: 84px 1.5fr 1.2fr 140px auto; gap: 8px 24px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; transition: border-color .2s, transform .2s; }
.race:hover { border-color: #444; transform: translateX(3px); }
.race[hidden], .g-item[hidden] { display: none; }
.r-date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--panel-2); border-radius: var(--radius); padding: 8px 4px; border-top: 3px solid var(--red); }
.r-date .m { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--red); line-height: 1.2; }
.r-date .d { font-family: 'Anton', Impact, sans-serif; font-size: 2rem; line-height: 1; }
.r-date .y { font-size: .7rem; color: var(--muted); }
.r-main h3 { font-size: 1.4rem; }
.r-main p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.r-where strong { display: block; font-weight: 600; }
.r-where span { color: var(--muted); font-size: .9rem; }
.st { display: inline-block; font-style: normal; padding: 5px 14px; border: 1px solid var(--red); border-radius: 99px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.st-done { border-color: #444; color: var(--muted); }
.st-result { background: var(--red); color: #fff; font-weight: 700; }
.st-cancelled { border-color: #666; color: #999; text-decoration: line-through; }
.st-postponed { border-color: #d9a400; color: #e7b923; }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mini { display: inline-block; padding: 8px 14px; border: 1px solid #333; border-radius: var(--radius); font-size: .82rem; font-weight: 600; white-space: nowrap; transition: background .2s, border-color .2s; }
.mini:hover { background: var(--red); border-color: var(--red); }
.empty-msg { text-align: center; color: var(--muted); padding: 28px; border: 1px dashed #333; border-radius: var(--radius); }
.empty-msg[hidden] { display: none; }

/* ---------- Gallery (lightbox-enabled) ---------- */
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery:not(.has-wide) .g-item.wide { grid-column: auto; }
.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.g-btn::after { content: '\2315'; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(0,0,0,.65); border-radius: 50%; font-size: 1.1rem; opacity: 0; transition: opacity .2s; }
.g-btn:hover::after, .g-btn:focus-visible::after { opacity: 1; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #111; cursor: pointer; text-align: left; color: #fff; }
.video.placeholder { cursor: default; }
.v-thumb { position: absolute; inset: 0; background: linear-gradient(135deg, #25301d, #161616 55%, #3a1d08) center/cover no-repeat; transition: transform .5s; }
.video:hover .v-thumb { transform: scale(1.05); }
.video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.v-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; padding-left: 4px; background: var(--red); border-radius: 50%; font-size: 1.3rem; box-shadow: 0 8px 30px rgba(255,106,0,.45); transition: transform .2s; }
.video:hover .v-play { transform: scale(1.1); }
.v-title { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; line-height: 1.1; }

/* ---------- Shop ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.product:hover { transform: translateY(-4px); border-color: #444; }
.p-img { position: relative; aspect-ratio: 1/1; background: #1c1c1c center/cover no-repeat; display: grid; place-items: center; }
.p-ph { color: #555; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.p-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding: 5px 12px; border-radius: 99px; }
.p-badge.sold { background: #444; }
.p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.p-text { color: var(--muted); font-size: .9rem; margin-bottom: 14px; flex: 1; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.p-price { font-family: 'Anton', Impact, sans-serif; font-size: 1.5rem; color: var(--red); }
.p-foot .btn { padding: 10px 16px; min-height: 42px; font-size: .85rem; }
.btn.disabled { opacity: .5; pointer-events: none; }
.product.is-sold .p-img { filter: grayscale(1); opacity: .7; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 72px; }
.lightbox[hidden] { display: none; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-stage iframe { width: min(1100px, 100%); aspect-ratio: 16/9; height: auto; max-height: 100%; border: 0; background: #000; border-radius: 4px; }
.lb-cap { position: absolute; left: 16px; right: 16px; bottom: 18px; text-align: center; color: var(--muted); font-size: .95rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--red); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; margin-top: -26px; }
.lb-next { right: 10px; top: 50%; margin-top: -26px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* ---------- WooCommerce basics ---------- */
.woo-wrap h1, .woo-wrap h2 { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; font-weight: 400; margin-bottom: 20px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0 0 40px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; width: auto; float: none; margin: 0; }
.woocommerce ul.products li.product a img { border-radius: 4px; }
.woocommerce .woocommerce-loop-product__title { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; font-size: 1.2rem; margin: 12px 0 6px; }
.woocommerce .price, .woocommerce div.product p.price { color: var(--red); font-family: 'Anton', Impact, sans-serif; font-size: 1.4rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--red); color: #fff; border-radius: var(--radius); font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .05em; padding: 12px 22px; font-weight: 400;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--red-dark); color: #fff; }
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea { background: var(--panel); border: 1px solid #333; color: #fff; padding: 12px; border-radius: var(--radius); font-size: 16px; }
.woocommerce table.shop_table { border-color: var(--line); background: var(--panel); border-radius: var(--radius); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce-message, .woocommerce-info { background: var(--panel); border-top-color: var(--red); color: #fff; }
.woocommerce-message a, .woocommerce-info a { color: var(--red); }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); margin-bottom: 20px; font-size: .9rem; }

/* ---------- Live streams ---------- */
.sub-head { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 44px 0 18px; }
.live-now { background: #170d05; border: 1px solid var(--red); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); margin-bottom: 28px; box-shadow: 0 0 40px rgba(255,106,0,.12); }
.live-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.live-head h3 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #111; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; padding: 7px 14px; border-radius: 99px; }
.live-badge i, .live-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.live-dot { display: inline-block; background: var(--red); margin-left: 6px; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,0,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,106,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); } }
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-foot { margin-top: 18px; }
a.video { display: block; }

/* Dark text on the orange accent keeps good contrast */
:root { --on-accent: #111; }
.btn, .skip-link, .badge, .p-badge, .step-num, .st-result, .tab[aria-pressed="true"], .chip[aria-pressed="true"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button.alt, .woocommerce button.button.alt,
.mini:hover, .socials a:hover, .lb-close:hover, .lb-prev:hover, .lb-next:hover, .to-top:hover, .sticky-cta, .v-play, .ticker { color: var(--on-accent); }
.btn.outline { color: #fff; }
.btn.outline:hover { color: var(--on-accent); }
.p-badge.sold { color: #fff; }
.woocommerce a.button:hover, .woocommerce button.button:hover { color: var(--on-accent); }

/* Reveal animations (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .tier.featured.reveal.in { transform: translateY(-12px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .main-nav ul { gap: 18px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 60;
    background: #0a0a0a; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 96px 28px 32px; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s; overflow-y: auto;
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; font-size: 1.4rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .main-nav ul a.active { color: var(--red); }
  .nav-cta { width: 100%; min-height: 54px; }

  .story-grid, .inquire-grid { grid-template-columns: 1fr; }
  .story-photo { aspect-ratio: 16/10; order: -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tier.featured, .js .tier.featured.reveal.in { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .races .race { grid-template-columns: 76px 1fr auto; grid-template-areas: "date main status" "date where actions"; }
  .r-date { grid-area: date; } .r-main { grid-area: main; } .r-where { grid-area: where; } .r-status { grid-area: status; justify-self: end; } .r-actions { grid-area: actions; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: inline-block; }
  .to-top { bottom: calc(18px + env(safe-area-inset-bottom)); right: 14px; }
}

@media (max-width: 680px) {
  .hero { align-items: flex-end; }
  .hero .actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .benefits, .stats, .steps, .timeline { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item.wide { grid-column: span 2; }
  .rs-form .row { grid-template-columns: 1fr; }


  .races .race { grid-template-columns: 64px 1fr; grid-template-areas: "date main" "date where" "status status" "actions actions"; gap: 6px 16px; padding: 16px; }
  .r-status { justify-self: start; } .r-actions { justify-content: flex-start; }
  .r-date .d { font-size: 1.6rem; }
  .next-race { flex-direction: column; align-items: flex-start; }
  .countdown { width: 100%; }
  .countdown div { flex: 1; min-width: 0; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-body { padding: 14px; }
  .p-foot .btn { width: 100%; }
  .videos { grid-template-columns: 1fr; }
  .lightbox { padding: 64px 12px 72px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; background: rgba(0,0,0,.55); }
  .tabs, .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .tab, .chip { flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .eyebrow { font-size: .7rem; padding: 10px 14px; }
}

@media (max-width: 420px) {
  .products { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .logo { font-size: 1.2rem; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.wide { grid-column: auto; }
}

@media (hover: none) {
  .btn:hover, .benefit:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

@media print {
  .site-header, .ticker, .sticky-cta, .to-top, .progress, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
