/* ============================================
   BIJOU — Custom Styles
   Classic, elegant, refined serif aesthetic
   ============================================ */

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

/* --- Selection --- */
::selection {
    background-color: #166534;
    color: #fefdf8;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(32px);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal[data-reveal-state="hidden"] {
        opacity: 1;
        transform: none;
    }
    img, .group:hover img {
        transition: none;
        transform: none;
    }
}

/* --- Navbar Scrolled State --- */
#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 83, 45, 0.08);
}

#navbar.scrolled .menu-line {
    background-color: #14532d;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #bbf7d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* --- Input autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    box-shadow: 0 0 0 30px #ffffff inset !important;
}
