/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --plum-50: #faf0f6;
  --plum-500: #6B2F5B;
  --plum-700: #491e3f;
  --plum-800: #381630;
  --amber-400: #F5C518;
  --radius: 1rem;
  --radius-lg: 2rem;
  --shadow: 0 4px 24px rgba(107, 47, 91, 0.08);
  --shadow-lg: 0 12px 40px rgba(107, 47, 91, 0.12);
}

/* ========== NAVBAR ========== */
#navbar {
  background: rgba(250, 240, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107, 47, 91, 0.06);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(107, 47, 91, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-400);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--plum-100);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--plum-500);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(107, 47, 91, 0.2);
}

.btn-primary:hover {
  background: var(--plum-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 47, 91, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--plum-700);
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--plum-200);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--plum-50);
  border-color: var(--plum-400);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--plum-800);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: var(--plum-700);
  transform: translateY(-2px);
}

/* ========== BLOBS ========== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-plum {
  background: var(--plum-500);
}

.blob-amber {
  background: var(--amber-400);
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ========== CARDS ========== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid rgba(107, 47, 91, 0.05);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107, 47, 91, 0.1);
}

.card:hover .w-14 {
  transform: scale(1.1) rotate(-3deg);
}

.card .w-14 {
  transition: transform 0.3s ease;
}

/* ========== NEIGHBORHOOD CARDS ========== */
.neighborhood-card {
  transition: all 0.4s ease;
}

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

.neighborhood-card:hover img {
  transform: scale(1.05);
}

.neighborhood-card img {
  transition: transform 0.5s ease;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* ========== INPUT FIELDS ========== */
.input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--plum-100);
  border-radius: var(--radius);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--plum-800);
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: var(--plum-300);
}

.input-field:focus {
  border-color: var(--plum-400);
  box-shadow: 0 0 0 4px rgba(107, 47, 91, 0.08);
}

.input-field:hover:not(:focus) {
  border-color: var(--plum-200);
}

/* ========== LINK ARROWS ========== */
.link-arrow {
  transition: gap 0.3s ease;
}

.link-arrow:hover {
  gap: 0.4rem;
}

/* ========== HERO ANIMATIONS ========== */
.hero-content {
  animation: fadeUp 0.8s ease forwards;
}

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

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

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ========== MOBILE MENU ========== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  section {
    padding: 60px 0 !important;
  }

  .about-image img {
    height: 400px !important;
  }
}

@media (max-width: 480px) {
  .max-w-7xl {
    px: 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  #contact-form {
    padding: 1.5rem;
  }
}
