/* ===== Capaldi Racing: Homepage Prototype Styles ===== */

:root {
  --charcoal: #16181b;
  --charcoal-alt: #1e2124;
  --white: #f5f6f7;
  --off-white: #c9cdd1;
  --blue: #1d5bbf;
  --blue-dark: #123d80;
  --red: #c8102e;
  --border: #33373c;
  --max-width: 1200px;
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--charcoal);
  color: var(--white);
  line-height: 1.6;
}

h1, h2, h3 { font-weight: 800; letter-spacing: 0.5px; margin: 0 0 16px; }

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid var(--red);
  padding-left: 16px;
  margin-bottom: 40px;
}

h3 { font-size: 1.1rem; }

p { color: var(--off-white); margin: 0 0 16px; }

a { color: var(--red); text-decoration: none; }

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

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

.section-alt { background: var(--charcoal-alt); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.pill { border-radius: 999px; }
.btn .arrow { font-size: 0.95em; }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #9c0c22; }

.btn-shop { background: var(--blue); color: var(--white); }
.btn-shop:hover { background: var(--blue-dark); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(8,9,10,0.7) 0%, rgba(8,9,10,0.25) 70%, rgba(8,9,10,0) 100%);
  border-bottom: none;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(22, 24, 27, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; }
.logo-img { height: 64px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.footer-logo-img { height: 76px; filter: none; }
.nav-panel-top .logo-img { height: 50px; filter: none; }

.site-header .logo-img { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); height: 96px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-contact-btn { flex-shrink: 0; padding: 11px 22px; font-size: 0.78rem; }

/* ===== Horizontal main nav (desktop) ===== */
.main-nav { display: none; }
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  padding: 8px 0;
}
.main-nav > ul > li > a:hover { color: var(--red); }
.main-nav .caret { font-size: 0.6rem; opacity: 0.8; }

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 220px;
  background: var(--charcoal-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.main-nav .dropdown a {
  color: var(--off-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  padding: 9px 12px;
  border-radius: 4px;
  text-shadow: none;
  white-space: nowrap;
}
.main-nav .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); display: block; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .driver-modal-photo { height: 100%; }
}

/* ===== Full-screen nav overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  background: rgba(10, 11, 13, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-panel {
  width: min(440px, 100%);
  height: 100%;
  background: var(--charcoal-alt);
  border-left: 1px solid var(--border);
  padding: 24px 32px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(24px);
  transition: transform 0.28s ease;
}
.nav-overlay.open .nav-panel { transform: translateX(0); }

.nav-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.nav-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.panel-links { flex: 1; }
.panel-links ul { list-style: none; margin: 0; padding: 0; }
.panel-links li { border-bottom: 1px solid var(--border); }
.panel-links li:first-child { border-top: 1px solid var(--border); }
.panel-links a {
  display: block;
  padding: 16px 4px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.panel-links a:hover { color: var(--red); }

.panel-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.panel-ctas .btn { justify-content: center; width: 100%; }

/* ===== 1. Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(16,18,21,0.15) 0%, rgba(16,18,21,0.55) 55%, rgba(16,18,21,0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  color: var(--white);
  max-width: 900px;
  text-transform: uppercase;
  border-left: 6px solid var(--blue);
  padding-left: 22px;
  margin-bottom: 20px;
}

.hero-sub { max-width: 560px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ===== Countdown strip ===== */
.countdown-strip { background: var(--charcoal-alt); border-bottom: 1px solid var(--border); }
.countdown-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.countdown-card {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.countdown-info { display: flex; flex-direction: column; gap: 10px; }
.countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  font-weight: 700;
}
.countdown-event { font-size: 1.4rem; margin: 0; color: var(--white); }
.countdown-watch {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 800;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
}
.countdown-watch:hover { background: var(--white); border-color: var(--white); color: var(--charcoal); }

.countdown-timer { display: flex; gap: 10px; }
.countdown-unit {
  text-align: center;
  min-width: 64px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 8px 8px;
}
.countdown-num {
  display: block;
  font-family: 'SF Mono', 'Courier New', Consolas, monospace;
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--red);
  text-shadow: 0 0 18px rgba(200, 16, 46, 0.55);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown-unit-label {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--off-white);
}
.countdown-live {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Stat strip ===== */
.stat-strip { background: var(--charcoal-alt); border-bottom: 1px solid var(--border); }
.stat-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stat-num-sm { font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: 0.3px; }
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--off-white);
}

