/* ============================================================
   ANIMATIONS — Keyframes + scroll-trigger classes
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(105, 195, 196, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(105, 195, 196, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ---------- Scroll-triggered base state ---------- */
/* Elements with .animate-on-scroll start invisible */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.from-left {
  transform: translateX(-28px);
}

.animate-on-scroll.from-right {
  transform: translateX(28px);
}

.animate-on-scroll.scale-in {
  transform: scale(0.92);
}

/* Visible state — added by scroll-animate.js */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 400ms; }

/* ---------- Hero entrance animations ---------- */
.hero__eyebrow  { animation: fadeInDown 0.6s ease 0.1s both; }
.hero__headline { animation: fadeInUp  0.7s ease 0.2s both; }
.hero__sub      { animation: fadeInUp  0.7s ease 0.35s both; }
.hero__ctas     { animation: fadeInUp  0.7s ease 0.5s both; }
.hero__trust    { animation: fadeInUp  0.5s ease 0.65s both; }

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

  .hero__eyebrow,
  .hero__headline,
  .hero__sub,
  .hero__ctas,
  .hero__trust {
    animation: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
