/* ===================================================
   ANIMATIONS — Fade-in via Intersection Observer
   =================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.grid .fade-in:nth-child(4) { transition-delay: 0.15s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.2s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.3s; }
.steps-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.steps-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.steps-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Hamburger menu animation */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Pulse on floating CTA */
@keyframes pulse-amber {
  0% { box-shadow: 0 -4px 12px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 -4px 24px rgba(245,158,11,0.3); }
  100% { box-shadow: 0 -4px 12px rgba(0,0,0,0.2); }
}
.floating-cta { animation: pulse-amber 3s ease-in-out infinite; }
