/* ==========================================
   CSS Variables
   ========================================== */
:root {
    /* Colors - Warm Italian Pizza Theme */
    --primary-color: #d4534f;
    --primary-dark: #b33d3a;
    --primary-light: #e87a76;
    --secondary-color: #f8b500;
    --secondary-dark: #d99f00;

    --bg-primary: #ffffff;
    --bg-secondary: #f9f7f4;
    --bg-dark: #2a2a2a;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #ffffff;

    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;

    /* Spacing */
    --container-width: 1140px;
    --section-padding: 80px;
    --section-padding-mobile: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --radius-xlarge: 20px;
}

/* ==========================================
   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-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ==========================================
   Layout Components
   ========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav.scrolled {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav__brand {
    flex: 1;
}

.nav__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
    z-index: 1001;
}

.nav__toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav__menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link:hover::after {
    width: 100%;
}

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

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.7), rgba(212, 83, 79, 0.4));
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px var(--shadow-heavy);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 10px var(--shadow-heavy);
}

.hero__rating {
    margin-bottom: 40px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--radius-large);
}

.rating__stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.rating__half {
    opacity: 0.5;
}

.rating__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.rating__count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--radius-medium);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(212, 83, 79, 0.3);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 83, 79, 0.4);
}

.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-color);
}

/* ==========================================
   About Section
   ========================================== */
.about {
    background-color: var(--bg-secondary);
}

.about__text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-large);
    transition: all var(--transition-normal);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

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

.feature__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   Specialties Section
   ========================================== */
.specialties__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.specialty-card {
    background-color: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: var(--radius-large);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.specialty-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.specialty-card__icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.specialty-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.specialty-card__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.specialties__info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border-radius: var(--radius-large);
    box-shadow: 0 5px 20px rgba(212, 83, 79, 0.3);
}

.info-badge__label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-badge__value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery {
    background-color: var(--bg-secondary);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--text-white);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery__item:hover::after {
    opacity: 1;
}

/* ==========================================
   Reviews Section
   ========================================== */
.reviews__stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    margin-bottom: 50px;
    padding: 40px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-large);
    align-items: center;
}

.reviews__score {
    text-align: center;
    padding: 20px 40px;
}

.reviews__number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.reviews__stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 10px 0;
}

.reviews__total {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distribution-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.distribution-bar__label {
    width: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.distribution-bar__bg {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.distribution-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.distribution-bar__count {
    width: 40px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.review-card {
    background-color: var(--bg-primary);
    padding: 25px;
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: all var(--transition-normal);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-medium);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-card__stars {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

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

.review-card__text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-card__info {
    margin-bottom: 10px;
}

.review-card__info-item {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-card__ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.review-card__rating-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background-color: var(--bg-secondary);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-medium);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-item__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item__content {
    flex: 1;
}

.contact-item__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-item__text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item__link {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-item__link:hover {
    text-decoration: underline;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.hours-item__day {
    font-weight: 500;
    color: var(--text-primary);
}

.hours-item__time {
    color: var(--text-secondary);
}

.hours-item--closed .hours-item__time {
    color: var(--primary-color);
    font-weight: 500;
}

.contact__map {
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 5px 25px var(--shadow-medium);
    height: 100%;
    min-height: 400px;
}

.contact__map iframe {
    height: 100%;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer__heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__list li {
    color: rgba(255, 255, 255, 0.7);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-light);
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.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;
    cursor: pointer;
    font-size: 2rem;
    padding: 15px 20px;
    border-radius: var(--radius-medium);
    transition: all var(--transition-fast);
}

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

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .reviews__stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 20px var(--shadow-light);
        transition: right var(--transition-normal);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    /* Sections */
    .section {
        padding: var(--section-padding-mobile) 0;
    }

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

    /* Gallery */
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    /* Reviews */
    .reviews__list {
        grid-template-columns: 1fr;
    }

    /* Lightbox */
    .lightbox__prev,
    .lightbox__next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

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

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

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