/* CSS Variables for Italian Restaurant Theme */
:root {
    --deep-burgundy: #980000;
    --dark-burgundy: #7a0000;
    --darker-burgundy: #690000;
    --warm-cream: #f8f7f3;
    --off-white: #f4f4f4;
    --light-gray: #e7e4d7;
    --medium-gray: #ddd;
    --dark-gray: #666;
    --charcoal: #222;
    --vintage-gold: #b8821b;
    --warm-beige: #f0eee6;
    --rich-brown: #250000;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font: 12px Arial, Helvetica, sans-serif;
    line-height: 18px;
    color: var(--dark-gray);
    background: var(--warm-cream) url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8') center 0 repeat;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 { 
    margin-bottom: 16px; 
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

/* Ensure all sections don't overflow */
section {
    width: 100%;
    overflow-x: hidden;
}

/* Prevent pseudo-elements from causing overflow */
*::before,
*::after {
    box-sizing: border-box;
}

h1 {
    color: var(--deep-burgundy);
    font-size: 30px;
    line-height: 36px;
    border-bottom: var(--medium-gray) 1px solid;
    padding-bottom: 11px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

h2 { 
    font-size: 18px; 
    color: var(--charcoal); 
    line-height: 24px; 
    letter-spacing: -1px;
}

h3 {
    font-size: 18px;
    font-weight: normal;
    color: var(--charcoal);
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

p { margin-bottom: 16px; }

a { 
    text-decoration: none; 
    color: var(--deep-burgundy); 
    transition: all 0.3s ease;
}

a:hover { 
    text-decoration: underline; 
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--warm-cream) 0%, #f5f5f5 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(152, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--medium-gray);
}

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

.logo-section {
    text-align: left;
}

.logo {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.8rem;
    font-weight: normal;
    font-style: italic;
    color: var(--deep-burgundy);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.tagline {
    font-style: italic;
    color: var(--dark-gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--dark-burgundy) 100%);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(152, 0, 0, 0.3);
    flex-wrap: wrap;
}

.nav ul li {
    position: relative;
    border-right: 1px solid var(--darker-burgundy);
}

.nav ul li:last-child {
    border-right: none;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    transition: all 0.3s ease;
    padding: 0.8rem 1.2rem;
    display: block;
    text-shadow: 1px 1px 0 var(--rich-brown);
    line-height: 1.4;
    min-width: 0;
    text-align: center;
}

.nav a:hover {
    background: var(--darker-burgundy);
    color: #fff;
    text-decoration: none;
    transform: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--dark-burgundy) 50%, var(--rich-brown) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--vintage-gold);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(184, 130, 27, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 4rem;
    font-style: italic;
    color: var(--vintage-gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-weight: normal;
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 1.3rem;
    color: #fdbbbb;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-button {
    background: linear-gradient(45deg, var(--vintage-gold), #daa520);
    color: var(--rich-brown);
    padding: 1rem 2rem;
    border: 2px solid #fff;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: linear-gradient(45deg, #daa520, var(--vintage-gold));
}

/* Placeholder Images */
.placeholder-image {
    background: linear-gradient(135deg, var(--warm-cream), #f0f0f0);
    border: 4px solid var(--off-white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-burgundy);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(152, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Image styling within placeholder containers */
.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1px;
}

/* Hide placeholder text when image is present */
.placeholder-image:has(img) span {
    display: none;
}

.placeholder-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(152, 0, 0, 0.3);
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(152, 0, 0, 0.05) 15px,
        rgba(152, 0, 0, 0.05) 30px
    );
}

.placeholder-image span {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

.pizza-hero {
    height: 300px;
    font-size: 2rem;
}

.pizza-margherita,
.pizza-pepperoni,
.pizza-supreme {
    height: 200px;
    margin-bottom: 1rem;
}

.family-photo {
    height: 250px;
}

.storefront {
    height: 200px;
}

/* Sections */
.section-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    font-style: italic;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: -1px;
    font-weight: normal;
}

/* Override for menu section */
.menu-preview .section-title {
    color: var(--vintage-gold);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

/* Featured Section */
.featured {
    padding: 4rem 0;
    background: var(--warm-cream);
    position: relative;
    border-bottom: 1px solid var(--medium-gray);
}

.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(152, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(184, 130, 27, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-item {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(152, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-gray);
    position: relative;
}

.featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(152, 0, 0, 0.25);
}

.featured-item h3 {
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 24px;
}

.featured-item p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 12px;
    line-height: 18px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--warm-beige);
    position: relative;
    border-bottom: 1px solid var(--medium-gray);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(152, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(184, 130, 27, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    font-style: italic;
    color: var(--deep-burgundy);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    font-weight: normal;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 12px;
    line-height: 18px;
}

/* Menu Preview */
.menu-preview {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--dark-burgundy) 50%, var(--rich-brown) 100%);
    position: relative;
    border-bottom: 3px solid var(--vintage-gold);
}

.menu-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(184, 130, 27, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.menu-category {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--light-gray);
    backdrop-filter: blur(5px);
}

.menu-category h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    font-style: italic;
    color: var(--deep-burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: normal;
    line-height: 35px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dotted var(--medium-gray);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: normal;
    color: var(--charcoal);
    font-size: 12px;
}

.item-price {
    font-weight: bold;
    color: var(--deep-burgundy);
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--warm-cream);
    position: relative;
    border-bottom: 1px solid var(--medium-gray);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 40% 60%, rgba(152, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(184, 130, 27, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    font-style: italic;
    color: var(--deep-burgundy);
    margin-bottom: 2rem;
    letter-spacing: -1px;
    font-weight: normal;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 5px;
    border-left: 4px solid var(--deep-burgundy);
    box-shadow: 0 2px 10px rgba(152, 0, 0, 0.1);
}

.contact-item h4 {
    color: var(--deep-burgundy);
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: normal;
}

.contact-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 12px;
    line-height: 18px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--dark-burgundy) 50%, #000 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(184, 130, 27, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(152, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--vintage-gold);
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    letter-spacing: -1px;
}

.footer-section h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    color: var(--vintage-gold);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    border-bottom: #383838 1px solid;
    border-top: #171717 1px solid;
    margin: -1px 0 1px;
    padding: 10px 0 10px 30px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8') 13px 15px no-repeat;
}

.footer-section a {
    color: #fdbbbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--vintage-gold);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links span {
    padding: 0.5rem;
    background: rgba(184, 130, 27, 0.2);
    border: 1px solid var(--vintage-gold);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--vintage-gold);
}

