/* Custom styles for Alpelos Hair Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(126, 34, 206, 0.08);
}

/* Service cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 500px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Animation classes (progressive enhancement, below fold only) */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible without JS */
.fade-up {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #hero .absolute, .scroll-indicator {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
