/* --- Design System --- */
:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface-2: #e1e8f0;
    --surface-3: #cfd9e6;
    --text: #1a202c;
    --text-muted: #4a5568;
    --accent: #d92027;
    --accent-hover: #c0191f;
    --red: #d92027;
    --wave: #1a6fa0;
    --gold: #f4b41a;
    --gold-dark: #cc9400;
    --navy: #0a192f;
    --radius: 16px;
    --radius-sm: 10px;
    --header-height: 80px;
    --container-width: 1200px;
    --shadow-sm: 0 4px 12px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 12px 40px rgba(10, 25, 47, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 25, 47, 0.18);
    --grad-primary: linear-gradient(135deg, #0a192f 0%, #152a48 100%);
    --grad-red: linear-gradient(135deg, #d92027 0%, #a0151a 100%);
}

/* --- Base Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden; /* Prevent horizontal surfing */
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

.serif {
    font-family: 'DM Serif Display', serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    section { padding: 120px 0; }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Alternating Backgrounds --- */
.section-light { background: var(--bg); }
.section-dark { background: var(--surface-2); }
.section-navy { background: var(--navy); color: white; position: relative; }

/* --- Typography --- */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 32px; }
h3 { font-size: 1.8rem; margin-bottom: 20px; }

.section-label {
    display: inline-block;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-primary { background: var(--grad-primary); color: #ffffff; }
.btn-primary:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); opacity: 0.95; }
.btn-red { background: var(--grad-red); color: #ffffff; }
.btn-red:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); opacity: 0.95; }
.btn-small { padding: 8px 18px; font-size: 0.85rem; }

header .btn {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    padding: 10px 24px;
}

/* --- Header --- */
header {
    height: var(--header-height);
    background: rgba(240, 244, 248, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(235, 224, 196, 0.5);
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-text { font-size: 1.6rem; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.logo img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }

.nav-links { display: none; gap: 40px; align-items: center; }
.nav-link { font-weight: 700; color: var(--text-muted); font-size: 1.1rem; position: relative; font-family: 'DM Serif Display', serif; }
.nav-link:hover, .nav-link.active { color: var(--navy); }

.header-actions { display: none; gap: 12px; }
.menu-toggle { display: block; background: none; border: none; cursor: pointer; color: var(--navy); padding: 8px; }

@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .header-actions { display: flex; }
    .menu-toggle { display: none; }
}

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 0; /* Changed to handle internal spacing */
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--surface-2);
}

.mobile-nav-links { 
    flex: 1;
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
}
.mobile-nav-link { font-size: 2.2rem; font-weight: 900; color: var(--navy); font-family: 'DM Serif Display', serif; }
.mobile-nav-link:active { color: var(--red); }

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px;
    background: var(--surface);
    border-top: 1px solid var(--surface-2);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.mobile-nav-footer .btn {
    width: 100%;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 80px;
    }
    .hero-content {
        z-index: 10;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.hero-text-bg {
    background: rgba(240, 244, 248, 0.85);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--radius);
    display: inline-block;
    border: 1px solid rgba(235, 224, 196, 0.7);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    max-width: 650px;
    z-index: 10;
    position: relative;
}

.hero-tagline { font-size: 1.1rem; color: var(--text-muted); margin-top: 20px; }
.hero-btns { display: flex; flex-direction: column; gap: 20px; justify-content: center; } 

@media (min-width: 480px) { 
    .hero-btns { flex-direction: row; justify-content: flex-start; } 
    .hero-text-bg { text-align: left; }
}

@media (max-width: 479px) {
    .hero-content { text-align: center; } 
    .hero-text-bg { margin-left: auto; margin-right: auto; padding: 32px 24px; }
}

@media (min-width: 1024px) {
    .hero-img-wrapper {
        display: block; 
        position: absolute; 
        right: 0; 
        top: 50%; 
        transform: translateY(-50%); 
        width: 50%; 
        height: 85%; 
        z-index: 1;
    }
    .hero-img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        border-radius: 40px; 
        box-shadow: var(--shadow-lg); 
        transition: transform 0.5s ease; 
    }
    .hero-img:hover { transform: scale(1.02); }
    .hero-text-bg { max-width: 600px; margin-right: 50px; }
}

@media (max-width: 1023px) {
    .hero {
        flex-direction: column;
        min-height: 100vh;
        padding-top: var(--header-height);
        padding-bottom: 60px;
        justify-content: center;
    }
    .hero-content {
        z-index: 10;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    .hero-img-wrapper {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        margin: 0;
        padding: 0;
        right: auto;
        top: auto;
        transform: none;
    }
    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }
}

/* --- Menu Section --- */
.menu-section {
    margin-bottom: 120px; /* Generous spacing as requested */
}

.menu-cat-header { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; }
.menu-cat-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: var(--shadow-sm); }

@media (min-width: 768px) { .menu-cat-img { width: 120px; height: 120px; } }

.items-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) { .items-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 32px; align-items: stretch; } }

.item-card {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.item-card:hover { 
    border-color: var(--gold); 
    transform: translateY(-6px); 
    box-shadow: 0 15px 35px rgba(244, 180, 26, 0.15); 
}

.item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 28px 28px 0 0;
    flex-shrink: 0;
    box-shadow: none;
}

