:root {
    --angsana-primary: #00717F;
    --angsana-surface-white: #FFFFFF;
    --angsana-text-dark: #1A1A1A;
    --angsana-text-muted: #666666;
    --angsana-bg-light: #f8f9fa;
    --angsana-border: #eeeeee;
    --angsana-black: #2c3e50;
    --angsana-dark-green: #005A65;
    --angsana-burn-orange: #B55219;
}

@font-face {
    font-family: 'Monesta';
    src: url('../fonts/Monesta-Regular.75d62aad.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Monesta';
    src: url('../fonts/Monesta-Medium.f26430e1.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}


@font-face {
    font-family: 'Strawford';
    src: url('../fonts/Strawford-Regular.6642e4a1.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Strawford';
    src: url('../fonts/Strawford-Medium.684af88c.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Strawford', sans-serif;
    background-color: var(--angsana-bg-light);
    color: var(--angsana-text-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Landing Page Slideshow 100vh */
.landing-page {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    background: #000;
}

.slideshow-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.hero-content {
    text-align: center;
    color: var(--angsana-surface-white);
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

/* Rotating Keywords */
.hero-keywords {
    font-size: 0.9rem;
    color: var(--angsana-surface-white);
    opacity: 0.8;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.keyword-slider {
    display: inline-flex;
    flex-direction: column;
    height: 1.2rem;
    overflow: hidden;
    position: relative;
    text-align: left;
    color: var(--angsana-primary);
}

.keyword-track {
    display: flex;
    flex-direction: column;
    animation: slideKeywords 10s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.keyword-slide {
    height: 1.2rem;
    line-height: 1.2rem;
    font-weight: 400;
}

@keyframes slideKeywords {

    0%,
    15% {
        transform: translateY(0);
    }

    20%,
    35% {
        transform: translateY(-1.2rem);
    }

    40%,
    55% {
        transform: translateY(-2.4rem);
    }

    60%,
    75% {
        transform: translateY(-3.6rem);
    }

    80%,
    95% {
        transform: translateY(-4.8rem);
    }

    100% {
        transform: translateY(-6.0rem);
    }
}

/* Logo Carousel */
.logo-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollLogos 15s linear infinite;
}

.logo-item {
    width: 140px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
    /* Using margin instead of gap for perfect math loop */
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-10%);
    }

    /* Exactly 1/10th of the track */
}

/* Bottom Sheet CTA */
.cta-container {
    position: absolute;
    bottom: 90px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;

    font-size: 1.1rem;

    max-width: 300px;
    width: 100%;
}

.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--angsana-surface-white);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 1002;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.show {
    bottom: 0;
}

.sheet-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--angsana-border);
}

.sheet-header h3 {
    font-family: 'Monesta', serif;
    font-size: 1.3rem;
    color: var(--angsana-text-dark);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--angsana-text-muted);
    cursor: pointer;
}

.sheet-content {
    padding: 20px;
    overflow-y: auto;
}

.restaurant-list-modal {
    list-style: none;
}

.restaurant-list-modal li {
    margin-bottom: 12px;
}

.btn-restaurant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--angsana-surface-white);
    color: var(--angsana-text-dark);
    padding: 15px 20px;
    font-weight: 400;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-restaurant:hover {
    transform: translateY(-2px);

}

/* Restaurant Page */
.restaurant-page {
    padding-bottom: 70px;
    /* space for bottom bar */
}

.restaurant-header {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--angsana-surface-white);
    position: relative;
    z-index: 2;
}

.header-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.restaurant-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.header-overlay h2 {
    font-family: 'Monesta', serif;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.header-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.menu-container {
    padding: 15px;
}

/* Campaign Carousel */
.campaign-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    margin-bottom: 25px;
    scrollbar-width: none;
    /* Firefox */
    align-items: flex-start;
    /* Prevent boxes from stretching to match the tallest one */
}

.campaign-carousel::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* Promo Slider Outer Box */
.promo-section {
    padding: 20px 15px;
    background: var(--angsana-primary);
    background: linear-gradient(135deg, var(--angsana-primary) 0%, var(--angsana-dark-green) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    /* Kept hidden so the glowing orbs don't bleed out, we will put the timer inside padding */
    margin-bottom: 0;
    min-width: 100%;
    scroll-snap-align: start;
}

/* Elegant Background Shapes */
.promo-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);

    z-index: 0;
    pointer-events: none;
}

.promo-section::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);

    z-index: 0;
    pointer-events: none;
}

.promo-header {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-title-wrap {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.promo-title {
    font-family: 'Monesta', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: none;
}

.promo-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    line-height: 1.3;
}

.promo-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;

    font-size: 0.75rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;

    z-index: 10;
}

.promo-timer i {
    color: #ff9f43;
    /* Fire icon color */
}

