/* Animações enxutas — máx 1-2 por view (ui-ux-pro-max guideline) — V1.1 */

/* Pulse sutil no WhatsApp flutuante — verde */
@keyframes whatsapp-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(37, 211, 102, 0.18);
  }
  50% {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.18);
  }
}
.whatsapp-float {
  animation: whatsapp-pulse 2.6s var(--easing-inout) infinite;
}

/* Sutil entrada no hero — uma única animação por view */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: hero-rise 800ms var(--easing-out) backwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0ms; }
.hero-content > *:nth-child(2) { animation-delay: 100ms; }
.hero-content > *:nth-child(3) { animation-delay: 200ms; }
.hero-content > *:nth-child(4) { animation-delay: 300ms; }

.hero-media {
  animation: hero-rise 1000ms var(--easing-out) 200ms backwards;
}

/* Drift suave do fallback do hero — só quando NÃO há motion reduzido.
   Garante que a "luz" nunca fique 100% estática em devices sem WebGL / sem a lib
   (notebook do amigo, mobile, CDN bloqueada). O canvas WebGL, quando funciona,
   fica por cima e cobre este gradiente. .hero é overflow:hidden, então o scale
   não expõe bordas. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-glow-drift {
    from { transform: translate3d(0, 0, 0) scale(1.02);    opacity: 0.8; }
    to   { transform: translate3d(2.5%, -2%, 0) scale(1.1); opacity: 1; }
  }
  .hero-fallback {
    animation: hero-glow-drift 16s var(--easing-inout) infinite alternate;
    will-change: transform, opacity;
  }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--easing-out),
              transform 700ms var(--easing-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeita reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
  .hero-content > *,
  .hero-media {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .card-image img,
  .gallery-item:hover img {
    transform: none !important;
  }
  .faq-answer-wrapper {
    transition: none !important;
  }
}
