/* Custom styles for Flair Beauty & Hair Salon */

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

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

body.menu-open .mobile-link {
    animation: slideIn 0.4s ease forwards;
}

body.menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { animation-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(3) { animation-delay: 0.3s; }
body.menu-open .mobile-link:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(192, 108, 68, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #C06C44;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9C5235;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

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