/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Red, Black, White, and Green Color Scheme */
    --primary-red: #DC143C;
    --dark-red: #B22222;
    --darker-red: #8B0000;
    --light-red: #FFB6C1;
    --primary-green: #228B22;
    --dark-green: #2F4F2F;
    --forest-green: #1B3B1B;
    --light-green: #90EE90;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    
    /* Typography */
    --font-primary: 'Noto Sans', sans-serif;
    --font-secondary: 'Noto Serif', serif;
    
    /* Spacing */
    --container-padding: 1rem;
    --section-padding: 4rem 0;
    --border-radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-dark);
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll on html as well */
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--cream);
    margin: 0;
    opacity: 0.9;
    line-height: 1;
}

.header-info {
    display: none; /* Hidden on mobile by default */
    gap: 2rem;
}

.phone-item {
    display: none; /* Hide phone info on mobile/tablet */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item i {
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.8rem;
    color: var(--white);
    line-height: 1.2;
}

/* Header info link styling (desktop carryout phone) */
.header-info .info-value a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}

.info-value .closed {
    color: var(--primary-red);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
}

/* Dragon image next to logo (mobile only) */
.logo-dragon {
    display: none; /* hidden by default, shown on small screens */
    width: 36px;
    height: auto;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Mobile Info Section */
.info-section.mobile-only {
    display: block;
    margin-top: 90px;
    padding: var(--section-padding);
    background: var(--white);
    color: var(--gray-dark);
}

.restaurant-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--dark-green) 100%);
}

.info-card i {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card p {
    color: var(--white);
    line-height: 1.4;
    margin: 0;
}

.info-card .closed {
    color: var(--primary-red);
    font-weight: 600;
}

.info-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: var(--white);
}

/* Restaurant Info Section */
.info-section {
    margin-top: 90px;
    padding: var(--section-padding);
    background: var(--white);
    color: var(--gray-dark);
}

.restaurant-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.restaurant-info h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.restaurant-info .tagline {
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 3rem;
    font-weight: 400;
    opacity: 0.9;
}

.info-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.info-card i {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card p {
    color: var(--white);
    line-height: 1.4;
    margin: 0;
}

.info-card .closed {
    color: var(--primary-red);
    font-weight: 600;
}

.info-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Menu Section */
.menu-section {
    margin-top: 0; /* No margin on mobile since info section provides spacing */
    padding: 0 0 0 0; /* Remove bottom padding completely */
    background: var(--white);
    position: relative;
    margin-bottom: 0; /* Ensure no bottom margin */
}

/* Menu Header with Background */
.menu-header {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.9)),
        url('china-cafe-exterior.png') center/cover no-repeat;
    padding: 3rem 0 1rem 0; /* Add bottom padding to extend white background */
    margin-bottom: 0; /* Remove bottom margin to reduce whitespace */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
    overflow: hidden; /* Prevent any overflow */
}

/* Price legend shown in the top-right of menu category headers when two prices exist */
.menu-category {
    position: relative;
    padding-top: 0.5rem;
}

.menu-category > h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.menu-category .price-legend {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-dark);
    background: rgba(255,255,255,0.9);
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    white-space: nowrap;
}

