/* ═══════════════════════════════════════════════════════════════════════════ *
 *  ENTERPRISE RALLY — STYLESHEET                                              *
 *  Nu edita acest fișier. Conținutul se modifică din event.config.js.        *
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ────────────────────────────────────────────────────── */
:root {
  --red:        #D01920;
  --red-dark:   #A8131A;
  --red-light:  #E8454C;
  --black:      #0A0A0A;
  --asphalt:    #181818;
  --asphalt-mid:#2D2D2D;
  --gold:       #C8960C;
  --gold-light: #E0B93A;
  --cream:      #F5F0E8;
  --cream-dark: #ECE5D7;
  --white:      #FFFFFF;
  --text-dark:  #1A1A1A;
  --text-mid:   #4A4A4A;
  --text-light: #E8E0D0;

  --font-heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:      68px;
  --container:  1160px;
  --radius:     4px;
  --transition: 0.22s ease;
}

/* ─── 2. RESET & BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ─── 3. TYPOGRAPHY ───────────────────────────────────────────────────────── */
.section__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  white-space: pre-line;
}
.section__headline--light { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.eyebrow--light { color: var(--gold-light); }

.section__sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 54ch;
  margin: 0 auto;
}
.section__sub--light { color: var(--text-light); }

/* ─── 4. LAYOUT ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}
.section--light { background: var(--cream); }
.section--dark  { background: var(--asphalt); }
.section--red   { background: var(--red); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__header .section__headline { margin-top: 0.3rem; }
.section__header .section__sub      { margin-top: 1rem; }

/* ─── 5. NAV ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--red);
  transition: background var(--transition);
}

.nav__brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

.nav__menu {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 6. BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn--white:hover { background: var(--cream); border-color: var(--cream); }

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

.btn--nav {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 20px;
  flex-shrink: 0;
}
.btn--nav:hover { background: var(--red-dark); }

.btn--lg { font-size: 1.2rem; padding: 16px 40px; }

/* ─── 7. TICKER ───────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  background: var(--black);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.ticker--top    { border-top: none; }
.ticker--bottom { border-bottom: none; }
.ticker--footer { border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); }

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.ticker--bottom .ticker__track { animation-direction: reverse; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__item {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 0;
  padding-right: 48px;
  flex-shrink: 0;
}

.ticker__item .ticker__dot {
  color: var(--red);
  margin-left: 48px;
}

/* ─── 8. HERO ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-color: var(--asphalt);
  will-change: transform;
  transition: none;
}

/* Fallback gradient when no image */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(30,15,5,0.3) 0%, transparent 70%),
    linear-gradient(160deg, #1a1a1a 0%, #2a1a0a 40%, #0a0a0a 100%);
  opacity: 1;
}
.hero__bg.has-image::after { opacity: 0; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.80) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.ticker {
  position: relative;
  z-index: 2;
  width: 100%;
}
.ticker--top    { margin-top: auto; }
.ticker--bottom { margin-top: 0; margin-bottom: auto; }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(200,150,12,0.4);
  padding: 4px 16px;
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: pre-line;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

.hero__title em {
  color: var(--red);
  font-style: normal;
  display: block;
  font-size: 0.65em;
  letter-spacing: 0.06em;
}

.hero__dates {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.1em;
  color: var(--red-light);
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── 9. COUNTDOWN ────────────────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown__num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 64px;
  text-align: center;
}

.countdown__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.countdown__sep {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--red);
  align-self: flex-start;
  padding-top: 6px;
  line-height: 1;
}

/* ─── 10. ROAD DIVIDER ────────────────────────────────────────────────────── */
.road-divider {
  height: 24px;
  background-color: var(--asphalt);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.road-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.55) 0px,
    rgba(255,255,255,0.55) 28px,
    transparent 28px,
    transparent 56px
  );
}

/* ─── 11. ABOUT ───────────────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__text .section__headline { margin-bottom: 24px; }

.about__paragraphs p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.about__paragraphs p:last-child { margin-bottom: 0; }

.about__text .btn { margin-top: 28px; }

.about__image { position: relative; }

.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--asphalt-mid);
}
.img-frame--tall { aspect-ratio: 3/4; }

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2010 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame__placeholder--map {
  background: linear-gradient(160deg, #1a2a1a 0%, #0a1a0a 100%);
}

.img-frame img + .img-frame__placeholder { display: none; }

.checkered-corner {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: var(--radius);
  z-index: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.checkered-corner--right { left: auto; right: -10px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ─── 12. STATS ───────────────────────────────────────────────────────────── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-tile:nth-child(odd)  { background: var(--black); }
.stat-tile:nth-child(even) { background: var(--red); }

.stat-tile__number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--white);
}
.stat-tile:nth-child(odd) .stat-tile__number { color: var(--red); }

.stat-tile__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
.stat-tile:nth-child(odd) .stat-tile__label { color: rgba(255,255,255,0.55); }

/* ─── MAP FRAME ──────────────────────────────────────────────────────────── */
.map-frame {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #1a1a1a;
}

.map-frame--fullbleed {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  z-index: 0;
}

/* Leaflet controls — brand styling */
.leaflet-control-zoom a {
  background: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--asphalt-mid) !important;
  font-weight: 700;
}
.leaflet-control-zoom a:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
}
.leaflet-control-attribution {
  background: rgba(10,10,10,0.7) !important;
  color: rgba(255,255,255,0.4) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,0.5) !important; }

