/* GLOBAL RESETS & FULL SCREEN SETUP */
* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

html, body {
    /* RESTORED: Use 100% height to ensure the full-screen-menu fills the viewport */
    height: 100%; 
    width: 100%;
}

/* FULL SCREEN GRID LAYOUT (Desktop Default) */
.full-screen-menu {
    display: grid;
    /* Updated grid-template-rows to include a row for the map and a row for the footer */
    grid-template-rows: auto 70vh min-content min-content; 
    height: 100vh; 
    width: 100vw; 
    position: relative; 
    overflow: auto; 
}

/* HEADLINE STYLES */
.headline-bar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; 
    padding: 15px 0; 
    background-color: white; 
    border-bottom: 3px solid #4CAF50; 
}

.main-headline {
    color: #4CAF50; 
    font-family: 'Georgia', serif; 
    font-size: 2.8em; 
    font-weight: bold; 
    text-align: center;
    margin: 0; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); 
    letter-spacing: 2px;
}

/* MENU ITEMS CONTAINER (Desktop Default) */
.menu-items-container {
    grid-row: 2 / 3; /* Stays in the second row */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 10px; 
    padding: 90px 10px 10px; 
}

.menu-item {
    display: block; 
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 100%; 
}

.menu-item img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); 
    color: white;
    padding: 10px;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.2em;
}

/* GOOGLE MAP CONTAINER */
.map-container {
    grid-row: 3 / 4; /* Stays in the third row */
    width: 100%;
    height: 100%;
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* WHATSAPP BUTTON (No Change) */
.whatsapp-button {
    position: fixed; 
    bottom: 20px; 
    right: 20px;  
    background-color: #25d366; 
    color: white;
    padding: 12px 20px;
    border-radius: 50px; 
    text-decoration: none;
    font-size: 1.1em;
    font-family: sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 1000; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

/***********************************************/
/* FOOTER STYLING (Now in the final grid row) */
/***********************************************/

.site-footer {
    grid-row: 4 / 5; /* Occupies the final grid row */
    background-color: #333;
    color: #f0f0f0;
    padding: 10px 10px; 
    text-align: center;
    width: 100%;
    margin-top: 0; /* No need for auto-margin since it's in the grid */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    margin: 3px 0; 
    font-size: 0.8em; /* Very small text size */
}

.footer-link {
    color: #4CAF50; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #25D366;
    text-decoration: underline;
}

/***********************************************/
/* MOBILE OPTIMIZATION (max-width: 768px)       */
/***********************************************/

@media (max-width: 768px) {
    /* RESTORED: Reset to simple block layout for mobile scrolling */
    .full-screen-menu {
        display: block; 
        height: auto; 
        overflow-y: scroll; 
    }
    
    .main-headline {
        font-size: 1.8em; 
        padding: 10px 0;
    }
    .headline-bar {
        padding: 8px 0; 
    }

    /* Menu Items (Stack Vertically) */
    .menu-items-container {
        grid-template-columns: 1fr; 
        padding-top: 60px; 
        gap: 15px; 
    }
    
    .menu-item {
        height: auto; 
        min-height: 0; 
        padding-bottom: 30px; 
    }

    .menu-item img {
        height: auto; 
        object-fit: contain; 
        display: block; 
        min-height: 250px; 
        width: 100%; 
    }
    
    .caption {
        font-size: 1em; 
        padding: 8px; 
    }
    
    /* Google Map (Small Footer) */
    .map-container {
        width: 100%;
        height: 150px; 
        margin-top: 15px; 
    }

    .whatsapp-button {
        bottom: 10px; 
        right: 10px;
        font-size: 0.9em;
        padding: 10px 15px;
        z-index: 1001; 
    }
    
    .whatsapp-button i {
        font-size: 1.2em;
        margin-right: 6px;
    }
    
    /* Mobile Footer adjustments */
    .site-footer {
        padding: 8px 10px;
        margin-top: 20px; /* Add some space above the footer on mobile */
    }
    .site-footer p {
        font-size: 0.75em; 
    }
}