/* America's Pizza Delivery Culture - Editorial Magazine Styles */

/* CSS Variables */
:root {
    --primary-red: #B03A2E;
    --cream-bg: #FDF8F3;
    --charcoal-text: #2C2C2C;
    --light-gray: #E8E4E0;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--charcoal-text);
    line-height: 1.8;
    font-size: 18px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--charcoal-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #8B2E24;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-red);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: -0.02em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--charcoal-text);
}

nav a:hover {
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.article-card-content {
    padding: 2rem;
}

.article-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Section Styling */
section {
    margin-bottom: 5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Article Content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-image-small {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* Author & Date */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    margin: 3rem 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.publish-date {
    color: #666;
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.faq-answer {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal-text);
}

/* Contact Form */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

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

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #8B2E24;
}

/* Footer */
footer {
    background-color: var(--charcoal-text);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--white);
}

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

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--charcoal-text);
    color: var(--white);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner button {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #8B2E24;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .article-image {
        height: 300px;
    }
    
    .article-image-small {
        height: 250px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .cookie-banner {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .article-image,
    .article-image-small {
        page-break-inside: avoid;
    }
}