/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FAF9F6;
    color: #0A1628;
    overflow-x: hidden;
}

::selection {
    background: #A8E6CF;
    color: #0A1628;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
    background: #0A1628;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #132744;
}

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

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

/* ── Hero Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

/* ── Nav ── */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

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

#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ── Menu Button Animation ── */
#menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active #menu-line-2 {
    opacity: 0;
}
#menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s 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; }

/* ── Product Card Image Hover ── */
.product-card:hover .product-img {
    transform: scale(1.08);
}

/* ── Form Focus States ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ── Print Styles ── */
@media print {
    #navbar, #mobile-menu, .animate-marquee {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
