/* ============================================================
   Himalayan Haven Journeys — Premium Animations (Royal Heritage)
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes hhjFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hhjFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hhjZoomIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes hhjFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes hhjShine {
  from { transform: translateX(-160%) skewX(-20deg); }
  to   { transform: translateX(260%) skewX(-20deg); }
}
@keyframes hhjMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes hhjPulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, .38); }
  70%      { box-shadow: 0 0 0 14px rgba(217, 164, 65, 0); }
}
@keyframes hhjLineGrow {
  from { width: 0; }
  to   { width: 38px; }
}
@keyframes hhjSpinSlow {
  to { transform: rotate(360deg); }
}

/* ---------- Hero entrance (staggered) ---------- */
.hero-anim {
  opacity: 0;
  animation: hhjFadeUp .9s cubic-bezier(.22, .8, .36, 1) forwards;
}
.hero-anim-d1 { animation-delay: .10s; }
.hero-anim-d2 { animation-delay: .22s; }
.hero-anim-d3 { animation-delay: .34s; }
.hero-anim-d4 { animation-delay: .46s; }
.hero-anim-d5 { animation-delay: .60s; }

.hero-visual-yatra img,
.hero-visual-taxi img {
  animation: hhjZoomIn 1.1s cubic-bezier(.22, .8, .36, 1) .15s both;
}
.hero-card {
  animation: hhjFloat 5s ease-in-out 1.6s infinite, hhjFadeUp .9s ease .7s both;
}
.hero-card strong {
  display: inline-block;
  animation: hhjPulseGold 2.6s ease-in-out 2.2s infinite;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.22, .8, .36, 1), transform .75s cubic-bezier(.22, .8, .36, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

/* Section kicker line grows on reveal */
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--hhj-gold, #D9A441), transparent);
  transition: width .8s ease .3s;
}
.in-view .section-kicker::before,
.reveal.in-view .section-kicker::before {
  width: 38px;
}

/* ---------- Gold button shine ---------- */
.btn-gold, .btn-yellow {
  position: relative;
  overflow: hidden;
}
.btn-gold::after, .btn-yellow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
}
.btn-gold:hover::after, .btn-yellow:hover::after {
  animation: hhjShine .85s ease;
}

/* ---------- Package cards ---------- */
.package-card {
  animation: hhjFadeUp .7s cubic-bezier(.22, .8, .36, 1) both;
}
.package-card:nth-child(2) { animation-delay: .08s; }
.package-card:nth-child(3) { animation-delay: .16s; }
.package-card:nth-child(4) { animation-delay: .24s; }
.package-card:nth-child(5) { animation-delay: .32s; }
.package-card:nth-child(6) { animation-delay: .40s; }
.package-card:nth-child(7) { animation-delay: .48s; }
.package-card:nth-child(8) { animation-delay: .56s; }

/* ---------- Taxi / Tempo rows stagger ---------- */
.vrow {
  animation: hhjFadeUp .6s cubic-bezier(.22, .8, .36, 1) both;
}
.vbox-taxi .vrow:nth-child(1) { animation-delay: .05s; }
.vbox-taxi .vrow:nth-child(2) { animation-delay: .12s; }
.vbox-taxi .vrow:nth-child(3) { animation-delay: .19s; }
.vbox-taxi .vrow:nth-child(4) { animation-delay: .26s; }
.vbox-tempo .vrow:nth-child(1) { animation-delay: .10s; }
.vbox-tempo .vrow:nth-child(2) { animation-delay: .17s; }
.vbox-tempo .vrow:nth-child(3) { animation-delay: .24s; }
.vbox-tempo .vrow:nth-child(4) { animation-delay: .31s; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: linear-gradient(135deg, #0A343F, #134E5E 70%, #155A6B);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(10, 52, 63, .22);
  margin: -34px auto 0;
  max-width: 1180px;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(217, 164, 65, .25);
}
.stat {
  background: linear-gradient(160deg, #0F4C5C, #0A343F);
  padding: 26px 18px;
  text-align: center;
  color: #fff;
  position: relative;
}
.stat::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hhj-gold, #D9A441), transparent);
  transition: width .6s ease .4s;
}
.stat.in-view::after { width: 70%; }
.stat-num {
  font-family: var(--hhj-serif, 'Fraunces', Georgia, serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--hhj-gold, #D9A441);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9D6DA;
  margin-top: 6px;
  font-weight: 600;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -22px; border-radius: 16px; }
  .stat { padding: 18px 12px; }
}

/* ---------- Trust marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, var(--hhj-gold, #D9A441), var(--hhj-gold-2, #E7BE6A) 50%, var(--hhj-gold, #D9A441));
  padding: 13px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: hhjMarquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #263238;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "✦";
  color: rgba(38, 50, 56, .55);
  font-size: 11px;
}

/* ---------- CTA shine ring ---------- */
.cta .btn-yellow { animation: hhjPulseGold 3s ease-in-out infinite; }

/* ---------- Routes hover ---------- */
.route-grid a {
  position: relative;
  overflow: hidden;
}
.route-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--hhj-gold, #D9A441);
  transition: width .35s ease;
}
.route-grid a:hover::after { width: 100%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-anim, .reveal, .package-card, .vrow {
    opacity: 1 !important;
    transform: none !important;
  }
}