:root {
    --primary: #46524b;      /* Dark Greenish/Grey */
    --secondary: #5b4737;    /* Brownish */
    --accent: #ff0000;       /* Red */
    --bg-base: #f1f0ec;      /* Warm Off-White / Beige */
    
    --font-hand: 'Gochi Hand', cursive;
    --font-modern: 'Outfit', sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Handled by Lenis */
}

body {
    background-color: var(--bg-base);
    color: var(--primary);
    font-family: var(--font-modern);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.gochi-font {
    font-family: var(--font-hand);
}

.text-accent {
    color: var(--accent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* Typography Scale */
h1 { font-size: clamp(4rem, 8vw, 10rem); line-height: 1; }
h2 { font-size: clamp(3rem, 5vw, 6rem); line-height: 1.1; }
h3 { font-size: clamp(2rem, 3vw, 4rem); line-height: 1.2; }
p { font-size: clamp(1.1rem, 1.5vw, 1.5rem); line-height: 1.6; }

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--primary);
    color: var(--bg-base);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-content {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.preloader-title {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--bg-base);
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: rgba(241, 240, 236, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent);
}

#loading-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: #f1f0ec;
    opacity: 0; /* Fade in from JS */
    text-shadow: 0 2px 5px rgba(70, 82, 75,0.5);
    transition: color 0.3s, text-shadow 0.3s;
}

.navbar.nav-dark {
    color: var(--primary);
    text-shadow: none;
}

.nav-logo {
    font-size: 1.8rem;
    cursor: pointer;
    text-transform: lowercase;
}

.nav-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cart-toggle {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-shortcut {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-shortcut:hover {
    color: var(--accent);
}


















/* =========================================
   CART MODAL (Right side panel)
   ========================================= */
.cart-modal {
    position: fixed;
    top: 0; right: 0; width: 100%; max-width: 450px; height: 100vh;
    background-color: var(--bg-base);
    box-shadow: -10px 0 30px rgba(70, 82, 75,0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    transform: translateX(0);
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(70, 82, 75, 0.1);
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(70, 82, 75, 0.1);
}

.item-info h4 {
    font-size: 1rem;
}

.item-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: var(--primary);
    color: var(--bg-base);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(70, 82, 75, 0.1);
    background-color: #f1f0ec;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent);
    color: #f1f0ec;
    text-align: center;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-btn:hover {
    background-color: #ff0000;
    transform: scale(1.02);
}

/* =========================================
   HERO SCROLLYTELLING
   ========================================= */
.hero-section {
    height: 150vh; /* Shorter scroll length to remove empty gaps */
    position: relative;
    background-color: var(--primary); /* Dark fallback so white text is perfectly visible if video fails */
}

.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
}

#sequence-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays on Canvas */
.hero-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(70, 82, 75, 0.4); /* Dark overlay for better text contrast */
    pointer-events: none;
}

.hero-overlay-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Let clicks pass through if needed */
}

.hero-text {
    position: absolute;
    width: 100%;
    padding: 0 5vw;
    text-align: center;
    opacity: 0; /* Fade in from JS */
    pointer-events: auto;
    color: #f1f0ec;
    text-shadow: 0 4px 15px rgba(70, 82, 75,0.6);
    transform: translateZ(0);
    will-change: opacity, transform;
}

.step-1 { 
    opacity: 1; /* Make Step 1 visible instantly! */
    top: 40%; 
    transform: translateY(-50%); 
}

.step-2 { top: 50%; text-align: left; opacity: 0; pointer-events: none; }
.step-3 { top: 50%; text-align: right; opacity: 0; pointer-events: none; }
.step-4 { top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; }

.text-gradient {
    color: #f1f0ec; /* Removed expensive gradient filter for maximum performance */
}

.magnetic-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    border: 2px solid var(--bg-base);
    color: var(--bg-base);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.magnetic-btn:hover {
    background: var(--bg-base);
    color: var(--primary);
}

/* =========================================
   MAIN CONTENT WRAPPER
   ========================================= */
.main-content-wrapper {
    position: relative;
    z-index: 10; /* Bring above sticky canvas when reached */
    background-color: var(--bg-base);
}

/* ABOUT SECTION */
.about-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 10vw 0;
}

.reveal-text {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.4;
    max-width: 1000px;
    font-weight: 300;
}

