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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #fff;
}

#navbar.scrolled .nav-logo-text {
    color: #2D2A26;
}

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

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(45, 42, 38, 0.45) 0%,
        rgba(45, 42, 38, 0.30) 50%,
        rgba(45, 42, 38, 0.65) 100%
    );
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s ease forwards 0.3s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s ease forwards 0.6s;
}

.hero-badge {
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeUp 0.9s ease forwards 0.15s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s ease forwards 0.75s;
}

.hero-scroll {
    opacity: 0;
    animation: heroFadeUp 0.9s ease forwards 1.1s;
}

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

.hero-btn-primary {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s ease forwards 0.9s;
}

.hero-btn-secondary {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s ease forwards 1.0s;
}

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }

/* ─── Menu Cards ─── */
.menu-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

#mobile-menu.open .mobile-link {
    animation: mobileLinkIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

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

@keyframes mobileLinkIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #D5D0C4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8B0A0;
}

/* ─── Selection ─── */
::selection {
    background: #F7CBB5;
    color: #6A3C30;
}
