/* ─── Base & Reset ─── */
*, *::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 { max-width: 100%; height: auto; display: block; }

/* ─── Hero Gradient ─── */
.hero-gradient {
  background: linear-gradient(135deg, #1a300d 0%, #2D5016 25%, #4a6b1a 50%, #6B8F2E 75%, #8FB948 100%);
}

/* ─── Grain Overlay ─── */
.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── Floating Blobs ─── */
.hero-blob {
  background: radial-gradient(circle, rgba(143, 185, 72, 0.6) 0%, transparent 70%);
}
.hero-blob-1 { background: radial-gradient(circle, rgba(143, 185, 72, 0.5) 0%, transparent 70%); }
.hero-blob-2 { background: radial-gradient(circle, rgba(107, 143, 46, 0.5) 0%, transparent 70%); }
.hero-blob-3 { background: radial-gradient(circle, rgba(163, 190, 110, 0.5) 0%, transparent 70%); }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}
@keyframes float-delayed {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.08); }
  66% { transform: translate(10px, -25px) scale(0.92); }
}
.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 10s ease-in-out infinite; }

/* ─── Scroll Line ─── */
@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line { animation: scroll-line 2s ease-in-out infinite; }

/* ─── Animations ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.8s ease-out forwards; }

/* ─── Reveal on Scroll ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─── Navbar ─── */
.nav-text { transition: color 0.3s; }
#navbar.scrolled .nav-text { color: #1a300d; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8FB948;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Hamburger ─── */
.hamburger-line { transition: all 0.3s ease; }
#mobile-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#mobile-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
#mobile-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 20px; }

/* ─── Mobile Menu ─── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
.mobile-link { transition: opacity 0.3s; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #8FB948 0%, #6B8F2E 100%);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(107, 143, 46, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 143, 46, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-large { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ─── Section Label ─── */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─── Input Fields ─── */
.input-field {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a300d;
  background: #FAF8F0;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field:hover { border-color: #a3be6e; }
.input-field:focus { border-color: #8FB948; box-shadow: 0 0 0 3px rgba(143, 185, 72, 0.15); background: #fff; }
.input-field::placeholder { color: #9ca3af; }

/* ─── Service Cards ─── */
.service-card {
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ─── Approach Items ─── */
.approach-item {
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.approach-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* ─── Mobile Responsiveness ─── */
@media (max-width: 767px) {
  .font-serif.text-5xl,
  .font-serif.text-6xl { font-size: 2.75rem; }
  .font-serif.text-4xl { font-size: 2.25rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
}
