/* ==========================================
   1. CSS VARIABLES
   ========================================== */
:root {
    /* Colors - Warm, casual pizzeria palette */
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary-color: #ffa726;
    --secondary-dark: #f57c00;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

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

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

    /* Layout */
    --container-max: 1140px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    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: var(--transition);
}

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

/* ==========================================
   3. UTILITIES
   ========================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}

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

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

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

.stars {
    display: inline-flex;
    gap: 0.25rem;
}

.star {
    color: #ddd;
    font-size: 1.25rem;
}

.star.filled {
    color: var(--secondary-color);
}

.star.half {
    background: linear-gradient(90deg, var(--secondary-color) 50%, #ddd 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stars--large .star {
    font-size: 2rem;
}

/* ==========================================
   4. HEADER
   ========================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header__brand {
    flex: 1;
}

.header__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

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

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

.nav__link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.header__menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ==========================================
   5. HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

.hero__image {
    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.7));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-white);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__description {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hero__rating-text {
    font-size: 1.125rem;
}

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

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero__arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.hero__arrow--prev {
    left: var(--spacing-md);
}

.hero__arrow--next {
    right: var(--spacing-md);
}

/* ==========================================
   6. ABOUT SECTION
   ========================================== */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

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

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

.feature {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

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

.feature__title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.feature__text {
    color: var(--text-light);
}

/* ==========================================
   7. HIGHLIGHTS SECTION
   ========================================== */
.highlights {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

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

.highlight-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.highlight-card__title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.highlight-card__text {
    color: var(--text-light);
}

/* ==========================================
   8. GALLERY SECTION
   ========================================== */
.gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-sm);
}

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

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

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

/* ==========================================
   9. REVIEWS SECTION
   ========================================== */
.reviews {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.reviews__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reviews__overall {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
}

.reviews__score {
    font-size: 4rem;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.reviews__count {
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.reviews__distribution {
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
}

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

.distribution-bar__label {
    width: 30px;
    font-weight: 600;
}

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

.distribution-bar__fill {
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 1s ease;
}

.distribution-bar__count {
    width: 30px;
    text-align: right;
    color: var(--text-light);
}

.reviews__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.reviews__slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

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

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

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

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

.review-card__ratings {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.rating-badge {
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.review-card__context {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.context-tag {
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-light);
    color: var(--text-white);
    border-radius: 4px;
    font-size: 0.75rem;
}

.review-card__owner-response {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    font-size: 0.875rem;
}

/* ==========================================
   10. CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.contact__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact__item {
    display: flex;
    gap: var(--spacing-sm);
}

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

.contact__details h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.contact__details p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact__details a {
    color: var(--primary-color);
}

.contact__details a:hover {
    text-decoration: underline;
}

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

.hours__day {
    font-weight: 500;
}

.contact__services h3 {
    margin-bottom: var(--spacing-sm);
}

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

.service-tag {
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.875rem;
}

.contact__map iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   11. LIGHTBOX
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 90%;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--text-white);
    z-index: 10000;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox__arrow--prev {
    left: 30px;
}

.lightbox__arrow--next {
    right: 30px;
}

/* ==========================================
   12. FOOTER
   ========================================== */
.footer {
    background-color: var(--text-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-md);
    margin-bottom: var(--spacing-md);
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

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

.footer__text a {
    color: var(--secondary-color);
}

.footer__text a:hover {
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   13. RESPONSIVE DESIGN
   ========================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

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

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        font-size: 1.25rem;
    }

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

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }

    .header__nav.active {
        display: flex;
    }

    .header__menu-toggle {
        display: flex;
    }

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

    .hero {
        min-height: 500px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .hero__arrow--prev {
        left: var(--spacing-sm);
    }

    .hero__arrow--next {
        right: var(--spacing-sm);
    }

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

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

    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

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

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

    .contact__map iframe {
        height: 300px;
    }

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

    .lightbox__arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .lightbox__arrow--prev {
        left: 10px;
    }

    .lightbox__arrow--next {
        right: 10px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
