/* =========================================
   ATAL RUN 2.0 — Marathon Website Styles
   ========================================= */

/* ---------- Reset & Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --orange: #e94d1a;
  --orange-dark: #c23d12;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --light-grey: #eeeeee;
  --mid-grey: #999999;
  --dark-grey: #444444;
  --text: #333333;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

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


/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.header-logo span em {
  font-style: normal;
  color: var(--orange);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-grey);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.2s;
  margin-left: 16px;
  white-space: nowrap;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--orange-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Hero Carousel ---------- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26,26,46,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  color: var(--white);
  max-width: 700px;
}

.hero-content .hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-content .btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.hero-content .btn:hover {
  background: var(--orange-dark);
}

/* Carousel Controls */
.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active {
  background: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}


/* ---------- Section Styles ---------- */
.section {
  padding: 80px 0;
}

.section--grey {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header .underline {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 16px;
}

.section-header p {
  color: var(--mid-grey);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}


/* ---------- About Snippet (Homepage) ---------- */
.about-snippet {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-snippet-img {
  flex: 0 0 380px;
  border-radius: 6px;
  overflow: hidden;
}

.about-snippet-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.about-snippet-text h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.about-snippet-text p {
  margin-bottom: 14px;
  color: var(--dark-grey);
}

.about-snippet-text .link-arrow {
  color: var(--orange);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.about-snippet-text .link-arrow:hover {
  gap: 10px;
}


/* ---------- Video Section ---------- */
.video-section {
  padding: 80px 0 0;
  background: var(--navy);
  text-align: center;
}

.video-section h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 2rem;
}

.video-section .underline {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 32px;
}

.video-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  height: 700px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}


/* ---------- Race Categories ---------- */
.race-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.race-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  width: 360px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.race-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.race-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 28px 24px;
  text-align: center;
}

.race-card-header h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.race-card-header .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  font-family: var(--font-heading);
  display: block;
  margin-top: 8px;
}

.race-card-body {
  padding: 24px;
}

.race-card-body ul {
  margin-bottom: 24px;
}

.race-card-body ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.95rem;
  color: var(--dark-grey);
  display: flex;
  align-items: center;
  gap: 8px;
}

.race-card-body ul li:last-child {
  border-bottom: none;
}

.race-card-body ul li .check {
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
}

.race-card-body .btn {
  display: block;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: background 0.2s;
}

.race-card-body .btn:hover {
  background: var(--orange-dark);
}

.race-card.featured {
  border: 2px solid var(--orange);
}

.race-card.featured .race-card-header {
  background: var(--orange);
}


/* ---------- Highlights / Why Run ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  transition: transform 0.2s;
}

.highlight-item:hover {
  transform: translateY(-3px);
}

.highlight-item .highlight-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.highlight-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.highlight-item p {
  font-size: 0.85rem;
  color: var(--mid-grey);
}


/* ---------- Countdown ---------- */
.countdown-section {
  padding: 64px 0;
  background: var(--orange);
  color: var(--white);
  text-align: center;
}

.countdown-section h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 32px;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(0,0,0,0.15);
  padding: 20px 28px;
  border-radius: 6px;
  min-width: 100px;
  text-align: center;
}

.countdown-box .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.countdown-box .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  opacity: 0.85;
}


/* ---------- Sponsors Bar ---------- */
.sponsors-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.sponsors-bar img {
  height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.sponsors-bar img:hover {
  filter: grayscale(0);
  opacity: 1;
}


/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-about .footer-logo img {
  height: 40px;
}

.footer-about .footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item strong {
  color: var(--white);
  min-width: 55px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}


/* ---------- Page Banner (inner pages) ---------- */
.page-banner {
  margin-top: var(--header-height);
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.page-banner p {
  opacity: 0.7;
  font-size: 1rem;
}

.breadcrumb {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: underline;
}


/* ---------- About Page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--dark-grey);
  line-height: 1.75;
}

.about-img img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.about-mission {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.mission-card {
  background: var(--white);
  padding: 28px;
  border-radius: 6px;
  border: 1px solid var(--light-grey);
  text-align: center;
}

.mission-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--mid-grey);
}


/* ---------- Registration Form ---------- */
.register-form-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 40px;
}

.form-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.form-steps-indicator::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--light-grey);
  z-index: 0;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--mid-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
  transition: background 0.3s, color 0.3s;
}

