/* 
   Theme: Pizza-Bene
   Style: Modern, Premium, Italian
*/

:root {
    /* Colors */
    --color-primary: #D32F2F;
    /* Tomato Red */
    --color-primary-dark: #B71C1C;
    --color-secondary: #2E7D32;
    /* Basil Green */
    --color-accent: #FFC107;
    /* Cheese Yellow/Gold */
    --color-dark: #212121;
    /* Charcoal */
    --color-light: #F5F5F5;
    /* Off-white background */
    --color-white: #FFFFFF;
    --color-text: #424242;
    --color-text-light: #757575;

    /* Typography */
    --font-heading: 'Pridi', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.text-center {
    text-align: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.btn-text:hover {
    color: var(--color-primary);
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
}

.logo span {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 600;
    color: var(--color-dark);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    /* Ensure full viewport height */
    height: auto;
    background-color: var(--color-dark);
    /* Fallback/Base */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Hero Info Grid */
.hero-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    /* Increased spacing for buttons */
    text-align: left;
}

@media (min-width: 768px) {
    .hero-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect light */
    backdrop-filter: blur(5px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    min-width: 280px;
    max-width: 350px;
}

.hero-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 10px;
    color: var(--color-accent);
}

.hero-info-card ul li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.hero-info-card ul li:last-child {
    border-bottom: none;
}

.hero-info-card p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    max-width: 100%;
    margin-right: auto;
    opacity: 0.9;
}

.hero-location {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
    margin-top: -10px;
    /* Pull closer to title */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-phone-box {
    display: inline-block;
    background-color: rgba(211, 47, 47, 0.9);
    /* Primary color with slight transparency */
    color: var(--color-white);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--color-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-phone-box:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
}


.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Menu Section */
.menu-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--color-text-light);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

@media (max-width: 480px) {
    .menu-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
        flex: 1 0 auto;
        /* Allow growth but keep auto width base */
    }
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid var(--color-light);
    background: transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.menu-grid {
    display: none;
    grid-template-columns: 1fr;
    /* Default mobile 1 column */
    gap: var(--spacing-sm);
    /* Reduced gap */
    animation: fadeIn 0.5s ease;
}

.menu-grid.active {
    display: grid;
}

@media (min-width: 992px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on desktop */
        gap: var(--spacing-md);
    }
}

/* Info Section */
/* Info Section REMOVED */

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    height: 300px;
    background-color: #eee;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
}

/* Footer */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-links {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md);
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    .main-nav ul.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--color-primary);
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Menu Custom Styling */
.menu-item {
    background: var(--color-light);
    padding: var(--spacing-sm);
    /* Reduced padding from md to sm */
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    transform: translateY(-3px);
    /* Slightly less movement */
    box-shadow: var(--shadow-sm);
    /* Lighter shadow */
    background: var(--color-white);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}

.menu-item-header h4 {
    font-size: 1.2rem;
    color: var(--color-dark);
}

.menu-item-header .price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.menu-item-desc {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.menu-item-footer {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: right;
}

/* Allergen Modal */
.allergen-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.allergen-modal {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.allergen-modal h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-primary);
}

.allergen-list {
    list-style: none;
    padding: 0;
}

.allergen-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.allergen-list li:last-child {
    border-bottom: none;
}

.allergen-list strong {
    color: var(--color-primary);
    display: inline-block;
    width: 25px;
}

/* Pizza Menu Specific Styling (New) */
.pizza-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    color: var(--color-white);
    min-width: 30px;
    height: 30px;
    border-radius: 4px;
    /* Boxed look */
    margin-right: 15px;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0 5px;
}

.pizza-main-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.pizza-header .pizza-name {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-right: auto;
    /* Pushes price to the right */
}

.pizza-header .dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ddd;
    margin: 0 10px;
    position: relative;
    top: -5px;
    /* Adjust alignment with text baseline */
    display: none;
    /* User didn't explicitly ask for dots, but good to have option. Hiding for now to keep it clean as per "name ... price" usually implies dots but user said "name ... price" on one line, implied separation. Flex space-between handles it. */
}

/* Actually, let's make it space-between */
.pizza-main-row {
    justify-content: space-between;
}

.pizza-weight {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Adjust the header border for pizza items since we might want the line to be more integrated */
.menu-item-header.pizza-header {
    border-bottom: 2px solid var(--color-primary);
    /* The requested "line" */
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* Compact Updates - Overrides */
.pizza-number {
    min-width: 26px;
    height: 26px;
    margin-right: 10px;
    padding: 0 4px;
    font-size: 0.9rem;
}

.pizza-header .pizza-name {
    font-size: 1.1rem;
}

.pizza-header .dots {
    margin: 0 8px;
}

.pizza-weight {
    font-size: 0.85rem;
    margin-top: 2px;
    margin-bottom: 2px;
}

.menu-item-header.pizza-header {
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}