/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }

/* ── Navbar ── */
.nav-text { transition: color 0.4s; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Navbar scroll state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(14, 26, 46, 0.06);
}
nav.scrolled .nav-text { color: #0e1a2e; }
nav.scrolled .nav-link { color: #768fb0; }
nav.scrolled .nav-link:hover { color: #1e3654; }
nav.scrolled .mobile-nav-link { color: #768fb0; }

/* ── Hero Animations ── */
.hero-eyebrow {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}
.hero-heading {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.25s;
}
.hero-sub {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}
.hero-cta {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.55s;
}
.hero-stats {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.7s;
}
.hero-image {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.35s;
}

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

/* ── Section Headers ── */
.section-header {
  opacity: 1;
}

/* ── Service Cards ── */
.service-card {
  opacity: 1;
}

/* ── Process Steps ── */
.process-step {
  opacity: 1;
}

/* ── Scroll Reveal (below fold only) ── */
@media (prefers-reduced-motion: no-preference) {
  .section-reveal {
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1;
    transition: none;
  }
}

/* ── Form ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px currentColor;
  border-color: transparent;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23768fb0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ── Mobile menu animation ── */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Utility ── */
::selection { background: rgba(95, 191, 138, 0.2); }
