/* ============================================
   LC SALES — Custom Styles
   Bold editorial aesthetic: forest green + cream
   ============================================ */

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

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

::selection {
    background-color: #284324;
    color: #fdfcfa;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #4f8344;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d6834;
}

/* --- Navbar --- */
#navbar {
    background: rgba(253, 252, 250, 0.0);
    backdrop-filter: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(33, 55, 30, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #284324;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link {
    color: #284324;
}

#nav-logo-text {
    color: #111e0f;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Button Ripple Effect --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #284324;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Smooth section transitions --- */
section {
    position: relative;
}

/* --- Product card image container --- */
.group:hover .group-hover\:scale-110 {
    will-change: transform;
}

/* --- Mobile menu animation --- */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Print styles --- */
@media print {
    #navbar,
    #mobile-menu {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    .font-serif {
        color: black !important;
    }
}