.step-dot.active {
  background: var(--orange);
  color: var(--white);
}

.step-dot.completed {
  background: var(--navy);
  color: var(--white);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-grey);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option label {
  display: block;
  border: 2px solid var(--light-grey);
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option input:checked + label {
  border-color: var(--orange);
  background: #fff5f2;
}

.radio-option label .race-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.radio-option label .race-price {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--orange);
  font-family: var(--font-heading);
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.size-option {
  position: relative;
}

.size-option input {
  position: absolute;
  opacity: 0;
}

.size-option label {
  display: block;
  width: 52px;
  height: 52px;
  border: 2px solid var(--light-grey);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-grey);
  transition: border-color 0.2s, background 0.2s;
}

.size-option input:checked + label {
  border-color: var(--orange);
  background: #fff5f2;
  color: var(--orange);
}

.consent-box {
  background: var(--off-white);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--light-grey);
}

.consent-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--light-grey);
}

.btn-prev,
.btn-next,
.btn-submit {
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-prev {
  background: var(--light-grey);
  color: var(--dark-grey);
}

.btn-prev:hover {
  background: #ddd;
}

.btn-next,
.btn-submit {
  background: var(--orange);
  color: var(--white);
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--orange-dark);
}


/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(1) img {
  height: 100%;
  min-height: 100%;
}


/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--off-white);
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: var(--dark-grey);
  font-size: 0.95rem;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form .btn-submit {
  width: 100%;
  padding: 14px;
}

.map-embed {
  margin-top: 32px;
  border-radius: 6px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 500px;
  border: 0;
}


/* ---------- Sponsors Page ---------- */
.sponsor-tier {
  margin-bottom: 48px;
}

.sponsor-tier h3 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-grey);
}

.sponsor-tier h3 span {
  background: var(--orange);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-left: 8px;
  vertical-align: middle;
}

.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sponsor-logo-box {
  width: 180px;
  height: 120px;
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--white);
  transition: box-shadow 0.2s;
}

.sponsor-logo-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sponsor-logo-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sponsor-cta {
  text-align: center;
  padding: 48px;
  background: var(--off-white);
  border-radius: 8px;
  margin-top: 24px;
}

.sponsor-cta h3 {
  border: none;
  margin-bottom: 12px;
}

.sponsor-cta p {
  color: var(--mid-grey);
  margin-bottom: 24px;
}

.sponsor-cta .btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: background 0.2s;
}

.sponsor-cta .btn:hover {
  background: var(--orange-dark);
}


/* ---------- Route Map ---------- */
.route-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.route-card {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  overflow: hidden;
}

.route-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
}

.route-card-header h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.route-card-body {
  padding: 24px;
}

.route-card-body p {
  margin-bottom: 12px;
  color: var(--dark-grey);
  line-height: 1.7;
}

.route-card-body ul {
  list-style: disc;
  padding-left: 20px;
}

.route-card-body ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--dark-grey);
}


/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question {
  background: var(--off-white);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--dark-grey);
  line-height: 1.7;
}


/* ---------- Buttons (generic) ---------- */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}


/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid,
  .contact-grid,
  .route-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--light-grey);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-grey);
    width: 100%;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: 420px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section {
    padding: 60px 0;
  }

  .about-snippet {
    flex-direction: column;
  }

  .about-snippet-img {
    flex: auto;
    width: 100%;
  }

  .race-cards {
    flex-direction: column;
    align-items: center;
  }

  .race-card {
    width: 100%;
    max-width: 400px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item img,
  .gallery-item:nth-child(1) img {
    height: 200px;
  }

  .video-wrapper {
    height: 300px;
  }

  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .register-form-container {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .countdown-boxes {
    gap: 12px;
  }

  .countdown-box {
    padding: 16px 20px;
    min-width: 70px;
  }

  .countdown-box .number {
    font-size: 1.8rem;
  }

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

  .sponsors-bar {
    gap: 24px;
  }

  .sponsors-bar img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 360px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-mission {
    grid-template-columns: 1fr;
  }

  .sponsor-logos {
    gap: 20px;
  }

  .sponsor-logo-box {
    width: 140px;
    height: 90px;
  }
}
