/* Custom styles for Lala Hair Flagstaff */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 248, 248, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(123, 46, 58, 0.08);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Service card hover */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(123, 46, 58, 0.1);
}

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

/* Testimonial card */
.testimonial-card {
    border: 1px solid rgba(123, 46, 58, 0.06);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B2E3A;
}

/* Selection color */
::selection {
    background: #7B2E3A;
    color: #FFF8F8;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(123, 46, 58, 0.1);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .testimonial-card,
    .gallery-item {
        transition: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

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

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Image placeholder fallbacks */
img {
    background: linear-gradient(135deg, #F9E4E4 0%, #FFF8F8 100%);
}
