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

:root {
    --primary-color: #CE2B37; /* Red Accent */
    --secondary-color: #009246; /* Green Accent */
    --text-color: #333333;
    --text-light: #FFFFFF;
    --background-color: #FFFFFF; /* White */
    --accent-light-grey: #f8f8f8; /* Light grey for subtle backgrounds */
    --footer-bg: #222222; /* Dark footer */
    --font-heading: 'Poppins', sans-serif; /* New Heading Font */
    --font-body: 'Roboto', sans-serif; /* New Body Font */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
    text-align: center; /* Center inline-block wrappers */
    padding-top: 0; /* Remove padding to eliminate gap - header will overlay */
}

/* Terms page specific body styling */
body.terms-page {
    padding-top: 63px; /* Adjusted for terms page header */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem; /* Example size */
}

h2 {
    font-size: 2.5rem; /* Example size */
    text-align: center;
    margin-bottom: 0; /* Remove default bottom margin */
}

h3 {
    font-size: 1.5rem; /* Example size */
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

section {
    padding: 6rem 0;
}

/* Override section padding for policy navigation */
section.policy-nav {
    padding: 1.5rem 0;
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #444444;
    color: var(--text-light);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transform: translateY(-2px);
}


/* Header */
header {
    background-color: var(--footer-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.terms-page header {
    box-shadow: none;
}

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

.logo {
    display: inline-block; /* Fit content width */
}

.logo h1 {
    margin: 0;
    font-size: 2rem; /* Reduced size */
    line-height: 1;
}

.logo h1 a {
    color: var(--text-light);
    font-family: var(--font-heading);
    text-decoration: none;
}

.logo h1 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Italian Flag Stripe */
.italian-flag-stripe {
    display: flex;
    height: 3px; /* Height of the stripe */
    /* General properties */
}

/* Stripe specifically under logo text */
.logo .italian-flag-stripe, 
.footer-logo .italian-flag-stripe {
    margin-top: 4px; /* Space below the text logo */
    /* Width set by inline-block parent */
}

/* Stripe specifically under H2 headings */
.section-heading-wrapper .italian-flag-stripe {
    margin-top: 0.5rem; /* Adjust top margin */
    /* Width is now inherited from inline-block wrapper */
}

.italian-flag-stripe div {
    flex: 1; /* Each color takes equal width */
}

.italian-flag-stripe .green {
    background-color: var(--secondary-color);
}

.italian-flag-stripe .white {
    background-color: #FFFFFF;
}

.italian-flag-stripe .red {
    background-color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.reservation-link {
    font-weight: 700;
    margin-left: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-underline-offset: 4px;
    border: 1px solid var(--text-light);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.reservation-link:hover {
    color: var(--footer-bg);
    background-color: var(--text-light);
    text-decoration: none;
    border-color: var(--text-light);
}



/* Mobile Styles */
@media (max-width: 768px) {
    header .container {
        padding: 0 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Make regular navigation work on mobile */
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 0.25rem;
    }
    
    nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Adjust container padding for mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Hero section mobile adjustments */
    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .menu-hero {
        padding: 2rem 0 0 0; /* Remove bottom padding to eliminate gap */
    }
    
    /* Gallery grid mobile adjustments */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Hours section mobile adjustments */
    .hours-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Footer mobile adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Menu items mobile adjustments */
    .menu-item-container {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item-image {
        margin-bottom: 1rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Menu sections mobile spacing */
    .menu-section {
        padding-top: 2rem;
        scroll-margin-top: 200px; /* Account for sticky header + menu nav with proper clearance */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    nav ul li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Menu sections mobile spacing for small screens */
    .menu-section {
        scroll-margin-top: 200px; /* Account for taller mobile header + sticky menu nav on small screens */
    }
}

/* Hero Section */
.hero {
    /* background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images/placeholder-hero.jpg') no-repeat center center/cover; */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/francos-hero.jpg') no-repeat center center/cover; /* Updated background image with safe filename & center position */
    color: var(--text-light);
    /* min-height: 90vh; */ /* Changed to height */
    height: calc(100vh + 80px); /* Cover full viewport height plus header offset */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Center horizontally */
    text-align: center;
    padding: 0; /* Remove section padding to eliminate gap between header and hero */
    margin-top: -80px; /* Pull hero up to start behind header */
    padding-top: 80px; /* Add padding to push content below header */
}

.hero-content {
    max-width: 800px;
    /* margin-bottom: 0; */ /* Reset margin */
    position: relative; /* Allow relative positioning */
    top: -18vh; /* Shift upwards slightly more */
    /* margin-bottom: -10vh; */ /* Remove previous attempt */
}

.hero h2 {
    /* font-size: 4rem; */ /* Old size */
    font-size: 3rem; /* Reduced size for proverb */
    margin-bottom: 1.5rem; /* Adjusted margin */
    color: var(--text-light);
    font-weight: 700;
}

.hero h2 .proverb-translation {
    display: block; /* Ensure it takes its own line if needed */
    font-size: 0.6em; /* Make translation significantly smaller */
    font-style: italic;
    font-weight: 400; /* Lighter weight */
    margin-top: 0.5rem; /* Add some space above translation */
    color: rgba(255, 255, 255, 0.8); /* Slightly less prominent */
}

/* Remove hero p styling as it's being deleted */
/* .hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
} */

.hero .btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* About Section */
#about {
     background-color: var(--background-color);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img.about-img {
    /* Style the image replacing the placeholder */
    width: 100%;
    height: auto; /* Let image maintain natural proportions */
    object-fit: contain; /* Fit entire image without cropping */
    border-radius: 15px; /* Rounder corners */
    max-height: 500px; /* Set a maximum height to prevent it from being too large */
}

/* Gallery Section */
#gallery {
    /* background-color: var(--accent-light-grey); */ /* Old background */
    background-color: var(--footer-bg); /* New dark background */
    color: rgba(255, 255, 255, 0.8); /* Default light text color */
}

#gallery h2 {
    color: var(--text-light); /* White heading */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Specific adjustments for individual gallery images */
.gallery-grid img:nth-child(2) {
    object-position: center 35%; /* Move the middle top image higher */
}

.gallery-grid img:nth-child(4) {
    object-position: center 5%; /* Zoom in on bottom-left image by focusing near the top */
}

.gallery-grid img:nth-child(6) {
    object-position: center 5%; /* Zoom in on bottom-right image by focusing near the top */
}

/* Hover effect for all gallery images */
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Hours & Location */
#hours {
    background-color: var(--background-color); /* White background to follow design pattern */
    color: var(--text-color); /* Dark text color */
    scroll-margin-top: 80px; /* Ensure "Visit Us" heading is visible when navigating */
}

.hours-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start; /* Align top */
}

.hours-table { 
    /* Add padding to shift centered content left */
    padding-right: 4rem; /* Adjust this value as needed */
}

.hours-table h3, .location h3 {
    /* text-align: center; */ /* Centering handled by flex align-items */
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-color); /* Red headings for white background */
}

/* Update section h2 color for white bg */
#hours h2 {
    color: var(--text-color);
}

table {
    width: 100%;
    max-width: 400px; /* Constrain table width for centering */
    margin: 0 auto; /* Center the table block */
    border-collapse: collapse;
}

table td {
    padding: 0.75rem 0;
    padding-right: 1rem; /* Add padding to the right of cells */
    border-bottom: 1px solid #eee; /* Grey border for white background */
    font-size: 0.95rem;
    /* Color inherits from #hours */
}

table tr:last-child td {
    border-bottom: none;
}

/* Style for the quote under hours */
.hours-quote {
    font-family: var(--font-heading); /* Use heading font */
    font-size: 1.2rem; /* Adjust size as needed */
    text-align: center; /* Ensure quote text is centered */
    margin-top: 3.5rem; /* Increased top margin */
    line-height: 1.4;
}

/* Italian flag colors for quote text - Keep these */
.hours-quote .green-text {
    color: var(--secondary-color);
}
.hours-quote .white-text {
    color: #444; /* Dark color for white background */
}
.hours-quote .red-text {
    color: var(--primary-color);
}

.hours-quote .quote-translation {
    display: block;
    font-size: 0.8em; /* Smaller font size */
    font-family: var(--font-body); /* Use body font for translation */
    font-style: normal; /* Non-italic translation */
    color: #777; /* Grey color for white background */
    margin-top: 0.3rem;
}

/* Adjust location text color */
.location p {
     color: var(--text-color); /* Dark text for white background */
}

table td:first-child {
    font-weight: 600;
    padding-right: 1rem;
}

.map-placeholder {
    height: 350px;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Ensures iframe respects border radius */
}
.map-placeholder iframe {
    border-radius: 8px;
}

/* Contact Section */
#contact {
    background-color: var(--background-color);
    text-align: center;
    scroll-margin-top: 80px; /* Ensure "Get in Touch" heading is visible */
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.5rem; /* Larger icons */
}

.social-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}


/* Footer */
footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

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

.footer-logo {
    text-align: left; /* Align text logo left */
    display: inline-block; /* Fit content width */
}

footer .footer-logo h1 {
    margin: 0;
    font-size: 1.8rem; /* Reduced size */
    line-height: 1;
}

footer .footer-logo h1 a {
    color: var(--text-light);
    font-family: var(--font-heading);
    text-decoration: none;
}

footer .footer-logo h1 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

footer .footer-logo .italian-flag-stripe {
    margin-top: 4px; /* Space below text */
    margin-bottom: 0.5rem; /* Space below stripe before tagline */
}

.footer-logo p {
     color: rgba(255, 255, 255, 0.7);
     margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer-social {
    display: flex; /* Ensure flex display for gap */
    gap: 1.5rem; /* Add space between icons */
}

.footer-social .social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
}

.footer-social .social-link:hover {
    color: var(--text-light);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ------------------ */
/* Menu Page Specifics */
/* ------------------ */

.menu-hero {
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/placeholder-menu-hero.jpg') no-repeat center center/cover; */
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/plated-dishes.jpg') no-repeat center 25%/cover; */ /* Old version with overlay */
    background: url('images/plated-dishes.jpg') no-repeat center 25%/cover; /* Removed gradient overlay */
    color: var(--text-light);
    padding: 8rem 0 0; /* Remove bottom padding to eliminate gap */
    text-align: center;
    min-height: 50vh; /* Ensure minimum height */
}

.menu-hero .container {
    max-width: 800px;
    margin: 0 auto;
}

.menu-hero h2 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.menu-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.menu-legend {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    display: inline-block;
    border-radius: 4px;
    font-size: 0.9rem;
}

.vegetarian-icon {
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: bold;
    padding: 0.1rem 0.4rem;
    border-radius: 50%;
    margin-right: 0.3rem;
    font-size: 0.75rem;
    display: inline-block;
    line-height: 1;
}

/* Menu Navigation */
.menu-nav {
    background: var(--background-color);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px; /* Minimize gap while ensuring content isn't covered */
    z-index: 999;
    padding: 1.5rem 0; /* Increased padding for better spacing */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.menu-nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.menu-nav-item {
    padding: 0.5rem 1.2rem;
    background-color: var(--accent-light-grey);
    color: var(--text-color);
    border-radius: 30px; /* Pill shape */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
    white-space: nowrap;
}

.menu-nav-item:hover, .menu-nav-item.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Mobile Menu Navigation Responsive Styles */
@media (max-width: 768px) {
    .menu-nav {
        padding: 0.8rem 0;
        top: 140px; /* Account for taller mobile header (logo + nav stacked) with extra clearance */
    }
    
    .menu-nav-container {
        gap: 0.6rem;
        padding: 0 1rem;
    }
    
    .menu-nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust specific long menu items for mobile */
    .menu-nav-item:last-child {
        font-size: 0.8rem; /* Smaller font for "Specialatia Di Franco" */
    }
}

@media (max-width: 480px) {
    .menu-nav {
        padding: 0.6rem 0;
        top: 140px; /* Account for taller mobile header (logo + nav stacked) with extra clearance */
    }
    
    .menu-nav-container {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }
    
    .menu-nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        flex: 0 0 auto; /* Prevent flex shrinking */
    }
    
    /* Make very long menu item wrap better */
    .menu-nav-item:last-child {
        font-size: 0.75rem;
        line-height: 1.2;
        text-align: center;
    }
}

/* Menu Sections Layout */
.menu-sections {
    padding: 4rem 0;
}

.menu-section {
    margin-bottom: 4rem;
    padding-top: 4rem; /* Match scroll margin */
    scroll-margin-top: 160px; /* Adjust based on sticky nav height */
}

.menu-section:first-child {
    padding-top: 0;
}

.menu-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.menu-header h2 {
    margin-bottom: 0.5rem;
}

.menu-header::after {
     /* Remove default line */
    content: none; 
}

.menu-subtitle {
    color: #666;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Target only direct h3 children for subsection titles */
.menu-subsection > h3 {
    text-align: center;
    color: var(--secondary-color); /* Keep green for subsection titles */
    margin: 2.5rem 0 1.5rem 0;
    font-style: italic;
    font-size: 1.3rem;
}

.menu-items {
    /* Apply grid layout to all menu items containers by default */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 2.5rem 2rem; /* Row gap and Column gap */
    max-width: 100%; /* Allow grid to use more width if needed */
    /* max-width: 800px; */ /* Removed old max-width for single column */
    /* margin: 0 auto; */ /* Centering handled differently if needed */
}

/* Specific layout for Antipasto section - REMOVED as it's now default */
/* #antipasto .menu-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2.5rem 2rem; 
    max-width: 100%; 
} */

/* General styling for items within the 2-column grid */
.menu-items .menu-item-container {
    border-bottom: 1px solid #eee; 
    padding-bottom: 1.5rem; 
    margin-bottom: 0; 
}

/* Remove border from last item(s) in the 2-column grid */
.menu-items .menu-item-container:last-child,
.menu-items .menu-item-container:nth-last-child(2):nth-child(odd) { 
   border-bottom: none;
   padding-bottom: 0;
}

.menu-item-container {
    display: grid;
    grid-template-columns: 120px 1fr; /* Image and details */
    gap: 20px;
    align-items: start; /* Align items to the start of the grid area */
    padding: 15px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Style for menu items without an image */
.menu-item-container.no-image {
    grid-template-columns: 1fr; /* Only one column for details */
}

.menu-item-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Default - remove border from last item if NOT in antipasto */
.menu-section:not(#antipasto) .menu-item-container:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.menu-item-image {
    width: 120px; /* Increased desktop size */
    height: 120px; /* Increased desktop size */
    border-radius: 15px; /* Rounder corners */
    object-fit: cover;
}

.menu-item-details {
     padding-top: 0.2rem; /* Align text better with top of image */
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

/* Align specific pizza names left */
#pizza .menu-item-name {
    text-align: left; 
}

.menu-item-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}


/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .hero h2 { font-size: 3.5rem; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; } /* Image on top on smaller screens */
    .hours-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    header .container { flex-direction: column; }
    header .logo {
        margin-bottom: 1rem; /* Add space below logo on mobile */
    }
    header h1 { margin-bottom: 0; } /* Reset h1 margin if needed */
    nav ul { 
        /* Re-apply flex for horizontal items */
        display: flex;
        flex-direction: row; /* Explicitly set or rely on default */
        justify-content: center; 
        flex-wrap: wrap; 
        /* margin-top: 0.5rem; */ /* Remove duplicate margin */
        margin: 0.5rem 0 0 0; 
        /* display: block; */ /* Remove block display */
        /* text-align: center; */ /* Not needed for flex centering */
        width: 100%; /* Allow ul to take full width for centering */
        padding: 0; /* Reset padding if any */
    }
    nav ul li {
         margin: 0 0.75rem 0.5rem; /* Adjust spacing as needed */
    }

    .hero {
         height: calc(100vh + 80px); /* Maintain full height plus header offset on mobile */
         background-position: center 30%; /* Adjust vertical position */
    }
    .hero-content {
        top: -8vh; /* Adjust relative top positioning for mobile - moved up slightly */
    }

    .hero h2 { font-size: 2.8rem; }

    section { padding: 4rem 0; }

    /* Menu navigation inherits sticky behavior from main rule */
         .menu-section { padding-top: 2rem; scroll-margin-top: 200px; /* Account for mobile header + sticky menu nav */ }
    
    /* Revert menu items to single column */
    .menu-items {
        grid-template-columns: 1fr; /* Single column */
        gap: 1.5rem; /* Adjust gap for single column */
        max-width: 800px; /* Restore max-width for centered single column */
        margin: 0 auto; /* Re-center container */
    }
    
    /* Stack image and details within each item */
    .menu-item-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        border-bottom: 1px solid #eee; /* Ensure border exists in single column */
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem; /* Add margin back for single column */
    }
    /* Remove border ONLY from the very last item in single column */
    .menu-items .menu-item-container:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
     /* Remove complex border logic needed only for 2 columns */
    .menu-items .menu-item-container:nth-last-child(2):nth-child(odd) { 
        border-bottom: 1px solid #eee; /* Restore border if it was removed */
    }

    .menu-item-image {
         margin: 0 auto 1rem auto;
         width: 180px; /* Increased mobile size */
         height: 180px; /* Increased mobile size */
    }
    #pizza .menu-item-name { text-align: center; }
    .menu-item-details { padding-top: 0; }

    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .footer-logo h2 { text-align: center; }
    .footer-links { justify-content: center; }

    /* Adjust gallery grid for smaller screens */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    .gallery-grid img {
        height: 200px; /* Slightly smaller height */
    }

    .events-image { order: -1; }

    /* Stack hours/location section */
    .hours-content {
        grid-template-columns: 1fr; /* Single column */
        gap: 3rem; /* Add vertical gap */
    }

    /* Reset padding for hours table on mobile */
    .hours-table {
        padding-right: 0;
    }
    
    /* Adjust scroll margin for hours section on mobile */
    #hours {
        scroll-margin-top: 120px; /* Account for mobile header height */
    }
    
    /* Adjust scroll margin for contact section on mobile */
    #contact {
        scroll-margin-top: 120px; /* Account for mobile header height */
    }

    .menu-item-container {
        grid-template-columns: 1fr; /* Stack image and details */
        text-align: center;
    }

    .menu-item-image {
        width: 100px; /* Smaller image on mobile */
        height: 100px;
        margin: 0 auto 10px; /* Center image and add space below */
    }
}

