/* Custom styles for Uptown Barber Shop */

/* Smooth scrolling is handled via HTML scroll-behavior */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F1;
}
::-webkit-scrollbar-thumb {
    background: #d4623a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c24b28;
}

/* Ensure all images have consistent rendering */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on all images */
img {
    vertical-align: middle;
}

/* Mobile menu animations */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Mobile nav link hover */
.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(26, 20, 16, 0.05);
}
.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee {
        animation: none;
    }
    .float-animation {
        animation: none;
    }
    .rotate-slow {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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

/* Print styles */
@media print {
    nav, .marquee, #gallery, .geometric-shape {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
