/* Stable Inn Motel — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: #c97a4a;
  color: #fdfcfa;
}

/* Nav link transition helper */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

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

/* Mobile menu transitions */
.mobile-link {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Scroll-reveal base state (visible by default — progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image loading placeholder */
img {
  background-color: #f5edd9;
}

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

/* Form styles */
input:focus,
textarea:focus {
  outline: none;
  border-color: #c97a4a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #d4b478;
  border-radius: 3px;
}

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