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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== NAV SCROLL STATE ===== */
#nav.scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08), 0 4px 20px rgba(45, 90, 61, 0.06);
}

#nav.scrolled .font-display {
  color: #2d5a3d;
}

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

#mobileMenu a.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

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

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

/* Hamburger animation */
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* ===== ROOM CARDS ===== */
.room-card {
  will-change: transform;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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);
  }

  .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; }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5a9a64;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: #b0d4b5;
  color: #1c3827;
}

/* ===== SUBTLE GRADIENT BACKGROUNDS ===== */
.bg-gradient-forest {
  background: linear-gradient(135deg, #2d5a3d 0%, #1c3827 100%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0e6;
}
::-webkit-scrollbar-thumb {
  background: #b0d4b5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7fb887;
}