@media (max-width: 480px) {
     html { font-size: 14px; }
     h1 { font-size: 2rem; }
     h2 { font-size: 1.8rem; }
     .hero h2 { font-size: 2.2rem; }
     nav ul li { margin: 0 0.5rem 0.5rem; }
}

/* Contact Section Social Icons Styling (duplicate of footer styles for consistency) */
.contact-info .social-link svg {
    width: 28px; /* Slightly larger for contact section maybe? */
    height: 28px;
    fill: currentColor; /* Use the anchor's color */
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.contact-info .social-link:hover svg {
    transform: scale(1.1);
}

/* Private Events Section */
#private-events {
    background-color: var(--background-color); /* White background */
}

.events-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.events-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px; /* Rounder corners */
}

.events-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Adjust private events layout */
.events-content {
    grid-template-columns: 1fr;
    gap: 2rem;
}
.events-image { order: -1; }

.events-text {
    text-align: center;
}

.events-text p {
    margin-bottom: 1.5rem;
}

.events-text .btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.events-text .btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Wrapper for section headings */
.section-heading-wrapper {
    display: inline-block; /* Shrink-wrap the h2 */
    margin-bottom: 3rem; /* Space below the wrapper+stripe */
}

/* Terms & Conditions Page Styles */
.terms-hero {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 10rem 0 0.5rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 20vh;
}

