/* Custom styles for Hair by Carl */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Header scroll effect */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #D97706;
    color: #ffffff;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #D97706;
    outline-offset: 2px;
}

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