/* Custom styles for Azi Barber */

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(242, 239, 233, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile menu animations */
#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
#menu-toggle.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #line2 {
    opacity: 0;
}

#menu-toggle.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

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

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    img {
        transition: none;
    }
}

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

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-azi-terra {
        background: #333 !important;
        color: white !important;
    }
}
