/* ═══════════════════════════════════════════════
   SHEOWS GLOBAL — animations.css
   Only CSS-native animations here.
   GSAP handles opacity/transform for scroll reveals.
   DO NOT set opacity:0 here — GSAP does it in JS.
═══════════════════════════════════════════════ */

/* ── Page load — hero panels fade in ── */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__panel {
  animation: heroFadeIn 1s ease both;
}
.hero__panel:nth-child(1) { animation-delay: 0.1s; }
.hero__panel:nth-child(2) { animation-delay: 0.25s; }
.hero__panel:nth-child(3) { animation-delay: 0.4s; }

.hero__panel-name {
  animation: heroFadeUp 0.9s ease both;
}
.hero__panel:nth-child(1) .hero__panel-name { animation-delay: 0.4s; }
.hero__panel:nth-child(2) .hero__panel-name { animation-delay: 0.55s; }
.hero__panel:nth-child(3) .hero__panel-name { animation-delay: 0.7s; }

.hero__panel-tagline {
  animation: heroFadeUp 0.9s ease both;
}
.hero__panel:nth-child(1) .hero__panel-tagline { animation-delay: 0.55s; }
.hero__panel:nth-child(2) .hero__panel-tagline { animation-delay: 0.7s; }
.hero__panel:nth-child(3) .hero__panel-tagline { animation-delay: 0.85s; }

.hero__textblock-eyebrow { animation: heroFadeUp 0.8s ease both; animation-delay: 0.7s; }
.hero__textblock-headline { animation: heroFadeUp 0.9s ease both; animation-delay: 0.85s; }
.hero__textblock-sub      { animation: heroFadeUp 0.9s ease both; animation-delay: 1s; }
.hero__textblock-trust    { animation: heroFadeUp 0.9s ease both; animation-delay: 1.1s; }
.hero__textblock-right    { animation: heroFadeUp 0.9s ease both; animation-delay: 1.2s; }

.nav-logo  { animation: heroFadeIn 0.6s ease both; }
.nav-links { animation: heroFadeIn 0.6s ease 0.2s both; }
.nav-actions { animation: heroFadeIn 0.6s ease 0.3s both; }

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Gold CTA pulse on focus ── */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
}
.btn--gold:focus-visible {
  animation: goldPulse 1.5s infinite;
  outline: none;
}

/* ── Modal entrance ── */
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-overlay.active .modal-box {
  animation: modalIn 0.36s ease both;
}

/* ── Active nav link ── */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── GSAP fallback: if JS/GSAP never sets inline opacity, keep elements visible ──
   GSAP overrides these with inline styles, so they only apply when GSAP hasn't run. */
.impact__stat,
.country-card,
.partners__logo,
.news__card,
[data-reveal],
.pillar__visual,
.pillar__body {
  opacity: 1;
}
