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

/* ========== NAVBAR ========== */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.cta-btn {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  color: #fefdf8;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.25);
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 101, 52, 0.35);
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-link { display: block; }
.mobile-nav-link:hover { color: #16a34a; }

/* ========== HERO ========== */
.cta-btn-emerald {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #052e16;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
  display: inline-block;
  text-decoration: none;
}
.cta-btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.cta-btn-outline {
  display: inline-block;
  text-decoration: none;
}

.cta-btn-cream {
  display: inline-block;
  text-decoration: none;
}

.cta-btn-outline-light {
  display: inline-flex;
  text-decoration: none;
}

/* ========== SERVICE CARDS ========== */
.service-card { cursor: default; }

/* ========== GALLERY ========== */
.gallery-item { cursor: pointer; }

/* ========== FAQ ========== */
.faq-item { transition: all 0.3s ease; }
.faq-item:hover { border-color: #bbf7d0; }
.faq-item.active { border-color: #86efac; background: #f0fdf4; }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 300px;
  opacity: 1;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ========== INPUTS ========== */
.input-field {
  border: 1.5px solid #d1fae5;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Nunito', system-ui, sans-serif;
  color: #064e3b;
  background: #fefdf8;
  transition: all 0.25s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: #a7f3d0; }
.input-field:hover { border-color: #86efac; }
.input-field:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  background: #fff;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ========== BACK TO TOP ========== */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .font-serif { line-height: 1.15; }
  #hero h1 { font-size: 2.5rem; }
  .cta-btn-emerald, .cta-btn-outline, .cta-btn-cream, .cta-btn-outline-light {
    width: 100%;
    justify-content: center;
  }
}
