/* === Custom Styles for D.proteingrid === */

:root {
    --terra-500: #C4725A;
    --sand-100: #FAF5EC;
    --cream: #FAF7F2;
    --warm-950: #1C1917;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: var(--cream);
    color: var(--warm-950);
    -webkit-font-smoothing: antialiased;
}

/* === Navbar === */
#navbar {
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 184, 122, 0.15);
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    box-shadow: 0 1px 20px rgba(196, 114, 90, 0.08);
}

/* === Marquee === */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Product cards reveal */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile Menu === */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* === Selection === */
::selection {
    background: rgba(196, 114, 90, 0.2);
    color: var(--warm-950);
}

/* === Focus styles === */
:focus-visible {
    outline: 2px solid var(--terra-500);
    outline-offset: 2px;
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: #D4B87A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--terra-500);
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-marquee { animation: none; }
    .product-card, .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group:hover img { transform: none; }
}
