/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Energetic Fast Food Theme */
    --primary-color: #ff3b30;
    --primary-dark: #d32f2f;
    --primary-light: #ff6b6b;
    --secondary-color: #ffcc00;
    --secondary-dark: #f5b800;

    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    --border-color: #e0e0e0;
    --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);

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

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

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

    /* Container */
    --container-max: 1140px;
    --container-padding: 20px;
}

/* ===================================
   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-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

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

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

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

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

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

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

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

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

.navbar__cta {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.navbar__cta:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.navbar__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

/* ===================================
   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__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
    padding: var(--spacing-md);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1.2s ease 0.4s backwards;
}

.stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

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

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    background: var(--bg-light);
    padding: var(--spacing-lg) 0;
    margin-top: -2rem;
    position: relative;
}

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

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

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

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

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

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

/* ===================================
   ABOUT SECTION
   =================================== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about__description {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat__label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

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

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

/* ===================================
   MENU SECTION
   =================================== */
.menu {
    background: var(--bg-white);
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.menu-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-item__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.menu-item:hover .menu-item__image img {
    transform: scale(1.1);
}

.menu-item__content {
    padding: var(--spacing-md);
}

.menu-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.menu-item__description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.menu-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-item__badge {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.menu__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
}

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

.info-card__text {
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

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

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

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

.gallery__item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: var(--text-white);
    transition: transform var(--transition-normal);
    pointer-events: none;
}

.gallery__item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

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

.reviews__stats {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 16px;
}

.reviews__summary {
    text-align: center;
    padding: var(--spacing-md);
}

.reviews__score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.reviews__stars {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.reviews__count {
    color: var(--text-secondary);
}

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: center;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: var(--spacing-sm);
    align-items: center;
}

.rating-bar__label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.rating-bar__track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.reviews__slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.review-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.review-card__stars {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

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

.review-card__text {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 1.0625rem;
}

.review-card__meta {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
}

.review-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge--food {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge--service {
    background: #e3f2fd;
    color: #1565c0;
}

.badge--atmosphere {
    background: #fff3e0;
    color: #e65100;
}

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

.reviews__controls {
    display: none;
}

/* ===================================
   OPENING HOURS SECTION
   =================================== */
.hours {
    background: var(--bg-light);
}

.hours__table {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hours__row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.hours__row:last-child {
    border-bottom: none;
}

.hours__row--highlight {
    background: #fff8e1;
}

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

.hours__time {
    color: var(--text-secondary);
}

.hours__note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact__item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
}

.contact__icon {
    font-size: 2rem;
}

.contact__text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.contact__text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact__text a {
    color: var(--primary-color);
    font-weight: 500;
}

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

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

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.footer__tagline {
    color: #ccc;
    margin-bottom: var(--spacing-sm);
}

.footer__rating {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    color: #ccc;
    font-size: 0.9375rem;
}

.footer__rating span:first-child {
    color: var(--secondary-color);
}

.footer__links h4,
.footer__contact h4,
.footer__hours h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__links a {
    color: #ccc;
}

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

.footer__contact p,
.footer__hours p {
    color: #ccc;
    line-height: 1.8;
}

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

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

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9375rem;
}

.footer__credit {
    margin-top: var(--spacing-xs);
}

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

.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.2);
    color: var(--text-white);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background var(--transition-normal);
    border-radius: 8px;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

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

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

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top.active {
    display: flex;
}

.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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   MEDIA QUERIES
   =================================== */

/* Tablet and below */
@media (max-width: 1023px) {
    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .about__image {
        order: -1;
    }

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

/* Mobile */
@media (max-width: 767px) {
    /* Navigation */
    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-md);
    }

    .navbar__menu.active {
        left: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .navbar__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

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

    /* About */
    .about__stats {
        grid-template-columns: 1fr;
    }

    .about__image img {
        height: 300px;
    }

    /* Menu */
    .menu__grid {
        grid-template-columns: 1fr;
    }

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

    .gallery__item {
        height: 250px;
    }

    /* Reviews */
    .reviews__slider {
        grid-template-columns: 1fr;
    }

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

    /* Lightbox */
    .lightbox__prev,
    .lightbox__next {
        padding: 0.75rem;
        font-size: 1.5rem;
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
        padding: 0.75rem;
    }

    /* Scroll to top */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small mobile */
@media (max-width: 374px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}