.terms-hero .container {
    width: 100%;
}

.terms-hero .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

/* Policy Navigation */
.policy-nav {
    background-color: var(--footer-bg);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--primary-color);
    position: fixed !important;
    top: 60px !important; /* Minimize gap while ensuring proper positioning */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    margin: 0;
    border-top: none;
}

/* On terms page, make policy nav connect seamlessly with header */
body.terms-page .policy-nav {
    position: fixed !important;
    top: 60px !important; /* Minimize gap while ensuring proper positioning */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 999 !important;
}

.policy-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.policy-nav-item {
    background-color: var(--text-light);
    color: var(--text-color);
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.policy-nav-item:hover, .policy-nav-item.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 43, 55, 0.3);
    text-decoration: none;
}

/* Policy Sections */
.policy-sections {
    padding: 4rem 0;
    padding-top: 8rem; /* Add space for fixed policy navigation */
}

.policy-section {
    padding-top: 2rem;
    margin-bottom: 3rem;
    scroll-margin-top: 160px; /* Adjusted for regular navigation */
}

/* Ensure all policy sections have identical scroll positioning */
#general-policies,
#dress-code-behavior,
#functions-events {
    scroll-margin-top: 160px; /* Adjusted for regular navigation */
}

.policy-section:first-child {
    padding-top: 0;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.policy-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0;
}

