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

:root {
  --primary: #C8102E;
  --primary-dark: #9B0C24;
  --secondary: #0D1B2A;
  --accent: #F4A261;
  --gold: #D4A017;
  --white: #FFFFFF;
  --light: #F5F5F5;
  --gray: #6C757D;
  --dark-bg: #0A0E17;
  --card-bg: #111827;
  --border: rgba(255,255,255,0.08);
  --font-main: 'Montserrat', sans-serif;
  --font-display: 'Oswald', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--dark-bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 20px rgba(200, 16, 46, 0.2);
  border-bottom: 1px solid rgba(200, 16, 46, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(200,16,46,0.4));
  transition: filter 0.3s;
}
.nav-logo:hover .nav-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(200,16,46,0.7));
}

.nav-logo .logo-text { line-height: 1.1; }
.nav-logo .logo-text .logo-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
}
.nav-logo .logo-text .logo-sub {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-links a:hover { color: white; background: rgba(200,16,46,0.15); }

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 25px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(200,16,46,0.4);
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.5) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,16,46,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(244,162,97,0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0A0E17 0%, #0D1B2A 50%, #0A0E17 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(200,16,46,0.03) 60px,
      rgba(200,16,46,0.03) 61px
    );
  z-index: 0;
}

.hero-track-lines {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8%,
    rgba(255,255,255,0.03) 8%,
    rgba(255,255,255,0.03) 10%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero logo */
.hero-logo-wrap {
  margin-bottom: 1.5rem;
  animation: heroLogoIn 1s ease 0.2s both;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.7) rotate(-5deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.hero-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(200,16,46,0.5)) drop-shadow(0 0 55px rgba(200,16,46,0.2));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.4);
  border-radius: 30px;
  padding: 0.4rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.3);} }

.hero-edition {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hero-title .highlight {
  color: var(--primary);
  display: block;
  text-shadow: 0 0 40px rgba(200,16,46,0.5);
}

.hero-title .location {
  font-size: 0.55em;
  color: rgba(255,255,255,0.7);
  letter-spacing: 4px;
  font-weight: 300;
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.hero-date-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.hero-date-item .icon { color: var(--primary); font-size: 1rem; }

.hero-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 25px rgba(200,16,46,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,16,46,0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ===== COUNTDOWN ===== */
.countdown-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 50px,
    rgba(255,255,255,0.05) 50px, rgba(255,255,255,0.05) 51px
  );
}

.countdown-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.countdown-unit {
  text-align: center;
  min-width: 70px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  display: block;
}

.countdown-word {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 0.25rem;
  display: block;
}

.countdown-colon {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.countdown-cta a {
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.2s;
  white-space: nowrap;
}
.countdown-cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ===== SECTIONS COMMON ===== */
section { padding: 5rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.3);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title .accent { color: var(--primary); }

.section-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--dark-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-main-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #1a2235 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-number-display {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(200,16,46,0.08);
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  line-height: 1;
  user-select: none;
}

.about-card-year {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.about-card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-card-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

.about-float-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--primary);
  color: white;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 20px rgba(200,16,46,0.5);
  z-index: 2;
}
.about-float-badge .num { font-size: 1.4rem; line-height: 1; }

.about-content {}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.about-text h3 span { color: var(--primary); }

.about-text p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.feature-item:hover { border-color: rgba(200,16,46,0.4); }

