/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; }

/* ========== HEADER ========== */
#header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#header.scrolled {
  background: rgba(255, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 17, 46, 0.08);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B112E;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link {
  transition: color 0.3s ease, transform 0.3s ease;
}
.mobile-link:hover { color: #F4C2C2; transform: translateY(-2px); }
.menu-line { transition: all 0.3s ease; }
#menuToggle.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menuToggle.active .menu-line:nth-child(2) { opacity: 0; }
#menuToggle.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }

/* ========== BUTTONS ========== */
.btn-primary {
  background: #7B112E;
  color: white;
  border-radius: 50px;
  padding: 0 2rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: #9B1B3F;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 17, 46, 0.3);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: #7B112E;
  border: 2px solid #7B112E;
  border-radius: 50px;
  padding: 0 2rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #7B112E;
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: #7B112E;
  border-radius: 50px;
  padding: 0 2rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-white:hover {
  background: #FDF0F0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #7B112E;
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  padding: 0 2rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-outline-white:hover {
  background: white;
  color: #7B112E;
  border-color: white;
  transform: translateY(-2px);
}

/* ========== TAGS ========== */
.tag-burgundy {
  display: inline-block;
  background: #FCE7EB;
  color: #7B112E;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}
.tag-blush {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #F4C2C2;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

/* ========== HERO ========== */
.hero-badge {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
.hero-img-main {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}
.hero-img-float {
  animation: floatUp 0.8s ease 0.8s forwards;
  opacity: 0;
}
.hero-geo {
  position: absolute;
  opacity: 0.15;
}
.geo-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #7B112E;
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}
.geo-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #F4C2C2;
  bottom: 60px;
  right: 120px;
  animation: float 6s ease-in-out infinite reverse;
}
.geo-square {
  width: 120px;
  height: 120px;
  background: #7B112E;
  top: 200px;
  right: 200px;
  transform: rotate(45deg);
  animation: spin 20s linear infinite;
}
.geo-triangle {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #F4C2C2;
  top: 120px;
  right: 300px;
  opacity: 0.1;
  animation: float 7s ease-in-out infinite;
}
.scroll-line {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(123, 17, 46, 0.2);
}

/* ========== ABOUT ========== */
.about-image-wrapper {
  position: relative;
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(244, 194, 194, 0.5);
  border-radius: 2rem;
  z-index: -1;
}
.about-pattern {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ========== NEIGHBORHOODS ========== */
.neighborhood-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.neighborhood-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(123, 17, 46, 0.25);
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(123, 17, 46, 0.1);
}

/* ========== CTA GEOS ========== */
.cta-geo-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #F4C2C2;
  top: -100px;
  left: -80px;
  opacity: 0.15;
}
.cta-geo-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: #7B112E;
  bottom: -40px;
  right: 15%;
  transform: rotate(45deg);
  opacity: 0.2;
}
.cta-geo-3 {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F4C2C2;
  top: 30%;
  right: 5%;
  opacity: 0.2;
}

/* ========== FORM ========== */
.input-field {
  border: 1.5px solid #E8A0A0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #374151;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
  background: #FFF8F6;
}
.input-field:focus {
  border-color: #7B112E;
  box-shadow: 0 0 0 3px rgba(123, 17, 46, 0.1);
  background: white;
}
.input-field::placeholder { color: #B84858; opacity: 0.5; }

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }

/* ========== KEYFRAMES ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes spin {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-geo { display: none; }
  .geo-circle-1, .geo-circle-2, .geo-square, .geo-triangle { display: none; }
  #hero h1 { font-size: 3rem; }
  .about-float-card { position: relative; bottom: auto; right: auto; margin-top: 1rem; }
  .cta-geo-1, .cta-geo-2, .cta-geo-3 { display: none; }
}
