/* =============================================================
   animations.css — keyframes e estados de revelação (GSAP-safe)
   ============================================================= */

/* Estado inicial dos elementos revelados no scroll.
   O GSAP assume o controle assim que a página carrega. */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}

/* Fallback: se o JS falhar, o conteúdo permanece visível */
.no-js [data-reveal],
html.reveal-fallback [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Split text — cada linha é mascarada */
.split-line {
  display: block;
  overflow: hidden;
}

.split-line > span {
  display: block;
  will-change: transform;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Pulso dos pontos do mapa */
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    r: 4;
  }
  50% {
    opacity: 0.45;
    r: 6.5;
  }
}

.map__dot {
  animation: pulse-dot 3.4s ease-in-out infinite;
}

.map__dot:nth-of-type(even) {
  animation-delay: 1.1s;
}

/* Brilho lento do halo vermelho do CTA */
@keyframes breathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.cta::before {
  animation: breathe 9s ease-in-out infinite;
}

/* Cursor magnético dos botões */
.btn,
.card,
.wa {
  transition-property: transform, border-color, box-shadow, background;
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
