/* Global Styles & Variables */
:root {
    --primary-bg: #FFFFFF;
    --primary-text: #333333; /* Dark Gray */
    --heading-text: #1A1A1A; /* Near Black */
    --accent-color: #D2042D; /* Bold Red */
    --accent-hover: #B80022; /* Darker Red */
    --light-gray: #E0E0E0;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--heading-text);
    margin-top: 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--heading-text);
    font-weight: 700;
}

/* Whitespace & Layout Helpers */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-bg);
    position: relative;
    background-image: url('images/pizzasign.jpg');
    background-size: cover;
    /* Try increasing this value, e.g., to 85% to move the image further down */
    background-position: center 10%;
    background-attachment: fixed;
    padding: 20px;
}

.hero-section::before { /* Dark overlay for text contrast */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Increased opacity from 0.5 to 0.65 for better text contrast */
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInHeroContent 1.5s ease-out;
}

@keyframes fadeInHeroContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 10px;
    color: var(--primary-bg); /* Explicitly set to white, though should be inherited */
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* For readability */
}

.tagline {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 30px;
}

.cta-button, .submit-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover, .submit-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Menu Section */
.menu-section {
    background-color: var(--primary-bg);
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-text);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.menu-item {
    background-color: var(--primary-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.menu-item-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
    display: block; /* Remove bottom space */
    /* transition for opacity can be removed if not needed for other effects */
    /* transition: opacity 0.5s ease-in-out; */
}

.menu-item-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to take remaining space if items have varying text length */
}

.menu-item-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--heading-text);
    margin-bottom: 10px;
}

.menu-item-description {
    font-size: 0.9rem;
    color: var(--primary-text);
    line-height: 1.5;
}

/* Suggestion Form Section */
.suggestion-form-section {
    background-color: #f9f9f9; /* Slightly off-white for differentiation */
}

.suggestion-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--heading-text);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    box-sizing: border-box; /* Important for padding and width */
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(210, 4, 45, 0.2);
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer Section */
.footer-section {
    background-color: var(--heading-text);
    color: #a0a0a0; /* Lighter gray for footer text */
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

.footer-section p {
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        height: 80vh;
    }

    .menu-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 20px;
    }

    .menu-item-image {
        height: 180px;
    }

    .suggestion-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 10px; /* Add some padding for very small screens */
    }
    .logo {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .cta-button, .submit-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}