/* ================================================================
   JABAL INN — Animations & Transitions
   ================================================================ */

/* === SCROLL REVEAL ============================================= */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity   0.75s var(--ease-luxury),
    transform 0.75s var(--ease-luxury);
}

.reveal.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.50s; }


/* === LAZY IMAGES =============================================== */
img[data-src] {
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
}
img[data-src].is-loaded {
  opacity: 1;
}


/* === HERO ENTRANCE ============================================= */
.hero__content {
  animation: heroFadeUp 1.1s var(--ease-luxury) 0.3s both;
}
.hero__scroll {
  animation: heroFadeUp 1s var(--ease-luxury) 0.8s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__tag {
  animation: heroFadeUp 0.9s var(--ease-luxury) 0.2s both;
}
.hero__title {
  animation: heroFadeUp 1s var(--ease-luxury) 0.35s both;
}
.hero__line {
  animation: heroLine 1s var(--ease-luxury) 0.8s both;
}
@keyframes heroLine {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}


/* === NAV LOGO ENTRANCE ========================================= */
.nav__logo   { animation: navFade 0.8s var(--ease-luxury) 0.1s both; }
.nav__links  { animation: navFade 0.8s var(--ease-luxury) 0.2s both; }
@keyframes navFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* === REDUCED MOTION ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
  img[data-src] { opacity: 1; }
}
