/* ==========================================================================
   SIANO HOUSE BRAND DESIGN SYSTEM & STYLE SHEET
   ========================================================================== */

/* 1. Reset & Root Variables */
:root {
    /* Brand Palette */
    --primary: #B72A1E;       /* Deep Red */
    --accent-orange: #F58220; /* Flame Orange */
    --accent-gold: #F2C35B;   /* Warm Gold */
    --bg-cream: #FFF2DE;      /* Light Background (Ivory) */
    --text-charcoal: #1A1A1A; /* Dark Accent / Body Text */
    --white: #FFFFFF;
    
    /* Semantic Neutrals */
    --border-light: rgba(183, 42, 30, 0.15);
    --border-mid: rgba(183, 42, 30, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(26, 26, 26, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(26, 26, 26, 0.08), 0 4px 6px -2px rgba(26, 26, 26, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(26, 26, 26, 0.12), 0 10px 10px -5px rgba(26, 26, 26, 0.04);
    --shadow-glow: 0 0 15px rgba(245, 130, 32, 0.4);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Prompt', 'Sarabun', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    line-height: 1.45; /* Reduced line height spacing for tighter editorial typography */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. Custom Scrollbar & Typography */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-size: 0.95rem;
    font-weight: 300;
}

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

ul {
    list-style: none;
}

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

/* 3. Reusable Components & Buttons */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 24px; /* Reduced vertical padding for tighter gaps between sections */
}

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

.text-light {
    color: var(--bg-cream) !important;
}

.text-cream {
    color: #ffdcb5 !important;
}

.section-tag {
    display: inline-block;
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px; /* Tightened tag spacing */
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px; /* Tightened title spacing */
    font-family: var(--font-heading);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 28px auto; /* Tightened gap below subtitle */
    color: #666;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-charcoal);
    box-shadow: 0 4px 10px rgba(242, 195, 91, 0.3);
}
.btn-primary:hover {
    background-color: #e5b347;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 195, 91, 0.4);
}

.btn-secondary-accent {
    background-color: var(--primary);
    color: var(--bg-cream);
    box-shadow: 0 4px 10px rgba(183, 42, 30, 0.3);
}
.btn-secondary-accent:hover {
    background-color: var(--accent-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--text-charcoal);
    transform: translateY(-2px);
}

.btn-wide {
    width: 100%;
}

/* 4. Sticky Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(183, 42, 30, 0.95); /* Semi-transparent deep red, matching storefront */
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent-gold); /* Gold highlight line */
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-container {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    animation: flamePulse 3s infinite ease-in-out;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700; /* Matching the elegant, bold-serif weight in the logo image */
    color: var(--bg-cream); /* Cream title logo */
    letter-spacing: 2px; /* Spaced out beautifully like the new logo text */
}

.logo-slogan {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-gold); /* Warm Gold slogan */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navbar {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    color: rgba(255, 242, 222, 0.85); /* Cream text */
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-gold); /* Gold hover highlight */
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 242, 222, 0.6); /* Semi-transparent cream */
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    padding: 4px;
    transition: var(--transition-fast);
}
.lang-btn.active, .lang-btn:hover {
    color: var(--accent-gold); /* Gold active indicator */
}

.lang-divider {
    color: rgba(255, 242, 222, 0.2);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--bg-cream); /* Cream menu lines */
    border-radius: 4px;
    transition: var(--transition-normal);
}

/* 5. Hero Section */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #B72A1E 0%, #68120b 100%); /* Crimson gradient from moodboard */
    color: var(--bg-cream); /* Light text colors */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(242, 195, 91, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(242, 195, 91, 0.15); /* Gold badge background */
    color: var(--accent-gold); /* Gold badge text */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(242, 195, 91, 0.35);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.primary-accent {
    color: var(--white); /* White text on red background */
}

.gold-accent {
    color: var(--accent-gold); /* Gold accent on red background */
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 242, 222, 0.85); /* Ivory subtitle text */
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background-color: var(--accent-gold);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    z-index: 1;
    animation: blobAnimate 12s infinite alternate ease-in-out;
}

.hero-img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transition: var(--transition-slow);
}
.hero-img:hover {
    transform: scale(1.03) rotate(2deg);
}

