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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-x pan-y;
}

body {
  background: #000000;
  color: #e0e0e0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #FF4136;
  margin: 0.75rem auto 0;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

/* ===== STICKY HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  padding: 1rem 0;
}

.site-header.shrink {
  padding: 0.4rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.header-logo {
  height: 70px;
  width: auto;
  transition: height 0.4s ease;
}

.site-header.shrink .header-logo {
  height: 40px;
}

/* ===== HERO & COUNTDOWN ===== */
.hero-section {
  min-height: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
}

.hero-slogan {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: auto;
}

.countdown-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #666;
  margin-top: 0.4rem;
}

/* ===== EVENT DETAILS ===== */
.events-section {
  max-width: 1200px;
  margin: 0 auto;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.event-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
  border-color: #333;
  transform: translateY(-4px);
}

.event-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.event-icon svg {
  width: 100%;
  height: 100%;
}

.event-label {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-distance {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.event-info {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.event-destination {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.event-download {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.event-download:hover {
  background: #444;
  color: #ffffff;
}

.event-image {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

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

.event-image::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.event-image[data-sport="swim"] {
  background: linear-gradient(135deg, #001a33 0%, #0074D9 50%, #001a33 100%);
}

.event-image[data-sport="bike"] {
  background: linear-gradient(135deg, #1a0000 0%, #FF4136 50%, #1a0000 100%);
}

.event-image[data-sport="run"] {
  background: linear-gradient(135deg, #1a0d00 0%, #FF851B 50%, #1a0d00 100%);
}

/* ===== QUOTES CAROUSEL ===== */
.quotes-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.carousel-container {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track.dragging {
  transition: none;
}

.carousel-slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  box-sizing: border-box;
}

.quote-display {
  opacity: 1;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.quote-text {
  font-size: 1.3rem;
  font-style: italic;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.quote-text::before {
  content: '\201C';
  font-size: 3rem;
  color: #FF4136;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding: 0;
}

.carousel-arrow:hover {
  color: #fff;
  border-color: #666;
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #FF4136;
}

/* ===== INFO BLOCK ===== */
.info-section {
  max-width: 1200px;
  margin: 0 auto;
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #ddd;
}

.info-content p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== VIDEO GALLERY ===== */
.videos-section {
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.video-item {
  width: 100%;
}

.video-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #bbb;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumbnail {
  cursor: pointer;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-thumbnail:hover .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== FACEBOOK EVENT CTA ===== */
.join-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 50vh;
}

.join-date {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 1rem;
}

.join-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: #1877F2;
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.join-btn:hover {
  background: #1464d1;
  transform: translateY(-2px);
}

/* ===== SCROLL NAVIGATOR ===== */
.scroll-nav {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: block;
}

.scroll-nav-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.scroll-nav-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-50%);
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  margin: 8px 0;
}

.nav-dot:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.4);
}

.nav-dot.active {
  background: #FF4136;
  border-color: #FF4136;
  box-shadow: 0 0 10px rgba(255, 65, 54, 0.4);
}

.nav-dot-label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ccc;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
  pointer-events: none;
  cursor: pointer;
}

.nav-dot.active .nav-dot-label {
  color: #FF4136;
  animation: labelFlash 1.5s ease forwards;
}

@keyframes labelFlash {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}


/* ===== RESPONSIVE - TABLET ===== */
@media (min-width: 600px) {
  .scroll-nav {
    right: 1.5rem;
  }

  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
  }

  .countdown {
    gap: 1.5rem;
  }

  .countdown-number {
    font-size: 4rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 1.2rem;
  }

  .countdown {
    gap: 3rem;
  }

  .countdown-number {
    font-size: 6rem;
  }

  .section {
    padding: 6rem 2rem;
  }

  .countdown-number {
    font-size: 6rem;
  }

  .countdown {
    gap: 3rem;
  }

  .quote-text {
    font-size: 1.5rem;
  }

  .nav-dot-label {
    opacity: 1;
    pointer-events: auto;
    animation: none;
  }

  .nav-dot.active .nav-dot-label {
    color: #FF4136;
    animation: none;
  }
}
