/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #1a3c2a;
  color: #f0ead6;
}

/* ========== NAV ========== */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
  background: rgba(11, 26, 18, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(240, 234, 214, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #f0ead6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

/* ========== HERO ANIMATIONS ========== */
.hero-anim {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

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

/* ========== SECTION LABEL ========== */
.section-label {
  position: relative;
  display: inline-block;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #528a48;
  margin-bottom: 12px;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #528a48;
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========== INPUT FOCUS ========== */
input:focus, textarea:focus {
  border-color: #3a6b34 !important;
  box-shadow: 0 0 0 3px rgba(58, 107, 52, 0.15);
}

/* ========== FORM SUCCESS ========== */
#form-success {
  animation: fadeUp 0.5s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }
}
