/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Warm Italian restaurant theme */
    --primary-color: #d32f2f;
    --primary-dark: #9a0007;
    --primary-light: #ff6659;
    --secondary-color: #ffa726;
    --secondary-dark: #c77800;
    --secondary-light: #ffd95b;

    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #ffffff;

    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #212121;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    --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-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;

    /* Spacing */
    --container-width: 1140px;
    --section-padding: 5rem 1rem;

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

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

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

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

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

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

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

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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav__logo {
    font-size: 1.5rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
}

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

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

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

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

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

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

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-overlay) 0%, rgba(211, 47, 47, 0.7) 100%);
}

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

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

.hero__title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero__rating {
    margin-bottom: 1rem;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

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

.rating__score {
    font-weight: 700;
    font-size: 1.25rem;
}

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

.hero__price {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
}

.about__content {
    display: grid;
    gap: 3rem;
}

.about__text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card__text {
    color: var(--text-secondary);
}

/* ===== AMENITIES SECTION ===== */
.amenities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.amenity-item:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.amenity-item__icon {
    font-size: 2rem;
}

.amenity-item__text {
    font-weight: 500;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: var(--bg-secondary);
}

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

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

.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: 3rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

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

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-light);
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox__close:hover {
    transform: scale(1.2);
    color: var(--primary-light);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--text-light);
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox__nav:hover {
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
    left: 2rem;
}

.lightbox__nav--next {
    right: 2rem;
}

.lightbox__content {
    max-width: 90%;
    max-height: 90%;
}

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

/* ===== REVIEWS SECTION ===== */
.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.reviews__rating {
    text-align: center;
}

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

.reviews__stars {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

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

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.rating-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transition: width var(--transition-slow);
}

.rating-bar__count {
    width: 30px;
    text-align: right;
    font-weight: 600;
}

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

.review-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

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

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

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

.review-card__text {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.review-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.review-card__badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-secondary);
}

.review-card__badge--local {
    background: var(--primary-light);
    color: var(--text-light);
}

.review-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-card__source {
    font-weight: 600;
}

.review-card__images {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.review-card__images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.review-card__images img:hover {
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-secondary);
}

.contact__content {
    display: grid;
    gap: 3rem;
}

.contact__info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-card__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-card__content {
    flex: 1;
}

.info-card__title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-card__text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-card__text a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-card__text a:hover {
    text-decoration: underline;
}

.info-card__link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all var(--transition-fast);
}

.info-card__link:hover {
    transform: translateX(5px);
}

.hours-list {
    display: grid;
    gap: 0.5rem;
}

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

.hours-item__day {
    font-weight: 600;
}

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

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

.contact__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact__map iframe {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 1rem 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__logo {
    font-size: 2rem;
}

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

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer__contact p,
.footer__hours p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: left var(--transition-normal);
        gap: 1rem;
    }

    .nav__menu.active {
        left: 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

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

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

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

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

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

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

    .lightbox__nav {
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    .lightbox__nav--prev {
        left: 1rem;
    }

    .lightbox__nav--next {
        right: 1rem;
    }

    .lightbox__close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
