/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --secondary-color: #ffa000;
    --secondary-dark: #c67100;
    --secondary-light: #ffd149;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --border-color: #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 ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

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

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

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar__brand h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

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

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

.navbar__menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

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

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

.navbar__link--cta {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 25px;
}

.navbar__link--cta::after {
    display: none;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-white);
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
}

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

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

.star {
    font-size: 24px;
    color: #ffd700;
}

.rating-text {
    font-size: 18px;
}

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

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

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

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

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

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

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-white);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--text-white);
    border-bottom: 2px solid var(--text-white);
    transform: rotate(45deg);
    margin: 10px auto;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

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

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

.about__description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    text-align: center;
}

.feature__icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: var(--text-light);
}

.about__highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-white);
    padding: 15px;
    border-radius: 8px;
}

.highlight__icon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

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

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

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

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

.menu-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.menu-item__image {
    height: 200px;
    overflow: hidden;
}

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

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

.menu-item__content {
    padding: 20px;
}

.menu-item__content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.menu-item__content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.menu-item__tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--primary-light);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag--spicy {
    background-color: #ff5722;
}

.tag--vegan {
    background-color: #4caf50;
}

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

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

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

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

.gallery__item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0;
    transition: var(--transition);
}

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

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

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

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews__stats {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

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

.rating-overview__score {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-overview__stars {
    margin-bottom: 10px;
}

.rating-overview__count {
    color: var(--text-light);
    font-size: 16px;
}

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

.distribution-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.distribution-bar span:first-child {
    width: 30px;
    font-weight: 600;
}

.distribution-bar span:last-child {
    width: 50px;
    text-align: right;
    color: var(--text-light);
}

.bar {
    flex: 1;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.reviews__carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: thin;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
}

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

.review-card__rating {
    display: flex;
    gap: 5px;
}

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

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

.review-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-badge {
    background-color: var(--bg-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.review-card__ratings {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.order__platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.platform-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.platform-card__icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.platform-card p {
    color: var(--text-light);
}

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

.service-option {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.service-option__icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-option h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-option p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   HOURS SECTION
   ======================================== */
.hours__schedule {
    max-width: 600px;
    margin: 0 auto 40px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.hours__day {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.hours__day--extended {
    background-color: var(--bg-white);
    padding: 15px 20px;
    margin: 0 -10px;
    border-radius: 8px;
}

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

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

.hours__popular {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--secondary-light);
    border-radius: 12px;
}

.hours__popular h3 {
    margin-bottom: 10px;
}

.hours__popular p {
    color: var(--text-dark);
}

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

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

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__item {
    display: flex;
    gap: 20px;
}

.contact__icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.contact__item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

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

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

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

.footer__main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer__brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer__links h4,
.footer__contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__payment {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 48px;
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

#lightboxImage {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

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

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .navbar__menu {
        gap: 20px;
    }

    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
    }

    .about__features {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .navbar__menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

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

    .section-title {
        font-size: 32px;
    }

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

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

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

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

    .review-card {
        flex: 0 0 100%;
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__payment {
        flex-direction: column;
        gap: 10px;
    }
}

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

    section {
        padding: 60px 0;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

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

    .lightbox__prev,
    .lightbox__next {
        font-size: 32px;
        padding: 10px;
    }
}
