/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ========== TYPOGRAPHY ========== */
.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-sans { font-family: 'Inter', system-ui, sans-serif; }

/* ========== SECTION LABEL ========== */
.section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0d9488;
}

/* ========== NAV ========== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0d9488;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #0d9488; }

/* ========== HERO ANIMATIONS ========== */
.hero-tagline {
  animation: slideUp 0.8s ease forwards;
}
.hero-headline {
  animation: slideUp 0.8s ease forwards;
}
.hero-headline:nth-child(1) { animation-delay: 0.15s; }
.hero-headline:nth-child(2) { animation-delay: 0.3s; }
.hero-body {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.45s;
  opacity: 0;
}
.hero-cta {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.hero-image-wrapper {
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.hero-stats-card {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.75s;
  opacity: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary, .btn-cta, .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ========== NEIGHBORHOOD CARDS ========== */
.neighborhood-card {
  cursor: pointer;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
  text-align: center;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ========== SCROLL REVEAL ========== */
.reveal-up, .reveal-left, .reveal-right {
  /* Default: visible (progressive enhancement) */
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-2px);
}

/* ========== MOBILE MENU ANIMATION ========== */
.menu-line:nth-child(1) {
  transform-origin: center;
}
.menu-line:nth-child(2) {
  transform-origin: center;
}
.menu-line:nth-child(3) {
  transform-origin: center;
}
body.menu-open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-stats-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 1rem;
  }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
