/* ============================================
   Alisa Galoozis — Real Estate Website Styles
   Classic & Elegant · Deep Navy + Warm Gold
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF8F4;
}
::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8943F;
}

/* Selection */
::selection {
  background: #C9A84C;
  color: #0F1B33;
}

/* ============================================
   Header / Navigation
   ============================================ */
#header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

#header.scrolled .nav-text,
#header.scrolled .nav-icon-house,
#header.scrolled .menu-line {
  color: #0F1B33;
}

.nav-link {
  position: relative;
}

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

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

.nav-link::after {
  background: #C9A84C;
}

/* Mobile Menu */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Hero Animations
   ============================================ */
.hero-subtitle {
  animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-headline {
  animation: slideUp 1s ease forwards 0.4s;
}

.hero-desc {
  animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-ctas {
  animation: slideUp 0.8s ease forwards 1s;
}

.hero-stats {
  animation: slideUp 0.8s ease forwards 1.2s;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   Reveal Animations (Scroll-triggered)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  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; }

/* ============================================
   Form Styles
   ============================================ */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%235C5347'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select:focus {
  border-color: #C9A84C;
}

/* ============================================
   Image Hover Effects
   ============================================ */
img {
  display: block;
  max-width: 100%;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}

@media (min-width: 1024px) {
  /* Subtle parallax-like effect for hero images */
  .lg\\:aspect-\\[4\\/5\\] {
    will-change: transform;
  }
}
