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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: #b6d9b5;
  color: #143116;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(252, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(20, 49, 22, 0.08);
}

/* ===== HERO ===== */
#top {
  scroll-margin-top: 0;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  will-change: transform;
}

/* ===== NEIGHBORHOOD CARDS ===== */
.neighborhood-card {
  will-change: transform;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  will-change: transform;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .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; }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #3a803e;
}

/* ===== SELECT STYLING ===== */
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='%2329642d' 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 1rem center;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
}

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid #58a05c;
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
