/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors - Warm Italian palette */
    --color-primary: #D94E1F;
    --color-primary-dark: #B33D15;
    --color-primary-light: #FF6B3D;
    --color-secondary: #2C3E50;
    --color-accent: #F39C12;
    --color-cream: #FDF8F3;
    --color-dark: #1A1A1A;
    --color-gray-900: #212121;
    --color-gray-800: #424242;
    --color-gray-600: #757575;
    --color-gray-400: #BDBDBD;
    --color-gray-200: #EEEEEE;
    --color-white: #FFFFFF;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-cream);
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    text-align: center;
    justify-content: center;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

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

.btn--secondary {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    backdrop-filter: blur(10px);
}

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

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

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(26, 26, 26, 0.9) 100%
    );
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    padding: var(--space-xl);
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

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

.hero__stars {
    display: flex;
    gap: 2px;
}

.hero__stars .star {
    width: 18px;
    height: 18px;
    fill: var(--color-accent);
}

.hero__stars .star--partial {
    fill: var(--color-gray-400);
}

.hero__reviews {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero__title span {
    color: var(--color-primary-light);
}

.hero__tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity var(--transition-normal);
    animation: bounce 2s infinite;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

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

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

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

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

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

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

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

/* ===== REVIEWS SECTION ===== */
.reviews {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, #FFF5ED 100%);
}

.reviews__grid {
    display: grid;
    gap: var(--space-lg);
}

.review-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.review-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.review-card__info {
    flex: 1;
    min-width: 150px;
}

.review-card__author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.review-card__stars {
    display: flex;
    gap: 2px;
}

.review-card__stars .star {
    width: 16px;
    height: 16px;
    fill: var(--color-accent);
}

.review-card__stars .star--empty {
    fill: var(--color-gray-400);
}

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

.review-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-gray-800);
    font-style: italic;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-2xl) 0;
    background: var(--color-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-md);
}

.feature__icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary-light);
}

.feature span {
    font-size: 0.875rem;
    font-weight: 500;
}

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

.contact__grid {
    display: grid;
    gap: var(--space-2xl);
}

.contact__hours h3,
.contact__info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--color-dark);
}

.hours-table__highlight td {
    color: var(--color-primary);
    font-weight: 600;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact__item svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact__item strong {
    display: block;
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.contact__item a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

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

.contact__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-cream);
    color: var(--color-gray-800);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__content {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.footer__brand p {
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    font-size: 0.95rem;
}

.footer__link:hover {
    opacity: 1;
}

.footer__link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary-light);
}

.footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--color-white);
    font-size: 2.5rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.lightbox__close:hover {
    opacity: 1;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    padding: var(--space-md);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    opacity: 1;
}

.lightbox__prev {
    left: var(--space-md);
}

.lightbox__next {
    right: var(--space-md);
}

.lightbox__prev svg,
.lightbox__next svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }

    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }

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

    .gallery__item--large {
        grid-column: span 2;
    }

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

    .reviews__grid .review-card:last-child {
        grid-column: span 2;
    }

    .features__grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }

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

    .footer__contact {
        flex-direction: row;
        justify-content: flex-end;
        gap: var(--space-xl);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item--large {
        grid-column: span 1;
        grid-row: span 2;
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__grid .review-card:last-child {
        grid-column: span 1;
    }

    .lightbox__prev {
        left: var(--space-xl);
    }

    .lightbox__next {
        right: var(--space-xl);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
