/* ─── 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 {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Hero ─── */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(61, 30, 46, 0.82) 0%,
        rgba(123, 63, 91, 0.72) 50%,
        rgba(61, 30, 46, 0.85) 100%
    );
}

.hero-headline {
    animation: heroFadeUp 1s ease-out both;
}

.hero-subtitle {
    animation: heroFadeUp 1s ease-out 0.2s both;
}

.hero-badge {
    animation: heroFadeUp 1s ease-out 0.1s both;
}

.hero-ctas {
    animation: heroFadeUp 1s ease-out 0.4s both;
}

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

.hero-scroll-indicator {
    animation: heroFadeUp 1s ease-out 0.8s both;
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 63, 91, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B3F5B, #F5A623);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-link {
    color: #5C2D44;
}

.nav-text {
    color: #7B3F5B;
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-text {
    color: #5C2D44;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ─── Product Cards ─── */
.product-card {
    will-change: transform, box-shadow;
}

/* ─── Mobile Menu ─── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 63, 91, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
    background: #E8C2D6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D49AAF;
}

/* ─── Selection ─── */
::selection {
    background: #E8C2D6;
    color: #3D1E2E;
}

/* ─── Focus visible ─── */
:focus-visible {
    outline: 2px solid #7B3F5B;
    outline-offset: 2px;
}

/* ─── Button hover lift ─── */
.hero-btn-primary,
.hero-btn-secondary {
    will-change: transform, box-shadow;
}

/* ─── Print ─── */
@media print {
    #navbar,
    .hero-scroll-indicator,
    .hero-bg { display: none; }
    body { color: #000; background: #fff; }
}
