/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Casual Restaurant Theme */
    --primary-color: #ff6b35;
    --primary-dark: #e85a29;
    --secondary-color: #f7931e;
    --accent-color: #ffd23f;

    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;

    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #2c3e50;

    --border-color: #e1e8ed;
    --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 24px rgba(0, 0, 0, 0.2);

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

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

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

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

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

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

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

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

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

.section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto var(--spacing-sm);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

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

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

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

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

.nav__cta {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   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(44, 62, 80, 0.7), rgba(255, 107, 53, 0.4));
}

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

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

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

.rating__stars {
    display: flex;
    gap: 0.25rem;
}

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

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

.star.partial {
    position: relative;
    color: #ddd;
}

.star.partial::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: var(--accent-color);
}

.rating__text {
    font-size: 1.1rem;
}

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

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    cursor: pointer;
    animation: bounce 2s infinite;
}

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

.about__description {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-light);
}

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

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

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

.highlight svg {
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-color);
}

.highlight h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

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

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

.feature-card {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    color: var(--primary-color);
    margin: 0 auto var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

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

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

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

.menu__note p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.menu__popular {
    margin-top: var(--spacing-lg);
}

.menu__popular h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

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

.tag {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 500;
}

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

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

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

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

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.gallery__overlay svg {
    color: var(--text-white);
}

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

.reviews__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

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

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

.rating-count {
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

.rating-distribution {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
}

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

.rating-bar span:first-child {
    min-width: 30px;
    font-weight: 500;
}

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

.fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-slow);
}

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

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

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

.review-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

.review-stars {
    display: flex;
    gap: 0.25rem;
}

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

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

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

.review-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-gray);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 2;
}

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

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

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

/* ===================================
   POPULAR TIMES SECTION
   =================================== */
.chart-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.day-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.chart-container {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    min-height: 300px;
}

.chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: var(--spacing-sm);
}

.hour-label {
    min-width: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.bar-wrapper {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: flex-end;
}

.occupancy-bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    transition: height var(--transition-normal);
}

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

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

.info-card {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.info-card p,
.info-card a {
    color: var(--text-light);
    line-height: 1.8;
}

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

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

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

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

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    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(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

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

.footer__brand p {
    opacity: 0.8;
}

.footer__links h4,
.footer__hours h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

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

.footer__links a {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

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

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===================================
   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: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

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

.lightbox__close {
    top: 2rem;
    right: 2rem;
}

.lightbox__prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

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

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

.fade-in {
    animation: fadeInUp 0.8s ease;
}

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

/* Tablet */
@media (max-width: 1023px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-light);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-md);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__item {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }

    .reviews__slider {
        padding: 0;
    }

    .slider-btn {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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

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

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

    .map-container {
        height: 300px;
    }

    .lightbox__close,
    .lightbox__prev,
    .lightbox__next {
        width: 40px;
        height: 40px;
    }

    .lightbox__close {
        top: 1rem;
        right: 1rem;
    }

    .lightbox__prev {
        left: 1rem;
    }

    .lightbox__next {
        right: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

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

    .hero__title {
        font-size: 2rem;
    }

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