.promo-title i {
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

.promo-slider {
    position: relative;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.promo-slider::-webkit-scrollbar {
    display: none;
}

.promo-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.promo-card {
    flex: 0 0 auto;
    width: 140px;
    background: white;

    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;

}

.promo-img {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f8f9fa;
}

.promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 400;
    border-bottom-right-radius: 8px;
}

.promo-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-info h4 {
    font-family: 'Strawford', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--angsana-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.promo-info .promo-pricing {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.promo-info .price {
    font-weight: 400;
    color: #e74c3c;
    font-size: 0.95rem;
}

/* Dynamic Layout Variations */

/* 1 Item: Full width horizontal card */
.promo-single {
    display: block;
    overflow: visible;
    padding-bottom: 0;
}

.promo-single .promo-card {
    width: 100%;
    flex-direction: row;
    height: auto;
    min-height: 100px;
    align-items: center;
    /* Vertically center the contents */
}

.promo-single .promo-img {
    width: 35%;
    height: 110px;
    /* Fixed height for image */
}

.promo-single .promo-info {
    width: 65%;
    justify-content: center;
    padding: 12px 15px;
}

.promo-single h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.promo-single .price {
    font-size: 1.1rem;
}

/* 2 Items: 50/50 Grid */
.promo-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
}

.promo-double .promo-card {
    width: 100%;
}

/* >3 Items: Slider (Default) */
/* .promo-multi uses default .promo-slider flex styling */


.category-nav {
    position: sticky;
    top: 0;
    background: var(--angsana-bg-light);
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.category-nav a {
    white-space: nowrap;
    padding: 8px 16px;
    background: #e9ecef;

    font-size: 0.9rem;
    font-weight: 400;
    color: var(--angsana-text-muted);
    transition: all 0.3s ease;
}

.category-nav a.active {
    background: var(--angsana-primary);
    color: var(--angsana-surface-white);
}

.category-title {
    font-family: 'Monesta', serif;
    margin: 20px 0 10px;
    font-size: 1.3rem;
    color: var(--angsana-text-dark);
    border-bottom: 2px solid var(--angsana-border);
    padding-bottom: 5px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-card {
    background: var(--angsana-surface-white);
    overflow: hidden;

    display: flex;
    flex-direction: row;
    min-height: 120px;
    cursor: pointer;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.75rem;
}

.menu-img {
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-info h4 {
    font-family: 'Monesta', serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--angsana-text-dark);
    text-transform: uppercase;
}

.menu-info .desc {
    font-size: 0.8rem;
    color: var(--angsana-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-info .see-desc {
    font-size: 0.8rem;
    color: #3b82f6;
    font-style: italic;
    cursor: pointer;
    margin-bottom: 5px;
}

.menu-info .price {
    font-weight: 400;
    color: var(--angsana-primary);
    margin-top: auto;
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--angsana-surface-white);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--angsana-text-muted);
    font-size: 0.8rem;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--angsana-primary);
}

.alert-error {
    color: var(--angsana-primary);
    margin-bottom: 15px;
    text-align: center;
    background: #fdf2f1;
    padding: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: 'Strawford', sans-serif;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--angsana-primary);
    color: var(--angsana-surface-white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Strawford', sans-serif;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Menu Detail Modal Styles */
.modal-menu-img {
    width: 100%;
    height: auto;
    position: relative;
}

.modal-menu-img img {
    width: 100%;
    height: auto;
    display: block;
}

#modalBadge {
    display: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    z-index: 10;
}

.sheet-content.no-padding {
    padding: 0;
}

.modal-body {
    padding: 20px;
}

#modalMenuDesc {
    color: var(--angsana-text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

#modalMenuAllergens {
    margin-bottom: 15px;
}

#modalOriginalPrice {
    margin-bottom: 2px;
}

#modalMenuPrice {
    color: var(--angsana-primary);
}

.info-row {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-icon {
    color: var(--angsana-primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.info-label {
    display: block;
    margin-bottom: 4px;
}

.info-text {
    color: var(--angsana-text-muted);
}

/* GLOBAL SYSTEM DESIGN RULES (NO ROUNDNESS, NO SHADOW, NO BOLD) */

*:not(i):not([class*="fa-"]):not(.fas):not(.far):not(.fal) {
    font-weight: 400 !important;
}

strong,
b,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400 !important;
}



/* PREMIUM UI REFINEMENTS: SMOOTH ANIMATIONS & ACTIVE STATES */
a,
button,
.menu-card,
.promo-card,
.filter-btn {
    transition: all 0.3s ease !important;
}

.menu-card:active,
.promo-card:active,
.btn-primary:active,
.filter-btn:active {
    transform: scale(0.97);
    background-color: #f1f3f5;
}

/* Ensuring modal transitions are smooth */
.menu-sheet {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}




/* Promo Popup Modal */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0 !important;
}

.btn-close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    text-shadow: none;
    /* No shadow */
}

/* Allergen Icons */
.allergen-icons {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.allergen-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 8px;
    margin-bottom: 5px;
}

.allergen-badge-img {
    height: 16px;
    width: auto;
    object-fit: contain;
}

/* Desktop popup modal override */
@media (min-width: 992px) {
    .bottom-sheet {
        bottom: auto !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 500px;
        border-radius: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .bottom-sheet.show {
        bottom: auto !important;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
}