.hero-floating-card-1, .hero-floating-card-2 {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: floatUpDown 4s infinite ease-in-out;
}

.hero-floating-card-1 {
    top: 10%;
    left: -5%;
}

.hero-floating-card-2 {
    bottom: 8%;
    right: -2%;
    flex-direction: column;
    align-items: flex-start;
    animation-delay: 2s;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-tag {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
}

.card-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.card-quote {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-charcoal);
    font-weight: 500;
}

/* 6. Category Highlights Section */
.categories-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background-color: var(--bg-cream);
    border-radius: var(--border-radius-md);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-normal);
}
.category-card:hover {
    background-color: var(--white);
    border-color: var(--accent-orange);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.cat-img-box {
    margin-bottom: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cat-round-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform var(--transition-normal) ease-in-out, border-color var(--transition-normal);
}

.category-card:hover .cat-round-img {
    transform: scale(1.1) rotate(2deg);
    border-color: var(--accent-orange);
}

.cat-name {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 6px;
}

.cat-desc {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
}

/* Corporate Metrics Section Styles */
.metrics-section {
    background-image: 
        url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6c4-4 6-4 10 0s6 4 10 0 6-4 10 0 6 4 10 0' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.15'/%3E%3C/svg%3E"), 
        linear-gradient(135deg, var(--primary) 0%, var(--accent-orange) 100%); /* Crimson-orange gradient (zero black) */
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    color: var(--bg-cream);
    padding: 60px 0;
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 242, 222, 0.15);
    padding: 10px 0;
}

.metric-card:last-child {
    border-right: none;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg-cream);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .metric-card {
        border-right: none;
    }
    .metric-card:nth-child(odd) {
        border-right: 1px solid rgba(255, 242, 222, 0.1);
    }
}

@media (max-width: 480px) {
    .metrics-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .metric-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 242, 222, 0.1);
        padding-bottom: 24px;
    }
    .metric-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* 7. Menu Section with Dynamic Filter Layout */
.menu-section {
    background-color: var(--primary); /* Deep Red background */
}

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.tab-btn {
    background-color: var(--white);
    border: 1.5px solid var(--border-mid);
    color: var(--text-charcoal);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
}
.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-cream);
    box-shadow: 0 4px 10px rgba(183, 42, 30, 0.2);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    transition: opacity var(--transition-normal);
}

.menu-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), opacity var(--transition-normal), box-shadow var(--transition-normal);
    opacity: 1;
    transform: scale(1);
}

.menu-card.hide {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    pointer-events: none;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.menu-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.menu-card:hover .menu-item-img {
    transform: scale(1.08);
}

.item-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: var(--accent-gold);
    color: var(--text-charcoal);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,26,26,0.1);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.item-title {
    font-size: 1.2rem;
    color: var(--primary);
}

.diet-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
}

.badge-spicy {
    background-color: rgba(245, 130, 32, 0.1);
    color: var(--accent-orange);
}

.badge-veg {
    background-color: rgba(34, 139, 34, 0.1);
    color: forestgreen;
}

.item-desc {
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-add-order {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: var(--border-radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-add-order:hover {
    background-color: var(--primary);
    color: var(--bg-cream);
}

/* 8. Brand Story & Values Section */
.about-section {
    background-color: var(--primary); /* Deep Red background */
    color: var(--bg-cream); /* Ivory text */
    overflow: hidden;
}

.about-split-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 600px;
}

.about-visual {
    position: relative;
}

.about-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-overlay-banner {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    background-color: rgba(26, 26, 26, 0.85); /* Translucent dark banner overlay */
    border-left: 4px solid var(--accent-orange);
    padding: 24px;
    backdrop-filter: blur(4px);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.banner-headline {
    color: var(--accent-gold); /* Warm Gold */
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.banner-body {
    color: #ddd;
    font-size: 0.85rem;
}

.about-text-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-intro {
    font-size: 1.05rem;
    color: #ffdcb5; /* Light cream text */
    margin-bottom: 40px;
    font-weight: 300;
}

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

.value-item {
    display: flex;
    gap: 16px;
}

.val-icon {
    font-size: 2rem;
    background-color: rgba(255, 242, 222, 0.15); /* Light cream tint */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.val-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--accent-gold); /* Gold headings */
    font-family: var(--font-heading);
}

.val-desc {
    color: rgba(255, 242, 222, 0.8);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* 9. Outlet Finder / Locations Section */
.locations-section {
    background-color: var(--white);
}

.locations-panel-wrapper {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    background-color: var(--bg-cream);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loc-tab {
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-charcoal);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-normal);
}

.loc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: var(--transition-fast);
}

.loc-tab:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.loc-tab.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--bg-cream);
    box-shadow: var(--shadow-sm);
}

