@import url('https://fonts.googleapis.com/css2?family=Acme&family=Bayon&family=Bebas+Neue&family=BenchNine:wght@400;700&family=Concert+One&family=Passion+One:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: url(images/HOMEPAGE.png);
    background-color: #f7a63b; /* Good fallback while testing */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    font-family: "Passion One", sans-serif;
}

/* =========================================
   MAIN NAVBAR STYLING 
========================================= */

.navbar {
    background-color: #EF5225;
    width: 98%; 
    max-width: none; 
    height: 60px; /* Slightly taller to comfortably fit the new circle icons */
    margin: 20px auto; 
    border-radius: 50px;
    display: flex;
    align-items: center;
    position: relative; 
    z-index: 10;
}

/* 2. The Left "Bulge" behind the logo */
.navbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* Anchors the bulge strictly to the left edge */
    width: 260px; /* Width of the bulge */
    height: 120px; 
    background-color: #EF5225;
    border-radius: 50px 0 40px 40px; /* Matches top pill curve, rounds the bottom */
    z-index: -1; 
}

/* 3. General Link Setup & Flexbox Magic */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    gap: 35px; /* Spacing between the center links */
}

.nav-links li {
    display: flex;
    justify-content: center; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem; 
    padding: 8px 15px;
    border-radius: 60px;
    transition: 0.3s;
    font-weight: normal;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #EF5225;
    background-color: white;
}

/* =========================================
   LEFT SIDE: LOGO 
========================================= */

.logo-item {
    width: 180px; /* Creates invisible space pushing the other links right */
    
    /* THE MAGIC: Pushes everything after it perfectly to the center */
    margin-right: auto; 
    
    display: flex;
    align-items: center;
}

.logo-item img {
    position: absolute;
    left: 38px; /* Locks the logo into the left bulge */
    top: -30px; /* Pops it out of the top */
    height: 180px; 
    z-index: 20;
    transition: transform 0.3s ease;
}


/* =========================================
   RIGHT SIDE: ICONS & LOGIN 
========================================= */

.right-menu {
    display: flex;
    align-items: center;
    gap: 15px; 
    
    /* THE MAGIC: Pushes this whole block perfectly to the far right */
    margin-left: auto; 
}

/* Removes the pill hover background strictly from the circle icons */
.right-menu .icon-link {
    padding: 0;
    background-color: transparent !important; 
}

/* The White Circle Shape for the Icons */
.nav-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: transform 0.2s;
}

.nav-icon:hover {
    transform: scale(1.1); 
}

/* Keep the log-in text readable and capitalized correctly */
.login-link {
    font-size: 1.4rem !important; 
    font-weight: bold !important;
}

/* =========================================
   DROPDOWN MENU 
========================================= */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: -8px; 
    background-color: white;
    border-radius: 20px;
    flex-direction: column;
    align-items: center; 
    padding: 8px 20px 20px 20px; 
    z-index: 40; 
    white-space: nowrap; 
    box-shadow: 0px 10px 15px rgba(0,0,0,0.1); 
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    color: #EF5225 !important; 
    padding: 8px 0 !important; 
    background-color: transparent !important; 
}

.dropdown-content a:nth-child(2),
.dropdown-content a:nth-child(3) {
    font-size: 1.4rem; 
}

.dropdown-content a:hover {
    color: #c43e18 !important; 
}

/* Make "MENU" inside the dropdown unclickable */
.dropdown-content a:first-child {
    cursor: default !important;      
    pointer-events: none !important; 
}

.dropdown-content a:first-child:hover {
    color: #EF5225 !important;       
    background-color: transparent !important;
}

/* 1. Center everything in the hero section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 120px 20px; /* Leaves room for your wavy background at the bottom */
    text-align: center;
}

.hero-navi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Adds perfect spacing between the title and the green pill */
}

