/* ================================================
   ALANDA LIVING — Animations v2
   ================================================ */

/* ── Shared transition ── */
.anim,
.anim-fade,
.anim-up,
.anim-down,
.anim-left,
.anim-right,
.anim-scale {
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Initial states */
.anim,
.anim-fade  { opacity: 0; }
.anim-up    { opacity: 0; transform: translateY(44px); }
.anim-down  { opacity: 0; transform: translateY(-44px); }
.anim-left  { opacity: 0; transform: translateX(-54px); }
.anim-right { opacity: 0; transform: translateX(54px); }
.anim-scale { opacity: 0; transform: scale(0.90); }

/* Revealed */
.anim.in,
.anim-fade.in,
.anim-up.in,
.anim-down.in,
.anim-left.in,
.anim-right.in,
.anim-scale.in { opacity: 1; transform: none; }

/* Stagger delays */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.48s; }
.d6 { transition-delay: 0.58s; }


/* ── Nav entrance ── */
@keyframes navSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
.nav { animation: navSlideIn 0.6s ease 0.15s both; }


/* ── Hero Split — staggered page-load entrance ── */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-split__logo    { animation: heroRise 0.75s ease 0.20s both; }
.hero-split__eyebrow { animation: heroRise 0.75s ease 0.38s both; }
.hero-split__title   { animation: heroRise 0.85s ease 0.54s both; }
.hero-split__body    { animation: heroRise 0.75s ease 0.72s both; }
.hero-split__rule    { animation: heroRise 0.60s ease 0.84s both; }
.hero-split__btns    { animation: heroRise 0.70s ease 0.96s both; }
.hero-split__badge   { animation: heroRise 0.65s ease 1.08s both; }


/* ── Hero photo — Ken Burns subtle zoom ── */
@keyframes kenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.hero-split__photo img { animation: kenBurns 10s ease-out both; }


/* ── Page Hero entrance ── */
@keyframes pageHeroIn {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}
.page-hero__content { animation: pageHeroIn 0.85s ease 0.25s both; }


/* ── Stats bar item reveal ── */
@keyframes statFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.stats-bar__item.in .stats-bar__icon  { animation: statFade 0.5s ease both; }
.stats-bar__item.in .stats-bar__num   { animation: statFade 0.55s ease 0.08s both; }
.stats-bar__item.in .stats-bar__label { animation: statFade 0.5s ease 0.18s both; }


/* ── Footer tagline shimmer on hover ── */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
.footer__tagline:hover em {
  background: linear-gradient(90deg, var(--gold), #f5c842, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 1.8s linear infinite;
}
