/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  overflow-x: hidden;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(107, 47, 91, 0.08);
}

.nav-logo-text { color: #6B2F5B; }
.nav-logo-sub { color: #D97706; }

#navbar.scrolled .nav-logo-text { color: #6B2F5B; }
#navbar.scrolled .nav-logo-sub { color: #D97706; }

.nav-link {
  position: relative;
}

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

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

/* ── CTA Button ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F59E0B;
  color: #3D1934;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  background: #D97706;
  color: #3D1934;
}

/* ── Hero Floating Cards ── */
.hero-float-card {
  animation: floatCard 6s ease-in-out infinite;
}

.hero-float-card:nth-child(2) { animation-delay: -1.5s; animation-duration: 5s; }
.hero-float-card:nth-child(3) { animation-delay: -3s; animation-duration: 7s; }
.hero-float-card:nth-child(4) { animation-delay: -4.5s; animation-duration: 5.5s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ── Service Cards ── */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(107, 47, 91, 0.2);
}

/* ── Neighborhood Cards ── */
.neighborhood-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.neighborhood-card:hover {
  transform: translateY(-6px);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* ── Form Inputs ── */
.form-input {
  border: 2px solid #F3E8EF;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder { color: #C4A8D4; }

/* ── Mobile Menu ── */
.mobile-nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}

.mobile-nav-link:hover {
  background: #FDF2F8;
}

#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 3rem;
  }

  .hero-float-card {
    display: none;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4rem;
  }
}
