/* ==========================================================================
   animations.css — Efeitos de movimento do original
   - "breathe": balões flutuam para cima e para baixo (Wix: motion-breathe)
   - "pulse": botão do WhatsApp pulsa (Wix: motion-pulse)
   As animações só rodam quando o elemento está visível (classe .is-inview,
   aplicada por js/animations.js), como no Wix, e são desativadas para quem
   prefere movimento reduzido.
   ========================================================================== */
@keyframes breathe {
  0%   { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1); }
  25%  { transform: translate3d(0, var(--breathe-distance, 20px), 0); animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
  75%  { transform: translate3d(0, calc(var(--breathe-distance, 20px) * -1), 0); animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes pulse {
  27%  { transform: scale(0.90); }
  45%  { transform: scale(1); }
  72%  { transform: scale(0.87); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .anim-breathe {
    --breathe-distance: 20px;
    animation: breathe 5s linear infinite;
    animation-play-state: paused;
  }

  .anim-breathe--slow {
    --breathe-distance: 25px;
    animation-duration: 4s;
  }

  .anim-pulse {
    animation: pulse 4s linear infinite;
    animation-play-state: paused;
  }

  .anim-breathe.is-inview,
  .anim-pulse.is-inview,
  .no-js .anim-breathe,
  .no-js .anim-pulse {
    animation-play-state: running;
  }

  .carousel__track {
    transition-duration: 0.6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel__track {
    transition: none;
  }
}
