/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Nav scroll state ── */
#nav.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ── Mobile menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.open #bar1 {
  transform: translateY(5px) rotate(45deg);
}
#mobile-menu.open #bar2 {
  opacity: 0;
}
#mobile-menu.open #bar3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.25rem;
}

/* ── Hero animations ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub { animation: slideUp 0.7s ease both; }
.hero-title { animation: slideUp 0.7s 0.1s ease both; }
.hero-desc { animation: slideUp 0.7s 0.2s ease both; }
.hero-cta { animation: slideUp 0.7s 0.3s ease both; }
.hero-stats { animation: slideUp 0.7s 0.4s ease both; }
.hero-img-wrap { animation: slideUp 0.8s 0.2s ease both; }

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.animate-scroll-line {
  animation: scrollLine 1.5s ease-in-out infinite;
}

/* ── Service cards ── */
.service-card {
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ── Process steps ── */
.process-step {
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -0.5rem;
  width: 1rem;
  height: 1px;
  background: #cbd5e1;
}
@media (max-width: 768px) {
  .process-step::after { display: none; }
}

/* ── Scroll reveal (below fold only) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

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