@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --green-dark: #1a3c2a;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --orange: #e76f51;
  --orange-dark: #c45a3c;
  --cream: #fefae0;
  --cream-dark: #f5f0d0;
  --text-dark: #1b1b1b;
  --text-mid: #3a3a3a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 60, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--green-light);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(26, 60, 42, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 170px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: 'Oswald', sans-serif;
  color: var(--green-pale);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(82, 183, 136, 0.2);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--green-light);
  border-radius: 1px;
}

.cta-btn {
  font-family: 'Oswald', sans-serif;
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  transition: all 0.25s ease !important;
  text-transform: uppercase;
  font-size: 0.85rem !important;
}

.cta-btn:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.4);
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

@media (max-width: 900px) {
  .burger { display: flex; }
  
  .main-nav {
    position: fixed;
    top: 170px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-bottom: 3px solid var(--green-light);
  }
  
  .main-nav.open {
    transform: translateY(0);
  }
  
  .main-nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 42, 0.85) 0%,
    rgba(45, 106, 79, 0.7) 50%,
    rgba(26, 60, 42, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(82, 183, 136, 0.25);
  border: 1px solid rgba(82, 183, 136, 0.5);
  color: var(--green-pale);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-light);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 30px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(231,111,81,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* ============ PAGE BANNER (inner pages) ============ */
.page-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 170px;
}

.page-banner .hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(26, 60, 42, 0.88) 0%,
    rgba(45, 106, 79, 0.75) 100%
  );
}

.page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

.page-banner h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--green-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 24px;
}

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

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

.section-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Alt bg */
.section-alt {
  background: var(--white);
}

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

.section-green .section-header h2 {
  color: var(--white);
}

.section-green .section-header p {
  color: rgba(255,255,255,0.8);
}

/* ============ EVENT DATES CARDS ============ */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.date-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.date-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-light);
}

.date-card:hover {
  border-color: var(--green-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.date-card .season {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.date-card .date {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 20px;
}

.date-card .btn-primary {
  font-size: 0.85rem;
  padding: 10px 24px;
  width: 100%;
  justify-content: center;
}

/* ============ FEATURES ROW ============ */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .features-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
  border-radius: 12px;
}

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

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ CONTENT BLOCK ============ */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--green-light);
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-mid);
  margin: 24px 0 10px;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text-mid);
}

.content-block strong {
  color: var(--text-dark);
}

.content-block ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-block li {
  margin-bottom: 8px;
  color: var(--text-mid);
}

/* Info cards */
.info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.info-card.highlight {
  border-left: 5px solid var(--orange);
}

.info-card.green-highlight {
  border-left: 5px solid var(--green-light);
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table th {
  background: var(--green-dark);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 20px;
  text-align: left;
}

.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--white);
}

.price-table tr:last-child td {
  border-bottom: none;
}

/* Course map image */
.course-map-img {
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin: 20px auto;
  display: block;
}

/* ============ CTA SECTION ============ */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(82,183,136,0.15) 0%, transparent 70%);
}

.cta-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 30px;
  position: relative;
}

.cta-section .btn-primary {
  position: relative;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #0f241a;
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about .logo-link {
  margin-bottom: 16px;
}

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

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

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--green-light);
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESULTS TABLE ============ */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.results-table th {
  background: var(--green-dark);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
}

.results-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--white);
  font-size: 0.92rem;
}

.results-table tr:nth-child(even) td {
  background: var(--cream);
}

.results-table tr:hover td {
  background: var(--green-pale);
}

/* ============ ABOUT SECTION ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ STAT COUNTERS ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Oswald', sans-serif;
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ COURSE MAP LEGEND ============ */
.course-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.course-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--green-light);
}

.course-info-card .distance {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}

.course-info-card .laps {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .course-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ PARTNERS ============ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.partner-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.partner-card h4 {
  font-family: 'Oswald', sans-serif;
  color: var(--green-light);
  font-weight: 500;
  margin-bottom: 6px;
}

.partner-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