/* BENTO GRID */
.bento-section {
    padding: 5vw 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 2rem;
}

.bento-card {
    background: var(--secondary);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    color: var(--bg-base);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.bento-card:hover {
    transform: translateY(-10px);
}

.card-tall { grid-row: span 2; grid-column: span 2; background: var(--primary); }
.card-wide { grid-column: span 2; }

.bento-inner h3 {
    font-size: 2rem;
    z-index: 2;
    position: relative;
}

/* STATS */
.stats-section {
    padding: 10vw 0;
    background: var(--primary);
    color: var(--bg-base);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.stat-item h2 {
    font-family: var(--font-hand);
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* MENU SECTION */
.menu-section {
    padding: 10vw 0;
    background: #f1f0ec;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 4rem;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--primary);
    background: transparent;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--bg-base);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.menu-card {
    background: var(--bg-base);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.menu-card:hover {
    box-shadow: 0 20px 40px rgba(70, 82, 75,0.08);
}

.menu-img-placeholder {
    height: 250px;
    background-color: var(--secondary);
    background-size: cover;
    background-position: center;
}

.menu-info {
    padding: 2rem;
}

.menu-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-info p {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.menu-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-action .price {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: var(--accent);
}

.add-btn {
    background: var(--primary);
    color: var(--bg-base);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: background 0.3s;
}

.add-btn:hover {
    background: var(--secondary);
}

/* TESTIMONIALS SECTION */
.testimonial-section {
    padding: 15vw 0;
    text-align: center;
    background: var(--bg-base);
}

.testimonial-slider {
    margin-top: 4rem;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    color: var(--secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA SECTION */
.cta-section {
    padding: 15vw 0;
    background: var(--accent);
    color: #f1f0ec;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section .primary-btn {
    background: #f1f0ec;
    color: var(--accent);
    display: inline-block;
    width: auto;
    padding: 1.2rem 4rem;
    margin-top: 3rem;
}

.cta-section .primary-btn:hover {
    background: var(--primary);
    color: #f1f0ec;
}

/* FOOTER */
footer {
    background: var(--primary);
    color: var(--bg-base);
    padding: 5vw 0 2vw;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.footer-logo {
    font-size: 4rem;
}

.footer-links a {
    color: var(--bg-base);
    text-decoration: none;
    margin: 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Overrides */
@media(max-width: 768px) {
    /* Basic Typography Adjustments */
    h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
    h2 { font-size: clamp(2rem, 5vw, 3rem); }
    h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
    p { font-size: clamp(1rem, 2vw, 1.2rem); }
    .reveal-text { font-size: clamp(1.5rem, 5vw, 2.2rem); }

    /* Navigation */
    .nav-logo { font-size: 1.8rem; }
    .navbar { padding: 1rem 5vw; }
    .cart-toggle { font-size: 1rem; }
    
    

    /* Hero Scrollytelling Alignment */
    .hero-text { padding: 0 5vw; }
    .step-1 { opacity: 1; top: 50%; transform: translateY(-50%); text-align: center; }
    .step-2, .step-3, .step-4 { opacity: 0; pointer-events: none; text-align: center; top: 50%; transform: translateY(-50%); }
    .step-2 { top: 40%; }
    .step-3 { top: 60%; }
    
    /* Layout Spacing Reductions */
    .about-section, .stats-section, .menu-section, .testimonial-section, .cta-section {
        padding: 4rem 4vw;
    }
    .main-content-wrapper { padding-top: 0; margin-top: 0; }

    /* Grids & Cards */
    .bento-grid { 
        grid-template-columns: repeat(4, 1fr) !important; 
        grid-auto-rows: 35vw !important; 
        gap: 0.6rem !important; 
    }
    .card-tall { grid-row: span 2 !important; grid-column: span 2 !important; height: 100% !important; }
    .card-wide { grid-column: span 2 !important; height: 100% !important; }
    .bento-card { height: 100% !important; padding: 1rem !important; border-radius: 16px !important; }
    .bento-inner h3 { font-size: clamp(1rem, 4vw, 1.5rem) !important; }
    
    .stats-grid { flex-direction: column; gap: 2rem; }
    .menu-filters { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    
    /* Forms & Buttons */
    .primary-btn { padding: 1rem 2rem; font-size: 1rem; width: 100%; }
    .magnetic-btn { padding: 1rem 2rem; }
}