@media (max-width: 767px) {
    /* On small screens position the legend as a top-right pill inside the category card */
    .menu-category {
        position: relative;
        padding-top: 1.25rem; /* give space for absolute legend */
    }

    .menu-category .price-legend {
        position: absolute !important;
        right: 0.75rem;
        top: 1.05rem;
        display: inline-block;
        margin: 0;
        background: rgba(255,255,255,0.95);
        color: var(--gray-dark);
        padding: 0.15rem 0.6rem;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        text-align: center;
        font-weight: 700;
        z-index: 10;
        white-space: nowrap;
    }

    /* Ensure header has room so legend doesn't overlap following content */
    .menu-category > h3 {
        margin-bottom: 0.75rem;
    }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 3rem;
    font-family: var(--font-primary);
    font-weight: 600;

/* Carryout-only banner styles (visible on mobile and desktop) */
.carryout-banner {
    --carryout-banner-height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--carryout-banner-height);
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    z-index: 1100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.carryout-banner .container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.carryout-banner .carryout-phone {
    color: var(--white);
    text-decoration: underline;
    margin-left: 6px;
}
@media (max-width: 600px) {
    .carryout-banner {
        --carryout-banner-height: 56px;
        padding: 6px 0.5rem;
        height: var(--carryout-banner-height);
    }
    .carryout-banner .container {
        flex-direction: column;
        font-size: 0.92rem;
        gap: 4px;
    }
}

/* Move header down when banner is present */
.carryout-banner + .header {
    top: var(--carryout-banner-height);
}

/* Adjust subsequent sections spacing so content isn't hidden under header/banner */
.carryout-banner + .header ~ .info-section,
.carryout-banner + .header ~ .info-section.mobile-only,
.carryout-banner + .header ~ .menu-section,
.carryout-banner + .header ~ .menu-categories-section {
    margin-top: calc(90px + var(--carryout-banner-height));
}
}

.menu-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.menu-cat-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.menu-cat-btn.active, .menu-cat-btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Menu Categories Section */
.menu-categories-section {
    padding: 1rem 0 0 0; /* Add top padding to extend white background */
    background: var(--white);
    margin-top: -1rem; /* Negative margin to overlap and eliminate gap */
}

.menu-category {
    display: block;
    margin-bottom: 1.5rem; /* Reduce from 3rem */
    padding: 2rem 0.75rem;
    scroll-margin-top: 120px; /* Account for fixed header */
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-light);
    box-shadow: var(--shadow);
}

.menu-category:first-child {
    margin-top: 0; /* Remove any top margin from first category */
    background: rgba(220, 20, 60, 0.02); /* Red-tinted background for lunch specials */
    border: 2px solid rgba(220, 20, 60, 0.2); /* Red-tinted border for lunch specials */
}

.menu-category:last-child {
    border-bottom: 2px solid var(--gray-light);
}

.menu-category.active {
    background: rgba(220, 20, 60, 0.02);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(220, 20, 60, 0.1);
}

.menu-category h3 {
    color: var(--black);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.menu-description, .section-description {
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.menu-grid {
    display: block;
    gap: 0;
}

.specialties-grid {
    display: block;
    gap: 0;
}

.subsection-header {
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-green);
}

.subsection-header h4 {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsection-header:first-child {
    margin-top: 0;
}

.menu-item {
    background: none;
    border-radius: 0;
    padding: 1rem 0;
    box-shadow: none;
    transition: background-color 0.2s ease;
    border-left: none;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    margin: 0;
}

.menu-item:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--gray-light);
}

.menu-item:last-child {
    border-bottom: none;
}

.specialty-item {
    background: none;
    border-radius: 0;
    padding: 1.5rem 0;
    box-shadow: none;
    border-left: none;
    transition: background-color 0.2s ease;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    margin: 0;
}

.specialty-item:hover {
    transform: none;
    background-color: var(--gray-light);
}

.specialty-item:last-child {
    border-bottom: none;
}

