/* ============================================
   MULZON — ANIMATIONS & INTERACTIONS
   ============================================ */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger for grid items */
.biz-grid .reveal:nth-child(1),
.services-grid .reveal:nth-child(1),
.products-grid .reveal:nth-child(1),
.why-grid .reveal:nth-child(1) { transition-delay: 0.1s; }

.biz-grid .reveal:nth-child(2),
.services-grid .reveal:nth-child(2),
.products-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2) { transition-delay: 0.2s; }

.services-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.services-grid .reveal:nth-child(4),
.why-grid .reveal:nth-child(4) { transition-delay: 0.4s; }

.services-grid .reveal:nth-child(5) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.4s; }


/* --- Hero Entrance --- */
.hero h1, .page-hero h1 {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero .lead, .page-hero .lead {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-actions, .page-hero .eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Arrows & Icons --- */
a:hover svg, button:hover svg {
  transform: translateX(3px);
  transition: transform 0.3s ease;
}

/* --- Menu Toggle Animation (Hamburger to Close) --- */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1, .hero .lead, .hero-actions,
  .page-hero h1, .page-hero .lead, .page-hero .eyebrow {
    opacity: 1; animation: none; transform: none;
  }
}
