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

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

body {
  overflow-x: hidden;
}

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

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(46, 85, 37, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled .text-forest-900 {
  color: #1f381a;
}

#navbar.scrolled .text-forest-600 {
  color: #2e5525;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

#mobileMenu.closed .mobile-link {
  opacity: 0;
  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);
}

/* Default state for revealable elements — always visible */
.reveal {
  /* Content is visible by default; JS adds the 'revealed' class for animation */
}

/* ========== ROOM CARDS ========== */
.room-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ========== AMENITY ITEMS ========== */
.amenity-item {
  transition: transform 0.3s ease;
}

.amenity-item:hover {
  transform: translateY(-2px);
}

/* ========== BUTTON HOVER EFFECTS ========== */
a[href="#contact"],
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f3ed;
}

::-webkit-scrollbar-thumb {
  background: #bdd5b5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #93be87;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .room-card:hover {
    transform: none;
  }

  img:hover {
    transform: none;
  }
}

/* ========== MOBILE MENU FULLSCREEN ========== */
#mobileMenu {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ========== FORM FOCUS STATES ========== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(79, 133, 64, 0.15);
}

/* ========== RESPONSIVE TYPOGRAPHY ========== */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}
