/* ==========================================================
   Animações — discretas e respeitando prefers-reduced-motion
   ========================================================== */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-media-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(1.35, 1.6);
    opacity: 0;
  }
}

/* Entrada do hero */
.js .hero-anim {
  opacity: 0;
  animation: hero-in 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}

.js .hero-anim--media {
  animation-name: hero-media-in;
  animation-duration: 1100ms;
}

/* Imagens: fade ao carregar */
.js img[data-image] {
  opacity: 0;
  transition: opacity 700ms var(--ease-out), transform 1.2s var(--ease-out);
}

.js img[data-image].is-loaded {
  opacity: 1;
}

/* Revelação ao rolar */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    translate var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

/* Usa "translate" (e não "transform") para não conflitar com o hover dos cards.
   Após a entrada, main.js remove a classe .reveal e cada elemento volta
   às suas próprias transições. */

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .hero-anim,
  .js .reveal {
    opacity: 1;
    transform: none;
    translate: none;
  }

  .whatsapp-float__pulse,
  .hero__seal-text {
    animation: none !important;
  }
}
