/* ========================================
   Animations — BIS Consult
   ======================================== */

/* ---- Scroll Reveal Base ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Stagger Children ---- */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-animate-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ---- Decorative Floating ---- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-15px) rotate(3deg); }
}

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

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

.hero-decor__circle {
  animation: float 6s ease-in-out infinite;
}

.hero-decor__rect {
  animation: floatSlow 8s ease-in-out infinite;
}

.hero-decor__rect--2 {
  animation: floatSlow 7s ease-in-out infinite reverse;
}

.hero-decor__dot--1 {
  animation: pulse 3s ease-in-out infinite;
}

.hero-decor__dot--2 {
  animation: pulse 4s ease-in-out infinite 1s;
}

.hero-decor__dot--3 {
  animation: pulse 3.5s ease-in-out infinite 0.5s;
}

/* ---- Hover Transitions ---- */
.pain-card,
.service-card,
.package-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.pain-card:hover {
  transform: translateY(-2px);
}

.service-card:hover {
  transform: translateY(-4px);
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.package-card--featured:hover {
  box-shadow: 0 8px 40px var(--c-accent-glow-strong);
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate],
  [data-animate-stagger] > * {
    opacity: 1;
    transform: none;
  }
}
