/* ===== CSS Variables ===== */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #ffffff;
    --bg-dark: #34495e;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    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 {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Layout Components ===== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.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-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    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%;
}

.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(231, 76, 60, 0.7), rgba(192, 57, 43, 0.8));
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

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

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

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

.star.filled {
    color: #f1c40f;
}

.star.semi {
    background: linear-gradient(90deg, #f1c40f 50%, #bdc3c7 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 1.1rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn--primary:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn--secondary:hover {
    background: var(--bg-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Features Section ===== */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

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

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

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

.feature-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card__text {
    color: #7f8c8d;
}

/* ===== About Section ===== */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.about__text {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.about__description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

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

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

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

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.about__image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

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

/* ===== Popular Times Section ===== */
.popular-times {
    padding: 5rem 0;
    background: white;
}

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

.day-chart {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.day-chart h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.peak-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.chart-bars {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    height: 120px;
}

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

.bar {
    width: 100%;
    background: var(--secondary-color);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.bar--peak {
    background: var(--primary-color);
}

.bar-group span {
    font-size: 0.8rem;
    color: #555;
}

.times-note {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 250px;
}

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

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

.gallery__more {
    display: block;
    margin: 0 auto;
}

/* ===== Reviews Section ===== */
.reviews {
    padding: 5rem 0;
    background: white;
}

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.summary__rating {
    text-align: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-count {
    color: #555;
    margin-top: 0.5rem;
}

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

.dist-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dist-row span:first-child {
    width: 30px;
    font-weight: 600;
}

.dist-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.5s ease;
}

.dist-row span:last-child {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #555;
}

.reviews__carousel {
    position: relative;
    padding: 0 3rem;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 350px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    flex-shrink: 0;
}

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

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.review-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.review-context {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.review-context span {
    background: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

.review-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.review-badge {
    margin-top: 0.5rem;
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10;
}

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

.carousel-btn--prev {
    left: 0;
}

.carousel-btn--next {
    right: 0;
}

/* ===== Contact Section ===== */
.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

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

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

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card p {
    line-height: 1.8;
}

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

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

.small-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

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

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

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

.open-now {
    margin-top: 1rem;
    font-weight: 600;
    color: #27ae60;
}

.contact__map {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

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

.footer__rating {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__links h4,
.footer__contact h4,
.footer__order h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

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

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

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

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

.footer__note {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 0.5rem;
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

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

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

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

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

/* ===== Media Queries ===== */

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

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

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

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

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

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

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

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

    .review-card {
        min-width: 280px;
    }

    .reviews__carousel {
        padding: 0 2.5rem;
    }

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

    .hero__buttons {
        flex-direction: column;
    }

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