:root {
  --bg-dark: #f5f5f7;
  --bg-section: #ffffff;
  --bg-section-alt: #f2f3f7;
  --accent-red: #e4002b;
  --accent-red-soft: #ff3853;
  --text-main: #12131a;
  --text-muted: #5f6473;
  --border-subtle: #d4d7e2;
  --nav-height: 72px;
  --max-width: 1600px;
  --transition-fast: 0.2s ease-out;
  --transition-med: 0.3s ease;
  --shadow-soft: 0 20px 40px rgba(15, 16, 30, 0.18);
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  color: var(--text-main);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  padding-bottom: 80px; /* space for fixed sponsor bar */
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- LANGUAGE TOGGLE ---------- */

html[data-lang="en"] .lang-fr {
  display: none !important;
}

html[data-lang="fr"] .lang-en {
  display: none !important;
}

/* ---------- NAVIGATION ---------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: auto;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  transition: background-color var(--transition-med), box-shadow var(--transition-med),
    backdrop-filter var(--transition-med);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(15, 16, 30, 0.14);
}

.sponsors {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  background: #fff;
  padding: 10px 0;
  width: 100%;
  max-width: 100%;
}

.sponsor-track {
  display: flex;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.sponsor {
  flex: 0 0 auto;
  margin: 0 30px;  /* spacing between logos */
}

.sponsor img {
  height: 60px;    /* adjust size */
  object-fit: contain;
}

/* Animation for scrolling */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* move half the width of repeated logos */
  }
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 420px;
  height: 100px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.nav-logo-text span:first-child {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-logo-text span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-soft));
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

.info-pdf {
  margin: 60px auto 40px;
  width: min(100%, 1024px);
  height: auto;
  padding: 0;
  overflow: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
}

.info-pdf iframe,
.info-pdf embed {
  width: 100%;
  height: 80vh;
  border: none;
}

/* Mobile fix */
@media (max-width: 768px) {
  .info-pdf iframe,
  .info-pdf embed {
    display: block !important;
    height: 80vh;
  }

  .view-pdf-button {
    display: none !important;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  background: transparent;
  color: var(--text-main);
  gap: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-soft));
  box-shadow: 0 12px 30px rgba(228, 0, 43, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(228, 0, 43, 0.9);
}

.btn-fb {
  background: transparent;
  box-shadow: none;
  color: inherit;
  padding: 0;
  flex-shrink: 0;   /* prevents the button from shrinking */
}

.btn-fb:hover {
  transform: translateY(-1px);
}

.btn-fb img.fb-btn-image {
  display: block;
  height: 32px;
  width: auto;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(24, 119, 242, 0.7);
}

.btn-outline {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f3f4f7;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  display: block;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background-color: #11131f;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    top var(--transition-fast), bottom var(--transition-fast);
  position: relative;
}

.nav-burger span::before {
  position: absolute;
  top: -4px;
}

.nav-burger span::after {
  position: absolute;
  bottom: -4px;
}

.nav-burger.active span {
  transform: rotate(45deg);
}

.nav-burger.active span::before {
  top: 0;
  transform: rotate(90deg);
}

.nav-burger.active span::after {
  bottom: 0;
  opacity: 0;
}

.nav-menu-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  margin-right: 230px; /* moves nav away from right edge */
}

.nav-menu-mobile {
  display: none;
}

