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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(30, 20, 16, 0.55) 0%,
        rgba(30, 20, 16, 0.45) 50%,
        rgba(30, 20, 16, 0.70) 100%
    );
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ─── Navbar ─── */
.navbar-light .nav-logo-text { color: #1c1917; }
.navbar-light .nav-link { color: #1c1917; }
.navbar-light .nav-menu-btn span { background: #1c1917; }

.navbar-dark .nav-logo-text { color: #fdfcfa; }
.navbar-dark .nav-link { color: #fdfcfa; }
.navbar-dark .nav-menu-btn span { background: #fdfcfa; }

.navbar-scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(191, 99, 83, 0.1);
}

.nav-link {
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

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

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #bf6353;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 80%;
}

/* ─── Hero Animations ─── */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-desc {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

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

/* ─── Button Hover Effects ─── */
.hero-btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-btn-primary:hover::before {
    opacity: 1;
}

.hero-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

/* ─── Reveal Animations (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 {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* ─── Flavor Card Hover ─── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ─── Selection ─── */
::selection {
    background: rgba(191, 99, 83, 0.2);
    color: #1c1917;
}
