/* ============================================
   Four Glaciers Inn — Custom Styles
   ============================================ */

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: #1f5f48;
  color: #fdfbf7;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a2d22;
}
::-webkit-scrollbar-thumb {
  background: #1f5f48;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #357a62;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 2px;
}

/* Navbar transition states */
.nav-scrolled {
  background: rgba(4, 25, 18, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Image lazy loading fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Smooth image loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Subtle parallax for hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    will-change: transform;
  }
}

/* Print */
@media print {
  nav, #contact-form, .reveal {
    display: none !important;
  }
  body {
    color: #0a2d22;
    background: #fdfbf7;
  }
}
