/* ===========================
   CSS VARIABLES & RESET
   =========================== */

:root {
    /* Colors - Italian Restaurant Theme */
    --primary-color: #c8102e;
    --primary-dark: #9a0d23;
    --primary-light: #e84855;
    --secondary-color: #009246;
    --accent-gold: #d4a574;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

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

    /* Breakpoints */
    --mobile-max: 767px;
    --tablet-max: 1023px;
    --desktop-max: 1439px;
}

* {
    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: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===========================
   UTILITY CLASSES
   =========================== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color), var(--primary-color));
    margin: var(--spacing-sm) auto 0;
}

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

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.navbar__brand {
    flex: 1;
}

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

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

.navbar__link {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar__link:hover::after {
    width: 80%;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
}

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

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    center/cover no-repeat;
    animation: parallax 30s ease infinite;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.85) 0%, rgba(44, 62, 80, 0.8) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-md);
    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;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

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

.rating-stars {
    display: flex;
    gap: 2px;
}

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

.star.filled {
    color: #ffd700;
}

.star.partial {
    position: relative;
    color: #ddd;
}

.star.partial::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ffd700;
    width: 50%;
    overflow: hidden;
}

.rating-text {
    font-size: 1rem;
}

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

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

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.6);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 4px;
    height: 10px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

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

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

.feature-card__description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===========================
   OFFERINGS SECTION
   =========================== */

.offerings {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

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

.offering-item {
    text-align: center;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.offering-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.offering-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.offering-item p {
    color: var(--text-gray);
}

/* ===========================
   GALLERY SECTION
   =========================== */

.gallery {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.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.5s ease;
}

.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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.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__image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
}

/* ===========================
   REVIEWS SECTION
   =========================== */

.reviews {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
}

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

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

.score-stars {
    margin: var(--spacing-sm) 0;
}

.score-count {
    color: var(--text-gray);
}

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

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

.distribution-label {
    width: 40px;
    font-weight: 500;
}

.distribution-progress {
    flex: 1;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transition: width 1s ease;
}

.distribution-count {
    width: 50px;
    text-align: right;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Reviews Carousel */
.reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    margin-bottom: var(--spacing-lg);
}

.reviews-carousel__track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    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 {
    display: flex;
    gap: 2px;
}

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

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

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

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.rating-badge__label {
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-dark);
}

.carousel-btn--prev {
    left: 10px;
}

.carousel-btn--next {
    right: 10px;
}

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

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

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

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

/* ===========================
   HOURS SECTION
   =========================== */

.hours {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.hours__table {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.hours__row:last-child {
    border-bottom: none;
}

.hours__row--busy {
    background: rgba(200, 16, 46, 0.05);
}

.hours__day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours__time {
    color: var(--secondary-color);
    font-weight: 500;
}

.hours__time--closed {
    color: var(--text-gray);
}

.busy-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: var(--spacing-xs);
}

.hours__note {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(0, 146, 70, 0.1));
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

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

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: var(--shadow-sm);
}

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

.contact-item__content h3 {
    font-family: var(--font-heading);
    margin-bottom: 4px;
    color: var(--primary-color);
}

.contact-item__content p,
.contact-item__content a {
    color: var(--text-dark);
    line-height: 1.6;
}

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

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.map-overlay span {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    font-weight: 600;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer__section h3,
.footer__section h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-light);
}

.footer__section p,
.footer__section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

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

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

/* ===========================
   ANIMATIONS
   =========================== */

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

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

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

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

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

@media (max-width: 1023px) {
    :root {
        font-size: 15px;
    }

    .hero__title {
        font-size: 3rem;
    }

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

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

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

    .reviews-carousel {
        padding: 0 50px;
    }
}

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

    .navbar__container {
        padding: var(--spacing-sm);
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

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

    .navbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

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

    .btn {
        width: 100%;
    }

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

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

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

    .reviews-carousel {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }

    .lightbox__close,
    .lightbox__prev,
    .lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

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