/* Custom styles for The Rustic Saloon */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #223523;
}

.navbar-scrolled .nav-link {
    color: #3d613d;
}

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

.menu-line.active:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-line.active:nth-child(2) {
    opacity: 0;
}

.menu-line.active:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    
    .reveal-left {
        opacity: 1;
        transform: none;
    }
    
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Hero parallax subtle effect */
#hero {
    position: relative;
}

#hero img {
    will-change: transform;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9bbf93;
}

/* Selection color */
::selection {
    background: #c5dabb;
    color: #223523;
}

/* Image hover smoothness */
img {
    -webkit-font-smoothing: antialiased;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #527d4f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #3d613d 0%, #527d4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
