/* ============================================
   Aloha Beach Festival - Tropical Sunset Hero
   ============================================ */

/* --- Sunset Gradient Animation --- */
@keyframes sunsetDrift {
  0% { background-position: 30% 30%; }
  25% { background-position: 60% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 30% 30%; }
}

@keyframes sunPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Main Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: var(--space-3xl) var(--space-md);
  background: linear-gradient(
    135deg,
    #1A5276 0%,
    #2E86C1 10%,
    #48BFE3 20%,
    #85C1E9 30%,
    #F9E79F 40%,
    #F7DC6F 48%,
    #FFB703 55%,
    #FF8C00 62%,
    #FF6B35 70%,
    #E74C3C 78%,
    #C0392B 86%,
    #7B241C 94%,
    #1A5276 100%
  );
  background-size: 500% 500%;
  animation: sunsetDrift 30s ease-in-out infinite;
  overflow: hidden;
  will-change: background-position;
}



/* Contrast overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.hero--page::before {
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Staggered fade-in for hero elements */
.hero-content > * {
  animation: heroFadeIn 0.8s ease-out both;
}

.hero-content > *:nth-child(1) { animation-delay: 0s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5) { animation-delay: 0.6s; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 183, 3, 0.2);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
  }
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-location {
  font-size: var(--font-size-h4);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero buttons */
.hero .btn--primary,
.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--color-sky-orange);
  color: var(--color-sky-orange);
  text-shadow: none;
  box-shadow: none;
  animation: none;
}

.hero .btn--primary:hover,
.hero .btn--secondary:hover {
  background: var(--color-sky-orange);
  border-color: var(--color-sky-orange);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

/* --- Hero Banner Image --- */
.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.hero-banner {
  margin-bottom: 32px;
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-sunset-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 153, 204, 0.15);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

.hero-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 35px rgba(255, 183, 3, 0.35);
}

/* --- Per-Page Hero Colors --- */
/* About - Ocean teal tones */
.hero--about {
  background: linear-gradient(135deg, #004E58, #006D77, #48BFE3, #006D77);
  background-size: 300% 300%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Entertainment - Warm sunset/coral */
.hero--entertainment {
  background: linear-gradient(135deg, #E63946, #FF6B35, #FFB703, #FF6B35);
  background-size: 300% 300%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Vendors - Tropical green/teal */
.hero--vendors,
.hero--vendor-reg,
.hero--vendor-waiver {
  background: linear-gradient(135deg, #2D6A4F, #40916C, #48BFE3, #40916C);
  background-size: 300% 300%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Volunteer - Purple/magenta */
.hero--volunteer {
  background: linear-gradient(135deg, #7B4397, #B44D7E, #E63946, #B44D7E);
  background-size: 300% 300%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Sponsors - Gold/amber with teal accent for visible animation */
.hero--sponsors {
  background: linear-gradient(135deg, #FF8C00, #FFB703, #48BFE3, #FFD166, #FFB703);
  background-size: 400% 400%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Gallery - Deep blue/lagoon */
.hero--gallery {
  background: linear-gradient(135deg, #0A1628, #1B2838, #48BFE3, #1B2838);
  background-size: 300% 300%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Contact - Warm sand/coral */
.hero--contact {
  background: linear-gradient(135deg, #FF6B35, #FF8F6B, #FFB703, #FF8F6B);
  background-size: 300% 300%;
  animation: sunsetDrift 15s ease-in-out infinite;
}

/* Page-level hero (smaller) for inner pages */
.hero--page {
  min-height: auto;
  padding: var(--space-2xl) var(--space-md);
}

.hero--page .hero-title {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero--page {
    min-height: auto;
    padding: var(--space-2xl) var(--space-md);
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 70vh;
  }

  .hero--page {
    min-height: auto;
  }
}
