/* ==========================================================================
   SMILE AND SKIN CO. — REFINED MICRO-ANIMATIONS & MOTION SYSTEM
   Refined, non-distracting animations adhering strictly to accessibility.
   ========================================================================== */

/* Keyframe Definitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulseSubtle {
  0% {
    box-shadow: 0 4px 14px rgba(107, 23, 50, 0.2);
  }
  50% {
    box-shadow: 0 4px 22px rgba(107, 23, 50, 0.4);
  }
  100% {
    box-shadow: 0 4px 14px rgba(107, 23, 50, 0.2);
  }
}

/* Scroll Reveal Classes (Triggered by Intersection Observer) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  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;
}

/* Hero Entrance Transitions */
.hero-content .hero-badge {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content .hero-title {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-content .hero-desc {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-content .hero-ctas {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

.hero-content .hero-trust-mini {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

.hero-media-wrap {
  animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* CTA Pulse */
.btn-pulse {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* Prefers-reduced-motion for complete accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-floating-card {
    animation: none !important;
  }
}
