/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors - Italian Deli Theme */
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --primary-light: #A0522D;
    --secondary-color: #DAA520;
    --secondary-dark: #B8860B;
    --accent-color: #228B22;

    /* Neutrals */
    --white: #FFFFFF;
    --light-bg: #F8F5F2;
    --light-gray: #E8E5E2;
    --medium-gray: #9E9E9E;
    --dark-gray: #424242;
    --black: #1A1A1A;

    /* Functional Colors */
    --success: #4CAF50;
    --warning: #FFC107;
    --error: #F44336;
    --star-color: #FFB400;

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

    /* Spacing */
    --container-max: 1140px;
    --section-padding: 80px 0;
    --card-padding: 30px;

    /* Shadows */
    --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);

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

    /* Z-index */
    --z-fixed: 100;
    --z-modal: 1000;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.nav.nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.nav__menu {
    display: flex;
    gap: 30px;
}

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

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

.nav__toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
}

.nav__burger,
.nav__burger::before,
.nav__burger::after {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav__burger::before,
.nav__burger::after {
    content: '';
}

.nav__burger {
    top: 50%;
    transform: translateY(-50%);
}

.nav__burger::before {
    top: -10px;
}

.nav__burger::after {
    top: 10px;
}

/* ==================== 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%;
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.6));
}

.hero__content {
    position: relative;
    text-align: center;
    color: var(--white);
    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-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

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

.star.half {
    background: linear-gradient(90deg, var(--star-color) 50%, rgba(255, 255, 255, 0.3) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__rating-text {
    font-size: 1.125rem;
    font-weight: 500;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn--primary {
    background: var(--secondary-color);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.btn--primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.6);
}

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

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

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

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

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

.about__description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.about__features {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    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: 2.5rem;
    margin-bottom: 15px;
}

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

.feature-card__description {
    color: var(--medium-gray);
    line-height: 1.6;
}

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

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

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

/* ==================== SPECIALTIES SECTION ==================== */
.specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.specialty-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.specialty-card__icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.specialty-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.specialty-card__description {
    color: var(--medium-gray);
    line-height: 1.6;
}

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

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

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

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

.gallery__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.3);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

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

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

.gallery__lightbox.active {
    display: flex;
}

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

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.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;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.125rem;
}

/* ==================== REVIEWS SECTION ==================== */
.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.rating-summary {
    text-align: center;
}

.rating-summary__score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.rating-summary__stars {
    margin-bottom: 15px;
}

.rating-summary__count {
    color: var(--medium-gray);
    font-size: 1rem;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    gap: 15px;
    align-items: center;
}

.rating-bar__label {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.rating-bar__track {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

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

.rating-bar__count {
    text-align: right;
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.reviews__tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.review-tag {
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.reviews__list {
    display: grid;
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

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

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

.review-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.badge-icon {
    color: var(--secondary-color);
}

.review-card__text {
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.review-card__owner-response {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.owner-response__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.owner-response__date {
    color: var(--medium-gray);
}

.owner-response__text {
    color: var(--dark-gray);
    line-height: 1.6;
}

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

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

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

.info-card__content {
    flex: 1;
}

.info-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-card__text {
    color: var(--dark-gray);
    margin-bottom: 5px;
}

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

.info-card__link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.hours-item:last-child {
    border-bottom: none;
}

.hours-item--closed {
    opacity: 0.6;
}

.hours-day {
    font-weight: 600;
    color: var(--dark-gray);
}

.hours-time {
    color: var(--medium-gray);
}

.hours-updated {
    margin-top: 15px;
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-style: italic;
}

.services-list,
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--dark-gray);
}

.services-list li {
    padding-left: 0;
}

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

.contact__map iframe {
    display: block;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer__brand {
    max-width: 400px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.footer__subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer__description {
    line-height: 1.6;
    opacity: 0.8;
}

.footer__heading {
    font-size: 1.125rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer__info p,
.footer__hours p {
    margin-bottom: 10px;
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer__copyright {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

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

    .about__image {
        height: 400px;
    }

    .reviews__summary {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        transition: left var(--transition-normal);
        gap: 20px;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: block;
    }

    .nav__toggle.active .nav__burger {
        background: transparent;
    }

    .nav__toggle.active .nav__burger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav__toggle.active .nav__burger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .rating-bar {
        grid-template-columns: 70px 1fr 30px;
        gap: 10px;
    }

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

    .lightbox__prev,
    .lightbox__next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero__scroll {
        display: none;
    }

    .feature-card,
    .specialty-card,
    .review-card,
    .info-card {
        padding: 20px;
    }
}
