/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Tropical Oasis - Daytime Market Theme)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #FFB300;       /* Pineapple Gold */
    --color-primary-hover: #FFA000;
    --color-secondary: #FF6D00;     /* Passionfruit Orange */
    --color-purple: #5E17EB;        /* Passionfruit Deep Purple */
    --color-green: #2E7D32;         /* Fresh Leaf Green */
    --color-green-light: #E8F5E9;   /* Light Leaf Green */
    
    /* Background & Surfaces */
    --color-bg-base: #FBF9F6;       /* Warm Day Market Sand/Cream */
    --color-bg-card: #FFFFFF;       /* Pure White Card */
    --color-bg-header: rgba(251, 249, 246, 0.85); /* Glassmorphism Header */
    
    /* Text Colors */
    --color-text-main: #2C2621;     /* Dark Charcoal Coffee */
    --color-text-muted: #6E6359;    /* Warm Muted Grey-Brown */
    --color-text-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Prompt', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(110, 99, 89, 0.05);
    --shadow-md: 0 8px 24px rgba(110, 99, 89, 0.1);
    --shadow-lg: 0 16px 36px rgba(110, 99, 89, 0.15);
    --shadow-glow: 0 8px 25px rgba(255, 109, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1200px;
}

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

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

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-main);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: #D2C8BC;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   LANGUAGE CONDITIONAL DISPLAY & SWITCHER
   ========================================================================== */
body.lang-th .lang-en {
    display: none !important;
}
body.lang-en .lang-th {
    display: none !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(110, 99, 89, 0.08);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-btn {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    line-height: 1;
}

.lang-btn:hover {
    color: var(--color-secondary);
}

.lang-btn.active {
    color: var(--color-text-white);
    background-color: var(--color-secondary);
    box-shadow: 0 2px 6px rgba(255, 109, 0, 0.3);
}

.lang-divider {
    color: #D2C8BC;
    opacity: 0.5;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo-emoji {
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text-white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.nav-btn::after {
    display: none;
}

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

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 140px 0 80px;
    position: relative;
    background: radial-gradient(circle at 80% 20%, #FFF3E0 0%, var(--color-bg-base) 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background-color: var(--color-green-light);
    color: var(--color-green);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 109, 0, 0.4);
}

.btn-secondary {
    background-color: var(--color-bg-card);
    color: var(--color-text-main);
    border: 2px solid #E0D7CD;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #FAF6F0;
    transform: translateY(-3px);
}

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

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.2), rgba(94, 23, 235, 0.15));
    top: -2.5%;
    left: -2.5%;
    border-radius: var(--radius-lg);
    z-index: 1;
    transform: rotate(2deg);
}

.hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
    transition: var(--transition-slow);
}

.hero-image:hover {
    transform: scale(1.02) rotate(-1deg);
}

/* ==========================================================================
   MENU SECTION
   ========================================================================== */
.menu-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--color-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title.text-left {
    text-align: left;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.product-card {
    background-color: var(--color-bg-base);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.product-badge.highlight-badge {
    background-color: var(--color-purple);
    color: var(--color-text-white);
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(110, 99, 89, 0.15);
    padding-top: 20px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-green);
}

.btn-order {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-order:hover {
    color: var(--color-primary-hover);
    transform: translateX(4px);
}

/* ==========================================================================
   INGREDIENTS & STORY SECTION
   ========================================================================== */
.story-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 10% 80%, #FFF3E0 0%, var(--color-bg-base) 70%);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.story-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.story-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 20px 0 40px;
}

.ingredient-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.ingredient-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ing-icon {
    font-size: 2.2rem;
    background-color: var(--color-bg-card);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.ing-details h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ing-details p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.story-image-showcase {
    position: relative;
    height: 480px;
}

.story-img-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 65%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition-normal);
}

.story-img-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    height: 55%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    border: 6px solid var(--color-bg-card);
    transition: var(--transition-normal);
}

.story-image-showcase:hover .story-img-top {
    transform: translateY(-8px) scale(1.02);
}

.story-image-showcase:hover .story-img-bottom {
    transform: translateY(8px) scale(1.02);
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 109, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================================================
   FACEBOOK COMMUNITY SECTION
   ========================================================================== */
.facebook-section {
    padding: 80px 0;
    background-color: var(--color-bg-base);
}

.fb-card {
    background: linear-gradient(135deg, #1877F2 0%, #0d5bbd 100%);
    border-radius: var(--radius-lg);
    color: var(--color-text-white);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.fb-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.fb-card-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fb-icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--color-text-white);
    color: #1877F2;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow-md);
}

.fb-title {
    color: var(--color-text-white);
    font-size: 2rem;
    font-weight: 600;
}

.fb-text {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.7;
}

.btn-facebook {
    background-color: var(--color-text-white);
    color: #1877F2;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.btn-facebook:hover {
    background-color: #ECEFF1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-section {
    background-color: #241D17; /* Very Deep Muted Brown-Black */
    color: #A29387;
    padding: 80px 0 0;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--color-text-white);
    font-size: 1.4rem;
}

.footer-bio {
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 450px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--color-text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-list li i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 5px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(36, 29, 23, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease-out;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition-fast);
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-secondary);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: var(--font-body);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-image-wrapper {
        order: -1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .story-image-showcase {
        height: 380px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--color-bg-base);
        flex-direction: column;
        gap: 15px;
        padding: 0;
        overflow: hidden;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(110, 99, 89, 0.1);
    }
    
    .navbar.open {
        height: auto;
        padding: 30px 0;
    }
    
    .nav-btn {
        margin-top: 10px;
    }
    
    .lang-switcher {
        margin-left: auto;
        margin-right: 15px;
        order: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lightbox-content {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .fb-card {
        padding: 40px 20px;
    }
    
    .fb-title {
        font-size: 1.6rem;
    }
}
