/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF9F3; }
::-webkit-scrollbar-thumb { background: #B85C38; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a04e2e; }

/* ── Selection ── */
::selection { background: #B85C38; color: #FDF9F3; }

/* ── Header scroll state ── */
#site-header.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 20, 16, 0.06);
}

/* ── Nav links ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B85C38;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.open .mobile-nav-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}
#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger animation ── */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ── Hero animations ── */
.hero-tagline {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-title {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.hero-stat {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}
.hero-cta {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll indicator ── */
.scroll-indicator-line {
    animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -16px; }
    100% { top: 48px; }
}

/* ── Marquee ── */
.marquee-track {
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    flex-shrink: 0;
}
.marquee-dot {
    flex-shrink: 0;
}

/* ── Reveal on scroll ── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Product card hover ── */
.product-card {
    cursor: pointer;
}
.product-card img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Form focus states ── */
input:focus, textarea:focus {
    border-color: #B85C38 !important;
}

/* ── Button hover ── */
button, a {
    transition: all 0.3s ease;
}

/* ── Image placeholder fallback ── */
img {
    background: linear-gradient(135deg, #EDD4BA 0%, #E0BFA0 100%);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    .marquee-track {
        animation: none;
    }
}

/* ── Tablet ── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* ── Large screens ── */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 5.5rem;
    }
}
