/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Casual takeout restaurant theme */
    --primary: #ff6b35;
    --primary-dark: #e85a28;
    --primary-light: #ff8559;
    --secondary: #004e89;
    --secondary-dark: #003d6b;
    --accent: #ffc43d;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #2c3e50;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --overlay: rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Georgia', serif;

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

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

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

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

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

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

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

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

/* ===================================
   UTILITIES
   =================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.section--dark {
    background-color: var(--bg-dark);
    color: var(--bg-light);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: inherit;
}

.section--dark .section-title {
    color: var(--bg-light);
}

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

.section--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background-color: var(--primary-light);
    color: var(--bg-light);
    border-radius: var(--radius-sm);
    margin: 0.25rem;
}

.badge--outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

/* Stars */
.stars {
    display: inline-flex;
    gap: 0.25rem;
}

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

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

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

.stars--large .star {
    font-size: 1.5rem;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 20px var(--shadow-hover);
}

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

.nav__logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

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

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

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

.nav__link--cta {
    background-color: var(--primary);
    color: var(--bg-light);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
}

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

.nav__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) 0%, var(--secondary) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(0, 78, 137, 0.8) 100%);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-light);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    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 1s ease 0.4s backwards;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.rating-count {
    color: rgba(255, 255, 255, 0.8);
}

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

/* ===================================
   ABOUT SECTION
   =================================== */
.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

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

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

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

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

/* ===================================
   SERVICES SECTION
   =================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.service-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.service-item__icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-item h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--accent);
}

.service-item p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
}

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

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

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

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

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

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

.lightbox.active {
    display: flex;
}

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

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--bg-light);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 1rem;
}

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

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--primary);
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg-light);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

/* ===================================
   REVIEWS SECTION
   =================================== */
.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reviews__rating {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reviews__rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
}

.reviews__count {
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
}

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

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

.rating-bar__label {
    min-width: 60px;
    font-size: 0.875rem;
}

.rating-bar__track {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.rating-bar__count {
    min-width: 30px;
    text-align: right;
    font-size: 0.875rem;
}

.reviews__slider {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.reviews__slider::-webkit-scrollbar {
    height: 8px;
}

.reviews__slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.reviews__slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.review-card {
    min-width: 350px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.review-card__date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.review-card__text {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.review-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

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

.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.reviews__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--bg-light);
    background-color: transparent;
    color: var(--bg-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.reviews__btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.reviews__tags {
    text-align: center;
}

.reviews__tags h3 {
    margin-bottom: var(--spacing-sm);
}

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

.tag {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

/* ===================================
   HOURS SECTION
   =================================== */
.hours__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.hours__table {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

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

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

.hours__row:nth-child(even) {
    background-color: var(--bg-gray);
}

.hours__row--closed {
    opacity: 0.6;
}

.hours__day {
    font-weight: 600;
}

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

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

.info-card {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px var(--shadow);
}

.info-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.info-card__highlight {
    color: var(--primary);
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

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

.contact__item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.contact__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact__item h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--accent);
}

.contact__item p {
    color: rgba(255, 255, 255, 0.8);
}

.contact__item a {
    color: var(--bg-light);
    text-decoration: underline;
}

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

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    box-shadow: 0 4px 20px var(--shadow);
}

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

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

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

.footer__subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--spacing-xs);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    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: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.scroll-top:hover {
    background-color: 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;
    }
}

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

    .hero__title {
        font-size: 2.5rem;
    }

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

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

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

@media (max-width: 767px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 10px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        margin-top: 70px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

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

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

    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

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

    .lightbox__close,
    .lightbox__prev,
    .lightbox__next {
        font-size: 2rem;
        padding: 0.5rem;
    }

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