:root {
    --bg-color: #FEF9E0;
    --accent-green: #166938;
    --accent-red: #E43B2E;
    --text-color: #1a1a1a;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    /* Vintage paper texture effect could be added here with a background image */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

/* Header */
.main-header {
    padding: 0.5rem 0;
    border-bottom: 4px solid var(--accent-green);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    display: block;
    width: 150px;
    /* Adjust based on logo aspect ratio */
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(254, 249, 224, 0.7);
    /* Overlay to ensure text readability */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Critical Info */
.critical-info {
    background-color: var(--accent-green);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 4px solid var(--accent-red);
    border-bottom: 4px solid var(--accent-red);
}

.critical-info h2 {
    color: #fff;
    /* Override green */
}

/* Menu */
.menu-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.menu-grid {
    display: grid;
    gap: 2rem;
}

.menu-category {
    margin-bottom: 3rem;
}

.menu-items {
    display: grid;
    gap: 1rem;
    /* max-width: 600px; */
    margin: 0 auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--accent-green);
    padding-bottom: 0.5rem;
}

.item-name {
    font-weight: 700;
}

.item-price {
    font-weight: 700;
    color: var(--accent-red);
}

.menu-image {
    display: none;
    /* Hidden on mobile by default */
    align-items: center;
    justify-content: center;
}

.pizza-decoration {
    max-width: 100%;
    height: auto;
    transform: rotate(15deg);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* Footer */
footer {
    background-color: var(--accent-green);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    /* Checkerboard pattern could be added here */
    border-top: 8px solid var(--accent-red);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-hours h4 {
    color: var(--accent-red);
    /* Pop of red in footer */
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Checkerboard Pattern */
.checkerboard-strip {
    height: 20px;
    background-color: #FEF9E0;
    background-image:
        linear-gradient(45deg, #E43B2E 25%, transparent 25%, transparent 75%, #E43B2E 75%, #E43B2E),
        linear-gradient(45deg, #E43B2E 25%, transparent 25%, transparent 75%, #E43B2E 75%, #E43B2E);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    opacity: 0.8;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--accent-green);
    color: #fff;
    padding: 0;
    /* Remove padding to handle strip */
    text-align: center;
}

.footer-content-wrapper {
    padding: 3rem 0;
}

/* Mobile adjustments */
@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .menu-image {
        display: flex;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}