@import url("https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --accent-orange: #f59e0b;
  --accent-orange-dark: #d97706;
  --soft-green: #10b981;
  --soft-purple: #8b5cf6;
  --coral: #f87171;
  --bright-yellow: #fbbf24;
  --sky-blue: #38bdf8;
  
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --light-text: #9ca3af;
  --dark-text: #1f2937;
  --background: #defff8;
  --background-alt: #f8fafc;
  --background-soft: #f1f5f9;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --big-radius: 24px;

  --orange-pop: #fb923c;
  --grass-green: #22c55e;
  --pink-candy: pink;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Arvo", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin: 0.5em 0;
}

h2 {
  color: var(--primary-blue);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 1em 0 0.5em;
}

h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
}

/* Header */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--background-soft);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 50px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: var(--background-soft);
  color: var(--primary-blue);
}

.nav-links a[aria-current="page"] {
  background: var(--primary-blue);
  color: var(--background);
}

.nav-toggle {
  display: none;
}

/* Buttons with bubble animation */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--background);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--background);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* Hero section */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 1rem;
}

.hero-quote {
  font-size: 1.2rem;
  color: var(--accent-orange);
  font-style: italic;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius);
}

.btn-2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Slideshow - fixed size with fade */
.slideshow {
  width: 500px;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-nav:hover {
  background: var(--primary-blue);
  color: var(--background);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

.slideshow-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section:nth-child(even) {
  background: var(--background-alt);
}

/* Cards with hover animation */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: pink;
  color: var(--text-dark);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--background-soft);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-top: 0;
  color: var(--text-dark);
}

/* Waiver step screenshots */
.waiver-step-image {
  display: block;
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
  max-height: min(56vh, 420px);
  object-fit: contain;
  margin-top: 0.9rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  border: 1px solid var(--background-soft);
  background: var(--background-alt);
  box-shadow: var(--shadow-sm);
}

.waiver-steps .card {
  display: grid;
  grid-template-columns: minmax(260px, 44ch) minmax(260px, 1fr);
  gap: 0.9rem 1.2rem;
  align-items: start;
  justify-content: space-between;
}

.waiver-steps .card h3 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.waiver-steps .card > p {
  grid-column: 1;
  margin: 0;
  max-width: 44ch;
}

.waiver-steps .card .waiver-step-image {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 460px;
  max-height: 260px;
  margin: 0;
  justify-self: end;
}

@media (max-width: 768px) {
  .waiver-step-image {
    max-height: 320px;
  }

  .waiver-steps .card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .waiver-steps .card > p,
  .waiver-steps .card .waiver-step-image {
    grid-column: 1;
    grid-row: auto;
  }

  .waiver-steps .card .waiver-step-image {
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    margin-top: 0.2rem;
  }
}

/* Stats - Enhanced visual layout */
.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

.stat {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--background), var(--background-alt));
  border: 2px solid transparent;
  border-radius: var(--big-radius);
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--soft-green), var(--accent-orange), var(--soft-purple));
  opacity: 0;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.4s ease;
}

.stat:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.stat:hover::before {
  opacity: 0.05;
}

.stat:nth-child(1) .stat-number {
  background: linear-gradient(135deg, var(--primary-blue), var(--soft-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat:nth-child(2) .stat-number {
  background: linear-gradient(135deg, var(--soft-green), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat:nth-child(3) .stat-number {
  background: linear-gradient(135deg, var(--accent-orange), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat:nth-child(4) .stat-number {
  background: linear-gradient(135deg, var(--soft-purple), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent-orange);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
  color: var(--text-medium);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.save-date-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

/* Notice/callout boxes */
.notice {
  background: pink;
  color: var(--text-dark);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.notice h3 {
  color: var(--text-dark);
  margin-top: 0;
}

/* FAQ */
.faq-item {
  background: var(--background);
  border: 1px solid var(--background-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.faq-toggle:hover {
  background: var(--background-soft);
}

.faq-panel {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-medium);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--background-soft);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer h3 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

/* Fun grid cards (used on home, sponsors, volunteering) */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.fun-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--background-soft);
  transition: all 0.3s ease;
}

.fun-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.fun-card h3 {
  margin-top: 0;
  color: var(--primary-blue);
}

/* Wiggle animation for headings */
.wiggle {
  display: inline-block;
  transition: transform 0.2s ease;
}

.wiggle:hover {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Stats row (sponsors page) */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-bubble {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, var(--background), var(--background-alt));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 160px;
}

.stat-bubble .stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--primary-blue);
  display: block;
  line-height: 1.1;
}

.stat-bubble .stat-label {
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Nav hamburger — kicks in before links start wrapping */
@media (max-width: 1024px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s;
    margin-left: auto;
  }

  .nav-toggle:hover {
    background: var(--background-soft);
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

  .nav-wrap.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

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

  .nav-links,
  .nav-wrap > .btn {
    display: none;
  }

  .nav-wrap.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
  }

  .nav-wrap.nav-open > .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .slideshow {
    width: 100%;
    max-width: 400px;
    height: 280px;
  }

  .save-date-grid {
    grid-template-columns: 1fr;
  }

  .save-date-grid img {
    max-width: min(320px, 100%);
    height: auto;
    margin: 0 auto;
    display: block;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat {
    min-width: 140px;
    padding: 1.5rem 1rem;
  }
}

/* ================================================
   Nav Dropdowns
   ================================================ */

.nav-group {
  position: relative;
}

.nav-group > a {
  white-space: nowrap;
}

.nav-group > a::after {
  content: ' \25BE';
  font-size: 0.75em;
  vertical-align: middle;
  opacity: 0.65;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--background);
  border: 1px solid var(--background-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 215px;
  z-index: 200;
  padding: 6px 0 0.25rem;
  flex-direction: column;
  overflow: hidden;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  border-radius: 0;
  font-size: 0.9rem;
}

.nav-dropdown a:hover {
  background: var(--background-soft);
  color: var(--primary-blue);
}

.nav-dropdown a[aria-current="page"] {
  color: var(--primary-blue);
  font-weight: 700;
  background: transparent;
}

/* Team member portrait photos */
.team-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 1024px) {
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--background-alt);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    margin-left: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .nav-dropdown a {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    white-space: normal;
  }
}
