/* ============================================
   JK FINE Furniture — Custom Styles
   ============================================ */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #064e3b;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #064e3b;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 243, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.navbar-scrolled .font-serif {
    color: #064e3b !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(32px);
}

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

    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Stagger children */
.stagger-children .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .scroll-reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .scroll-reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .scroll-reveal:nth-child(6) { transition-delay: 500ms; }

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236ee7b7' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #mobileMenu, button { display: none; }
    body { color: #000; background: #fff; }
    section { page-break-inside: avoid; }
}
