/* Custom styles for Hair N More */

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

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

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

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

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

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 248, 244, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-scrolled .font-serif,
.nav-scrolled a:not(.bg-navy-900):not(.bg-gold-500) {
    color: #132238 !important;
}

.nav-scrolled #line1,
.nav-scrolled #line2,
.nav-scrolled #line3 {
    background: #132238 !important;
}

/* Hamburger animation */
.menu-open #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open #line2 {
    opacity: 0;
}

.menu-open #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Reduced motion */
@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;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
}

/* Mobile menu open state */
.mobile-menu-open #mobileMenu {
    transform: translateX(0);
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}