/* ===== Photo frames ===== */
.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.placeholder-photo {
  background: repeating-linear-gradient(135deg, #24272b, #24272b 14px, #2b2f34 14px, #2b2f34 28px);
  border: 1px dashed var(--border);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.placeholder-photo span {
  color: var(--off-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 220px;
}

/* ===== Placeholder text notes ===== */
.placeholder-note {
  border: 1px dashed var(--blue);
  color: #a9c4ec;
  background: rgba(29, 91, 191, 0.1);
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 3px;
  margin: 10px 0 0;
}

/* ===== Content grids (About / Story) ===== */
.content-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

.ford-badge { width: 220px; margin-top: 12px; }

.learn-more {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.learn-more:hover { color: var(--white); }

.center-cta { text-align: center; margin-top: 8px; }

.anchor-offset { display: block; position: relative; top: -80px; visibility: hidden; }

/* ===== Past News Archive ===== */
.archive-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--off-white);
  opacity: 0.7;
}
.archive-link:hover { color: var(--red); opacity: 1; }

.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
}
.archive-date {
  flex: 0 0 auto;
  width: 105px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--off-white);
  opacity: 0.6;
}
.archive-list a { color: var(--off-white); font-size: 0.82rem; }
.archive-list a:hover { color: var(--red); }

/* ===== 2. News & Headlines ===== */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
.news-photo { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.news-photo-sm { aspect-ratio: 16 / 9; flex-shrink: 0; width: 130px; margin: 0; }
.news-meta {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.news-feat h3 { font-size: 1.4rem; margin-bottom: 10px; }
.news-side { display: flex; flex-direction: column; gap: 22px; }
.news-item { display: flex; gap: 14px; }
.news-item h3 { font-size: 0.98rem; margin: 0 0 8px; }

/* ===== 3. Drivers ===== */
.driver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.driver-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
}
.driver-photo { aspect-ratio: 3 / 4; margin-bottom: 10px; transition: border-color 0.2s ease; }
.driver-card:hover .driver-photo { border-color: var(--red); }
.driver-cap { font-size: 0.78rem; color: var(--off-white); }
.driver-cap b { display: block; color: var(--white); font-size: 0.92rem; margin-bottom: 2px; }

.driver-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 11, 13, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.driver-overlay.open { opacity: 1; pointer-events: auto; }
.driver-modal {
  position: relative;
  background: var(--charcoal-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.driver-modal-photo { aspect-ratio: auto; min-width: 0; overflow: hidden; border-radius: 0; border: none; border-right: 1px solid var(--border); }
.driver-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.driver-modal-body { padding: 28px 28px 32px; background: var(--charcoal-alt); position: relative; z-index: 1; }
.driver-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}
.driver-modal-num {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.driver-modal-body h3 { font-size: 1.4rem; margin-bottom: 12px; text-transform: uppercase; }
.driver-modal-facts { margin: 0 0 18px; }
.driver-modal-facts div { padding: 8px 0; border-top: 1px solid var(--border); }
.driver-modal-facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--red); margin-bottom: 2px; }
.driver-modal-facts dd { margin: 0; font-size: 0.88rem; color: var(--off-white); }
.driver-modal-social { display: flex; gap: 10px; margin-bottom: 20px; }

/* ===== 4. The Cars ===== */
.car-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.car-card h3 { margin: 18px 0 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.car-class {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.car-card p { font-size: 0.9rem; margin-bottom: 14px; }
.car-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.car-btns .btn { padding: 10px 18px; font-size: 0.76rem; }

/* ===== 5. Race With Capaldi Racing ===== */
.rwc-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.rwc-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  columns: 2;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.rwc-list li { padding: 10px 0; border-top: 1px solid var(--border); break-inside: avoid; }
.rwc-list li a { color: var(--white); }
.rwc-list li a:hover, .rwc-list li a:focus-visible { color: var(--red); }
.rwc-list-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}
.rwc-list-btn:hover, .rwc-list-btn:focus-visible { color: var(--red); }

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 11, 13, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.info-overlay.open { opacity: 1; pointer-events: auto; }
.info-modal {
  position: relative;
  background: var(--charcoal-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}
.info-modal-body { padding: 32px 32px 36px; }
.info-modal-body h3 { font-size: 1.3rem; margin: 0 0 18px; text-transform: uppercase; }
.info-modal-body h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--red); margin: 22px 0 10px; }
.info-modal-body p { font-size: 0.92rem; color: var(--off-white); margin-bottom: 16px; }
.info-modal-body .info-modal-tagline { font-weight: 700; color: var(--white); }
.info-modal-list { margin: 0 0 16px; padding-left: 20px; }
.info-modal-list li { font-size: 0.92rem; color: var(--off-white); padding: 4px 0; }
.info-modal-body .btn { margin-top: 4px; }
.info-modal-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.info-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}