/* ---------- HERO (VIDEO) ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  color: #ffffff;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.1) brightness(0.9);
  transform: scale(1.00);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% -10%, rgba(228, 0, 43, 0.6), transparent 55%),
    linear-gradient(120deg, rgba(6, 7, 11, 0.95) 0%, rgba(6, 7, 11, 0.55) 40%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) 1.5rem 3rem;
  height: 100%;
  display: grid;
  grid-template-columns: 3.2fr 2.3fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 8, 14, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff, var(--accent-red));
  box-shadow: 0 0 16px rgba(228, 0, 43, 0.9);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #ffffff, #ffd6dd);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 34rem;
  color: rgba(236, 238, 244, 0.9);
  margin-bottom: 1.5rem;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-shadow: horizontal-offset vertical-offset;
}

.hero-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-meta-label {
  opacity: 0.7;
}

.hero-meta-value {
  color: #ffffff;
  font-weight: 700;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 56, 83, 0.04), transparent 55%),
    #ffffff;
  border: 1px solid rgba(12, 14, 24, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(14, 15, 30, 0.18);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.hero-card-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-card-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(228, 0, 43, 0.18);
  color: var(--accent-red-soft);
}

.hero-card-main {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.hero-card-flag {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: conic-gradient(
    from 40deg,
    #1705ef 0 25%,
    #2e2f94 25% 50%,
    #051257 50% 75%,
    #0800e4 75% 100%
  );
  background-size: 140% 140%;
  animation: flagPulse 3.4s ease-in-out infinite;
}

@keyframes flagPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  }
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-text strong {
  color: #11131f;
  font-weight: 700;
}

.hero-card-footer {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-card-footer span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #00ff99, #00cf66);
  box-shadow: 0 0 9px rgba(0, 255, 153, 0.9);
}

.hero-mini-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}


.container{
    max-width:900px;
    margin:auto;
    padding:40px 20px;
}

.month{
    font-family: "Segoe UI", Arial, sans-serif;
	font-size:28px;
    font-weight:bold;
    margin-top:40px;
    margin-bottom:20px;
    color:#d60000;
    border-bottom:2px solid #d60000;
    padding-bottom:6px;
}

.event{
    font-family: "Segoe UI", Arial, sans-serif;
	background:white;
    border-radius:8px;
    padding:18px;
    margin-bottom:14px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    transition:0.2s;
}

.event:hover{
    transform:translateX(4px);
}

.day{
    font-family: "Segoe UI", Arial, sans-serif;
	font-weight:bold;
    font-size:18px;
    color:#111;
}

.desc{
    font-family: "Segoe UI", Arial, sans-serif;
	margin-top:6px;
    line-height:1.4;
    font-size:15px;
    color:#555;
}

.event-img{
    width:100%;
    max-width:500px;
    margin-top:12px;
    border-radius:6px;
}



/* ---------- SECTIONS SHARED ---------- */

section {
  padding: 4.5rem 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.section-dark {
  background-color: var(--bg-section);
}

.section-dark-alt {
  background-color: var(--bg-section-alt);
}

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

.section-header {
  margin-bottom: 2.5rem;
  max-width: 46rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-red-soft);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* LIVE UPDATES */

.live-updates{
  padding:60px 20px;
  background:#0f0f0f;
  border-top:3px solid #e10600;
  border-bottom:3px solid #e10600;
}

.live-container{
  max-width:900px;
  margin:auto;
  text-align:center;
}

.live-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:20px;
}

.live-header h2{
  color:white;
  font-size:28px;
}

.live-indicator{
  width:12px;
  height:12px;
  background:red;
  border-radius:50%;
  animation:pulse 1.5s infinite;
}

@keyframes pulse{
  0%{opacity:1}
  50%{opacity:.3}
  100%{opacity:1}
}

.live-message{
  background:#1c1c1c;
  padding:20px;
  color:white;
  font-size:20px;
  border-radius:8px;
  margin-bottom:20px;
}

/* ADMIN PANEL */

.live-admin textarea{
  width:100%;
  height:80px;
  border-radius:6px;
  border:none;
  padding:10px;
  margin-bottom:10px;
}

.live-admin button{
  background:#e10600;
  color:white;
  border:none;
  padding:12px 20px;
  border-radius:6px;
  font-weight:700;
  cursor:pointer;
}

.live-admin button:hover{
  background:#ff2c2c;
}

/* ---------- COMPETITION / STRUCTURE ---------- */

.competition-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.competition-main p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.competition-main p strong {
  color: #fff;
  font-weight: 600;
}

.competition-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 11, 17, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-soft));
}

.competition-card {
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(228, 0, 43, 0.08), transparent 55%),
    #ffffff;
  border: 1px solid rgba(12, 14, 24, 0.06);
  box-shadow: 0 16px 32px rgba(9, 11, 26, 0.12);
}

.competition-card h4 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.competition-metrics {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.metric {
  flex: 1;
}

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- DISCIPLINES GRID ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.discipline-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1.2rem;
  color: #fff;
  isolation: isolate;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.75);
}

.discipline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

.discipline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 55%);
}

.discipline-card[data-type="drag"]::before {
  background-image: url("images/fueltech.jpg");
}

.discipline-card[data-type="pulling"]::before {
  background-image: url("images/bracket.jpg");
}

.discipline-card[data-type="boat"]::before {
  background-image: url("images/FWD.jpg");
}

