/* Custom styles for Salon 208 */

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

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

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

.navbar-scrolled .nav-link {
    color: rgb(28, 60, 33) !important;
}

.navbar-scrolled .font-serif {
    color: rgb(28, 60, 33) !important;
}

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

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

::-webkit-scrollbar-track {
    background: rgb(245, 240, 224);
}

::-webkit-scrollbar-thumb {
    background: rgb(154, 190, 150);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(74, 128, 77);
}

/* Selection color */
::selection {
    background: rgb(198, 219, 191);
    color: rgb(28, 60, 33);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid rgb(74, 128, 77);
    outline-offset: 2px;
}

/* Prevent flash of unstyled content */
.no-js .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}