/* Leaflet town label tooltips */
.map-label {
  background: rgba(10,10,10,0.85) !important;
  border: 1px solid rgba(208,25,32,0.6) !important;
  border-radius: 3px !important;
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 3px 8px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.map-label::before { display: none !important; }

/* Start marker pulse */
@keyframes map-pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
.map-start-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  animation: map-pulse 2s ease-out infinite;
  pointer-events: none;
}

/* ─── 13. ROUTE ───────────────────────────────────────────────────────────── */
.route {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

/* Accordion bar — sits below the map in normal flow */
.route__accordion {
  background: var(--asphalt);
  border-top: 3px solid var(--red);
}

.route__panel-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
}
.route__panel-toggle:hover { color: var(--gold-light); }

.route__toggle-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--red);
}
.route__panel-toggle[aria-expanded="true"] .route__toggle-icon {
  transform: rotate(180deg);
}

.route__panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.route__panel-body.is-open {
  max-height: 600px;
}

.route__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
}

.route__panel-grid .section__headline { margin-bottom: 0; }

.route__description p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.7;
}
.route__description p:last-child { margin-bottom: 0; }

.route__map-note {
  margin-top: 20px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  border-left: 2px solid rgba(208,25,32,0.5);
  padding-left: 12px;
}

/* ─── 14. VEHICLES ────────────────────────────────────────────────────────── */
.vehicles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.vehicle-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.vehicle-card:hover { transform: translateY(-4px); border-color: var(--red); }

.vehicle-card__image {
  aspect-ratio: 16/9;
  background: var(--asphalt-mid);
  overflow: hidden;
  position: relative;
}

.vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #1a1a2a 0%, #2a1a1a 100%);
}

.vehicle-card__body { padding: 28px; }

.vehicle-card__type {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.vehicle-card__desc {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── 15. SPONSORS ────────────────────────────────────────────────────────── */
.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.sponsor-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
}

.sponsor-card__logo {
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.sponsor-card__logo img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
}

.sponsor-card__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sponsor-card__benefit {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.sponsor-card__desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Subtle road-stripe corner on sponsor cards */
.sponsor-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 50%, rgba(208,25,32,0.08) 50%);
}

/* ─── 16. PROGRAM ─────────────────────────────────────────────────────────── */
.program__days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.program__day-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

.program__day-list { display: flex; flex-direction: column; gap: 12px; }

.program__day-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.program__day-item::before {
  content: '▸';
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── 17. FAQ ─────────────────────────────────────────────────────────────── */
.faq__container { max-width: 780px; }

.faq__list { display: flex; flex-direction: column; gap: 0; }

.faq__item {
  border-bottom: 1px solid var(--cream-dark);
}
.faq__item:first-child { border-top: 1px solid var(--cream-dark); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition);
}
.faq__question:hover { color: var(--red); }

.faq__question[aria-expanded="true"] { color: var(--red); }

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 2px;
}
.faq__icon { position: relative; }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after  { width: 2px;  height: 12px; transition: transform var(--transition), opacity var(--transition); }

.faq__question[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer.is-open {
  max-height: 400px;
}

.faq__answer-inner {
  padding-bottom: 20px;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── 18. GALLERY ─────────────────────────────────────────────────────────── */
.gallery__grid {
  columns: 3;
  column-gap: 16px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.03); }

.gallery__placeholder {
  text-align: center;
  padding: 64px 24px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
}

/* ─── 19. CTA FINAL ───────────────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -60deg,
    transparent 0px,
    transparent 32px,
    rgba(0,0,0,0.08) 32px,
    rgba(0,0,0,0.08) 34px
  );
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-final__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.cta-final__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
}

.cta-final__note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  max-width: 42ch;
}

/* ─── 20. FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer__instagram {
  text-align: center;
  padding: 48px 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__ig-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
}
.footer__ig-link:hover { color: var(--gold-light); }

.footer__ig-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.footer__col-links { display: flex; flex-direction: column; gap: 10px; }

.footer__col-link {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__col-link:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ─── 21. HIDDEN UTILITY ──────────────────────────────────────────────────── */
.js-hidden { display: none !important; }

/* ─── 22. RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav */
  .nav { padding: 0 20px; }
  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 2px solid var(--red);
  }
  .nav__menu.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .btn--nav { display: none; }

  /* Hero */
  .hero__title { font-size: clamp(2.8rem, 14vw, 5rem); }
  .countdown { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .countdown__num { min-width: 52px; font-size: 1.8rem; padding: 6px 8px; }

  /* Grids → single column */
  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  /* Route accordion — single column on mobile */
  .route__panel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }

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

  .vehicles__grid { grid-template-columns: 1fr; }
  .sponsors__grid { grid-template-columns: 1fr; }
  .program__days  { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery__grid { columns: 2; }

  /* Footer */
  .footer__columns { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 1; }
  .footer__columns { grid-template-columns: 1fr; }
  .hero__content { gap: 12px; padding: 32px 16px; }
}

@media (hover: none) {
  /* Disable parallax on touch devices */
  .hero__bg { background-attachment: scroll; }
}
