/* Custom styles for Roller Inn Motel */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

#navbar.scrolled .nav-brand {
  color: #1c1917;
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #44403c;
}

#navbar.scrolled .nav-link:hover {
  color: #c94f36;
}

/* Mobile menu */
#mobileMenu {
  transition: opacity 0.3s ease;
}

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

#mobileMenuPanel {
  transition: transform 0.3s ease;
}

/* Reveal animations — progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-24px);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(24px);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c94f36;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #c94f36;
}

/* Selection */
::selection {
  background: #f5c0b0;
  color: #572219;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fefcf8 inset !important;
}
