/* ==========================================================================
   Ashok Healthcare — Animations Stylesheet (assets/css/animations.css)
   Lightweight transitions & reduced-motion accessibility
   ========================================================================== */

.main-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary-ah,
.btn-accent-ah,
.btn-wa,
.btn-outline-ah,
.btn-emergency,
.btn-hero-emergency,
.btn-hero-assess,
.hero-float-card,
.hero-float-pill,
.filter-btn,
.area-chip,
.footer-ah a,
.back-top,
.wa-float {
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, opacity 0.25s ease, padding-left 0.2s ease;
}

.btn-hero-emergency:hover,
.btn-hero-assess:hover {
  transform: translateY(-2px);
}

.btn-primary-ah:hover,
.btn-accent-ah:hover,
.btn-wa:hover,
.btn-emergency:hover {
  transform: translateY(-2px);
}

.ah-card,
.why-item,
.step-card,
.gallery-card,
.counter-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ah-card:hover,
.step-card:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #BFE3EE;
}

.why-item:hover {
  border-color: #B7E6DD;
  box-shadow: 0 12px 28px rgba(18, 59, 86, 0.09);
}

.ah-card img.card-img,
.gallery-img {
  transition: transform 0.55s ease;
}

.ah-card:hover img.card-img,
.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

/* Entrance & Scroll Reveal */
.hero-animate {
  animation: heroFadeUp 0.75s ease both;
}

.hero-doctor-img {
  animation: heroImageFloat 5.8s ease-in-out infinite;
}

.hero-float-card,
.hero-float-pill {
  animation: heroBadgeFloat 4.6s ease-in-out infinite;
}

.hero-floating-group > :nth-child(even) {
  animation-delay: -2.3s;
}

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

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

@keyframes heroBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.dropdown-menu {
  animation: dropdownSlide 0.2s ease both;
}

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

.wa-float {
  animation: pulseWa 2.4s infinite;
}

.wa-float:hover {
  transform: scale(1.08);
}

@keyframes pulseWa {
  0% {
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@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 {
    opacity: 1 !important;
    transform: none !important;
  }
}
