/* ─── Base & Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

::selection {
  background: rgba(6, 95, 70, 0.15);
  color: #064e3b;
}

/* ─── Utility ─── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
  color: #6ee7b7;
}

/* ─── Navbar ─── */
#navbar {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(110, 231, 183, 0.15);
}

#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 1px 0 rgba(110, 231, 183, 0.2);
}

.nav-link {
  position: relative;
}

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

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

/* ─── Mobile Menu ─── */
.mobile-link {
  position: relative;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* ─── Hero ─── */
.hero-eyebrow {
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-headline {
  animation: fadeUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-subheadline {
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-ctas {
  animation: fadeUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

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

/* ─── Reveal Animations ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* stagger children */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.listing-card:nth-child(1) { transition-delay: 0.05s; }
.listing-card:nth-child(2) { transition-delay: 0.1s; }
.listing-card:nth-child(3) { transition-delay: 0.15s; }

.testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.15s; }

/* ─── CTA Buttons ─── */
.cta-primary {
  box-shadow: 0 4px 20px rgba(6, 95, 70, 0.2);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  box-shadow: 0 8px 30px rgba(6, 95, 70, 0.3);
  transform: translateY(-1px);
}

.cta-secondary:hover {
  background: rgba(6, 95, 70, 0.05);
}

/* ─── Listing Cards ─── */
.listing-card {
  position: relative;
}

.listing-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #065f46, #10b981);
  transition: width 0.4s ease;
}

.listing-card:hover::after {
  width: 100%;
}

/* ─── Form ─── */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #065f46 !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a7f3d0;
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}