.specialty-item h4 {
    color: var(--black);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.specialty-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.specialty-price {
    color: var(--black);
    font-size: 1.2rem;
    font-weight: 700;
}

.menu-item-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.menu-item-icons {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
    height: 1.3em;
    justify-content: flex-start;
}

.menu-item-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.menu-item-name-wrapper {
    flex: 1;
    min-width: 0;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    gap: 1rem;
}

.menu-item-name {
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
}

.menu-item-name.hot {
    color: var(--primary-red);
}

.gf-indicator {
    background-color: var(--primary-green);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-item-price {
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
}

.menu-item-prices {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-option {
    background: var(--black);
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.menu-item-description {
    color: var(--gray-medium);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.25rem;
    margin-left: 27px;
}

.menu-item-note {
    color: var(--gray-medium);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    background: var(--forest-green);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo h3 {
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--warm-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    /* Reduce excessive spacing on mobile */
    :root {
        --section-padding: 1rem 0; /* Reduce from 4rem to 1rem */
        --container-padding: 0.75rem; /* Reduce from 1rem */
    }
    
    /* Remove background image on mobile for better performance and readability */
    .menu-header {
        background: var(--white);
        padding: 1rem 0; /* Reduce from 3rem */
        margin-bottom: 0.5rem; /* Reduce from 2rem */
        margin-left: 0; /* Reset full-width margins on mobile */
        margin-right: 0;
        width: 100%; /* Use 100% instead of 100vw on mobile */
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2.25rem; /* Increase from 1.75rem */
        margin-bottom: 1rem; /* Reduce from 3rem */
    }
    
    .menu-category {
        margin-bottom: 1rem; /* Reduce from 3rem */
        padding: 1rem 0; /* Reduce from 2rem */
    }
    
    .menu-category h3 {
        font-size: 1.8rem; /* Increase from 1.4rem */
        margin-bottom: 0.5rem; /* Reduce from 1rem */
    }
    
    .menu-item {
        padding: 0.5rem 0; /* Reduce from 1rem */
    }
    
    .specialty-item {
        padding: 0.75rem 0; /* Reduce from 1.5rem */
    }
    
    .mobile-scroll-nav {
        margin-bottom: 0; /* Remove bottom margin to eliminate green gap */
        padding: 0.25rem 0; /* Reduce from 0.5rem */
    }
    
    .info-section.mobile-only {
        margin-top: 70px; /* Restore top margin */
        padding: 1rem 0; /* Restore bottom padding for spacing */
        margin-bottom: 0; /* Ensure no bottom margin */
    }

    /* Show the dragon next to logo on mobile */
    .logo-dragon {
        display: inline-block;
        width: 64px; /* increased width for better visibility on mobile */
        height: auto;
        margin-left: 0.5rem;
    }

    /* Ensure header content stays compact and the logo + dragon align */
    .header-content {
        align-items: center;
        gap: 1rem;
    }

    .logo {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Cap the dragon size on very small phones to avoid overflow */
    @media (max-width: 350px) {
        .logo-dragon {
            width: 44px;
        }
    }
    
    /* Make info cards much more compact on mobile */
    .info-section.mobile-only .info-grid {
        gap: 0.5rem; /* Reduce gap for side-by-side layout */
        max-width: 100%;
        grid-template-columns: 1fr 1fr; /* Two columns for side-by-side */
    }
    
    .info-section.mobile-only .info-card {
        padding: 0.75rem; /* Increase padding for better spacing */
        gap: 0.5rem;
        margin: 0;
        flex-direction: row; /* Back to horizontal layout */
        text-align: left; /* Left align for better readability */
        align-items: flex-start; /* Align items to top */
        background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
        color: var(--white);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Special styling for the prominent carryout card */
    .info-section.mobile-only .info-card.carryout-card {
        grid-column: 1 / -1; /* Span both columns */
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        border-radius: 10px;
        text-align: center;
        color: var(--white);
    }

    .info-section.mobile-only .info-card.carryout-card i {
        font-size: 1.1rem;
        color: var(--white);
        margin-top: 0;
    }

    .info-section.mobile-only .info-card.carryout-card h4 {
        color: var(--white);
        font-size: 1rem;
        margin: 0;
        font-weight: 700;
    }
    
    .info-section.mobile-only .info-card i {
        font-size: 1.2rem; /* Restore size for better visibility */
        margin-top: 0.1rem; /* Small top margin to align with text */
        margin-right: 0; /* Remove right margin since we have gap */
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    .info-section.mobile-only .info-card h4 {
        font-size: 0.9rem; /* Slightly larger for better readability */
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: var(--primary-yellow);
    }
    
    .info-section.mobile-only .info-card p {
        font-size: 0.8rem; /* Slightly larger for readability */
        line-height: 1.3;
        margin: 0;
    }
    
    .info-section.mobile-only .info-card a {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        z-index: 9999; /* Ensure it's above other mobile elements */
    }
    
    /* Hide desktop navigation on mobile */
    .menu-nav {
        display: none;
    }
    
    /* Hide mobile dropdown navigation */
    .mobile-menu-nav {
        display: none;
    }
    
    /* Mobile horizontal scroll navigation */
    .mobile-scroll-nav {
        display: block;
        margin-bottom: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        position: relative;
        padding: 0.5rem 0;
        /* Slightly cut off edges to indicate scrollability */
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        border: none;
        background: transparent;
    }
    
    .mobile-scroll-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .mobile-nav-buttons {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0;
        min-width: max-content;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Scroll hint styling */
    .scroll-hint {
        text-align: center;
        margin-bottom: 0.5rem;
        color: var(--gray-medium);
        font-size: 0.8rem;
        opacity: 0.8;
        animation: fadeInOut 3s ease-in-out infinite;
        border: none;
        background: none;
        padding: 0;
        height: auto;
        position: relative;
    }
    
    .scroll-hint-icon {
        margin-left: 0.5rem;
        animation: bounce 2s ease-in-out infinite;
    }
    
    /* Ensure no visual artifacts when hint is removed */
    .mobile-scroll-nav:not(:has(.scroll-hint)) .mobile-nav-buttons,
    .mobile-scroll-nav .mobile-nav-buttons {
        margin-top: 0;
        padding-top: 0.5rem;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.8; }
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-3px); }
        75% { transform: translateX(3px); }
    }
    
    .mobile-nav-btn {
        padding: 0.75rem 1rem;
        border: 2px solid var(--black);
        background: var(--white);
        color: var(--black);
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .mobile-nav-btn:active {
        background: var(--black);
        color: var(--white);
        transform: scale(0.98);
    }
    
    /* Show all categories on mobile for full menu display */
    .menu-category {
        display: block !important;
        margin-bottom: 1.5rem; /* Reduce from 3rem */
        background: var(--white);
        border-radius: var(--border-radius);
        border: 2px solid var(--gray-light);
        box-shadow: var(--shadow);
        padding: 1rem;
    }
    
    .menu-category:first-child {
        background: rgba(220, 20, 60, 0.02); /* Red-tinted background for lunch specials */
        border: 2px solid rgba(220, 20, 60, 0.2); /* Red-tinted border for lunch specials */
    }
}

/* Small mobile phone adjustments */
@media (min-width: 350px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo .tagline {
        display: none; /* Hide tagline on very small screens */
    }
    
    .nav .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile phone adjustments */
@media (min-width: 480px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo .tagline {
        display: block; /* Show tagline again */
    }
    
    .nav .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    /* Hide mobile navigation on desktop */
    .mobile-menu-nav {
        display: none;
    }
    
    /* Hide mobile scroll navigation on desktop */
    .mobile-scroll-nav {
        display: none;
    }
    
    /* Hide mobile info section on tablet and larger */
    .info-section.mobile-only {
        display: none;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
    
    .header-info {
        display: flex;
        gap: 2rem;
    }
    
    .info-item {
        gap: 0.6rem;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    .menu-grid {
        display: block;
    }
    
    .specialties-grid {
        display: block;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Ensure sections are pushed down on larger screens so fixed header doesn't overlap content */
@media (min-width: 768px) {
    /* Use the same offset used elsewhere (90px) and include banner height if present */
    .menu-section,
    .menu-header {
        margin-top: calc(90px + var(--carryout-banner-height, 0px));
    }
    /* If menu-header uses full-bleed background, add a little inner padding so the title is clear */
    .menu-header .section-title {
        padding-top: 0.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    /* Enhanced Header for Desktop */
    .header {
        padding: 1.5rem 0;
    }
    
    .header .container {
        max-width: 1400px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 3rem;
    }
    
    .logo h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .header-info {
        display: flex;
        gap: 3rem;
        flex: 1;
        justify-content: center;
    }
    
    .phone-item {
        display: flex; /* Show phone info on desktop */
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    /* Force "Mon: CLOSED" onto its own line on desktop */
    .header .info-value .closed {
        display: block;
        white-space: nowrap;
        margin-top: 0.15rem;
    }
    
    /* Enhanced Navigation Button */
    .nav .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        background: var(--white);
        color: var(--primary-red);
        border: 2px solid var(--primary-red);
        box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
        transition: all 0.3s ease;
        font-weight: 700;
    }
    
    .nav .btn:hover {
        background: var(--primary-red);
        color: var(--white);
        border: 2px solid var(--primary-red);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
    }
    
    /* Menu navigation - limit to 2 rows */
    .menu-nav {
        max-width: 1400px;
        margin: 0 auto 3rem auto;
        gap: 0.75rem;
    }
    
    .menu-cat-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex: 0 1 auto;
        min-width: 120px;
    }
    
    .restaurant-info h2 {
        font-size: 3.5rem;
    }
    
    .menu-grid {
        display: block;
    }
    
    /* Place the price legend below the header on desktop */
    .menu-category .price-legend {
        top: 3rem;
        right: 0.75rem;
    }
    .specialties-grid {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item, .specialty-item {
    animation: fadeInUp 0.4s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
button:focus, a:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .menu-nav {
        display: none;
    }
    
    .menu-category {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    /* Reduce excessive spacing on mobile */
    :root {
        --section-padding: 1rem 0; /* Reduce from 4rem to 1rem */
        --container-padding: 0.75rem; /* Reduce from 1rem */
    }
    
    /* Remove background image on mobile for better performance and readability */
    .menu-header {
        background: var(--white);
        padding: 1rem 0; /* Reduce from 3rem */
        margin-bottom: 0.5rem; /* Reduce from 2rem */
        margin-left: 0; /* Reset full-width margins on mobile */
        margin-right: 0;
        width: 100%; /* Use 100% instead of 100vw on mobile */
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2.25rem; /* Increase from 1.75rem */
        margin-bottom: 1rem; /* Reduce from 3rem */
    }
    
    .menu-category {
        margin-bottom: 1rem; /* Reduce from 3rem */
        padding: 1rem 0; /* Reduce from 2rem */
    }
    
    .menu-category h3 {
        font-size: 1.8rem; /* Increase from 1.4rem */
        margin-bottom: 0.5rem; /* Reduce from 1rem */
    }
    
    .menu-item {
        padding: 0.5rem 0; /* Reduce from 1rem */
    }
    
    .specialty-item {
        padding: 0.75rem 0; /* Reduce from 1.5rem */
    }
    
    .mobile-scroll-nav {
        margin-bottom: 0; /* Remove bottom margin to eliminate green gap */
        padding: 0.25rem 0; /* Reduce from 0.5rem */
    }
    
    .info-section.mobile-only {
        margin-top: 70px; /* Restore top margin */
        padding: 1rem 0; /* Restore bottom padding for spacing */
        margin-bottom: 0; /* Ensure no bottom margin */
    }

    /* Show the dragon next to logo on mobile */
    .logo-dragon {
        display: inline-block;
        width: 64px; /* increased width for better visibility on mobile */
        height: auto;
        margin-left: 0.5rem;
    }

    /* Ensure header content stays compact and the logo + dragon align */
    .header-content {
        align-items: center;
        gap: 1rem;
    }

    .logo {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Cap the dragon size on very small phones to avoid overflow */
    @media (max-width: 350px) {
        .logo-dragon {
            width: 44px;
        }
    }
    
    /* Make info cards much more compact on mobile */
    .info-section.mobile-only .info-grid {
        gap: 0.5rem; /* Reduce gap for side-by-side layout */
        max-width: 100%;
        grid-template-columns: 1fr 1fr; /* Two columns for side-by-side */
    }
    
    .info-section.mobile-only .info-card {
        padding: 0.75rem; /* Increase padding for better spacing */
        gap: 0.5rem;
        margin: 0;
        flex-direction: row; /* Back to horizontal layout */
        text-align: left; /* Left align for better readability */
        align-items: flex-start; /* Align items to top */
        background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
        color: var(--white);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Special styling for the prominent carryout card */
    .info-section.mobile-only .info-card.carryout-card {
        grid-column: 1 / -1; /* Span both columns */
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        border-radius: 10px;
        text-align: center;
        color: var(--white);
    }

    .info-section.mobile-only .info-card.carryout-card i {
        font-size: 1.1rem;
        color: var(--white);
        margin-top: 0;
    }

    .info-section.mobile-only .info-card.carryout-card h4 {
        color: var(--white);
        font-size: 1rem;
        margin: 0;
        font-weight: 700;
    }
    
    .info-section.mobile-only .info-card i {
        font-size: 1.2rem; /* Restore size for better visibility */
        margin-top: 0.1rem; /* Small top margin to align with text */
        margin-right: 0; /* Remove right margin since we have gap */
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    .info-section.mobile-only .info-card h4 {
        font-size: 0.9rem; /* Slightly larger for better readability */
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: var(--primary-yellow);
    }
    
    .info-section.mobile-only .info-card p {
        font-size: 0.8rem; /* Slightly larger for readability */
        line-height: 1.3;
        margin: 0;
    }
    
    .info-section.mobile-only .info-card a {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        z-index: 9999; /* Ensure it's above other mobile elements */
    }
    
    /* Hide desktop navigation on mobile */
    .menu-nav {
        display: none;
    }
    
    /* Hide mobile dropdown navigation */
    .mobile-menu-nav {
        display: none;
    }
    
    /* Mobile horizontal scroll navigation */
    .mobile-scroll-nav {
        display: block;
        margin-bottom: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        position: relative;
        padding: 0.5rem 0;
        /* Slightly cut off edges to indicate scrollability */
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        border: none;
        background: transparent;
    }
    
    .mobile-scroll-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .mobile-nav-buttons {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0;
        min-width: max-content;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Scroll hint styling */
    .scroll-hint {
        text-align: center;
        margin-bottom: 0.5rem;
        color: var(--gray-medium);
        font-size: 0.8rem;
        opacity: 0.8;
        animation: fadeInOut 3s ease-in-out infinite;
        border: none;
        background: none;
        padding: 0;
        height: auto;
        position: relative;
    }
    
    .scroll-hint-icon {
        margin-left: 0.5rem;
        animation: bounce 2s ease-in-out infinite;
    }
    
    /* Ensure no visual artifacts when hint is removed */
    .mobile-scroll-nav:not(:has(.scroll-hint)) .mobile-nav-buttons,
    .mobile-scroll-nav .mobile-nav-buttons {
        margin-top: 0;
        padding-top: 0.5rem;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.8; }
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-3px); }
        75% { transform: translateX(3px); }
    }
    
    .mobile-nav-btn {
        padding: 0.75rem 1rem;
        border: 2px solid var(--black);
        background: var(--white);
        color: var(--black);
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .mobile-nav-btn:active {
        background: var(--black);
        color: var(--white);
        transform: scale(0.98);
    }
    
    /* Show all categories on mobile for full menu display */
    .menu-category {
        display: block !important;
        margin-bottom: 1.5rem; /* Reduce from 3rem */
        background: var(--white);
        border-radius: var(--border-radius);
        border: 2px solid var(--gray-light);
        box-shadow: var(--shadow);
        padding: 1rem;
    }
    
    .menu-category:first-child {
        background: rgba(220, 20, 60, 0.02); /* Red-tinted background for lunch specials */
        border: 2px solid rgba(220, 20, 60, 0.2); /* Red-tinted border for lunch specials */
    }

    /* Make menu items more roomy on mobile and ensure icons appear left of the name */
    .menu-item {
        padding: 0.75rem 0.6rem; /* increase vertical + horizontal padding */
    }

    .menu-item-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* Container for optional left icons (if added) */
    .menu-item-icon {
        flex: 0 0 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        color: var(--primary-red);
    }

    /* Make name take remaining space and wrap nicely */
    .menu-item-name {
        flex: 1 1 auto;
        font-size: 1.02rem;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    /* Keep price on one line at the right */
    .menu-item-price {
        flex: 0 0 auto;
        margin-left: 0.6rem;
        white-space: nowrap;
        font-size: 1rem;
    }

    /* GF indicator: show before name with spacing (we output GF before the name in JS) */
    .gf-indicator {
        background-color: var(--primary-green);
        color: white;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 0.08rem 0.28rem;
        border-radius: 3px;
        margin-right: 0.45rem; /* space between icon and name */
        display: inline-block;
        vertical-align: middle;
    }

    /* Reduce risk of overlap with description */
    .menu-item-description {
        margin-top: 0.35rem;
    }
}

/* Small mobile phone adjustments */
@media (min-width: 350px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo .tagline {
        display: none; /* Hide tagline on very small screens */
    }
    
    .nav .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile phone adjustments */
@media (min-width: 480px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo .tagline {
        display: block; /* Show tagline again */
    }
    
    .nav .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    /* Hide mobile navigation on desktop */
    .mobile-menu-nav {
        display: none;
    }
    
    /* Hide mobile scroll navigation on desktop */
    .mobile-scroll-nav {
        display: none;
    }
    
    /* Hide mobile info section on tablet and larger */
    .info-section.mobile-only {
        display: none;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
    
    .header-info {
        display: flex;
        gap: 2rem;
    }
    
    .info-item {
        gap: 0.6rem;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    .menu-grid {
        display: block;
    }
    
    .specialties-grid {
        display: block;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Ensure sections are pushed down on larger screens so fixed header doesn't overlap content */
@media (min-width: 768px) {
    /* Use the same offset used elsewhere (90px) and include banner height if present */
    .menu-section,
    .menu-header {
        margin-top: calc(90px + var(--carryout-banner-height, 0px));
    }
    /* If menu-header uses full-bleed background, add a little inner padding so the title is clear */
    .menu-header .section-title {
        padding-top: 0.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    /* Enhanced Header for Desktop */
    .header {
        padding: 1.5rem 0;
    }
    
    .header .container {
        max-width: 1400px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 3rem;
    }
    
    .logo h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .header-info {
        display: flex;
        gap: 3rem;
        flex: 1;
        justify-content: center;
    }
    
    .phone-item {
        display: flex; /* Show phone info on desktop */
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    /* Force "Mon: CLOSED" onto its own line on desktop */
    .header .info-value .closed {
        display: block;
        white-space: nowrap;
        margin-top: 0.15rem;
    }
    
    /* Enhanced Navigation Button */
    .nav .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        background: var(--white);
        color: var(--primary-red);
        border: 2px solid var(--primary-red);
        box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
        transition: all 0.3s ease;
        font-weight: 700;
    }
    
    .nav .btn:hover {
        background: var(--primary-red);
        color: var(--white);
        border: 2px solid var(--primary-red);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
    }
    
    /* Menu navigation - limit to 2 rows */
    .menu-nav {
        max-width: 1400px;
        margin: 0 auto 3rem auto;
        gap: 0.75rem;
    }
    
    .menu-cat-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex: 0 1 auto;
        min-width: 120px;
    }
    
    .restaurant-info h2 {
        font-size: 3.5rem;
    }
    
    .menu-grid {
        display: block;
    }
    
    /* Place the price legend below the header on desktop */
    .menu-category .price-legend {
        top: 3rem;
        right: 0.75rem;
    }
    .specialties-grid {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item, .specialty-item {
    animation: fadeInUp 0.4s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
button:focus, a:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .menu-nav {
        display: none;
    }
    
    .menu-category {
        display: block !important;
        page-break-inside: avoid;
    }
}
