/* Custom styles for Authentic Beauty Hair Salon */

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

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

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

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

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

/* Selection color */
::selection {
    background: #ff6b35;
    color: #ffffff;
}

/* Fade in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hover\\:scale-105:hover {
        transform: none;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Image hover effect */
img {
    transition: filter 0.3s ease;
}

img:hover {
    filter: brightness(1.05);
}

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

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Button ripple effect */
button,
a {
    position: relative;
    overflow: hidden;
}

/* Loading state for form */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
