/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; 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(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.card-fresh   { animation-delay: 0s; }
.card-location { animation-delay: -2s; }
.card-community { animation-delay: -4s; }

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .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; }
}

/* ===== GOLD LINE ACCENT ===== */
.gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #faf8f4;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1a3a22; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2e6138; }
