/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Nav scroll state ── */
#nav.scrolled {
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 170, 140, 0.2);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* ── Mobile menu ── */
.mobile-link { display: block; }
.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 5px; }

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

/* ── Stat cards ── */
.stat-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* ── Scroll reveal (below the fold only) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ── Service cards ── */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.35s ease;
}
.service-card:hover { transform: translateY(-4px); }

/* ── Why cards ── */
.why-card {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.35s ease;
}
.why-card:hover { transform: translateX(4px); }

/* ── Nav links underline ── */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #C0603A;
  transition: width 0.25s ease;
  margin-top: 2px;
}
.nav-link:hover::after { width: 100%; }

/* ── Selection ── */
::selection { background: rgba(192, 96, 58, 0.15); }

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

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