/* ============================================================
   TRANSAGRO 540 — animations.css
   Um único momento orquestrado de entrada, no hero. O restante da
   página fica estático e estável — sem efeitos repetidos a cada seção.
   ============================================================ */

/* ---------- Entrada do Hero (uma única sequência, no load) ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content .section-tag,
.hero h1,
.hero-lede,
.hero-actions {
  animation: fadeSlideUp 0.7s ease both;
}
.hero-content .section-tag { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-lede { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.45s; }

/* ---------- Menu mobile: leve escala no ícone ao alternar ---------- */
@keyframes iconPop {
  0% { transform: scale(0.8); }
  100% { transform: scale(1); }
}
.menu-toggle:active i { animation: iconPop 0.2s ease; }

/* ---------- Lightbox: crossfade simples ao trocar de imagem ---------- */
@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-figure img { animation: lightboxFade 0.25s ease; }

/* ---------- Indicador de rolagem no hero ---------- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--sand-100);
  font-size: 1.3rem;
  animation: scrollHintMove 1.8s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes scrollHintMove {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 8px); opacity: 0.95; }
}

/* ---------- Respeitar preferência de menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-hint { animation: none; }
}
