/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Warm Italian palette */
    --primary: #d4431f;
    --primary-dark: #b8371a;
    --primary-light: #e65a35;
    --secondary: #2c5f2d;
    --accent: #f4a261;

    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #f8f6f3;
    --bg-cream: #faf8f5;
    --border-color: #e0dbd4;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    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);
}

ul {
    list-style: none;
}

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

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

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

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.btn--primary {
    background: var(--primary);
    color: white;
    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-dark);
    border: 2px solid var(--primary);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

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

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
}

.nav__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    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;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(212, 67, 31, 0.3));
}

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

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero__rating {
    margin-bottom: 2rem;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.rating__stars {
    color: #ffc107;
    font-size: 1.25rem;
}

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

.rating__count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero__badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

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

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

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

.about__text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.about__features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

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

.feature__content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature__content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ============================================
   OFFERINGS SECTION
   ============================================ */
.offerings {
    background: white;
}

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

.offering-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

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

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

.offering-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

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

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

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 67, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-overlay span {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews {
    background: white;
}

.reviews__stats {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
}

.reviews__overall {
    text-align: center;
    padding: 2rem;
}

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

.reviews__stars {
    font-size: 2rem;
    color: #ffc107;
    margin: 1rem 0;
}

.reviews__total {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.distribution-bar {
    display: grid;
    grid-template-columns: 70px 1fr 50px;
    gap: 1rem;
    align-items: center;
}

.distribution-bar__label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.distribution-bar__fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s ease;
}

.distribution-bar__count {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reviews__tags {
    margin-bottom: 3rem;
}

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

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.reviews__list {
    display: grid;
    gap: 2rem;
}

.review-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

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

.review-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-card__stars {
    color: #ffc107;
    font-size: 1.125rem;
}

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

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

.review-card__details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

.review-card__detail strong {
    color: var(--text-dark);
}

.review-card__badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-badge {
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   HOURS SECTION
   ============================================ */
.hours {
    background: var(--bg-cream);
}

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

.hours__table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hours__row {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.hours__row--closed {
    background: var(--bg-light);
}

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

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

.hours__row--closed .hours__time {
    color: var(--primary);
    font-weight: 600;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.info-card ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card li {
    color: var(--text-light);
    padding-left: 0.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: white;
}

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

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

.contact__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

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

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

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

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

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

.contact__neighborhood {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    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: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer__quick-links h4,
.footer__contact h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer__quick-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__quick-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__quick-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer__contact p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

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

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .about__grid,
    .contact__grid,
    .hours__content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__cta,
    .contact__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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

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

    .hero__badges {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .reviews__score {
        font-size: 3.5rem;
    }

    .distribution-bar {
        grid-template-columns: 60px 1fr 40px;
        gap: 0.5rem;
    }
}