/* =========================================
   GLOBAL STYLES
========================================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   CONTAINERS
========================================= */

.content-container,
.contact-container,
.footer-content,
.specials-grid,
.values-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    background-color: #8b0000;
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
}

.logo p {
    font-size: 0.9rem;
    margin-top: 5px;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    font-weight: bold;
    transition: opacity 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 0.7;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    background-image: url("../images/hero-pizza.jpg");
    background-size: cover;
    background-position: center;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    text-align: center;
    padding: 50px;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* =========================================
   PAGE HERO
========================================= */

.page-hero {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.page-hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
}

/* =========================================
   BUTTONS
========================================= */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #ff6600;
    color: white;
}

.btn-primary:hover {
    background-color: #e05500;
}

.btn-secondary {
    background-color: #8b0000;
    color: white;
}

.btn-secondary:hover {
    background-color: #6e0000;
}

/* =========================================
   SECTIONS
========================================= */

section {
    padding: 70px 5%;
}

section h2 {
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-align: center;
}

/* =========================================
   SPECIALS
========================================= */

.specials {
    background-color: #f7f7f7;
}

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

.special-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 20px;
}

.special-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.special-card h3 {
    margin: 20px 0 10px;
}

.special-card p {
    padding: 0 20px;
}

.price {
    display: block;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b0000;
}

/* =========================================
   CONTENT LAYOUTS
========================================= */

.content-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.content-container.reverse {
    flex-direction: row-reverse;
}

.text-content,
.image-content {
    flex: 1;
    min-width: 300px;
}

.text-content p {
    margin-bottom: 20px;
}

.image-content img {
    border-radius: 8px;
}

/* =========================================
   VALUES SECTION
========================================= */

.values-section {
    background-color: #f7f7f7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.value-card h3 {
    margin-bottom: 15px;
    color: #8b0000;
}

/* =========================================
   TIMELINE
========================================= */

.timeline {
    max-width: 900px;
    margin: auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.timeline-year {
    background-color: #8b0000;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

/* =========================================
   HOURS & LOCATION
========================================= */

.hours-location {
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    text-align: center;
}

.hours ul li,
.location p {
    margin-bottom: 10px;
}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 320px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    margin-bottom: 10px;
    color: #8b0000;
}

.hours-list li {
    margin-bottom: 8px;
}

/* =========================================
   FORM STYLES
========================================= */

.contact-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* =========================================
   MAP
========================================= */

.map-container {
    max-width: 1200px;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
}

/* =========================================
   CTA
========================================= */

.cta {
    background-color: #8b0000;
    color: white;
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background-color: #222;
    color: white;
    padding-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-content h3 {
    margin-bottom: 15px;
    color: #ff6600;
}

.footer-content li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 768px) {

    .site-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .main-nav {
        justify-content: center;
    }

    .hero h2,
    .page-hero h2 {
        font-size: 2.2rem;
    }

    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        width: fit-content;
    }

    section {
        padding: 50px 5%;
    }

}