.loc-tab.active .loc-dot {
    background-color: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
}

.location-details-box {
    background-color: var(--primary); /* Deep Red container, matching storefront accent */
    border-radius: var(--border-radius-sm);
    padding: 40px;
    border: 1px solid rgba(255, 242, 222, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    min-height: 300px;
}

.outlet-city-title {
    font-size: 2rem;
    color: var(--accent-gold); /* Gold title */
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(255, 242, 222, 0.25);
    padding-bottom: 12px;
}

.outlet-info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.95rem;
    color: rgba(255, 242, 222, 0.85); /* Ivory text */
}

.hours-label {
    font-weight: 700;
    color: var(--white); /* White title label */
    margin-bottom: 2px;
}

.outlet-actions-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* 10. Franchise & Global Partner Inquiry Form Section */
.franchise-section {
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.franchise-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(245, 130, 32, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.form-wrapper {
    position: relative;
    z-index: 2;
}

.franchise-card {
    background: var(--bg-cream);
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-mid);
    position: relative;
    overflow: hidden;
}

.inquiry-form {
    padding: 48px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--border-mid);
    background-color: var(--white);
    color: var(--text-charcoal);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.form-submit-row {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Success Overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal) ease-in-out;
    opacity: 1;
}

.success-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.success-message-box {
    text-align: center;
    padding: 40px;
    max-width: 480px;
    animation: scaleUp 0.4s ease-out;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: green;
    color: var(--white);
    font-size: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-message-box h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-message-box p {
    color: #555;
    margin-bottom: 28px;
}

/* 11. Footer */
.main-footer {
    background-color: var(--primary); /* Deep Red background (no black!) */
    color: rgba(255, 242, 222, 0.85); /* Ivory text colors */
    border-top: 4px solid var(--accent-gold); /* Gold top highlight */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 64px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--bg-cream);
}

.brand-slogan {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-about-p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: rgba(255, 242, 222, 0.8);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 242, 222, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-cream);
    transition: var(--transition-fast);
}
.social-links a:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col-title {
    color: var(--bg-cream);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 0.9rem;
    color: rgba(255, 242, 222, 0.85); /* Ivory text link */
    transition: var(--transition-fast);
}
.footer-links-list a:hover {
    color: var(--accent-gold); /* Gold hover link */
    padding-left: 4px;
}

.contact-details-p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 242, 222, 0.8);
}

.contact-details-p strong {
    color: var(--bg-cream);
}

.footer-bottom {
    background-color: #9d2016; /* Warm deep red backdrop (zero black) */
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-container {
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-p {
    font-size: 0.8rem;
}

.legal-links {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
}

.legal-links a:hover {
    color: var(--bg-cream);
}

.divider {
    color: rgba(255, 242, 222, 0.25);
}

/* ==========================================================================
   12. Keyframes & Animations
   ========================================================================== */
@keyframes flamePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(183, 42, 30, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 8px rgba(245, 130, 32, 0.7));
    }
}

@keyframes blobAnimate {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 50% 40% 50%;
    }
}

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

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   13. Responsive Breakpoints
   ========================================================================== */