/* 1. The Main Title */
.hero-title {
    font-family: 'Bayon', sans-serif; /* Changed to Bayon */
    font-weight: bold !important; 
    font-size: 4.5rem; 
    color: #889E0C;
    letter-spacing: 2px;
    margin: 0;
    -webkit-text-stroke: .1px  white; 
    text-shadow: 2px 4px 5px rgba(0, 0, 0, 0.15);
    margin-top: -20px;
}

/* 2. The Green Location Pill */
.dlsu.title {
    font-family: 'Bayon', sans-serif; /* Changed to Bayon */
    font-weight: normal !important;
    font-size: 2rem;
    color: white;
    background-color: #889E0C; 
    padding: 2px 50px;
    border-radius: 50px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2); 
    margin-top: -30px;
}

.location-pin {
    height: 25px;
    margin-right: 10px;
    vertical-align: middle; /* Ensures the pin lines up perfectly with the text */
}

.categories {
    position: relative;
    background-color: transparent; /* REMOVED THE WHITE RECTANGLE */
    padding: 100px 0; /* Keeps space for the torn edges */
    margin-top: -160px; 
}

.torn-paper {
    background-image: url('images/paper1.png');
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: flex-end;
    position: absolute; 
    left: 0;
    top: 0px;
    height: 800px; /* Adjust this to match your image's actual height */
    width: 100%;   /* Ensures it spans the whole section */
    background-size: 100% 100%; /* Stretches it to fit the box exactly */
}

.section {
    text-align: center;
    padding: 100px 0;
    position: relative;
    z-index: 15; /* Ensures text stays above the torn paper */
}

.section1-title {
    font-family: 'Acme', sans-serif;
    font-weight: normal;
    font-size: 4rem;
    color: #000000;
    display: inline-flex;
    align-items: center;
    gap: 20px; 
    text-transform: capitalize;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Creating the red lines on the sides */
.section1-title::before,
.section1-title::after {
    content: "";
    height: 8px;      
    width: 300px;     
    background-color: #ff4d00;
    display: inline-block;
    border-radius: 20px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}

/* --- CONTAINER --- */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 60px; /* Space between the rectangles */
    padding: 20px;
}

/* --- THE RECTANGLE BASE --- */
.menu-card {
    width: 200px;
    height: 280px;
    border-radius: 25px;
    padding: 10px; /* This sets 10px everywhere */
    display: flex;
    flex-direction: column; /* Stacks the title and image vertically */
    align-items: center;
    
    /* THE FIX: Override the top padding to something very small */
    padding-top: 2px; 
    
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px); /* Lifts the card when you hover */
}

/* --- THE FOOD NAMES --- */
.menu-card h3 {
    font-family: 'Bayon', sans-serif;
    font-weight: normal;
    font-size: 2rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    /* THE FIX: This physically pulls the text up toward the card's edge */
    margin-top: 9px;
    
}

/* --- INDIVIDUAL IMAGE SIZES --- */

.hotdog-img {
    width: 250px; 
    height: auto;
    margin-top: -20px;
}

.carbonara-img {
    width: 280px;
    height: auto;
    margin-top: -40px;
}

.wings-img {
    width: 240px;
    height: auto;
    margin-top: 10px; /* Nudge it up slightly if needed */
}

.nachos-img {
    width: 270px;
    height: auto;
    margin-top: -30px; /* Nudge it up slightly if needed */
}

.liempo-img {
    width: 220px;
    height: auto;
    margin-top: -20px; /* Nudge it up slightly if needed */
}

/* --- THE IMAGES --- */
.menu-card img {
    /* This forces the image to be a block that takes up its own line */
    display: block; 
    height: auto;
    /* Ensure the image doesn't get too big for the card */
    align-content: center;
}

