/* Basic Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    /* Clear floats */
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 0.8em;
}

h1#logo {
    font-family: 'Lobster', cursive;
    font-size: 2.8em;
    color: #e74c3c;
    /* Pizza red */
}

h2 {
    font-size: 2.5em;
    color: #333;
}

h3 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1em;
    color: #2c3e50;
    /* Dark blue/grey */
}

p {
    margin-bottom: 1em;
}

a {
    color: #e74c3c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove extra space below image */
}

/* Header */
header {
    background: #fff;
    padding: 1em 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    /* Makes header stick on scroll */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    font-weight: bold;
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
}

/* Hero Section */
#hero {
    background: url('https://images.unsplash.com/photo-1590947132387-155cc02f3212?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8cGl6emElMjBiYWNrZ3JvdW5kfGVufDB8fDB8fHww&auto=format&fit=crop&w=1000&q=80') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
    /* Ensure it takes up a good portion of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero .container {
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    padding: 30px;
    border-radius: 10px;
}


#hero h2 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: #fff;
    font-family: 'Lobster', cursive;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.cta-button,
.cta-button-secondary {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #c0392b;
    /* Darker red */
    text-decoration: none;
}

.cta-button-secondary {
    background: #3498db;
    /* Blue */
    margin-top: 20px;
}

.cta-button-secondary:hover {
    background: #2980b9;
    /* Darker blue */
    text-decoration: none;
}


/* Sections General Styling */
section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

section:nth-child(even) {
    /* Alternate background for sections */
    background-color: #fff;
}


/* Menu Section */
#menu .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 30px;
    margin-bottom: 30px;
}

#menu .menu-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#menu .menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#menu .menu-item img {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Crop image to fit */
    border-radius: 5px;
    margin-bottom: 15px;
}

#menu .menu-item h4 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 0.5em;
}

#menu .menu-item .price {
    font-weight: bold;
    color: #27ae60;
    /* Green for price */
    font-size: 1.2em;
    display: block;
    margin-top: 10px;
}

/* About Section */
#about .container {
    text-align: center;
}

#about .about-image {
    width: 50%;
    max-width: 400px;
    border-radius: 10px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
#contact .container {
    text-align: center;
}

#contact p {
    font-size: 1.1em;
    margin-bottom: 0.7em;
}

#contact strong {
    color: #2c3e50;
}

#contact .social-links {
    margin-top: 20px;
}

#contact .social-links a {
    margin: 0 10px;
    font-size: 1.1em;
    padding: 8px 15px;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#contact .social-links a:hover {
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
}


/* Footer */
footer {
    background: #2c3e50;
    /* Dark blue/grey */
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 0.5em;
}

footer a {
    color: #ecf0f1;
    /* Light grey for links in footer */
}

footer a:hover {
    color: #e74c3c;
}

/* Responsive Design - Media Queries */

/* Smaller tablets and large phones */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        flex-direction: column;
        /* Stack nav items */
    }

    header nav ul li {
        margin: 10px 0;
    }

    #logo {
        font-size: 2.2em;
    }

    #hero h2 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.7em;
    }

    #about .about-image {
        width: 80%;
    }
}

/* Small phones */
@media (max-width: 480px) {
    #logo {
        font-size: 2em;
    }

    #hero {
        padding: 60px 10px;
    }

    #hero h2 {
        font-size: 2em;
    }

    .cta-button,
    .cta-button-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    #menu .menu-grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }

    #contact .social-links a {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }
}