.item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.item-name { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: var(--navy); 
    margin-bottom: 6px; 
    font-family: 'DM Serif Display', serif; 
    line-height: 1.2;
}

.item-desc { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-bottom: 24px; 
    line-height: 1.6; 
}

@media (max-width: 500px) {
    .item-card { padding: 0; }
    .item-img { height: 160px; }
    .item-content { padding: 20px; }
    .item-name { font-size: 1.05rem; }
}



.item-prices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price-tag {
    background: var(--surface-2);
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(0,0,0,0.03);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Delivery Section --- */
.delivery-grid { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }

@media (min-width: 1024px) { .delivery-grid { grid-template-columns: 1fr 1fr; } }

/* --- Footer --- */
footer {
    padding-top: 120px;
}

.footer-top { display: grid; grid-template-columns: 1fr; gap: 60px; margin-bottom: 80px; }

@media (min-width: 768px) { .footer-top { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

.footer-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.footer-logo img { height: 90px; width: 90px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 32px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'DM Serif Display', serif;
}

.footer-link { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: rgba(255,255,255,0.8); font-weight: 500; }
.footer-link:hover { color: var(--gold); transform: translateX(5px); }

.social-btns { display: flex; gap: 16px; margin-top: 32px; }
.social-btn {
    width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-5px); }

.hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
.hours-row.today { color: var(--gold); font-weight: 800; background: rgba(244, 180, 26, 0.05); }

.footer-bottom {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

#btn-review {
    max-width: 200px; /* Not full width */
}

/* --- Modal --- */
.modal-bg {
    position: fixed; inset: 0; background: rgba(10, 25, 47, 0.9); backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center; z-index: 3000; opacity: 0; pointer-events: none; transition: all 0.4s ease; padding: 20px;
}

.modal-bg.open { opacity: 1; pointer-events: auto; }

.modal-box {
    background: #ffffff; width: 100%; max-width: 650px; max-height: 95vh; overflow-y: auto; border-radius: 32px; padding: 20px; position: relative;
    transform: translateY(40px); transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: var(--shadow-lg);
}

.modal-box.wide {
    max-width: 1000px;
    padding: 0;
    overflow: hidden;
}

.modal-split-container {
    width: 100%;
}

.modal-split {
    display: flex;
    flex-direction: column;
}

.modal-img-side {
    width: 100%;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.modal-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-side {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 849px) {
    .modal-box.wide { padding: 0; overflow: hidden; }
    .modal-box.wide .modal-close-new { position: absolute; top: 16px; right: 16px; z-index: 100; box-shadow: var(--shadow-md); }
    .modal-box.wide .modal-info-side { padding: 24px 20px 32px; }
    .modal-box.wide .modal-header { margin-bottom: 16px; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 12px;
}

.modal-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.modal-close-new {
    background: var(--surface-2); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--navy); transition: all 0.3s ease;
    flex-shrink: 0;
}
.modal-close-new:hover { background: var(--surface-3); transform: rotate(90deg); }


@media (min-width: 850px) {
    .modal-box.wide { max-width: 1000px; height: auto; display: flex; align-items: stretch; padding: 0; }
    .modal-box.wide .modal-close { display: none; }
    .modal-box.wide .modal-split { flex-direction: row; width: 100%; }
    .modal-box.wide .modal-img-side { width: 45%; aspect-ratio: 1/1; }
    .modal-box.wide .modal-info-side { width: 55%; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; }
}

.modal-bg.open .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute; top: 32px; right: 32px; background: var(--surface-2); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--navy); transition: all 0.3s ease; z-index: 110;
}
.modal-close:hover { background: var(--surface-3); transform: rotate(90deg); }

.offer-item {
    background: var(--surface-2); padding: 24px; border-radius: var(--radius-sm); border-left: 6px solid var(--red); box-shadow: var(--shadow-sm); transition: transform 0.3s ease;
}
.offer-item:hover { transform: translateX(5px); }
.offer-label { color: var(--red); font-weight: 900; margin-bottom: 8px; font-size: 1.1rem; }
.offer-desc { font-size: 0.95rem; color: var(--text-muted); }

/* --- Offers Grid Layout (Optimized for Landscape) --- */
.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (orientation: landscape) and (max-height: 600px), (min-width: 850px) {
    #offers-modal .modal-box {
        max-width: 900px;
        padding: 40px;
    }
    
    .offers-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    #offers-modal .modal-header-center {
        margin-bottom: 32px;
    }
    
    #offers-modal .modal-footer {
        margin-top: 32px;
    }
}

/* --- Modal Footer Actions --- */
.modal-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--surface-3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer .btn {
    width: 100%;
}

@media (min-width: 600px) {
    .modal-footer {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    .modal-footer .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Custom Waves Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@media (max-width: 767px) {
    .btn { font-size: 0.95rem; padding: 14px 24px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .btn { font-size: 0.9rem; padding: 12px 20px; }
    .hero-tagline { font-size: 1rem; }
    .modal-box { padding: 24px; }
    .price-tag { font-size: 0.75rem; padding: 4px 10px; }
    .offer-item { padding: 16px; }
    .offer-label { font-size: 1rem; }
    .offer-desc { font-size: 0.85rem; }
}
