/* Custom styles for Juanita's Hair Salon */

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

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

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

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

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

/* Selection color */
::selection {
    background: #d45238;
    color: white;
}

/* Animation for mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.group:hover .w-14 {
    transform: scale(1.1);
}

.w-14 {
    transition: transform 0.3s ease;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .w-14 {
        transform: none;
    }
    
    .overflow-hidden img {
        transition: none;
    }
}

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