.discipline-card[data-type="stock"]::before {
  background-image: url("images/nt.jpg");
}

.discipline-card[data-type="bull"]::before {
  background-image: url("images/nt28.jpg");
}

.discipline-card[data-type="top"]::before {
  background-image: url("images/true2.jpg");
}
.discipline-card[data-type="junior"]::before {
  background-image: url("images/sspa2.jpg");
}

.discipline-card[data-type="meet"]::before {
  background-image: url("images/Mafia.jpg");
}

.discipline-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.discipline-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.discipline-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-red-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 768px) {
  .discipline-link {
    position: absolute;
    inset: 0;
    font-size: 0;
    color: transparent;
  }
}

.discipline-link span:last-child {
  font-size: 0.9rem;
  transform: translateX(0);
  transition: transform var(--transition-fast);
}

.discipline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.95);
}

.discipline-card:hover::before {
  transform: scale(1.05);
  opacity: 0.6;
}

.discipline-card:hover .discipline-link span:last-child {
  transform: translateX(3px);
}

/* ---------- FAN EXPERIENCE ---------- */

.fan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.fan-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(255, 56, 83, 0.04), transparent 55%),
    #ffffff;
  border: 1px solid rgba(12, 14, 24, 0.06);
  box-shadow: 0 14px 30px rgba(10, 12, 26, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform var(--transition-med), border-color var(--transition-fast),
    box-shadow var(--transition-med), background var(--transition-med);
}

.fan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 0, 43, 0.5);
  background:
    radial-gradient(circle at top left, rgba(228, 0, 43, 0.06), transparent 60%),
    #ffffff;
  box-shadow: 0 22px 46px rgba(10, 12, 26, 0.18);
}

.fan-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.fan-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fan-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.fan-cta {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-red-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- RACER TOOLS / CREW PORTAL ---------- */

.racer-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.racer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.racer-pill {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid rgba(15, 17, 30, 0.12);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.racer-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00ff99, #00c060);
}

.racer-panel {
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(228, 0, 43, 0.08), transparent 60%),
    #ffffff;
  border: 1px solid rgba(15, 17, 30, 0.08);
  box-shadow: 0 18px 40px rgba(11, 13, 28, 0.16);
}

.racer-panel h4 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.racer-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.nhra-logo {
  width: 200px;
  height: 85px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background-color: #f0f1f6;
  border-top: 1px solid #d3d6e0;
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3.5rem;
  margin-bottom: 2.8rem;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-brand-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-brand-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  color: #181a22;
}

.footer-links {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-links a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #11131f;
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d3d6e0;
  padding-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: #11131f;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }

  .competition-grid,
  .racer-layout {
    grid-template-columns: 1fr;
  }

  .competition-points {
    grid-template-columns: 1fr;
  }

  .fan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-split {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu-desktop {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-menu-mobile {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.5rem 1.1rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 19;
  }

  .nav-menu-mobile.open {
    display: flex;
  }

  .nav-menu-mobile a {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .nav-menu-mobile a:hover {
    color: #11131f;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-height) + 1.8rem);
    padding-bottom: 2.6rem;
  }

.nav-logo-mark {
  width: 180px;
  height: 56px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

  .sponsors {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    z-index: 1000;
  }

  .sponsor-track {
    animation-duration: 28s;
  }

  .sponsor img {
    height: 40px;
  }

  .info-pdf {
    margin: 24px auto;
    width: 100%;
    box-shadow: none;
    border: none;
  }

  .hero-right {
    align-items: flex-start;
  }

  .hero-card {
    max-width: none;
  }

  section {
    padding: 3.3rem 1.3rem;
  }

  
  .card-grid {
    grid-template-columns: 1fr;
  }

  .fan-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .racer-list {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- ADDITIONAL MOBILE FIXES ---- */

@media (max-width: 768px) {
  body {
    padding-bottom: 58px;
  }

  section {
    padding: 2.5rem 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-dark-alt,
  .section-dark {
    overflow: hidden;
  }

  /* Force card grid to 2 columns and fit screen */
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .discipline-card {
    min-height: 140px;
    padding: 0.8rem;
  }

  .discipline-title {
    font-size: 0.9rem;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 0.8rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .discipline-card {
    min-height: 120px;
    padding: 0.7rem;
  }

  .discipline-title {
    font-size: 0.8rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-top {
    gap: 1.5rem;
  }
}