/* --- UNIQUE COLORS --- */
.green { background-color: #9BB605 ; }
.orange { background-color: #EF5225; }
.teal { background-color: #08979C; }
.red { background-color: #FF0202; }
.brown { background-color: #8B4513; }

/* =========================================
   SANDIVHES 
========================================= */
.sandwiches {
    padding: 60px 20px 100px 20px;
    text-align: center;
}

.section2-title {
    font-family: 'Bayon', sans-serif; 
    font-weight: normal;
    font-size: 4rem;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 2px;
    -webkit-text-stroke: 1.5px #000000;
}

/* =========================================
   THE 5-COLUMN GRID 
========================================= */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Forces exactly 5 equal columns */
    gap: 20px; /* Space between each card */
    max-width: 1400px; /* Gives the row enough room to stretch out */
    margin: 0 auto; /* Perfectly centers the grid on the screen */
    padding: 0 10px;
}

/* =========================================
   INDIVIDUAL DISH CARDS 
========================================= */

.dish-card {
    background-color: white;
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    height: 270px; 
    
    /* THE FIX: Changes from 'space-between' to 'flex-start' to push everything to the top */
    justify-content: flex-start; 
}

.dish-card:hover {
    transform: translateY(-8px); 
}

.dish-image-wrapper,
.dish-image-wrapper1,
.dish-image-wrapper2,
.dish-image-wrapper3,
.dish-image-wrapper4 {
    position: relative; 
    width: 100%;
    
    /* 1. THE FIXED SIZE: Forces every background to be exactly this height */
    height: 160px; /* You can adjust this slightly if you want them taller/shorter */
    
    background-size: contain; 
    background-repeat: no-repeat; 
    
    /* Centers the colored background image itself inside the wrapper */
    background-position: center; 
    
    background-color: transparent; 
    border-radius: 5px; 
    
    display: flex;
    
    /* 2. THE CENTERING MAGIC: Perfectly suspends the food image in the dead center */
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center (Changed from flex-start!) */
    
    /* Remove padding so it doesn't push your centered images down */
    padding: 0; 
    margin-bottom: 10px; /* Space between the image box and the text below it */
}

.dish-image-wrapper {
    position: relative; 
    width: 100%;
    background-image: url('images/greenbg.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-color: transparent; 
    border-radius: 5px; 
    
    display: flex;
    justify-content: center;
    
    /* THE FIX: Aligns the sandwich to the top of the green box instead of the center */
    align-items: flex-start; 
    
    /* THE FIX: Shrink the top padding so there isn't a massive gap above the food */
    padding: 10px 0 20px 0; 
}

/* 2. The Resizable Food Image */
.dish-img {
    width: 150px; 
    height: auto;
    flex-shrink: 0; 
    
    /* THE FIX: Reset these to 0 so the Flexbox can do its job and center the food! */
    margin-top: 0px; 
    margin-bottom: 0px;
    
    position: relative;
    z-index: 5; 
    filter: drop-shadow(0px 10px 10px rgba(0,0,0,0.4)); 
}

/* 3. The Overlapping Badge */
.best-seller-badge {
    position: absolute;
    
    /* THE FIX: Negative values pull it outside the boundaries of the image box */
    top: -30px;   
    right: -30px; 
    
    width: 100px;  /* Adjust this if the starburst needs to be bigger/smaller */
    
    /* THE FIX: A high z-index forces it to sit on top of absolutely everything else */
    z-index: 60;  
    
    transform: rotate(-5deg); /* That playful slanted look */
}

/* 3. Text Info Underneath */
.dish-info {
    padding-top: -150px;
    text-align: left; /* Aligns text cleanly to the left edge */
}

.dish-info h4 {
    font-family: 'Passion One', sans-serif; 
    font-size: 1.5rem;
    font-weight: normal;
    color: #889E0C; /* The olive green from your mockup */
    line-height: 1.1;
}

.dish-info p {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #617010; 
    margin: 0;
}

/* =========================================
   PASTA
========================================= */

.pasta {
    padding: 60px 20px 100px 20px;
    text-align: center;
}

.dish-image-wrapper1 {
    position: relative; 
    width: 100%;
    background-image: url('images/orangebg.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-color: transparent; 
    border-radius: 5px; 
    
    display: flex;
    justify-content: center;
    
    /* THE FIX: Aligns the sandwich to the top of the green box instead of the center */
    align-items: flex-start; 
    
    /* THE FIX: Shrink the top padding so there isn't a massive gap above the food */
    padding: 10px 0 20px 0; 
}

.dish-info1 {
    padding-top: -150px;
    text-align: left; /* Aligns text cleanly to the left edge */
}

.dish-info1 h4 {
    font-family: 'Passion One', sans-serif; 
    font-size: 1.5rem;
    font-weight: normal;
    color: #EF5225; /* The olive green from your mockup */
    line-height: 1.1;
}

.dish-info1 p {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #943013; 
    margin: 0;
}

/* =========================================
   RICE MEALS
========================================= */
.rice-meals {
    padding: 60px 20px 100px 20px;
    text-align: center;
}

.dish-image-wrapper2 {
    position: relative; 
    width: 100%;
    background-image: url('images/tealbg.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-color: transparent; 
    border-radius: 5px; 
    
    display: flex;
    justify-content: center;
    
    /* THE FIX: Aligns the sandwich to the top of the green box instead of the center */
    align-items: flex-center; 
    
    /* THE FIX: Shrink the top padding so there isn't a massive gap above the food */
    padding: 10px 0 20px 0; 
}

.dish-info2 {
    padding-top: -150px;
    text-align: left; /* Aligns text cleanly to the left edge */
}

.dish-info2 h4 {
    font-family: 'Passion One', sans-serif; 
    font-size: 1.5rem;
    font-weight: normal;
    color: #08979C; /* The olive green from your mockup */
    line-height: 1.1;
}

.dish-info2 p {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #0D585B; 
    margin: 0;
}


/* =========================================
   APPETIZERS
========================================= */

.appetizers {
    padding: 60px 20px 100px 20px;
    text-align: center;
}

.dish-image-wrapper3 {
    position: relative; 
    width: 100%;
    background-image: url('images/redbg.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-color: transparent; 
    border-radius: 5px; 
    
    display: flex;
    justify-content: center;
    
    /* THE FIX: Aligns the sandwich to the top of the green box instead of the center */
    align-items: center; 
    
    /* THE FIX: Shrink the top padding so there isn't a massive gap above the food */
    padding: 10px 0 20px 0; 
}

.dish-info3 {
    padding-top: -150px;
    text-align: left; /* Aligns text cleanly to the left edge */
}

.dish-info3 h4 {
    font-family: 'Passion One', sans-serif; 
    font-size: 1.5rem;
    font-weight: normal;
    color: #FF0202; /* The olive green from your mockup */
    line-height: 1.1;
}

.dish-info3 p {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #5B0E0E; 
    margin: 0;
}

/* =========================================
   BINALOT
========================================= */

.binalot {
    padding: 60px 20px 100px 20px;
    text-align: center;
}

.dish-image-wrapper4 {
    position: relative; 
    width: 100%;
    background-image: url('images/brownbg.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-color: transparent; 
    border-radius: 5px; 
    
    display: flex;
    justify-content: center;
    
    
    /* THE FIX: Shrink the top padding so there isn't a massive gap above the food */
    padding: 10px 0 20px 0; 
}

.dish-info4 {
    padding-top: -150px;
    text-align: left; /* Aligns text cleanly to the left edge */
}

.dish-info4 h4 {
    font-family: 'Passion One', sans-serif; 
    font-size: 1.5rem;
    font-weight: normal;
    color: #8B4513; /* The olive green from your mockup */
    line-height: 1.1;
}

.dish-info4 p {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #3b1b05; 
    margin: 0;
}


/* =========================================
   FOOTER & TOP BAR ALIGNMENT
========================================= */

/* 1. Shared Grid Setup for Perfect Alignment */
.top-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    
    /* THE NEW ADDITIONS FOR CENTERING: */
    height: 100%;          /* Forces the grid to match the orange bar's new height */
    align-items: center;   /* Pushes the phone, email, etc., to the vertical middle */
}

/* 1. Force the orange bar to stay thin */
.top-bar {
    background-color: #FF6100;
    padding: 10px 10px;
    height: 80px; /* Locks the thickness of the bar */
    position: relative; 
    z-index: 20;
    overflow: visible !important; /* Allows the giant logo to stick out */
}

/* 2. Make the logo huge and pull it out of the layout */
.top-logo {
    position: absolute; /* Breaks it out of the grid's height calculation */
    height: 130px;      /* Make this as big as you want! */
    width: auto;
    top: -25px;         /* Pulls it up so it overlaps the top and bottom */
    left: 40;            /* Aligns it to the left of your grid container */
    z-index: 30;        /* Keeps it on top of everything */
}

/* 3. Keep the phone number from sliding to the left */
.contact-item:first-of-type {
    /* Since the logo is now 'absolute', this forces the phone number 
       to stay in column 2, leaving column 1 empty for your logo */
    grid-column: 2; 
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    font-family: 'BenchNine', sans-serif; /* Matches your body font */
    font-size: 1.8rem;
    color: black;
}

.contact-icon {
    height: 40px; /* Adjust based on your icon image sizes */
    width: auto;
}

/* 3. Bottom Dark Brown Footer Styling */
.footer {
    background-color: #4a2e15; /* The dark brown from your image */
    padding: 30px 40px;
}

.footer-container {
    display: grid;
    /* THIS IS THE MAGIC LINE: It must exactly match your .top-content columns! */
    grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
    
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: start; /* Keeps the footer text anchored to the top of the brown section */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Vertical spacing between the links */
    font-family: 'BenchNine', sans-serif;
}

.footer-col h3 {
    color: white;
    font-size: 2rem;
    font-weight: normal;
    margin: 0 0 10px 0;
}

.footer-col a {
    color: #e0e0e0; /* Slightly dimmed white for links */
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #FF6100; /* Turns orange on hover */
}

.desktop-spacer {
    height: 100px;
}

@media screen and (max-width: 768px) {
/* Shrink the main pill shape */
    /* 1. Main Navbar sizing */
    .navbar {
        height: 20px; /* Thinner bar */
        border-radius: 30px;
        margin: 10px auto; 
    }
    
    /* 2. Shrink the Left-Aligned Bulge */
    .navbar::after {
        width: 80px; /* Narrower bulge */
        height: 40px; /* Shallower drop */
        left: 0; /* Keeps it strictly on the left edge */
        border-radius: 0px 0 10px 10px; /* Blends top-left with the pill shape, rounds the bottom */
    }

    /* 3. Link alignment and text sizing */
    .nav-links {
        padding: 0 5px; /* Less padding on the far left/right */
        gap: 3px; /* Just a tiny gap between the center links */
    }

    .nav-links a {
        font-size: 0.6rem; /* Shrink the text heavily */
        padding: 2px 4px;
        white-space: nowrap; /* Forces text to stay on one line */
    }

    /* 4. The Logo Spacer & Image */
    .logo-item {
        /* Replaces your old flex: 140px rule so it pushes the center links correctly */
        width: 60px; 
        margin-right: auto; /* Shoves the main text links into the center */
    }
    
    .logo-item img {
        height: 60px; /* Smaller logo */
        top: -10px; /* Adjust the vertical position */
        left: 10px; /* Tucks it nicely inside the 80px bulge */
    }

    /* 5. The Right Side Icons (NEW) */
    .right-menu {
        gap: 4px; /* Tiny gap between the cart and user icons */
        margin-left: auto; /* Shoves the icons to the far right */
    }

    .nav-icon {
        height: 14px; /* Micro white circles to match the 20px navbar */
        width: 14px;
        padding: 2px;
    }

    /* Hide the login text so it doesn't break your 0.5rem micro-layout */
    .login-link {
        display: none !important; 
    }

    /* 6. The Dropdown Box */
    .dropdown-content {
        min-width: 40px; /* Prevents the box from being unnecessarily wide */
        padding: 0px 4px 4px 4px; /* Reduces empty white space */
        border-radius: 10px; 
        top: 0px;
    }

    .dropdown-content a {
        font-size: 0.5rem !important; /* Smaller main text */
        padding: 2px 0 !important; 
    }

    .dropdown-content a:nth-child(2),
    .dropdown-content a:nth-child(3) {
        font-size: 0.5rem !important; /* Noticeably smaller sub-links */
    }

    /* 1. HERO SECTION & TITLES */
    .hero-section {
        margin-top: 20px; /* Adds a bit of breathing room above the hero */
        padding: 60px 10px 80px 10px; 
    }

    .hero-navi{
        gap: 15px;
    }
    .hero-title {
        font-size: 1.4rem; /* Scaled down from 4.5rem */
        -webkit-text-stroke: .5px white; /* Slightly thicker stroke to be visible on smaller text */
        margin-top: -50px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    }

    .dlsu.title {
        font-size: .8rem; /* Scaled down from 2rem */
        padding: .5px 15px;
        margin-top: -20px;
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
    }

    .location-pin {
        height: 10px; /* Shrinks the pin so it doesn't look gigantic next to the smaller mobile text */
        margin-right: 6px; /* Slightly reduces the gap to match the smaller scale */
    }

    /* --- MERGED CATEGORIES & TORN PAPER --- */
    .categories {
        margin-top: -90px; /* Pulls the section up drastically for mobile */
        /* Add min-height here if your absolute paper causes the footer to fly up again */
    }

    .torn-paper {
        /* ✨ THE MAGIC: Overrides the desktop image with your new mobile version! ✨ */
        background-image: url('images/tornpapernew.png');
        
        position: absolute;
        top: 0;
        left: 0;
        
        /* Forces the new paper to be the exact height of the whole category section */
        height: 100%; 
        width: 100%;   
        
        background-repeat: no-repeat; 
        
        /* Stretches the image to perfectly fill the space */
        background-size: 100% 100%; 
        
        background-position: center top; 
    }
   
    .section {
        padding: 10px 0;
        margin-top: -40px;
    }

    .section1-title {
        font-size: 1.5rem; /* Scaled down from 4rem */
        gap: 5px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    /* Shrink the massive 300px red lines so they fit on a phone */
    .section1-title::before,
    .section1-title::after {
        width: 50px; 
        height: 3px;
    }
    
    /* =========================================
       MOBILE: FEATURED CATEGORIES
    ========================================= */
    
    .cards-container {
        display: flex;
        
        /* THE MAGIC FIX: Allows the cards to drop to a new line! */
        flex-wrap: wrap; 
        
        justify-content: center; /* Centers everything on the screen */
        gap: 15px; /* A comfortable gap for touch screens */
        padding: 10px 5px;
        margin-top: 15px;
    }

    .menu-card {
        /* Big enough to tap, but small enough to fit two side-by-side on a phone */
        width: 130px; 
        height: 170px; 
        border-radius: 15px;
        padding: 8px;
    }

    .menu-card h3 {
        font-size: 1.2rem; /* Scaled up so it's readable on a phone! */
        margin-top: 5px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    /* =========================================
       SCALE DOWN THE POP-OUT CATEGORY IMAGES
    ========================================= */
    /* These are scaled proportionally to fit the new 150px cards 
       without breaking out of the sides of the screen */

    .hotdog-img { 
        width: 150px; 
        margin-top: -20px; 
    }
    
    .carbonara-img { 
        width: 150px; 
        margin-top: -15px; 
    }
    
    .wings-img { 
        width: 150px; 
        margin-top: 5px; 
    }
    
    .nachos-img { 
        width: 140px; 
        margin-top: -10px; 
    }
    
    .liempo-img { 
        width: 140px; 
        margin-top: -20px; 
    }

    /* =========================================
       MOBILE: FOOD CATEGORY GRIDS
    ========================================= */
    
    /* 1. Shrink Section Padding & Titles */
    .sandwiches, .pasta, .rice-meals, .appetizers, .binalot {
        padding: 30px 10px 40px 10px; /* Reduces the massive desktop gaps */
    }

    .section2-title {
        font-size: 2rem; /* Shrinks the massive 4rem font */
        -webkit-text-stroke: 1px #000000;
        margin-bottom: 20px;
    }

    /* 2. Collapse the Grid from 5 Columns to 2 Columns */
    .dish-grid {
        grid-template-columns: repeat(2, 1fr); /* THE MAGIC: 2 cards side-by-side! */
        gap: 10px; /* Tighter gap for mobile screens */
        padding: 0 5px;
    }

    /* 3. Scale Down the Cards & Wrappers */
    .dish-card {
        height: 190px; /* Reduced from 270px so they don't look awkwardly tall */
        padding: 8px;
        border-radius: 10px;
    }

    .dish-image-wrapper,
    .dish-image-wrapper1,
    .dish-image-wrapper2,
    .dish-image-wrapper3,
    .dish-image-wrapper4 {
        height: 110px; /* Scaled down perfectly to fit the new card size */
        margin-bottom: 5px; 
    }

    /* 4. Scale Down the Food Image & Badges */
    .dish-img {
        width: 100px; /* Scaled down from 150px */
    }

    .best-seller-badge {
        width: 50px; /* Smaller badge for the smaller card */
        top: -15px;  
        right: -15px; 
    }

    /* 5. Scale Down the Text */
    .dish-info, .dish-info1, .dish-info2, .dish-info3, .dish-info4 {
        padding-top: 5px; /* Overrides any weird desktop padding */
    }

    .dish-info h4, .dish-info1 h4, .dish-info2 h4, .dish-info3 h4, .dish-info4 h4 {
        font-size: 1rem; /* Scaled down for readability */
        margin-bottom: 2px;
        line-height: 1.1;
    }

    .dish-info p, .dish-info1 p, .dish-info2 p, .dish-info3 p, .dish-info4 p {
        font-size: 1rem; 
    }

    
    /* 1. SHRINK THE TOP BAR & KEEP GRID */
    .top-bar {
        /* Your existing mobile styles */
        height: 40px; 
        padding: 5px; 
        
        /* THE FIX: Pulls the entire footer section UP */
        margin-top: -100px; /* Make this number more negative (e.g., -100px) if you need to pull it higher! */
    }

    .top-content {
        display: grid;
        /* Keeps your exact 5-column desktop layout */
        grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
        height: 100%;
        align-items: center;
        gap: 2px; /* Tiny gap to save space */
    }

    /* 2. SCALE DOWN THE POP-OUT LOGO */
    .top-logo {
        position: absolute; 
        height: 50px; /* Much smaller so it doesn't cover the screen */
        top: 50%; 
        transform: translateY(-50%);
        left: 40;
    }

    /* 3. SHRINK ICONS & TEXT TO FIT */
    .contact-item {
        font-size: 0.65rem; /* VERY small text to fit the 5 columns */
        gap: 3px;           /* Less space between icon and text */
        
        /* Forces the long email address to wrap to two lines instead of breaking the layout */
        word-break: break-all; 
        overflow-wrap: anywhere; 
        line-height: 1.1;
    }

    .contact-icon {
        height: 12px; /* Tiny icons */
    }

    /* 4. SHRINK THE FOOTER & KEEP GRID */
    .footer {
        padding: 15px 5px; /* Minimal padding */
    }

    .footer-container {
        display: grid;
        /* Matches the top bar exactly to keep that invisible vertical alignment */
        grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
        gap: 2px;
    }

    .footer-col {
        gap: 4px;
    }

    .footer-col h3 {
        font-size: 0.9rem; /* Scaled down titles */
        margin: 0 0 5px 0;
    }

    .footer-col a {
        font-size: 0.75rem; /* Scaled down links */
    }

    .desktop-spacer {
        display: none;
    }
}