/* =========================================================
   animations.css — served as a STATIC file, NOT via CMSMS
   Upload to /uploads/css/animations.css
   Link in default_template.tpl (see SETUP_GUIDE)
   =========================================================
   CMSMS Design Manager strips @keyframes during stylesheet
   processing. This file must be served directly to work.
   ========================================================= */

/* ── Hero fade-up entrance animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Dropdown entrance ── */
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero elements: staggered entrance ── */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.6s 0.10s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-title {
  opacity: 0;
  animation: fadeUp 0.7s 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-sub {
  opacity: 0;
  animation: fadeUp 0.7s 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-cta {
  opacity: 0;
  animation: fadeUp 0.7s 0.48s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Dropdown entrance ── */
.dropdown {
  animation: dropIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.dropdown--sub {
  animation: dropIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Scroll-triggered fade-ins (.animate-in + .is-visible via JS) ── */
.animate-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in:nth-child(2) { transition-delay: 0.08s; }
.animate-in:nth-child(3) { transition-delay: 0.16s; }
.animate-in:nth-child(4) { transition-delay: 0.24s; }
