/* ═══════════════════════════════════════════
   Avella Park — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ── Navbar ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 201, 188, 0.4);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ── Hero Blobs ── */
.hero-blob {
  will-change: transform;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

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

/* ── Floating Stat Cards ── */
.floating-card {
  animation: floatCard 4s ease-in-out infinite;
}
.card-sold { animation-delay: 0s; }
.card-avg { animation-delay: -1.3s; }
.card-price { animation-delay: -2.6s; }

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

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion — content stays visible */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-card { animation: none; }
  .hero-blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Selection ── */
::selection {
  background: #f3b8a8;
  color: #5a2f21;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #C0603A;
  outline-offset: 2px;
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F2; }
::-webkit-scrollbar-thumb { background: #d4c9bc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b8aa9a; }
