/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Casual Restaurant Palette */
    --primary-color: #e63946;
    --primary-dark: #d62828;
    --primary-light: #f1faee;
    --secondary-color: #457b9d;
    --accent-color: #f4a261;

    /* Neutrals */
    --text-dark: #1d3557;
    --text-medium: #495057;
    --text-light: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1d3557;
    --border-color: #dee2e6;

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

    /* Spacing */
    --container-width: 1140px;
    --section-padding: 5rem 0;
    --card-padding: 2rem;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

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

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

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

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

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

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

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

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

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

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

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

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

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

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

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

.nav__link {
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
}

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

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

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

.hero__badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

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

.about__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about__text p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.stat__label {
    font-size: 1rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--bg-light);
}

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

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

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

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

.feature-card__title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

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

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

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

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

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

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

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: 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-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background-color: 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: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ===== REVIEWS SECTION ===== */
.reviews {
    background-color: var(--bg-light);
}

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.reviews__score {
    text-align: center;
}

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

.reviews__stars {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0.5rem 0;
}

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

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.rating-bar__label {
    min-width: 40px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.rating-bar__fill {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.6s ease;
}

.rating-bar__count {
    min-width: 40px;
    text-align: right;
    color: var(--text-light);
}

.reviews__carousel {
    position: relative;
    overflow: hidden;
}

.reviews__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.review-card {
    min-width: 100%;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.review-card__stars {
    color: var(--accent-color);
    font-size: 1.25rem;
}

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

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

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

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

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

.rating-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

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

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

.reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    font-size: 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.reviews__nav:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.reviews__nav--prev {
    left: -20px;
}

.reviews__nav--next {
    right: -20px;
}

/* ===== POPULAR TIMES SECTION ===== */
.popular-times {
    background-color: var(--bg-white);
}

.popular-times__selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.day-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    color: var(--text-medium);
    font-weight: 600;
    transition: var(--transition);
}

.day-btn:hover,
.day-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.popular-times__chart {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 300px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-bar__fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
    position: relative;
}

.chart-bar__label {
    font-size: 0.75rem;
    color: var(--text-light);
}

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

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

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

.info-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
}

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

.info-card__content {
    flex: 1;
}

.info-card__title {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

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

.info-card__text a:hover {
    text-decoration: underline;
}

.info-card__link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

.info-card__link:hover {
    text-decoration: underline;
}

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

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

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

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

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

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

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

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer__text a {
    color: var(--accent-color);
}

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

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

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1023px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__container,
    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        transition: var(--transition);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding-top: 80px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

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

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

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

    .popular-times__chart {
        height: 250px;
    }

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

@media (max-width: 479px) {
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .chart-bar__label {
        font-size: 0.625rem;
    }
}