/* Custom styles for Adore Hair Studio */

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

/* Navigation scroll effect */
.nav-scrolled #navbar {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 95, 45, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

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

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

/* Default state for scroll-reveal elements below fold */
.scroll-reveal[data-reveal] {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .scroll-reveal.revealed[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #b8d1b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3d7a3d;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Print styles */
@media print {
    .scroll-reveal[data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    #navbar {
        position: static !important;
        background: white !important;
        box-shadow: none !important;
    }
}
