/* ============================================================
   ANIMATIONS.CSS — Keyframes, transitions, scroll effects
   Rodonaves Agregados | Arquitetura ECOTOKEN
   ============================================================ */

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- CTA PULSE --- */
.pulse {
  animation: ctaPulse 2.8s infinite;
}

.pulse:hover {
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0.45); }
  50%       { box-shadow: 0 0 0 14px rgba(var(--cta-rgb), 0); }
}

/* --- HERO FADE IN --- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-img {
  animation: heroFadeUp 0.9s 0.2s ease both;
}

/* --- STAT COUNTER HIGHLIGHT --- */
@keyframes statGlow {
  0%   { text-shadow: 0 0 0px rgba(var(--cta-rgb), 0); }
  50%  { text-shadow: 0 0 20px rgba(var(--cta-rgb), 0.5); }
  100% { text-shadow: 0 0 0px rgba(var(--cta-rgb), 0); }
}

.stat-num.counting {
  animation: statGlow 1.5s ease;
}

/* --- WHATSAPP FLOAT BOUNCE --- */
@keyframes wppBounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-6px); }
  60%       { transform: translateY(-3px); }
}

.whatsapp-float {
  animation: wppBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* --- FORM SUCCESS SCALE IN --- */
@keyframes successScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-success:not(.hidden) {
  animation: successScale 0.4s ease forwards;
}

/* --- CHECK ITEMS STAGGER --- */
.hero-checklist li {
  animation: heroFadeUp 0.6s ease both;
}

.hero-checklist li:nth-child(1) { animation-delay: 0.3s; }
.hero-checklist li:nth-child(2) { animation-delay: 0.42s; }
.hero-checklist li:nth-child(3) { animation-delay: 0.54s; }
.hero-checklist li:nth-child(4) { animation-delay: 0.66s; }
.hero-checklist li:nth-child(5) { animation-delay: 0.78s; }

/* --- BADGE URGENCY PULSE --- */
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0); }
  50%       { box-shadow: 0 0 10px 2px rgba(var(--cta-rgb), 0.3); }
}

.badge-urgency {
  animation: badgeGlow 3s ease-in-out infinite;
}

/* --- TIMELINE STEP REVEAL --- */
.timeline-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:nth-child(1) { transition-delay: 0.0s; }
.timeline-step:nth-child(2) { transition-delay: 0.15s; }
.timeline-step:nth-child(3) { transition-delay: 0.30s; }
.timeline-step:nth-child(4) { transition-delay: 0.45s; }

/* --- CAMINHÃO CARD REVEAL STAGGER --- */
.caminhao-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.caminhao-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- DEPOIMENTO CARD REVEAL --- */
.depoimento-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, background 0.25s ease;
}

.depoimento-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.depoimento-card:nth-child(1) { transition-delay: 0.0s; }
.depoimento-card:nth-child(2) { transition-delay: 0.15s; }
.depoimento-card:nth-child(3) { transition-delay: 0.30s; }

/* --- STAT CARD REVEAL --- */
.stat-card {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.25s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: scale(1);
}

.stat-card:nth-child(1) { transition-delay: 0.0s; }
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }

/* --- HEADER SCROLL SHADOW --- */
#header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
