/* ============================================================
   DHAAGA — animations.css
   Scroll-triggered fade-up, nav scroll effect, hover states,
   and transition utilities.
   ============================================================ */

/* ===== FADE-UP SCROLL ANIMATION ===== */
/* Add class "fade-up" to any element that should animate in on scroll.
   IntersectionObserver in main.js adds class "visible" when in viewport. */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — add delay modifiers */
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* ===== NAV SCROLL EFFECT ===== */
/* Applied via JS when scrollY > 40px */
.site-nav {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTON HOVER ===== */
.btn-primary {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
}

/* ===== CARD HOVER LIFT ===== */
.problem-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 43, 79, 0.09);
}

.pricing-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 43, 79, 0.09);
}

.approach-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.approach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 43, 79, 0.07);
}

/* ===== SERVICE CARD HOVER ===== */
.service-card {
  transition: background 0.2s ease;
}

/* ===== HERO EYEBROW PULSE ===== */
@keyframes hero-eyebrow-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.hero-eyebrow {
  animation: hero-eyebrow-pulse 3s ease-in-out infinite;
}

/* ===== HERO CONTENT ENTRANCE ===== */
@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow   { animation: hero-fade-in 0.7s ease 0.1s both,
                              hero-eyebrow-pulse 3s ease-in-out 1s infinite; }
.hero-heading   { animation: hero-fade-in 0.7s ease 0.25s both; }
.hero-subheading{ animation: hero-fade-in 0.7s ease 0.4s both; }
.hero-ctas      { animation: hero-fade-in 0.7s ease 0.55s both; }
.hero-stats     { animation: hero-fade-in 0.7s ease 0.7s both; }

/* ===== LINK UNDERLINE SLIDE ===== */
.footer-links a,
.nav-links a {
  position: relative;
}

/* ===== STEP NUMBER HOVER ===== */
.process-step:hover .step-number {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}

.step-number {
  transition: transform 0.2s ease;
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 43, 79, 0.08);
}

/* ===== GRANT BANNER BUTTON ===== */
.grant-banner .btn-primary {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grant-banner .btn-primary:hover {
  transform: scale(1.03);
}

/* ===== FOCUS VISIBLE (accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 4px;
}
