/* ═══════════════════════════════════════════════════
   ANIMATIONS — Luciane Tomazi
   Só transform + opacity (GPU-safe)
═══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   REVEAL ON SCROLL — estado inicial
══════════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity   var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

/* Atraso sequencial via CSS var --card-delay */
.reveal-item[style*="--card-delay"] {
  transition-delay: var(--card-delay, 0ms);
}

/* Estado visível — adicionado pelo IntersectionObserver */
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Itens com delay escalonado (sem var inline) */
.reveal-item:nth-child(1) { transition-delay:   0ms; }
.reveal-item:nth-child(2) { transition-delay:  80ms; }
.reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-item:nth-child(6) { transition-delay: 400ms; }

/* ══════════════════════════════════════════
   HERO — animação de entrada
══════════════════════════════════════════ */
.hero .reveal-item:nth-child(1) { transition-delay:  80ms; }
.hero .reveal-item:nth-child(2) { transition-delay: 180ms; }
.hero .reveal-item:nth-child(3) { transition-delay: 280ms; }
.hero .reveal-item:nth-child(4) { transition-delay: 380ms; }
.hero .reveal-item:nth-child(5) { transition-delay: 480ms; }

/* Foto central — entrada suave de baixo para cima */
.hero__visual.reveal-item {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition:
    opacity   0.9s var(--ease-out) 0.15s,
    transform 0.9s var(--ease-out) 0.15s;
}

.hero__visual.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ══════════════════════════════════════════
   BADGE FLUTUANTE — float loop
══════════════════════════════════════════ */
.hero__badge {
  animation: floatBadge 4s var(--ease-in-out) infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ══════════════════════════════════════════
   NAVBAR — animação de entrada
══════════════════════════════════════════ */
.navbar {
  animation: navbarEntry 0.7s var(--ease-out) both;
}

@keyframes navbarEntry {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════════
   PILLS DO SOBRE — entrada escalonada
══════════════════════════════════════════ */
.sobre__pill--1 {
  animation: pillFloat1 5s var(--ease-in-out) 1.2s infinite;
}

.sobre__pill--2 {
  animation: pillFloat2 6s var(--ease-in-out) 2s infinite;
}

@keyframes pillFloat1 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(0deg); }
}

@keyframes pillFloat2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%      { transform: translateY(-10px) rotate(0deg); }
}

/* ══════════════════════════════════════════
   WHATSAPP FLOAT — pulse ring
══════════════════════════════════════════ */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-whatsapp);
  opacity: 0;
  animation: whatsappPulse 2.4s var(--ease-out) infinite;
}

@keyframes whatsappPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0;   }
}

/* ══════════════════════════════════════════
   CARD HOVER — spotlight borda
══════════════════════════════════════════ */
.servico-card,
.dif-card,
.depo-card {
  position: relative;
}

/* ══════════════════════════════════════════
   SCROLL INDICATOR
══════════════════════════════════════════ */
@keyframes scrollIndicatorFade {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}

/* ══════════════════════════════════════════
   DEPOIMENTOS — carrossel slide
══════════════════════════════════════════ */
.depoimentos__track {
  will-change: transform;
}

/* ══════════════════════════════════════════
   PREFERS REDUCED MOTION
   Respeito total à acessibilidade
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__badge,
  .sobre__pill--1,
  .sobre__pill--2,
  .whatsapp-float::after,
  .scroll-line,
  .marquee-content {
    animation: none;
  }

  .hero__photo-core img,
  .insta-tile img {
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
