/* Custom Styles for Classic Barber Shop */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #c7d9ca;
    color: #223226;
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

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

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(46, 79, 54, 0.08);
}

/* Gallery hover effect */
.rounded-2xl.overflow-hidden,
.rounded-3xl.overflow-hidden {
    overflow: hidden;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Print styles */
@media print {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #navbar {
        position: static;
    }
}
