/* =========================================
   Rapid River Lodge — Custom Styles
   ========================================= */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #FDF8F0;
}

::selection {
  background-color: #fce4d9;
  color: #8a2c1a;
}

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

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(107, 101, 96, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d14522;
  border-radius: 1px;
  transition: width 0.25s ease;
}

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

.nav-logo-text {
  transition: color 0.3s ease;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease;
}

.mobile-menu-link:hover {
  padding-left: 8px;
}

/* --- Hero --- */
#hero {
  background: linear-gradient(135deg, #FDF8F0 0%, #fdf6ec 50%, #fdf0eb 100%);
}

/* --- Room Cards --- */
.room-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }

/* --- Button focus styles --- */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #d14522;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .room-card {
    transition: none;
  }
  .room-card:hover {
    transform: none;
  }
  img {
    transition: none;
  }
}

/* --- Tablet --- */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* --- Small mobile --- */
@media (max-width: 400px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
