/* === animations.css — Keyframes, scroll-reveal, stagger, hover transitions === */

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== STAGGER CARDS ========== */
.stagger-card {
  opacity: 0;
  transform: translateY(30px);
}

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

/* ========== KEYFRAMES ========== */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 var(--pulse-badge-shadow-1); }
  50% { box-shadow: 0 0 0 8px var(--pulse-badge-shadow-2); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes fadeOutUp {
  to { opacity: 0; transform: translateY(-20px); }
}

/* ========== ANIMATION ASSIGNMENTS ========== */
.contact-badge {
  animation: pulseBadge 2s ease-in-out infinite;
}

.contact-badge .dot {
  animation: dotPulse 2s ease-in-out infinite;
}

.success-message.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.success-icon {
  animation: checkPop 0.5s ease 0.2s both;
}

/* ========== HOVER TRANSITION HELPERS ========== */
.price-total-amount.pulse {
  transform: scale(1.08);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stagger-card {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .contact-badge,
  .contact-badge .dot,
  .success-icon {
    animation: none;
  }
}