/* Tablet & Smaller Devices (1024px and down) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-split-container {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .brand-col {
        grid-column: span 2;
    }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {
    /* Navbar Hamburger Menu Mode */
    .mobile-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-cream);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        transition: var(--transition-normal);
        border-top: 1px solid var(--border-light);
        z-index: 1000;
    }
    
    .navbar.open {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    .nav-actions {
        display: none; /* Desktop actions hid, show mobile inline or simplify */
    }
    
    /* We show lang switch & order button inside mobile header / sidebar instead */
    .header-container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-img {
        width: 320px;
        height: 320px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-panel-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .location-details-box {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .inquiry-form {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-col {
        grid-column: span 1;
    }
    
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Tiny Mobile Screens (320px - 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-img {
        width: 250px;
        height: 250px;
    }
    
    .hero-floating-card-1 {
        left: -10%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .outlet-actions-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   14. Shopping Cart Drawer Styles
   ========================================================================== */
.cart-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: 50%;
    color: var(--primary);
    transition: var(--transition-fast);
}
.cart-trigger:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 8px rgba(245,130,32,0.15);
    transform: translateY(-1px);
}
.cart-svg-icon {
    width: 20px;
    height: 20px;
}
.cart-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Cart Drawer */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100vh;
    background-color: var(--bg-cream);
    box-shadow: -5px 0 25px rgba(26,26,26,0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
    border-left: 3px solid var(--primary);
}
.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 24px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
}
.cart-sidebar-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
}
.cart-close-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-charcoal);
    cursor: pointer;
    line-height: 0.5;
    transition: var(--transition-fast);
}
.cart-close-btn:hover {
    color: var(--primary);
}

.cart-items-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-empty-message {
    text-align: center;
    color: #888;
    margin: auto 0;
    font-size: 0.95rem;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--white);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    animation: scaleUp 0.3s ease;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-charcoal);
}
.cart-item-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}
.cart-item-remove-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}
.cart-item-remove-btn:hover {
    color: var(--primary);
}

.cart-sidebar-footer {
    padding: 24px;
    border-top: 2px solid var(--border-light);
    background-color: var(--white);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-charcoal);
}
.total-label {
    font-family: var(--font-body);
}
.total-value {
    color: var(--primary);
}

/* Backdrop Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
@media (max-width: 768px) {
    .cart-trigger {
        margin-right: 8px;
    }
}

/* ==========================================================================
   15. Scroll Reveal Transitions & Graphic Elements
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle Thai Lotus background pattern (using CSS background SVG encoded) */
.pattern-bg-lotus {
    background-color: var(--bg-cream);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-3 8-10 12-10 18s4 8 10 8 10-2 10-8-7-10-10-18zm0 2c1.8 5.4 6.3 8.1 7.2 12.6C38 23 35.3 25.2 30 25.2s-8-2.2-7.2-5.6c.9-4.5 5.4-7.2 7.2-12.6zm-12 18c-2 6-8 9-8 14s3 6 8 6 8-2 8-6-5-8-8-14zm24 0c-2 6-8 9-8 14s3 6 8 6 8-2 8-6-5-8-8-14z' fill='%23b72a1e' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Red themed Thai wave pattern for metrics/franchise */
.pattern-bg-waves {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6c4-4 6-4 10 0s6 4 10 0 6-4 10 0 6 4 10 0' fill='none' stroke='%23f58220' stroke-width='1.5' stroke-opacity='0.08'/%3E%3C/svg%3E");
}

/* ==========================================================================
   16. Real-time Search Input & QSR Checkout Modal
   ========================================================================== */
.menu-search-container {
    display: flex;
    justify-content: center;
    margin-top: -12px;
    margin-bottom: 32px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    max-width: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1.5px solid var(--border-mid);
    border-radius: var(--border-radius-lg);
    padding: 10px 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    color: #888;
}

#menu-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

/* Modal Overlay backdrop styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

/* Modal Content Box */
.checkout-modal-box {
    background-color: var(--bg-cream);
    border: 3px solid var(--accent-gold);
    border-radius: var(--border-radius-md);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-charcoal);
    cursor: pointer;
    line-height: 0.5;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}

/* Mini summary panel */
.order-summary-panel {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 700;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-charcoal);
}

.summary-total {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Success panel within modal */
.checkout-success-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.checkout-success-view .success-icon {
    width: 64px;
    height: 64px;
    background-color: #228B22;
    color: var(--white);
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(34,139,34,0.3);
}

.checkout-success-view h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-charcoal);
    margin-bottom: 12px;
}

.checkout-success-view p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Quantity selector controls inside the cart drawer */
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    background-color: var(--bg-cream);
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.qty-btn:hover {
    background-color: var(--primary);
    color: var(--bg-cream);
    border-color: var(--primary);
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    color: var(--text-charcoal);
}

