/*
  ╔══════════════════════════════════════════════════════════════════════╗
  ║  DESIGN SYSTEM — MESCLA VPC / ARQUITETOS                           ║
  ║  animations.css — Keyframes + Transition Utilities                  ║
  ╚══════════════════════════════════════════════════════════════════════╝

  DECISÕES DE MOTION:
  • glowPulse  — derivado do @keyframes sombra da Priscila (drop-shadow
    pulsante 2s). Adaptado para orange em vez de branco; aplicado no
    hover de CTAs primários. Duração mantida em 2s (impactante).
  • shimmer    — @keyframes Whuyi da Julia (translateX -100%→100%), 1s.
    Mantido como skeleton loader para qualquer estado de carregamento.
  • watermarkDrift — novo; anima o watermark decorativo com translate
    suavíssimo (1.5%) em 14s — evoca plantas arquitetônicas em drift.
  • fadeUp     — utility de reveal on-scroll (0.3s, translate Y 20px).
  • Sem a @view-transition da Julia (específica de Wix/SPA router).

  TIMINGS CONSOLIDADOS:
  • Hover/micro: 0.15s (transition-fast)
  • Botões/links: 0.3s (transition)
  • Accordion/modal: 0.45s (transition-slow)
  • Glow CTA: 2s infinite (glowPulse — Priscila)
  • Watermark: 14s linear infinite (watermarkDrift)
  • Shimmer: 1s linear infinite (shimmer — Julia)
*/

/* ── glowPulse ── Priscila → orange CTA glow, 2s pulsante ── */
@keyframes glowPulse {
  0%   { filter: drop-shadow(0px 0px 0px transparent); }
  30%  { filter: drop-shadow(0px 0px 14px rgba(226, 117, 38, 0.55)); }
  70%  { filter: drop-shadow(0px 0px 28px rgba(255, 148, 29, 0.25)); }
  100% { filter: drop-shadow(0px 0px 0px transparent); }
}

/* ── shimmer ── Julia (Whuyi) → skeleton loading ── */
@keyframes shimmer {
  to { transform: translateX(100%); }
}

.shimmer-host {
  position: relative;
  overflow: hidden;
  background-color: var(--light-zebra);
  pointer-events: none;
}

.shimmer-host::after {
  content: '';
  position: absolute;
  inset: 0;
  animation: shimmer 1s linear infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.30),
    transparent 50%
  );
  transform: translateX(-100%);
}

/* ── watermarkDrift ── novo → watermark decorativo em drift ── */
@keyframes watermarkDrift {
  0%   { transform: translateX(0%) translateY(0%); }
  33%  { transform: translateX(1.5%) translateY(0.5%); }
  66%  { transform: translateX(-0.5%) translateY(1%); }
  100% { transform: translateX(0%) translateY(0%); }
}

.wm-animated {
  animation: watermarkDrift 14s linear infinite;
  will-change: transform;
}

/* ── fadeUp ── utility de reveal on-scroll ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.45s ease forwards;
}

/* ── Animação de fileira horizontal (Priscila: animacao 70s infinite) ── */
/* Usada em logos/parcerias strips — mantida como utility */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ── Reduced motion: respeito ao usuário ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wm-animated {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ── Transition utilities ── */
.t-default { transition: var(--transition); }
.t-fast    { transition: var(--transition-fast); }
.t-slow    { transition: var(--transition-slow); }
