/* 1. CSS Variables */
:root {
    --color-primary: #d4a574;
    --color-primary-dark: #b8935f;
    --color-secondary: #2c3e50;
    --color-accent: #e74c3c;
    --color-success: #27ae60;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --radius: 8px;
    --radius-lg: 16px;
    --container-max: 1140px;
}

/* 2. Reset/Normalize */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

ul {
    list-style: none;
}

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

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn--order {
    background: var(--color-accent);
    color: white;
    width: 100%;
    text-align: center;
}

.btn--order:hover {
    background: #c0392b;
}

.btn--maps {
    background: var(--color-secondary);
    color: white;
    width: 100%;
    text-align: center;
}

.btn--footer {
    background: var(--color-primary);
    color: white;
    padding: 10px 20px;
}

/* 4. Layout Components */

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.navigation__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.navigation__toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navigation__toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-secondary);
    margin: 3px 0;
    transition: var(--transition);
}

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

.navigation__link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

.navigation__link:hover::after {
    width: 100%;
}

/* 5. Page Sections */

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero__slide--active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero__badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.badge {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-weight: 600;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* About */
.about {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.feature-card__title {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

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

/* Features */
.features {
    padding: 80px 0;
}

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

.service-card {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.service-card__title {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-card__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.service-card__list li:last-child {
    border-bottom: none;
}

/* Opening Hours */
.opening-hours {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.opening-hours__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hours-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.hours-card--today {
    background: var(--color-primary);
    color: white;
}

.hours-card__day {
    font-weight: 600;
}

/* Gallery */
.gallery {
    padding: 80px 0;
}

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

.gallery__item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    padding-top: 66.67%;
}

.gallery__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.lazy {
    background: var(--color-bg-alt);
}

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

.lightbox--active {
    display: flex;
}

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

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

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

.lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

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

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    transform: scale(1.2);
}

/* Reviews */
.reviews {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 800px;
    margin: 2rem auto;
}

.reviews__rating {
    text-align: center;
}

.reviews__score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.reviews__stars {
    margin: 0.5rem 0;
}

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

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

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

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

.rating-bar__track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

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

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

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

.review-card--positive {
    border-left: 4px solid var(--color-success);
}

.review-card--negative {
    border-left: 4px solid var(--color-accent);
}

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

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

.review-card__text {
    color: var(--color-text);
    line-height: 1.6;
}

.reviews__tags {
    margin-top: 3rem;
    text-align: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tag {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Contact */
.contact {
    padding: 80px 0;
}

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

.contact__item {
    margin-bottom: 2rem;
}

.contact__subtitle {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.contact__neighborhood {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.contact__map iframe {
    border-radius: var(--radius-lg);
}

/* Popular Times */
.popular-times {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.popular-times__live {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.day-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.day-selector__btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.day-selector__btn--active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    padding: 20px 0;
    border-left: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.chart__bar {
    flex: 1;
    background: var(--color-primary);
    margin: 0 2px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.chart__bar:hover {
    background: var(--color-primary-dark);
}

.chart__bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Similar */
.similar {
    padding: 80px 0;
}

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

.similar-card {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.similar-card__name {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

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

/* Footer */
.footer {
    background: var(--color-secondary);
    color: white;
    padding: 60px 0 20px;
}

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

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

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

.footer__copyright {
    opacity: 0.8;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    z-index: 1000;
    transition: var(--transition);
}

.scroll-top--visible {
    display: block;
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

/* 6. UI Components - Defined above */

/* 7. Utilities */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

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

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

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

/* 9. Media Queries */

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

    .hero__subtitle {
        font-size: 1.25rem;
    }

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

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

/* Mobile */
@media (max-width: 767px) {
    .navigation__toggle {
        display: flex;
    }

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

    .navigation__menu--active {
        left: 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__badges {
        flex-wrap: wrap;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

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

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

    .opening-hours__grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .day-selector {
        flex-wrap: wrap;
    }
}