/* ============================================================
   JUNGAL SAFARI — BEM CLASS NAME FIXES
   Maps front-page.php BEM class names to correct styles
   ============================================================ */

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--jungle-dark, #0d2818);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,15,12,0.2) 0%,
    rgba(13,40,24,0.55) 40%,
    rgba(7,15,12,0.85) 100%
  );
}

.hero-section__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-section__leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-leaf {
  position: absolute;
  animation: leafFall 10s linear infinite;
  opacity: 0.7;
  user-select: none;
}
.hero-leaf--1  { left:  5%; animation-delay:  0s;   animation-duration: 12s; font-size: 1.4rem; }
.hero-leaf--2  { left: 15%; animation-delay:  2s;   animation-duration:  9s; font-size: 1.1rem; }
.hero-leaf--3  { left: 30%; animation-delay:  4s;   animation-duration: 14s; font-size: 1.6rem; }
.hero-leaf--4  { left: 50%; animation-delay:  1s;   animation-duration: 11s; font-size: 1.2rem; }
.hero-leaf--5  { left: 65%; animation-delay:  6s;   animation-duration: 10s; font-size: 1.5rem; }
.hero-leaf--6  { left: 75%; animation-delay:  3s;   animation-duration: 13s; font-size: 1.3rem; }
.hero-leaf--7  { left: 85%; animation-delay:  7s;   animation-duration:  8s; font-size: 1.1rem; }
.hero-leaf--8  { left: 95%; animation-delay:  5s;   animation-duration: 15s; font-size: 1.4rem; }

@keyframes leafFall {
  0%   { top: -5%;  opacity: 0.8; transform: translateX(0) rotate(0deg); }
  50%  { opacity: 0.6; transform: translateX(30px) rotate(180deg); }
  100% { top: 105%; opacity: 0;   transform: translateX(-20px) rotate(360deg); }
}

.hero-section__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-32, 8rem) var(--space-6, 1.5rem) var(--space-20, 5rem);
  width: 100%;
}

.hero-section__text {
  max-width: 900px;
  margin: 0 auto;
}

.hero-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent, 'Oswald', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 999px;
  background: rgba(212,175,55,0.08);
  animation: fadeIn 1s ease 0.3s both;
}

.hero-section__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: slideUp 1s ease 0.5s both;
}

.hero-section__title-accent {
  color: var(--gold, #d4af37);
}

.hero-section__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(245,240,232,0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: slideUp 1s ease 0.7s both;
}

.hero-section__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: slideUp 1s ease 0.9s both;
}

.hero-section__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,240,232,0.7);
  font-family: var(--font-accent, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 10;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-section__scroll-text { margin-bottom: 4px; }

.hero-section__scroll-mouse {
  width: 22px;
  height: 35px;
  border: 2px solid rgba(245,240,232,0.6);
  border-radius: 11px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.hero-section__scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(245,240,232,0.8);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(7px); opacity: 0.3; }
}