/* ===== 6. Upcoming Events ===== */
.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.schedule-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--off-white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.schedule-tab:hover { border-color: var(--red); color: var(--white); }
.schedule-tab.active { background: var(--red); border-color: var(--red); color: var(--white); }

.schedule-empty-state {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 48px 24px;
  text-align: center;
  color: var(--off-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { position: relative; border: 1px solid var(--border); border-radius: 6px; padding: 22px 22px 24px; display: flex; flex-direction: column; }
.event-track-map { position: absolute; top: 18px; right: 18px; width: 70px; height: auto; opacity: 0.9; }
.event-date {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.event-series {
  display: inline-block;
  align-self: flex-start;
  background: var(--charcoal-alt);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.event-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.event-loc { font-size: 0.85rem; color: var(--off-white); margin-bottom: 4px; }
.event-region { font-size: 0.78rem; color: var(--off-white); opacity: 0.75; margin-bottom: 14px; }
.event-btn { margin-top: auto; padding: 9px 16px; font-size: 0.74rem; align-self: flex-start; }

/* ===== 7. Merch Highlights ===== */
.merch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.merch-card { display: block; }
.merch-photo { aspect-ratio: 1 / 1; margin-bottom: 10px; transition: border-color 0.2s ease; }
.merch-card:hover .merch-photo { border-color: var(--blue); }
.merch-cap { font-size: 0.85rem; color: var(--white); font-weight: 700; }

/* ===== 8. Partners & Sponsors ===== */
.sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sponsor-tile { aspect-ratio: 2 / 1; padding: 10px; }
.sponsor-tile span { font-size: 0.68rem; }
.logo-tile {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }

/* ===== 9. Final CTA ===== */
.cta-final { position: relative; overflow: hidden; }
.cta-photo { position: absolute; inset: 0; z-index: 0; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(16,18,21,0.85) 0%, rgba(16,18,21,0.94) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 24px;
  text-align: center;
}
.cta-content h2 { border-left: none; padding-left: 0; }
.cta-content p { font-size: 1.05rem; max-width: 560px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

.cta-dropdown { position: relative; }
.cta-dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cta-dropdown-toggle .caret { font-size: 0.6rem; opacity: 0.85; transition: transform 0.15s ease; }
.cta-dropdown.open .cta-dropdown-toggle .caret { transform: rotate(180deg); }
.cta-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  margin-top: 8px;
  min-width: 200px;
  background: var(--charcoal-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  text-align: left;
}
.cta-dropdown.open .cta-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.cta-dropdown-menu a {
  color: var(--off-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  padding: 9px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.cta-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: #0f1113;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 64px 24px 40px;
}
.footer-inner { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-tagline { text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin: 0; }

.footer-social { display: flex; gap: 14px; margin-top: 8px; }
.social-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--charcoal-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-dot svg { width: 20px; height: 20px; }
.social-dot:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }

.footer-locations {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}
.footer-location { text-align: center; }
.footer-location h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  margin: 0 0 6px;
}
.footer-location p { font-size: 0.8rem; color: var(--off-white); margin: 0 0 4px; }
.footer-location a { font-size: 0.8rem; }
.footer-location-contact {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  padding: 5px 12px;
  font-size: 0.62rem;
}

.footer-copy { font-size: 0.78rem; color: #6b7076; margin-top: 6px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 72px 24px; }
  .stat-strip-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }

  .news-grid { grid-template-columns: 1fr; gap: 36px; }

  .driver-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 6px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .driver-card { flex: 0 0 auto; width: min(220px, 62vw); scroll-snap-align: start; }

  .driver-modal { display: block; max-width: 480px; }
  .driver-modal-photo { aspect-ratio: 4 / 3; border-right: none; border-bottom: 1px solid var(--border); }

  .car-row { grid-template-columns: 1fr; gap: 48px; }
  .rwc-row { grid-template-columns: 1fr; gap: 32px; }
  .event-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .merch-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .section-inner { padding: 56px 18px; }
  .hero { min-height: 92vh; }
  .hero h1 { padding-left: 14px; border-left-width: 4px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .header-contact-btn { padding: 9px 16px; font-size: 0.7rem; }
  .nav-panel { padding: 20px 22px 28px; }
  .cta-row { flex-direction: column; }
  .cta-content { padding: 72px 20px; }

  .event-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .rwc-list { columns: 1; }
  .news-item { flex-direction: column; }
  .news-photo-sm { width: 100%; }

  .countdown-card { flex-direction: column; align-items: flex-start; }
  .countdown-timer { gap: 12px; }
  .countdown-unit { min-width: 44px; }
}
