/**
 * Labnesia — animations.css
 * Scroll-triggered entrance animations (appended to main style via functions.php)
 */

/* Base state for animatable elements */
.will-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Stagger children in grids */
.problem-grid .will-animate:nth-child(1)  { transition-delay: 0.05s; }
.problem-grid .will-animate:nth-child(2)  { transition-delay: 0.10s; }
.problem-grid .will-animate:nth-child(3)  { transition-delay: 0.15s; }
.problem-grid .will-animate:nth-child(4)  { transition-delay: 0.20s; }
.problem-grid .will-animate:nth-child(5)  { transition-delay: 0.25s; }
.problem-grid .will-animate:nth-child(6)  { transition-delay: 0.30s; }

.give-grid .will-animate:nth-child(1) { transition-delay: 0.05s; }
.give-grid .will-animate:nth-child(2) { transition-delay: 0.10s; }
.give-grid .will-animate:nth-child(3) { transition-delay: 0.15s; }
.give-grid .will-animate:nth-child(4) { transition-delay: 0.20s; }
.give-grid .will-animate:nth-child(5) { transition-delay: 0.25s; }
.give-grid .will-animate:nth-child(6) { transition-delay: 0.30s; }

.product-cards .will-animate:nth-child(1) { transition-delay: 0.05s; }
.product-cards .will-animate:nth-child(2) { transition-delay: 0.12s; }
.product-cards .will-animate:nth-child(3) { transition-delay: 0.20s; }

.stats-row .will-animate:nth-child(1) { transition-delay: 0.05s; }
.stats-row .will-animate:nth-child(2) { transition-delay: 0.10s; }
.stats-row .will-animate:nth-child(3) { transition-delay: 0.15s; }
.stats-row .will-animate:nth-child(4) { transition-delay: 0.20s; }

/* Visible state */
.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .will-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
