/* ============================================================
   template-hero-section.css — Theron Travels v3.0
   Image-based hero slideshow (used on inner pages)
   Updated to match brand color system from header/footer v3.0
   ============================================================ */

/* ── HERO SLIDESHOW ── */
.hero-slideshow {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 120px 0 80px;
  overflow: hidden;
  min-height: 60vh;
  transition: all 2s ease-in-out;
}

.hero-bg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}
.hero-bg-layer-0 { opacity: 1; z-index: 1; }
.hero-bg-layer-1 { opacity: 0; z-index: 0; }

.hero-slideshow .container {
  position: relative;
  z-index: 10;
}

/* ── HEADLINE ── */
.hero-slideshow h1 {
  /* UPDATED: DM Sans matches site font stack */
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease-out;
}

/* UPDATED: underline accent now uses fire orange from logo */
.hero-slideshow h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #e8600a, #f5793a);
  border-radius: 2px;
  animation: slideIn 1.5s ease-out;
}

.hero-slideshow p {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* ── BOTTOM GLOW — kept orange, matches logo fire element ── */
.hero-glow {
  position: absolute;
  bottom: -50px; left: 0;
  width: 100%; height: 100px;
  background: radial-gradient(ellipse at center, rgba(232, 96, 10, 0.28) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── HERO BADGES ── */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-badges .badge {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 8px 20px;
  margin: 0 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  /* Default glass badge — works on any background */
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 25px;
}

.hero-badges .badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.28);
}

/* UPDATED badge colors — removed .badge-teal (was a mismatch #60a5fa),
   replaced with brand-relevant colors */
.badge-primary   { background-color: #0b1535 !important; }   /* Navy — logo base */
.badge-fire      { background-color: #e8600a !important; }   /* Fire orange — logo flame */
.badge-teal      { background-color: #2dd4bf !important; }   /* Teal — logo wave (renamed but kept) */
.badge-success   { background-color: #28a745 !important; }   /* Green — eco/nature */
.badge-info      { background-color: #0ea5e9 !important; }   /* Sky blue — general info */
.badge-secondary { background-color: #4b5563 !important; }   /* Neutral gray */

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

@keyframes slideIn {
  from { width: 0; }
  to   { width: 80px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-slideshow {
    padding: 80px 0 60px;
    background-attachment: scroll; /* fixed doesn't work on iOS */
    min-height: 50vh;
  }
  .hero-slideshow h1 { font-size: 2.2rem; }
  .hero-slideshow p  { font-size: 1rem; }
  .hero-badges .badge { font-size: 0.75rem; padding: 6px 15px; }
}

@media (max-width: 576px) {
  .hero-slideshow {
    padding: 60px 0 40px;
    min-height: 40vh;
  }
  .hero-slideshow h1 { font-size: 1.8rem; }
  .hero-slideshow p  { font-size: 0.9rem; }
  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .hero-badges .badge { font-size: 0.7rem; padding: 5px 12px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow h1,
  .hero-slideshow p,
  .hero-badges { animation: none; }
  .hero-bg-layer { transition: none; }
}