/* ============================================================
   animations.css — Wizarding Edinburgh
   www.magicaledinburgh.com
   ============================================================ */

/* ── Entrance animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes flickerCandle {
  0%, 100% { opacity: 0.92; }
  25%       { opacity: 0.70; }
  50%       { opacity: 0.85; }
  75%       { opacity: 0.60; }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Scroll-reveal utility ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero entrance ── */
.hero-eyebrow  { animation: fadeUp 0.8s 0.0s ease both; }
.hero-title    { animation: fadeUp 0.8s 0.12s ease both; }
.hero-ornament { animation: fadeUp 0.8s 0.22s ease both; }
.hero-desc     { animation: fadeUp 0.8s 0.30s ease both; }
.hero-actions  { animation: fadeUp 0.8s 0.40s ease both; }
.hero-stats    { animation: fadeUp 0.8s 0.52s ease both; }

/* ── Candle flicker ── */
.candle { animation: flickerCandle 3s ease-in-out infinite; }

/* ── Nav scroll shrink ── */
nav.scrolled { padding-top: 0.7rem; padding-bottom: 0.7rem; }

/* ── Tour card hover lift (handled in style.css transitions) ── */

/* ── Gold shimmer on CTA hover ── */
.btn-primary:hover {
  background-image: linear-gradient(
    105deg,
    transparent 33%,
    rgba(255,255,255,0.18) 50%,
    transparent 66%
  );
  background-size: 200% 100%;
  animation: shimmer 0.6s ease forwards;
}
