/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .process-step,
  .testimonial-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .service-card.revealed,
  .process-step.revealed,
  .testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .service-card:nth-child(2),
  .process-step:nth-child(2),
  .testimonial-card:nth-child(2) { transition-delay: 0.08s; }
  .service-card:nth-child(3),
  .process-step:nth-child(3),
  .testimonial-card:nth-child(3) { transition-delay: 0.16s; }
  .service-card:nth-child(4) { transition-delay: 0.20s; }
  .service-card:nth-child(5) { transition-delay: 0.24s; }
  .service-card:nth-child(6) { transition-delay: 0.28s; }
}

/* ── Nav link underline animation ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B85D45;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile menu animation ── */
#mobile-menu.open .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#mobile-menu.open .menu-line:nth-child(3) {
  width: 100%;
  transform: translateY(-5px) rotate(-45deg);
}

/* ── Floating animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F3; }
::-webkit-scrollbar-thumb { background: #DDB382; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B85D45; }

/* ── Selection color ── */
::selection { background: #EBC9BC; color: #1E2D3D; }
