/* =============================================
   VINEYARD CLASSIC 5K — STYLESHEET
   Colors: Navy #162040 | Orange #e8531a | Gold #f5c520
           Cream #fdf6ee | Green #4a7a3a | Blue #3a7fa5
============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #fdf6ee;
  color: #162040;
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }

.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #3a3a3a;
  max-width: 680px;
  margin: 1rem auto 2rem;
  text-align: center;
  line-height: 1.75;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8531a;
  border: 1.5px solid #e8531a;
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.tag-light {
  color: #f5c520;
  border-color: #f5c520;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
  text-align: center;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: #e8531a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 1.5rem;
}
.btn-primary:hover { background: #c94213; transform: translateY(-2px); }
.btn-large { font-size: 1.1rem; padding: 1rem 2.8rem; }

.btn-donate {
  display: inline-block;
  background: transparent;
  color: #f5c520;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid #f5c520;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-top: 1.5rem;
}
.btn-donate:hover { background: #f5c520; color: #162040; transform: translateY(-2px); }
.btn-donate-navy {
  background: #162040;
  color: #fff;
  border-color: #162040;
}
.btn-donate-navy:hover { background: #0d1628; color: #fff; border-color: #0d1628; }

.hero-btn-group, .register-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22, 32, 64, 0.97);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: #e8dfc8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #f5c520; }
.nav-links .nav-cta {
  background: #e8531a;
  color: #fff;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: #c94213; color: #fff; }
.nav-donate {
  background: #f5c520;
  color: #162040 !important;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.2s;
}
.nav-donate:hover { background: #d4a800; color: #162040 !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #162040;
  padding: 1rem 1.5rem 1.5rem;
}
.nav-mobile a {
  color: #e8dfc8;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 68px;
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-location {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5c520;
  margin-bottom: 1.5rem;
}
.hero-logo {
  width: min(380px, 80vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
  margin-bottom: 2rem;
}
.hero-details {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.hero-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e8dfc8;
  font-size: 1rem;
  font-weight: 500;
}
.detail-icon { font-size: 1rem; }
.hero-detail-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
}
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
}
.hero-wave svg { display: block; width: 100%; height: 90px; }

/* ---- USATF BADGE ---- */
.usatf-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 2px solid #e8531a;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  margin: 0 auto 2rem;
  text-align: left;
  max-width: 520px;
  box-shadow: 0 2px 12px rgba(22,32,64,0.08);
}
.usatf-icon { font-size: 2rem; flex-shrink: 0; }
.usatf-badge strong { display: block; color: #162040; font-size: 1rem; margin-bottom: 0.2rem; }
.usatf-badge p { color: #555; font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* ---- ABOUT ---- */
#about { background: #fdf6ee; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 16px rgba(22,32,64,0.08);
  border-top: 4px solid #e8531a;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #162040;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-top: 0.4rem;
}

/* ---- COURSE ---- */
.section-course {
  background: linear-gradient(150deg, #162040 0%, #1e3a5a 60%, #12263d 100%);
}
.section-course h2.light, .section-course .lead.light {
  color: #e8dfc8;
}
.section-course .lead.light { color: rgba(232, 223, 200, 0.8); }

.course-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
  text-align: left;
}
.course-stops { display: flex; flex-direction: column; }
.stop {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.stop-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8531a;
  border: 3px solid #fff;
  flex-shrink: 0;
  margin-top: 4px;
}
.stop-dot.water { background: #3a7fa5; }
.stop-dot.finish { background: #f5c520; }
.stop-line {
  width: 2px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  margin-left: 7px;
}
.stop-body h3 { color: #f5c520; margin-bottom: 0.25rem; font-size: 1rem; }
.stop-body p { color: rgba(232,223,200,0.75); font-size: 0.9rem; line-height: 1.55; }

.course-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.1);
}
.course-map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- PERKS ---- */
#perks { background: #fdf6ee; }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.perk {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(22,32,64,0.07);
  transition: transform 0.2s;
}
.perk:hover { transform: translateY(-4px); }
.perk-icon {
  width: 64px;
  height: 64px;
  background: #162040;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.perk-icon i { font-size: 1.6rem; color: #f5c520; }
.perk h3 { color: #162040; margin-bottom: 0.5rem; }
.perk p { font-size: 0.9rem; color: #555; line-height: 1.6; }

/* ---- CHARITY ---- */
.section-charity {
  background: linear-gradient(135deg, #162040 0%, #1e3a5a 100%);
  padding: 80px 0;
}
.charity-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  text-align: left;
}
.charity-text .lead.light { text-align: left; margin: 1rem 0 0; color: #f5c520; }
.charity-text p.light { color: #f5c520; }
.section-charity h2.light { color: #f5c520; }
.charity-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.charity-heart { font-size: 5rem; }
.charity-badge p { color: #f5c520; font-size: 1rem; line-height: 1.5; font-weight: 500; }

/* ---- REGISTER ---- */
.section-register {
  background: #fdf6ee;
}
.register-layout { max-width: 700px; margin: 0 auto; }
.register-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0 0.5rem;
  text-align: left;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(22,32,64,0.08);
}
.reg-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.reg-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8531a;
}
.reg-val {
  font-size: 1rem;
  font-weight: 600;
  color: #162040;
}

/* ---- SPONSORS ---- */
.section-sponsors { background: #fff; }
.sponsors-coming-soon {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.coming-soon-badge {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #162040;
  background: #fdf6ee;
  border: 3px dashed #e8531a;
  border-radius: 16px;
  padding: 1.2rem 3rem;
  letter-spacing: 0.05em;
}
.sponsors-coming-soon p { color: #555; font-size: 0.95rem; }
.sponsor-link { color: #e8531a; font-weight: 600; text-decoration: none; }
.sponsor-link:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
footer {
  background: #0d1a35;
  padding: 50px 0 30px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.footer-logo { height: 80px; width: auto; opacity: 0.9; }
.footer-tagline { color: rgba(232,223,200,0.7); font-size: 0.9rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem 0;
}
.footer-links a {
  color: rgba(232,223,200,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #f5c520; }
.footer-email { color: #f5c520; font-size: 0.9rem; text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; margin-top: 0.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .charity-layout { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .charity-text .lead.light { text-align: center; }
  .charity-badge { flex-direction: row; justify-content: center; }
  .register-details { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .perks-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-details { flex-direction: column; gap: 0.6rem; }
  .hero-detail-divider { display: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 440px) {
  .perks-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
