/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Thai Restaurant Theme */
    --primary-color: #d4145a;
    --primary-dark: #a00f45;
    --secondary-color: #ff6b35;
    --accent-color: #ffd700;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #757575;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(26, 26, 26, 0.7);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1140px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

ul {
    list-style: none;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

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

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

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

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

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

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

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

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

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

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    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__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.hero__title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

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

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

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}

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

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

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

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

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

.about__content {
    max-width: 900px;
    margin: 0 auto;
}

.about__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

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

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

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

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

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

.offerings__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.offering-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.offering-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.offering-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offering-card__list li {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.gallery__categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery__category {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.gallery__category.active,
.gallery__category:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    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.hidden {
    display: none;
}

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

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reviews__score {
    text-align: center;
}

.reviews__score-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.reviews__score .stars {
    justify-content: center;
    margin: 0.5rem 0;
}

.reviews__score-text {
    color: var(--text-light);
    margin-top: 0.5rem;
}

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

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

.rating-bar__label {
    min-width: 40px;
    font-weight: 500;
}

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

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

.rating-bar__count {
    min-width: 30px;
    text-align: right;
    color: var(--text-light);
}

.reviews__carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.reviews__slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: none;
}

.reviews__slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 100%;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

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

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

.review-card__text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.review-card__context {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-card__response {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.review-card__response strong {
    color: var(--primary-color);
}

.review-card__response p {
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.review-card__ratings {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail-rating {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.carousel__btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.carousel__btn--prev {
    left: -25px;
}

.carousel__btn--next {
    right: -25px;
}

/* ===================================
   POPULAR DISHES SECTION
   =================================== */
.popular {
    background: var(--bg-white);
}

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

.dish-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.dish-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dish-card__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.dish-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.hours__update {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hours__grid {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

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

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

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

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

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

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

.contact__item {
    display: flex;
    gap: 1.5rem;
}

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

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

.contact__details p,
.contact__details a {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

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

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-primary);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

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

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer__tagline {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer__address {
    opacity: 0.7;
}

.footer__quick-links h4,
.footer__contact h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.footer__quick-links a {
    opacity: 0.8;
    transition: var(--transition);
}

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

.footer__contact p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

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

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

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--bg-white);
    z-index: 2001;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--bg-white);
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.lightbox__prev {
    left: 2rem;
}

.lightbox__next {
    right: 2rem;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in {
    animation: fadeInUp 0.6s ease;
}

/* ===================================
   MEDIA QUERIES
   =================================== */
@media (max-width: 1023px) {
    .reviews__summary {
        grid-template-columns: 1fr;
    }

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

    .carousel__btn--prev {
        left: 10px;
    }

    .carousel__btn--next {
        right: 10px;
    }
}

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

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        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: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

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

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .lightbox__prev,
    .lightbox__next {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox__prev {
        left: 0.5rem;
    }

    .lightbox__next {
        right: 0.5rem;
    }

    .lightbox__close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}

@media (max-width: 479px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        height: 80vh;
    }

    .hero__title {
        font-size: 2rem;
    }

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

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

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

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

    .hours__day {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}