/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Scroll Reveal Base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Pulse animation for gold dots and badge */
@keyframes goldPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 154, 74, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(201, 154, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 154, 74, 0);
  }
}

.eyebrow-pill .dot {
  animation: goldPulse 2.4s infinite;
}

/* WhatsApp ripple */
@keyframes whatsappRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 154, 74, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(201, 154, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 154, 74, 0);
  }
}

.floating-whatsapp {
  animation: whatsappRipple 3s infinite;
}

/* Shimmer highlight on buttons */
.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 80%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.75s ease-in-out;
}

.btn-gold:hover::after {
  transform: rotate(30deg) translateX(100%);
}


/* ==========================================================================
   MOBILE REVEAL SAFETY & ACCESSIBILITY
   Ensures large grids and crucial content are never permanently hidden on mobile.
   ========================================================================== */
@media (max-width: 900px) {
  .hair-solutions-grid,
  .skin-solutions-grid,
  .hair-solutions-grid.reveal,
  .skin-solutions-grid.reveal,
  .hair-approach-banner.reveal,
  .skin-approach-banner.reveal,
  .hair-solutions-header.reveal,
  .skin-solutions-header.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