.terms-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.terms-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.terms-content {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--accent-light-grey);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.terms-section:last-of-type {
    margin-bottom: 2rem;
}

.terms-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.terms-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-section li {
    padding: 0.5rem 0 0.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    text-align: left;
}

.terms-section li:last-child {
    border-bottom: none;
}

.terms-section li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
}

/* Nested list items */
.terms-section li ul {
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.terms-section li ul li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    border-bottom: none;
    font-size: 0.95em;
}

.terms-section li ul li::before {
    content: "◦";
    color: var(--primary-color);
    left: 0.3rem;
    top: 0.3rem;
}

.contact-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.contact-section h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-section p {
    margin-bottom: 0.5rem;
}

.contact-section a {
    color: var(--text-light);
    text-decoration: underline;
}

.contact-section a:hover {
    color: #f0f0f0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive adjustments for Terms page */
@media (max-width: 768px) {
    .terms-hero {
        padding: 8rem 0 0.5rem 0;
        min-height: 18vh;
    }
    
    .terms-hero h2 {
        font-size: 2rem;
    }
    
    .terms-content {
        padding: 4rem 0;
    }
    
    .policy-sections {
        padding: 3rem 0;
    }
    
    section.policy-nav {
        position: fixed !important;
        top: 140px !important; /* Match menu navigation - terms page has smaller header */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 1rem 0;
        margin: 0;
        z-index: 999 !important;
    }
    
    .policy-nav-container {
        gap: 1rem;
    }
    
    .policy-nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .policy-section {
        scroll-margin-top: 160px; /* Account for policy navigation position */
        padding-top: 3rem;
    }
    
    /* Ensure all policy sections have identical scroll positioning on mobile */
    #general-policies,
    #dress-code-behavior,
    #functions-events {
        scroll-margin-top: 160px; /* Account for policy navigation position */
    }
    

    
    .policy-header h2 {
        font-size: 1.8rem;
    }
    
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    section.policy-nav {
        position: fixed !important;
        padding: 0.8rem 0;
        margin: 0;
        top: 140px !important; /* Match menu navigation - terms page has smaller header */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
    }
    
    .policy-nav-container {
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .policy-nav-item {
        padding: 0.5rem 0.7rem;
        font-size: 0.65rem;
        width: auto;
        text-align: center;
        flex: 0 1 auto;
        min-width: 90px;
    }
    
    .policy-header h2 {
        font-size: 1.6rem;
    }
    
    .terms-section {
        padding: 1rem;
    }
    
    .terms-section li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .terms-section li::before {
        left: 0.3rem;
    }
    
    .terms-section li ul li {
        padding-left: 1.2rem;
        font-size: 0.85em;
    }
    
    .terms-section li ul li::before {
        left: 0.2rem;
    }
    
    /* Adjust policy section scroll margins for very small screens */
    .policy-section {
        scroll-margin-top: 160px; /* Account for policy navigation on small screens */
    }
    
    #general-policies,
    #dress-code-behavior,
    #functions-events {
        scroll-margin-top: 160px; /* Account for policy navigation on small screens */
    }
}

/* Floating Back to Menu Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 146, 70, 0.3);
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.back-to-top-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 43, 55, 0.4);
}

.back-to-top-btn svg {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .back-to-top-btn span {
        display: none; /* Hide text on mobile, show only icon */
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }
} 