*, *::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;
}

/* ─── NAV ─── */
.nav {
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 90, 61, 0.08);
  transition: box-shadow 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2D5A3D;
  color: #FDFCFA;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-primary:hover {
  background: #254A32;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: #2D5A3D;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 90, 61, 0.2);
  font-size: 0.9375rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(45, 90, 61, 0.4);
  transform: translateY(-1px);
}

/* ─── HERO ─── */
.hero {
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  opacity: 0;
  animation: heroImgIn 1.2s ease forwards;
}

@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.hero-gradient {
  background: linear-gradient(
    to bottom,
    rgba(253, 252, 250, 0.2) 0%,
    rgba(253, 252, 250, 0.3) 40%,
    rgba(253, 252, 250, 0.85) 75%,
    rgba(253, 252, 250, 1) 100%
  );
}

.hero-content {
  opacity: 0;
  transform: translateY(24px);
  animation: heroContentIn 1s ease 0.4s forwards;
}

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

.hero-badge {
  opacity: 0;
  animation: heroBadgeIn 0.8s ease 0.2s forwards;
}

@keyframes heroBadgeIn {
  to { opacity: 1; }
}

.hero-scroll {
  opacity: 0;
  animation: heroScrollIn 0.8s ease 1.2s forwards;
}

@keyframes heroScrollIn {
  to { opacity: 1; }
}

/* ─── SECTION ─── */
.section {
  position: relative;
}

/* ─── CARDS ─── */
.service-card,
.testimonial-card,
.neighborhood-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── INPUTS ─── */
.input {
  font-family: 'Inter', system-ui, sans-serif;
}

.input:focus {
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

select.input {
  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='%239BBF9C' stroke-width='2' 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;
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .hero {
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero h1 br {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}
