/* ===== CONFIDENCE BEAUTY STUDIO — CUSTOM STYLES ===== */

/* --- Navbar scroll state --- */
#navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .logo-text {
    color: #473a35;
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

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

/* --- Selection color --- */
::selection {
    background: #f8c4b8;
    color: #7a251b;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0ea;
}
::-webkit-scrollbar-thumb {
    background: #d9cabb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #beaa98;
}

/* --- Mobile menu animation --- */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

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

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

/* --- Print styles --- */
@media print {
    #navbar, #mobileMenu, .reveal { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
