/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors - Warm Italian Restaurant Theme */
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ffcdd2;
    --secondary-color: #ffa726;
    --secondary-dark: #f57c00;

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

    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-dark: #1a1a1a;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);

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

    /* Spacing */
    --container-width: 1140px;
    --section-padding: 80px 0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

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

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

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

.navbar--scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.navbar__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.navbar__menu {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.navbar__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    center/cover no-repeat;
    opacity: 0.3;
    animation: parallax 20s ease-in-out infinite;
}

@keyframes parallax {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

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

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

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

.hero__rating {
    margin-bottom: 2rem;
}

.stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

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

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

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

.hero__rating-text {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

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

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

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
}

.badge__icon {
    width: 20px;
    height: 20px;
}

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

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

.about__image:hover img {
    transform: scale(1.05);
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

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

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

.feature-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== OFFERINGS SECTION ==================== */
.offerings {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.offerings__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.offering-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition);
}

.offering-item:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.offering-item__icon {
    font-size: 3rem;
}

.offering-item__text {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.reviews__stats {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reviews__overall {
    text-align: center;
}

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

.reviews__count {
    color: var(--text-secondary);
    margin-top: 1rem;
}

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

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

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

.rating-bar__progress {
    flex: 1;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

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

.rating-bar__count {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: right;
}

.reviews__carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.reviews__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: calc(33.333% - 1.33rem);
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

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

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

.review-card__image {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
}

.review-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__footer {
    margin-top: 1rem;
}

.review-card__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.reviews__nav:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.reviews__nav svg {
    width: 24px;
    height: 24px;
}

.reviews__nav--prev {
    left: 0;
}

.reviews__nav--next {
    right: 0;
}

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

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

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

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

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.gallery__icon {
    font-size: 3rem;
}

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

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__icon svg {
    width: 24px;
    height: 24px;
}

.contact__details h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact__details p,
.contact__details a {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

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

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

.map-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--border-color);
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(211, 47, 47, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition);
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay svg {
    width: 48px;
    height: 48px;
}

.map-overlay span {
    font-weight: 600;
    font-size: 1.2rem;
}

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

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer__brand p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer__address {
    font-size: 0.9rem;
}

.footer__links h4,
.footer__contact h4 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

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

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

.footer__contact p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer__rating {
    color: var(--secondary-color);
    font-weight: 600;
}

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

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.lightbox__close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

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

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

/* ==================== MEDIA QUERIES ==================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .reviews__stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .review-card {
        min-width: calc(50% - 1rem);
    }

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

/* Mobile (767px and below) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

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

    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .navbar__menu.active {
        left: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .navbar__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        height: 80vh;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about__badges {
        flex-direction: column;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }

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

    .offerings__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews__carousel {
        padding: 0 40px;
    }

    .review-card {
        min-width: 100%;
    }

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

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

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}