:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1e1e1e;
  --fg: #fafafa;
  --fg-dim: #a8a8a8;
  --accent: #ff6b1a;
  --accent-2: #e5530a;
  --border: #2a2a2a;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--fg); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo-text {
  font-weight: 800; letter-spacing: .04em; font-size: 14px;
  text-transform: uppercase;
}
.logo-text span { color: var(--accent); }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--fg); font-weight: 600; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 6px;
}
.nav a:hover, .nav a.active {
  background: var(--bg-3); color: var(--accent);
}

.menu-toggle {
  display: none; background: none; border: 0; color: var(--fg);
  cursor: pointer; padding: 8px;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 72vh;
  display: grid; place-items: end start;
  overflow: hidden;
  padding: 48px 0 64px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.95) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.eyebrow {
  color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.02em; max-width: 900px;
  text-transform: uppercase;
}
.hero-meta {
  margin-top: 20px; color: var(--fg-dim);
  font-size: 15px;
}
.hero-cta {
  margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap;
}

/* ===== Button ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px; border: 0; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--fg); color: #000; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; margin-bottom: 40px;
  display: flex; align-items: center; gap: 16px;
}
.section-title::before {
  content: ""; width: 8px; height: 32px; background: var(--accent);
  border-radius: 2px;
}

/* ===== Winners grid ===== */
.winners {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.winner-card {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 24px; border-radius: 8px;
  transition: transform .2s, border-color .2s;
}
.winner-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.winner-card .class-name {
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.winner-card .driver {
  font-size: 20px; font-weight: 800; text-transform: uppercase;
  line-height: 1.2;
}
.winner-card .date { color: var(--fg-dim); font-size: 13px; margin-top: 10px; }

/* ===== Info cards / Quick links ===== */
.info-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.info-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px 28px;
  display: flex; flex-direction: column;
}
.info-card h3 {
  font-size: 22px; font-weight: 800; text-transform: uppercase;
  margin-bottom: 12px; letter-spacing: -.01em;
}
.info-card p { color: var(--fg-dim); margin-bottom: 20px; flex-grow: 1; }
.info-card .btn { align-self: flex-start; }

/* ===== Sponsors ===== */
.sponsors-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
}
.sponsor {
  background: var(--fg); border-radius: 8px;
  padding: 24px; display: grid; place-items: center;
  min-height: 120px;
  transition: transform .2s;
}
.sponsor:hover { transform: scale(1.03); }
.sponsor img {
  max-height: 72px; width: auto;
  object-fit: contain;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1fr;
}
.contact-block h3 {
  font-size: 14px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.contact-block p, .contact-block address {
  font-style: normal; font-size: 17px; line-height: 1.7;
}
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--fg-dim); }

/* ===== Staff ===== */
.staff-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.staff-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px; text-align: center;
}
.staff-card .avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: grid; place-items: center; margin: 0 auto 16px;
  font-weight: 900; font-size: 24px;
}
.staff-card .name {
  font-size: 18px; font-weight: 800;
  text-transform: uppercase; margin-bottom: 6px;
}
.staff-card .role {
  color: var(--fg-dim); font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em;
}

/* ===== PDF List ===== */
.pdf-list { list-style: none; display: grid; gap: 8px; }
.pdf-list li a {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 18px 24px; border-radius: 6px;
  color: var(--fg); font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.pdf-list li a:hover {
  border-color: var(--accent); color: var(--accent); transform: translateX(4px);
}
.pdf-list .download {
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.pdf-group {
  margin-top: 48px;
}
.pdf-group h3 {
  font-size: 16px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 16px;
}

/* ===== Page header ===== */
.page-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em;
}
.page-header .crumbs {
  color: var(--fg-dim); font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ===== Calendar CTA ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #000; border-radius: 12px;
  padding: 48px; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; text-transform: uppercase;
  margin-bottom: 12px;
}
.cta-banner p { margin-bottom: 24px; font-size: 17px; opacity: .85; }
.cta-banner .btn {
  background: #000; color: var(--fg);
}
.cta-banner .btn:hover { background: var(--fg); color: #000; }

/* ===== Prose (policy pages) ===== */
.prose p, .prose ul, .prose ol {
  margin-bottom: 16px; color: var(--fg-dim);
  max-width: 70ch;
}
.prose ul, .prose ol { padding-left: 24px; }
.prose h2 {
  font-size: 1.4rem; font-weight: 800;
  text-transform: uppercase; margin: 32px 0 16px;
  color: var(--fg);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 56px 0 24px; margin-top: 80px;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg); margin-bottom: 16px;
}
.footer-grid a, .footer-grid p, .footer-grid address {
  color: var(--fg-dim); font-size: 14px; font-style: normal;
  line-height: 1.8;
}
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; }
.copyright {
  border-top: 1px solid var(--border); padding-top: 24px;
  color: var(--fg-dim); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.copyright a { color: var(--fg-dim); }
.copyright a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 18px; border-radius: 4px; }
  .menu-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 56px 0; }
  .hero { min-height: 60vh; padding: 32px 0 48px; }
  .cta-banner { padding: 32px 24px; }
}
