/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #fbcfe8;
    color: #500724;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 251, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(80, 7, 36, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff9f0a;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ===== Hero ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 6, 26, 0.82) 0%,
        rgba(80, 7, 36, 0.72) 40%,
        rgba(157, 23, 77, 0.60) 100%
    );
    z-index: -1;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero reveal animations (above the fold, always visible) */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-up:nth-child(2) { transition-delay: 0.25s; }
.reveal-up:nth-child(3) { transition-delay: 0.4s; }
.reveal-up:nth-child(4) { transition-delay: 0.55s; }

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #fce7f3;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
    color: #ff9f0a;
    padding-left: 12px;
}

/* ===== Product Cards ===== */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.45s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.55s; }

/* ===== Buttons ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffb723;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ===== 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;
    }
    .hero-img {
        animation: none;
    }
    .scroll-reveal,
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    .animate-bounce {
        animation: none;
    }
}
