/* ============================================================
   Interactions — hover, scroll-reveal, banner title animation
   B2B understated, consistent 0.32s ease across the board
   ============================================================ */

/* ---------- Unified transition base ---------- */
.navbar-link,
.btn,
.metric-card,
.advantage-card,
.stat-big-card,
.stat-mini,
.dashboard-card,
.pillar-card,
.service-card,
.credential-card,
.roadmap-card,
.growth-card,
.pricing-card,
.case-card,
.founder-portrait,
.senior-led-inner,
.market-right,
.form-input,
.form-textarea,
.form-select {
  transition: transform 0.32s ease,
              box-shadow 0.32s ease,
              border-color 0.32s ease,
              background-color 0.32s ease,
              color 0.32s ease,
              opacity 0.32s ease;
}

/* ============================================================
   1. Banner / Hero title load-in animation
   ============================================================ */
.hero-title,
.page-hero .section-title {
  opacity: 0;
  transform: translateY(14px);
  animation: bannerFadeIn 0.6s ease-out 0.1s forwards;
}

@keyframes bannerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   2. Large text blocks / quote blocks — gentle hover lift
   (desktop only)
   ============================================================ */
@media (min-width: 769px) {
  .senior-led-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  }
}

/* ============================================================
   3. Card hover effects
   ============================================================ */
.metric-card:hover,
.advantage-card:hover,
.stat-big-card:hover,
.stat-mini:hover,
.pillar-card:hover,
.service-card:hover,
.credential-card:hover,
.roadmap-card:hover,
.growth-card:hover,
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Pricing cards — lift + very subtle scale */
.pricing-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

/* Dashboard card on homepage hero */
.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   4. Image hover — very subtle scale
   ============================================================ */
.founder-portrait {
  display: block;
}
.founder-portrait:hover {
  transform: scale(1.02);
}

/* ============================================================
   5. Navigation link — underline slide-in
   ============================================================ */
.navbar-link {
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue, #00A3E0);
  transition: width 0.32s ease;
  pointer-events: none;
}

.navbar-link:hover::after,
.navbar-link:focus-visible::after {
  width: 100%;
}

/* Active nav link keeps a steady underline */
.navbar-link.active::after {
  width: 100%;
}

/* ============================================================
   6. Button hover — subtle upward shift, no scale
   ============================================================ */
.btn:hover,
.pricing-btn:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
}

/* ============================================================
   7. Scroll-reveal entrance (Intersection Observer driven)
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for items within a grid/collection */
.scroll-reveal.delay-1 { transition-delay: 0.12s; }
.scroll-reveal.delay-2 { transition-delay: 0.24s; }
.scroll-reveal.delay-3 { transition-delay: 0.36s; }
.scroll-reveal.delay-4 { transition-delay: 0.48s; }
.scroll-reveal.delay-5 { transition-delay: 0.6s; }
.scroll-reveal.delay-6 { transition-delay: 0.72s; }

/* ============================================================
   8. Form input interactions
   ============================================================ */
.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--accent-blue, #00A3E0);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-blue, #00A3E0);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.12);
  outline: none;
}

/* ============================================================
   Mobile — disable lift/scale, keep color transitions
   ============================================================ */
@media (max-width: 768px) {
  .metric-card:hover,
  .advantage-card:hover,
  .stat-big-card:hover,
  .stat-mini:hover,
  .pillar-card:hover,
  .service-card:hover,
  .credential-card:hover,
  .roadmap-card:hover,
  .growth-card:hover,
  .case-card:hover,
  .pricing-card:hover,
  .dashboard-card:hover,
  .founder-portrait:hover,
  .senior-led-inner:hover,
  .btn:hover,
  .pricing-btn:hover,
  button[type="submit"]:hover {
    transform: none !important;
  }

  .hero-title,
  .page-hero .section-title {
    transform: translateY(7px);
  }

  .scroll-reveal {
    transform: translateY(10px);
  }
}

/* ============================================================
   Prefers-reduced-motion — kill all animations & transitions
   ============================================================ */
@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;
  }

  .hero-title,
  .page-hero .section-title {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .metric-card,
  .advantage-card,
  .stat-big-card,
  .stat-mini,
  .pillar-card,
  .service-card,
  .credential-card,
  .roadmap-card,
  .growth-card,
  .case-card,
  .pricing-card,
  .dashboard-card,
  .founder-portrait,
  .senior-led-inner,
  .btn,
  .pricing-btn,
  button[type="submit"] {
    transform: none !important;
  }
}
