/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ─── Hero Geometric Shapes ─── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 96, 58, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(201, 145, 74, 0.08);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(192, 96, 58, 0.15);
    top: 30%;
    left: 8%;
    border-radius: 50%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(192, 96, 58, 0.06);
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    border-radius: 8px;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(201, 145, 74, 0.1);
    bottom: 25%;
    right: 5%;
    transform: rotate(20deg);
    border-radius: 12px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(192, 96, 58, 0.07);
    top: 45%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    background-image: radial-gradient(circle, rgba(192, 96, 58, 0.2) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.6;
}

/* ─── Marquee ─── */
.marquee-track {
    animation: marquee 30s linear infinite;
}

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

/* ─── Product Cards ─── */
.product-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .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; }
}

/* ─── Mobile Menu ─── */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* ─── Hamburger ─── */
.hamburger-line {
    display: block;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* ─── Navbar scroll state ─── */
#navbar.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #44403c;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF9F3; }
::-webkit-scrollbar-thumb { background: #C0603A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a84e2d; }

/* ─── Focus styles ─── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
