:root {
    --primary-red: #5C1D16;
    --primary-brown: #431613;
    --brand-gold: #C59B68;
    --brand-cream: #FAF4EB;
    --brand-beige: #F1E9DC;
    --text-dark: #3A2E2B;
    --white: #ffffff;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

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

.btn-primary:hover {
    background-color: var(--primary-brown);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-brown);
}

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

.btn-primary-dark:hover {
    background-color: #2a0909;
}

/* Header */
header {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.emblem {
    width: 70px;
    height: 70px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.emblem img {
    width: 140%;
    /* Scale up to focus on the emblem part of logo.png */
    height: 140%;
    object-fit: cover;
}

.branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
}

.brand-name {
    font-family: 'Mitr', sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #f9e9d6;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.brand-sub {
    font-family: 'Mitr', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #f9e9d6;
    margin: 0;
    margin-top: -2px;
    letter-spacing: 0px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    opacity: 1;
    font-weight: 500;
    color: var(--accent-yellow);
}

.btn-order {
    background-color: var(--white);
    color: var(--primary-brown);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-order i {
    color: var(--primary-red);
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, #ffffff 0%, #fdf8f4 40%, #f4e9dd 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 120px); /* Adjusted for header height */
    display: flex;
    align-items: center;
    border-bottom: none;
}

.hero-content {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.hero-left {
    flex: 1;
    padding: 80px 40px 80px max(20px, calc((100vw - var(--container-width)) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    flex: 1;
    min-height: calc(100vh - 120px);
    position: relative;
    align-self: stretch;
}

.hero-title {
    font-size: 85px;
    color: var(--primary-red);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 35px;
}

.hero-desc {
    font-size: 18px;
    color: #444;
    margin-bottom: 45px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-hero-primary {
    background-color: #4a0a0a;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background-color: #310606;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 10, 10, 0.2);
}

.btn-hero-outline {
    background-color: var(--white);
    border: 1px solid #8b1a1a;
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background-color: #fef8f4;
    transform: translateY(-2px);
}

.delivery-partners {
    margin-top: 50px;
}

.partner-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.partners-logos {
    display: flex;
    gap: 25px;
    align-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-item img {
    height: 22px;
    width: auto;
}

.partner-name {
    font-size: 14px;
    font-weight: 800;
    color: #333;
}

.hero-right {
    flex: 1.2;
    height: 650px;
    position: relative;
}

.image-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.main-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-badge-refined {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 170px;
    height: 170px;
    background-color: var(--hero-bg);
    border: 1px solid var(--primary-brown);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.badge-line1 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.badge-line2 {
    font-size: 15px;
    color: #333;
    margin: 4px 0;
    font-weight: 500;
}

.badge-line3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Recommended Menu */
.recommended-menu {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary-brown);
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 700;
}

.menu-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-items {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.menu-items::-webkit-scrollbar {
    display: none;
}

.menu-card {
    min-width: 200px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.menu-img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.menu-info {
    padding: 15px;
}

.menu-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.add-to-cart {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.slider-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-brown);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.9;
}

/* Highlights */
.highlights {
    background-color: var(--hero-bg);
    padding: 80px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.highlight-item {
    text-align: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.highlight-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: 1px;
    background-color: #eedcb1;
    opacity: 0.6;
}

.highlight-item h3 {
    font-size: 18px;
    color: var(--primary-brown);
    margin-bottom: 15px;
    font-weight: 700;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.highlight-center {
    grid-column: span 1; /* Keeping it structured but it can take more space if needed */
}

/* Sauce Section Refinement */
.sauce-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--primary-brown);
    font-weight: 600;
}

.sauce-title span {
    background: transparent;
    padding: 0 10px;
}

.sauce-title::before,
.sauce-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eedcb1;
}

.sauce-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.sauce-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.sauce-color {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 2px solid var(--white);
}

.sauce-name {
    font-size: 11px;
    color: var(--text-dark);
    line-height: 1.3;
}

.sauce-color.dark {
    background-color: #231f20;
}

.sauce-color.green {
    background-color: #8db546;
}

.sauce-color.red {
    background-color: #ed1c24;
}

.sauce-color.yellow {
    background-color: #f7e1ac;
}

/* Promo Cards */
.promo-sections {
    padding: 80px 0;
    background-color: var(--white);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.promo-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
}

.promo-card.dark {
    background-color: #231f20;
    color: var(--white);
}

.promo-card.beige {
    background-color: #e6ded4;
    color: var(--primary-brown);
}

.promo-content {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.promo-content h3 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.promo-content p {
    font-size: 16px;
    opacity: 0.9;
}

.promo-img {
    flex: 1;
}

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

/* Branches */
.branches {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #f5f5f5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.view-all {
    color: var(--primary-brown);
    font-weight: 500;
    font-size: 15px;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 10px;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.branch-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f5f5f5;
}

.branch-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.branch-info {
    padding: 20px;
}

.branch-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-red);
}

.branch-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
}

/* Bottom CTA Bar */
.bottom-cta {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 25px 0;
}

.bottom-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 35px;
}

.cta-partners {
    display: flex;
    gap: 15px;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background-color: var(--white);
    border-top: 1px solid #f0f0f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-layout {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #231f20;
    border: 1px solid #eee;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--primary-brown);
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 50px;
    }
    
    .hero-left {
        padding-left: 5%;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 28px;
        color: #f9e9d6;
    }

    .hero {
        min-height: auto;
        padding: 40px 0 0 0; /* No bottom padding so image reaches edge */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        padding: 20px;
        width: 100%;
        align-items: center;
        order: 1; /* Text first */
    }

    .hero-right {
        order: 2; /* Image second */
        width: 100%;
        height: auto;
        min-height: 300px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
        margin-bottom: 40px;
    }

    .btn-hero-primary, .btn-hero-outline {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 16px;
    }

    .main-hero-img {
        /* On mobile, we want it to look full and nice */
        -webkit-mask-image: none;
        mask-image: none;
        border-radius: 0;
    }

    .delivery-partners {
        margin-top: 30px;
        width: 100%;
    }

    .partners-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 20px;
    }

    .partner-item {
        background: white;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
        justify-content: center;
    }

    .partner-item img {
        height: 18px;
    }
}

/* Floating Badge */
.hero-badge-float {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 140px;
    height: 140px;
    background-color: #fcebd2; /* สีครีมอุ่น */
    border: 2px solid #5c1d16;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    font-family: 'Prompt', sans-serif;
    transform: rotate(5deg);
}

.hero-badge-float span:first-child {
    font-size: 14px;
    font-weight: 700;
    color: #5c1d16;
    border-bottom: 1px solid #5c1d16;
    margin-bottom: 4px;
}

.hero-badge-float span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: #431613;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hero-badge-float {
        width: 100px;
        height: 100px;
        bottom: 20px;
        right: 20px;
    }
    .hero-badge-float span:first-child { font-size: 11px; }
    .hero-badge-float span:last-child { font-size: 10px; }
}

/* Mobile Drawer Styles */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-brown); /* แดงเข้มแบรนด์ */
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-header .emblem {
    width: 40px;
    height: 40px;
}

.drawer-header .brand-name {
    color: var(--brand-gold);
    font-size: 24px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--brand-gold);
    cursor: pointer;
}

.drawer-links ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-links ul li a {
    font-size: 18px;
    font-weight: 500;
    color: var(--brand-cream);
}

.drawer-links ul li a.active {
    color: var(--brand-gold);
}

.drawer-footer {
    margin-top: auto;
    padding-top: 20px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}