/* Custom styles for Alpine Inn */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement: hidden state applied via JS only */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 26, 46, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Nav link hover underline animation */
.nav-link {
    position: relative;
}

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

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

/* Mobile link styles */
.mobile-link {
    position: relative;
    padding-left: 0;
}

/* Hero image stack hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

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

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

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

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

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

/* Button press animation */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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