.hero-section__peeking {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.peeking-animal {
  display: inline-block;
  animation: peekBounce 4s ease-in-out infinite;
  padding: 0 2rem;
}

.peeking-animal--right { animation-delay: 2s; }

@keyframes peekBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── BUTTON FIXES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-family: var(--font-accent, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

.btn--gold {
  background: var(--gold, #d4af37);
  color: #0d2818;
  border-color: var(--gold, #d4af37);
}
.btn--gold:hover { background: #c9a832; border-color: #c9a832; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.35); }

.btn--jungle {
  background: var(--jungle-dark, #0d2818);
  color: #ffffff;
  border-color: var(--jungle-dark, #0d2818);
}
.btn--jungle:hover { background: #163320; border-color: #163320; transform: translateY(-2px); }

.btn--outline-gold {
  background: transparent;
  color: var(--gold, #d4af37);
  border-color: var(--gold, #d4af37);
}
.btn--outline-gold:hover { background: rgba(212,175,55,0.12); transform: translateY(-2px); }

/* ── NAV / HEADER FIXES ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled,
.site-header--solid {
  background: rgba(13,40,24,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.site-nav__item { position: relative; }

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.9rem;
  color: rgba(245,240,232,0.9);
  text-decoration: none;
  font-family: var(--font-accent, sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--gold, #d4af37);
  background: rgba(212,175,55,0.1);
}

/* Hide mega menu by default, show on hover */
.mega-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: rgba(13,40,24,0.97);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-nav__item:hover .mega-menu,
.site-nav__item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── SECTION DEFAULTS ── */
.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--jungle-dark, #0d2818);
  color: #ffffff;
}

.section--cream {
  background: var(--cream, #f5f0e8);
}

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

.section-header { margin-bottom: 3rem; }
.section-header--centered { text-align: center; }

.section-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--jungle-dark, #0d2818);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-title--light { color: #ffffff; }
.section-title--centered { text-align: center; }
.section-title--gold { color: var(--gold, #d4af37); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted, #666);
  max-width: 600px;
}

.section--dark .section-subtitle { color: rgba(245,240,232,0.7); }

/* ── ANIMAL CAROUSEL ── */
.animals-carousel-section {
  background: var(--jungle-dark, #0d2818);
  overflow: hidden;
}

.animals-carousel {
  position: relative;
  overflow: hidden;
}

.animals-carousel__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.animal-carousel-card {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(212,175,55,0.4);
}

.animal-carousel-card__image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.animal-carousel-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.animal-carousel-card:hover .animal-carousel-card__image {
  transform: scale(1.08);
}

.animal-carousel-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(13,40,24,0.8), rgba(22,51,32,0.8));
}

.animal-carousel-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.animal-carousel-card__body {
  padding: 1.2rem;
}

.animal-carousel-card__family {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  margin-bottom: 0.4rem;
}

.animal-carousel-card__name {
  font-family: var(--font-display, serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.animal-carousel-card__stats {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.65);
  margin-bottom: 1rem;
}

.animals-carousel__prev,
.animals-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: var(--gold, #d4af37);
  color: var(--jungle-dark, #0d2818);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.animals-carousel__prev { left: 1rem; }
.animals-carousel__next { right: 1rem; }
.animals-carousel__prev:hover,
.animals-carousel__next:hover { transform: translateY(-50%) scale(1.1); }

/* ── BABY ANIMALS GRID ── */
.baby-animals-section { background: var(--cream, #f5f0e8); }

.baby-animals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.baby-animal-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  background: rgba(13,40,24,0.1);
  text-decoration: none;
}

.baby-animal-tile--wide { grid-column: span 2; }
.baby-animal-tile--tall { grid-row: span 2; }

.baby-animal-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.baby-animal-tile:hover .baby-animal-tile__image { transform: scale(1.06); }

.baby-animal-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.baby-animal-tile:hover .baby-animal-tile__overlay { opacity: 1; }

.baby-animal-tile__name {
  color: #fff;
  font-family: var(--font-display, serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.baby-animal-tile__parent {
  color: var(--gold, #d4af37);
  font-size: 0.78rem;
}

/* ── CONSERVATION SECTION ── */
.conservation-section {
  position: relative;
  overflow: hidden;
}

.conservation-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d2818 0%, #1a4a2e 100%);
}

.conservation-section__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.conservation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.conservation-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.conservation-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }

.conservation-card__image-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.conservation-card__image { width: 100%; height: 100%; object-fit: cover; }

.conservation-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}

.conservation-card__image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.conservation-card__body { padding: 1rem; }

.conservation-card__name {
  font-family: var(--font-display, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.conservation-card__scientific {
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.5);
  margin-bottom: 0.6rem;
}

.conservation-card__population {
  font-size: 0.82rem;
  color: var(--gold, #d4af37);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.conservation-card__threats {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.6);
  margin-bottom: 0.8rem;
}

.conservation-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.conservation-card__trend--decreasing { background: rgba(220,53,69,0.2); color: #ff6b6b; }
.conservation-card__trend--stable     { background: rgba(255,193,7,0.2);  color: #ffc107; }
.conservation-card__trend--increasing { background: rgba(40,167,69,0.2);  color: #5adb5a; }

.conservation-card__actions { padding: 0 1rem 1rem; }

/* Badge */
.badge-conservation {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.badge-conservation--cr { background: #8B0000; }
.badge-conservation--en { background: #c44c00; }
.badge-conservation--vu { background: #b8860b; }
.badge-conservation--nt { background: #4a7c4e; }
.badge-conservation--lc { background: #2e8b57; }

/* ── DID YOU KNOW SECTION ── */
.did-you-know-section { background: var(--cream, #f5f0e8); }

.dyk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.dyk-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(13,40,24,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dyk-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

.dyk-card__emoji { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; }

.dyk-card__fact {
  font-size: 0.9rem;
  color: var(--jungle-dark, #0d2818);
  line-height: 1.5;
  font-weight: 500;
}

/* ── QUIZ SECTION ── */
.quiz-section {
  background: linear-gradient(135deg, var(--jungle-dark, #0d2818) 0%, #1a4a2e 100%);
  padding: 5rem 0;
}

.quiz-section__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quiz-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.quiz-question {
  font-family: var(--font-display, serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.quiz-answer {
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: rgba(245,240,232,0.9);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.quiz-answer:hover { border-color: var(--gold, #d4af37); background: rgba(212,175,55,0.12); color: #fff; }
.quiz-answer.correct { border-color: #5adb5a; background: rgba(90,219,90,0.15); color: #5adb5a; }
.quiz-answer.wrong   { border-color: #ff6b6b; background: rgba(255,107,107,0.15); color: #ff6b6b; }

/* ── HABITAT MAP ── */
.habitat-section {
  background: var(--jungle-dark, #0d2818);
  padding: 5rem 0;
}

.habitat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.habitat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: rgba(245,240,232,0.85);
  transition: all 0.3s;
}

.habitat-card:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold, #d4af37);
  transform: translateY(-3px);
  color: #fff;
}

.habitat-card__icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; }
.habitat-card__name { font-family: var(--font-accent, sans-serif); font-weight: 600; font-size: 0.9rem; }

/* ── FEATURED ANIMAL ── */
.featured-animal-section {
  padding: 5rem 0;
  background: var(--cream, #f5f0e8);
}

.featured-animal-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .featured-animal-section__inner { grid-template-columns: 1fr; }
  .baby-animals-grid { grid-template-columns: 1fr 1fr; }
  .quiz-answers { grid-template-columns: 1fr; }
  .hero-section__title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
}

/* ── PRODUCT / SHOP ── */
.product-card {
  background: #fff;
  border: 1px solid rgba(13,40,24,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

.product-card__image-wrap { height: 200px; overflow: hidden; }
.product-card__image { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 1.2rem; }
.product-card__category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold, #d4af37); margin-bottom: 0.4rem; }
.product-card__title { font-weight: 700; font-size: 0.95rem; color: var(--jungle-dark, #0d2818); margin-bottom: 0.5rem; line-height: 1.3; }
.product-card__price { font-size: 1.1rem; font-weight: 700; color: var(--jungle-dark, #0d2818); margin-bottom: 1rem; }
.product-card__cta { width: 100%; justify-content: center; }

/* ── AD SLOT ── */
.ad-slot { text-align: center; }
.homepage-ad { padding: 2rem 0; text-align: center; }
