/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Casual pizzeria palette */
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --secondary: #ffa000;
    --secondary-dark: #f57c00;
    --secondary-light: #ffc107;

    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;

    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --bg-dark: #212121;

    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);

    /* Typography */
    --font-heading: 'Georgia', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Container */
    --container-mobile: 100%;
    --container-tablet: 720px;
    --container-desktop: 960px;
    --container-wide: 1140px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   LAYOUT COMPONENTS
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section--gray {
    background-color: var(--bg-gray);
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.section--dark .section-title {
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-sm);
}

.navbar__brand h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar__menu {
    display: flex;
    gap: var(--spacing-md);
}

.navbar__menu a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar__menu a:hover {
    background-color: var(--primary-light);
    color: var(--text-white);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.9) 0%, rgba(183, 28, 28, 0.8) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero__badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    animation: slideDown 1s ease;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero__stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
    animation: fadeInUp 1s ease 0.8s both;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.btn--primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn--secondary:hover {
    background-color: var(--text-white);
    color: var(--primary);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about__content {
    max-width: 1000px;
    margin: 0 auto;
}

.about__text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.about__text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.feature-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    font-size: 0.938rem;
    color: var(--text-light);
}

.highlight-quote {
    background-color: var(--primary-light);
    color: var(--text-white);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    margin: var(--spacing-md) 0;
    font-style: italic;
    font-size: 1.125rem;
}

.highlight-quote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-style: normal;
    font-weight: 600;
    opacity: 0.9;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.service-features {
    margin-top: var(--spacing-sm);
}

.service-features li {
    padding: 0.25rem 0;
    color: var(--text-light);
}

/* ===================================
   MENU SECTION
   =================================== */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.menu-category {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-category:hover,
.menu-category.active {
    background-color: var(--primary);
    color: var(--text-white);
}

.menu-items {
    display: grid;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.menu-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.menu-item__header h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.5rem;
}

.menu-item__tag {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
}

.menu-item__tag.popular {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.menu-item__tag.special {
    background-color: var(--primary);
    color: var(--text-white);
}

.menu-item__tag:not(.popular):not(.special) {
    background-color: var(--bg-gray);
    color: var(--text-light);
}

.menu-item__description {
    color: var(--text-light);
    line-height: 1.8;
}

.menu-item__note {
    margin-top: var(--spacing-xs);
    font-style: italic;
    color: var(--primary);
    font-size: 0.938rem;
}

.menu-special-info {
    max-width: 700px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.menu-special-info h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.allergen-info {
    margin-top: var(--spacing-sm);
}

.allergen-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.938rem;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--spacing-sm);
    color: var(--text-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    transform: translateY(0);
}

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   REVIEWS SECTION
   =================================== */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: var(--spacing-md) auto;
    align-items: center;
}

.reviews-rating {
    text-align: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.rating-stars {
    font-size: 1.5rem;
    margin: var(--spacing-xs) 0;
}

.reviews-distribution {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.rating-bar span:first-child {
    min-width: 50px;
}

.rating-bar span:last-child {
    min-width: 40px;
    text-align: right;
    color: var(--text-light);
}

.bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--secondary);
    border-radius: 4px;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.review-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.review-card__stars {
    color: var(--secondary);
}

.review-card__date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-card__text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.review-card__ratings {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.rating-item {
    font-size: 0.875rem;
    color: var(--text-light);
}

.rating-item strong {
    color: var(--text-dark);
}

.reviews-highlights {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.reviews-highlights h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.review-tags {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 50px;
    font-size: 0.938rem;
}

/* ===================================
   POPULAR TIMES
   =================================== */
.popular-times-days {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.day-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.day-btn:hover,
.day-btn.active {
    background-color: var(--primary);
    color: var(--text-white);
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.chart-hours {
    display: flex;
    gap: 4px;
    height: 200px;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    background-color: var(--primary-light);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar:hover {
    background-color: var(--primary);
}

.chart-bar__label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-light);
}

.chart-note {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-light);
    font-style: italic;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: grid;
    gap: var(--spacing-md);
}

.contact-card {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.contact-card a {
    color: var(--primary);
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    font-style: italic;
    margin-top: var(--spacing-xs);
}

.opening-hours {
    margin-top: var(--spacing-sm);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-row.closed {
    color: var(--text-light);
}

.parking-options,
.accessibility-list,
.payment-methods {
    margin-top: var(--spacing-sm);
}

.parking-options li,
.accessibility-list li,
.payment-methods li {
    padding: 0.25rem 0;
    color: var(--text-light);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-actions {
    margin-top: var(--spacing-sm);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

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

.footer-rating {
    margin-top: var(--spacing-sm);
}

.footer-rating .stars {
    color: var(--secondary);
    margin-right: var(--spacing-xs);
}

.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.footer-categories span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    opacity: 0.7;
}

.footer-note {
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1023px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .navbar__menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .navbar__menu.active {
        transform: translateY(0);
    }

    .navbar__toggle {
        display: flex;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero__buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .reviews-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .lightbox__prev,
    .lightbox__next {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}