:root {
    --primary: #c8102e; /* Chinese seal red */
    --primary-hover: #9e0c24;
    --gold: #d4af37;
    --bg-light: #ffffff;
    --bg-offwhite: #f8f8f8;
    --bg-card: #ffffff;
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --border: #e0e0e0;
    --success: #388e3c;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle mountain background applied to the whole body */
    background-image: url('images/chinese_mountains_1778532261295.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center bottom;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.95); /* Very faint background visibility */
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: #1a1a1a;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 10px auto 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-cn {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 4px;
    margin-left: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s ease;
}

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

.nav-links a.highlight {
    color: var(--primary);
}

.lang-selector select {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-sans);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 80px; /* offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft white gradient overlay so text is readable */
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.9) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #1a1a1a;
    text-shadow: 2px 2px 10px rgba(255,255,255,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-main);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px; /* Less rounded for traditional feel */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

.w-100 {
    width: 100%;
}

/* Pickup Status Bar */
.pickup-status-bar {
    position: absolute;
    bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 142, 60, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 142, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(56, 142, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 142, 60, 0); }
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.chinese-motif {
    position: relative;
    overflow: hidden;
}

.chinese-motif::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 300px;
    height: 300px;
    background-image: none;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.chinese-motif::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background-image: none;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.dark-section {
    background-color: rgba(248, 248, 248, 0.8);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.menu-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.menu-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.badge-stock, .badge-origin, .badge-eco {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge-stock { background: var(--primary); color: white; }
.badge-origin { background: white; color: var(--text-main); border: 1px solid var(--border); }
.badge-eco { display: inline-block; background: var(--success); color: white; margin-bottom: 1rem; position: static; box-shadow: none;}

.menu-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--primary);
    font-family: var(--font-sans);
    font-weight: 800;
}

.menu-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Customization */
.customization {
    background: var(--bg-offwhite);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.customization label {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #ddd;
    outline: none;
    border-radius: 2px;
    margin: 10px 0 15px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.btn-add {
    width: 100%;
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

/* Pickup Timer */
.pickup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pickup-content {
    max-width: 600px;
}

.timer-box {
    margin-top: 2rem;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.05);
}

.timer-box h3 {
    margin-bottom: 0;
}

.time-display {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--primary);
    margin: 1rem 0;
}

.timer-subtext {
    color: var(--text-muted);
    font-weight: 600;
}

/* TGTG Section */
.tgtg-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tgtg-img {
    height: 500px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--success);
    font-size: 1.2rem;
}

.subscription-box {
    background: var(--bg-offwhite);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.subscription-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subscription-box button {
    margin-top: 1rem;
}

/* Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.kitchen-tour {
    height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.kitchen-tour::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.kitchen-tour:hover::before {
    background: rgba(0,0,0,0.1);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    z-index: 1;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(200,16,46,0.3);
    transition: transform 0.3s ease;
}

.kitchen-tour:hover .play-btn {
    transform: scale(1.1);
}

.kitchen-tour span {
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.chat-widget {
    margin-top: 2rem;
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.chat-widget i {
    font-size: 2.5rem;
    color: #25D366;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    margin-left: auto;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: var(--bg-card);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    border-left: 1px solid var(--border);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.remove-item {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-offwhite);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 900;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.floating-cart-info i {
    font-size: 1.3rem;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 2rem; opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .tgtg-split, .story-grid { grid-template-columns: 1fr; gap: 2rem; }
    .chat-widget { flex-direction: column; text-align: center; }
    .btn-whatsapp { margin: 1rem auto 0; }
    .cart-sidebar { width: 100%; right: -100%; }
    .nav-links { display: none; }
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.footer-landscape-container {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* CSS Chinese House Silhouette */
.chinese-house-silhouette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/footer_landscape.png');
    background-size: cover;
    background-position: center center;
    z-index: 1;
    filter: grayscale(1) sepia(1) brightness(0.8) contrast(1.1);
    opacity: 1;
}

.lantern-string {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 10%;
    z-index: 5;
    filter: sepia(0.2);
}

.lantern {
    font-size: 2.5rem;
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
    filter: drop-shadow(0 0 15px rgba(200, 16, 46, 0.4));
}

@keyframes swing {
    0% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

.footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    padding: 2.5rem 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.footer-overlay p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #ddd;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

.footer-links {
    font-size: 0.8rem;
    color: #bbb;
    letter-spacing: 1px;
}

.footer-links span {
    margin: 0 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-links span:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-landscape-container {
        min-height: 200px !important;
        max-height: 250px;
    }
    .footer-overlay {
        padding: 1.5rem 1rem;
    }
    .footer-logo {
        font-size: 1.8rem;
    }
    .footer-overlay p {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}