.feature-icon {
  width: 40px; height: 40px;
  background: rgba(200,16,46,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.feature-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ===== RACE INFO / DETAILS ===== */
.details-section {
  background: linear-gradient(180deg, #0D1018 0%, #0A0E17 100%);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.detail-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.detail-card:hover { transform: translateY(-5px); border-color: rgba(200,16,46,0.3); }
.detail-card:hover::after { transform: scaleX(1); }

.detail-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.3rem;
}

/* Categories */
.categories-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.categories-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-item {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.category-item:hover {
  background: rgba(200,16,46,0.08);
  border-color: rgba(200,16,46,0.3);
}
.cat-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.cat-age {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== REGISTRATION SECTION ===== */
.registration-section {
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.registration-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.reg-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.reg-info h3 span { color: var(--primary); }

.reg-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.reg-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-num {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.step-text strong { color: white; display: block; font-size: 0.9rem; }

.reg-card {
  background: linear-gradient(135deg, #141b2d 0%, #1a2235 100%);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.reg-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.reg-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.reg-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.reg-card .price-block {
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.price-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
}

.btn-register {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #E8253C 100%);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 25px rgba(200,16,46,0.4);
  text-align: center;
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(200,16,46,0.55);
}

.reg-card-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* ===== DOCUMENTS SECTION ===== */
.documents-section {
  background: linear-gradient(180deg, #0D1018 0%, #0A0E17 100%);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.doc-card:hover {
  border-color: rgba(200,16,46,0.4);
  transform: translateY(-3px);
  background: #131927;
}

.doc-icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.doc-icon.pdf { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.doc-icon.doc { background: rgba(13, 110, 253, 0.15); color: #0d6efd; }
.doc-icon.img { background: rgba(25, 135, 84, 0.15); color: #198754; }
.doc-icon.link { background: rgba(255, 193, 7, 0.15); color: #ffc107; }

.doc-info { flex: 1; min-width: 0; }

.doc-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.doc-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 1rem;
  transition: all 0.2s;
}
.doc-card:hover .doc-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.docs-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(200,16,46,0.05);
  border: 1px solid rgba(200,16,46,0.15);
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===== ROUTE SECTION ===== */
.route-section { background: var(--dark-bg); }

.route-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.route-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.route-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.route-badges {
  display: flex;
  gap: 0.75rem;
}

.route-badge {
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rb-distance { background: rgba(200,16,46,0.15); color: #ff6b7a; border: 1px solid rgba(200,16,46,0.3); }
.rb-type { background: rgba(244,162,97,0.15); color: var(--accent); border: 1px solid rgba(244,162,97,0.3); }

.map-placeholder {
  height: 350px;
}

.route-highlights {
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border);
}

.route-highlight { text-align: center; }
.rh-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.rh-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

/* ===== ORGANIZERS ===== */
.organizers-section {
  background: linear-gradient(180deg, #0D1018 0%, #0A0E17 100%);
}

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.org-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.org-card:hover {
  border-color: rgba(200,16,46,0.3);
  transform: translateY(-4px);
}

.org-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(200,16,46,0.1);
  border: 2px solid rgba(200,16,46,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
}

.org-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.org-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.org-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #9B0C24 60%, #6B0618 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: 'SÃO SILVESTRE';
  position: absolute;
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}
.cta-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* ===== COUNTDOWN PHOTO BG ===== */
.cd-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cd-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.12;
  mix-blend-mode: overlay;
}
.countdown-section { position: relative; }
.countdown-inner { position: relative; z-index: 1; }

/* ===== SECTION PHOTO BG (details, etc) ===== */
.section-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.section-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.07;
}
.details-section { position: relative; }
.details-section .container { position: relative; z-index: 1; }

/* ===== REGISTRATION SIDE PHOTO ===== */
.reg-grid {
  grid-template-columns: 1fr 1fr 1fr;
}
.reg-side-photo {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 500px;
  order: -1;
}
.reg-side-photo .slot-img { border-radius: 20px; }
.reg-side-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top,
    rgba(10,14,23,0.92) 0%,
    rgba(10,14,23,0.4) 50%,
    transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
}
.reg-side-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: 0.5rem;
}
.reg-side-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

/* ===== CTA PHOTO BG ===== */
.cta-banner { position: relative; overflow: hidden; }
.cta-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 1;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(150,8,20,0.88) 0%,
    rgba(100,4,12,0.82) 100%);
  z-index: 1;
}
.cta-banner::before { display: none; }
.cta-content { position: relative; z-index: 2; }

/* ===== ORGANIZERS PHOTO STRIP ===== */
.org-photo-strip {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin-bottom: 0;
}
.org-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.org-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(13,16,24,0.3) 0%,
    rgba(13,16,24,0.75) 100%);
}
.org-strip-label {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10,14,23,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .reg-side-photo { display: none; }
}

/* ===== IMAGE SLOTS ===== */
.img-slot {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background-color: #0d1018;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1.5px dashed rgba(255,255,255,0.12);
}

.img-slot > img.slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.5s ease, opacity 0.3s;
}

.img-slot > img.slot-img:hover { transform: scale(1.03); }

.img-ph {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem;
  text-align: center;
  pointer-events: none;
}

.img-ph-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.13);
  margin-bottom: 0.25rem;
}

.img-ph-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.img-ph-hint {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero background photo */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,14,23,0.5) 0%,
    rgba(10,14,23,0.3) 50%,
    rgba(10,14,23,0.7) 100%);
  z-index: 1;
}

/* About photo */
.about-photo-wrap {
  position: relative;
}
.about-photo {
  height: 480px;
  border-radius: 16px;
}
.about-photo-stats {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(10,14,23,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-around;
  z-index: 5;
}
.about-photo-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(200,16,46,0.4);
}


/* Route map photo */
.route-photo {
  height: 350px;
  border-radius: 0;
}
.route-photo > img.slot-img { border-radius: 0; }

/* Registration side photo */
.reg-photo-wrap {
  position: relative;
  display: none; /* shown only on wider layouts */
}
.reg-photo {
  height: 100%;
  min-height: 400px;
  border-radius: 16px;
}


@media (max-width: 768px) {
  .about-photo { height: 320px; }
  .org-photo-strip { height: 160px; }
}

/* ===== FOOTER ===== */
.footer {
  background: #06080F;
  padding: 3rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(200,16,46,0.35));
  opacity: 0.85;
}

.footer-logo .logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 280px;
}

.footer-nav h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-nav ul li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: white; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

.footer-powered {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-powered .heart { color: var(--primary); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(200,16,46,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
  border: none;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #0A0E17;
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s;
    z-index: 999;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .nav-links a { width: 100%; font-size: 0.9rem; }
  .nav-hamburger { display: flex; z-index: 1000; }

  .about-grid,
  .reg-grid { grid-template-columns: 1fr; gap: 2rem; }

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

  .route-highlights { grid-template-columns: repeat(2, 1fr); }

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

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

  .countdown-inner { justify-content: center; text-align: center; }

  .hero-date-row { flex-direction: column; gap: 0.5rem; }
  .hero-sep { display: none; }
}

@media (max-width: 480px) {
  .details-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .countdown-timer { gap: 0.75rem; }
  .countdown-unit { min-width: 55px; }
}