.social-links span:hover {
    background: var(--vintage-gold);
    color: var(--deep-burgundy);
}

/* Terms Section */
.terms-section {
    background: rgba(184, 130, 27, 0.1);
    padding: 2rem;
    border-radius: 5px;
    margin: 2rem 0;
    border: 1px solid var(--vintage-gold);
    position: relative;
    z-index: 2;
}

.terms-section h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    font-style: italic;
    color: var(--vintage-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: normal;
    text-shadow: 1px 1px 0 #000;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #d9d9d9;
    font-size: 12px;
    line-height: 18px;
}

.terms-content strong {
    color: var(--vintage-gold);
}

.terms-footer {
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vintage-gold);
    color: var(--vintage-gold) !important;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--vintage-gold);
    color: var(--vintage-gold);
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 0;
        width: 100%;
        justify-content: center;
    }
    
    .nav ul li {
        flex: 1;
        min-width: 0;
    }
    
    .nav a {
        padding: 0.6rem 0.4rem;
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 14px;
        line-height: 20px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 12px;
        line-height: 18px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav a {
        padding: 0.5rem 0.2rem;
        font-size: 9px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .featured,
    .about,
    .menu-preview,
    .contact {
        padding: 2rem 0;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 10px;
    }
}

/* Extra small screens - Stack navigation vertically */
@media (max-width: 360px) {
    .nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav ul li {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--darker-burgundy);
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        padding: 0.7rem 1rem;
        font-size: 12px;
        text-align: center;
        overflow: visible;
        white-space: normal;
    }
}

/* Nostalgic Effects */
.hero,
.featured,
.about,
.menu-preview,
.contact {
    position: relative;
}

.hero::after,
.featured::after,
.about::after,
.menu-preview::after,
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above overlay */
.hero > *,
.featured > *,
.about > *,
.menu-preview > *,
.contact > * {
    position: relative;
    z-index: 2;
}