/* ===== Premium Phase 4 — animations ===================================
   Counter tick, hero word reveal, gentle parallax, WhatsApp heartbeat,
   scroll progress bar. Revertable: delete this file + phase4.js + tags.
   ====================================================================== */

/* 1. Hero headline word reveal (one-shot on first load) ----------------- */
.pism-static-hero h1 .pism-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: pism-word-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes pism-word-in {
  to { opacity: 1; transform: translateY(0); }
}

/* keep the gold highlight working when split */
.pism-static-hero h1 .pism-word.is-accent {
  color: #E5B93B;
}


/* 4. WhatsApp button heartbeat ------------------------------------------ */
@keyframes pism-pulse {
  0%, 78%, 100% { transform: scale(1); }
  82% { transform: scale(1.14); }
  88% { transform: scale(0.94); }
  94% { transform: scale(1.06); }
}

/* Target footer's WhatsApp icon + any floating wa.me anchor */
a[href*="api.whatsapp.com"] .elementor-icon,
a[href*="api.whatsapp.com"] svg,
a[href*="wa.me"] svg,
.elementor-widget-icon:has(svg.e-fab-whatsapp) .elementor-icon-wrapper,
.elementor-widget-icon:has(.e-fab-whatsapp) {
  animation: pism-pulse 8s ease-in-out infinite;
  transform-origin: center;
  display: inline-block;
}


/* 5. Top scroll progress bar ------------------------------------------ */
.pism-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #E5B93B 0%, #F5C942 60%, #FFE08A 100%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(229, 185, 59, 0.5);
  transition: width 80ms linear, opacity 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .pism-static-hero h1 .pism-word { animation: none !important; opacity: 1 !important; transform: none !important; }
  a[href*="api.whatsapp.com"], a[href*="wa.me"] { animation: none !important; }
  .pism-progress { display: none; }
}
