/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ========== NAV ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(6, 26, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.2);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #D4A574;
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after { width: 60%; left: 20%; }

/* ========== HERO ========== */
.hero-bg { position: relative; }
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 26, 18, 0.82) 0%,
    rgba(27, 67, 50, 0.72) 50%,
    rgba(6, 26, 18, 0.85) 100%
  );
}

/* Hero animations */
.hero-badge {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s 0.2s forwards ease-out;
}
.hero-title {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s 0.4s forwards ease-out;
}
.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.55s forwards ease-out;
}
.hero-ctas {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s 0.7s forwards ease-out;
}
.hero-trust {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.7s 0.85s forwards ease-out;
}

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

/* CTA buttons */
.cta-primary {
  box-shadow: 0 4px 20px rgba(212,165,116,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.cta-primary:hover {
  box-shadow: 0 8px 32px rgba(212,165,116,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ========== SERVICE CARDS ========== */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ========== MOBILE MENU ========== */
.mobile-link { transition: background 0.2s ease; }
.mobile-link:hover { background: rgba(250,245,235,0.06); }

/* ========== LABEL ========== */
.label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========== FORM ========== */
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='%231B4332' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF5EB; }
::-webkit-scrollbar-thumb { background: #bdd9c7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8fbd9e; }

/* ========== 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; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1.05rem; }
  section { padding-left: 1rem; padding-right: 1rem; }
}
