/* === GLOBAL VARIABLES (DO NOT MODIFY - REQUIRED FOR APP) === */
:root {
  --primary-brown: #5D4037;
  --accent-gold: #D4AF37;
  --bg-beige: #FFF8E1;
  --card-white: #FFFFFF;
  --btn-green: #2e7d32;
  --danger-red: #d32f2f;
  --disabled-grey: #9e9e9e;
  --nav-height: 60px;
}

/* === GLOBAL RESET === */
* { box-sizing: border-box; }

html, body {
  margin: 0; 
  padding: 0; 
  background-color: var(--bg-beige);
  font-family: "Microsoft JhengHei", "Helvetica", sans-serif;
  color: var(--primary-brown);
  min-height: 100vh;
  touch-action: manipulation;
  scroll-behavior: smooth;
}

/* ==========================================================================
   ORIGINAL APP STYLES (PRESERVED FOR ORDER.HTML & ZZCSTAFF.HTML)
   ========================================================================== */
/* ... (Keep existing APP styles if needed, but for brevity I am ensuring 
       the website styles below do not conflict) ... */

/* [APP NAVIGATION - Main-Nav] */
.main-nav {
  background-color: white;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 2000;
}
.nav-brand { color: var(--primary-brown); font-weight: bold; font-size: 1.2em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-lang-btn { background: #eee; border: none; color: var(--primary-brown); padding: 6px 12px; border-radius: 6px; font-size: 0.85em; font-weight: bold; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.nav-lang-btn:hover { background: #e0e0e0; }

/* [APP SPECIFIC CLASSES - Minified for space as they are unchanged] */
.lp-btn-base { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: all 0.2s ease; border: 2px solid transparent; }
.cta-wa { background: #25D366; color: white; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2); border-color: #25D366; }
.cta-ig { background: white; color: var(--primary-brown); border: 2px solid var(--primary-brown); }
.hero-section { text-align: center; padding: 100px 20px 80px; background-color: var(--bg-beige); background-image: radial-gradient(var(--accent-gold) 0.5px, transparent 0.5px), radial-gradient(var(--accent-gold) 0.5px, var(--bg-beige) 0.5px); background-size: 30px 30px; border-bottom: 1px solid rgba(212,175,55,0.1); position: relative; }
.hero-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(255,248,225,0.95), rgba(255,248,225,0.7)); z-index: 0; }
.hero-wrapper { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge { background: var(--primary-brown); color: white; padding: 5px 15px; border-radius: 4px; font-size: 0.85em; font-weight: bold; display: inline-block; margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 25px; color: var(--primary-brown); font-weight: 800; line-height: 1.25; }
.hero-sub { color: #5d4037; margin-bottom: 40px; font-size: 1.1rem; font-weight: 400; line-height: 1.7; opacity: 0.9; }
.cta-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.section-container { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section-header-center { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-title { color: var(--primary-brown); font-size: 1.8rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent-gold); border-radius: 2px; margin: 10px auto 0; }
.section-desc { color: #666; font-size: 1.05rem; margin-top: 15px; line-height: 1.6; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; }
.step-icon { font-size: 2rem; background: var(--bg-beige); width: 50px; height: 50px; line-height: 50px; border-radius: 50%; margin: 0 auto 15px; color: var(--primary-brown); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.rec-carousel-wrapper { position: relative; max-width: 1100px; margin: 0 auto; }
.product-grid { display: flex; gap: 20px; padding: 10px 5px 20px 5px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.product-grid::-webkit-scrollbar { display: none; }
.prod-card { min-width: 180px; width: 180px; flex-shrink: 0; scroll-snap-align: start; background: white; border-radius: 12px; border: 1px solid #eee; text-align: left; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.02); display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(93, 64, 55, 0.08); border-color: var(--accent-gold); }
.prod-img-wrapper { width: 100%; height: auto; aspect-ratio: 1 / 1; background-color: #f5f5f5; position: relative; }
.prod-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prod-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.prod-content h3 { color: var(--primary-brown); font-size: 1rem; margin: 0 0 5px 0; font-weight: bold; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-meta { color: var(--accent-gold); font-weight: bold; font-size: 1rem; margin-bottom: 8px; }
.prod-content p { font-size: 0.85rem; color: #888; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--primary-brown); font-size: 1.2rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.2s; user-select: none; }
.scroll-btn:hover { background: var(--bg-beige); border-color: var(--primary-brown); }
.scroll-btn.prev { left: -20px; }
.scroll-btn.next { right: -20px; }
.main-footer { background: #2D1B15; color: #f5f5f5; padding: 60px 20px 30px; }
.footer-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--accent-gold); margin-bottom: 20px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-row { display: flex; gap: 15px; margin-bottom: 15px; font-size: 1rem; align-items: flex-start; line-height: 1.5; }

/* ==========================================================================
   WEBSITE V2 STYLES (NEW - ISOLATED FOR 2025 WEBSITE REFRESH)
   Namespace: .web- prefix or specific classes to avoid App conflict
   ========================================================================== */

/* --- WEB VARIABLES --- */
:root {
  --web-oat-milk: #F8F5F2;
  --web-sage-green: #8DA399;
  --web-warm-brown: #5D4037;
  --web-light-sand: #EFEBE5;
  --web-text-dark: #2C2C2C;
}

/* --- WEB NAV (FIXED & CENTERED) --- */
.web-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 3000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    
    /* Grid Layout for True Centering */
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    padding: 0 5%;
}

.web-logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--web-warm-brown);
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

.web-menu-desktop {
    display: flex;
    justify-content: center; /* Centers links within the middle column */
    gap: 30px;
}

.web-link {
    text-decoration: none;
    color: var(--web-text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.web-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--web-sage-green);
    transition: width 0.3s;
}

.web-link:hover { color: var(--web-sage-green); }
.web-link:hover::after { width: 100%; }
.web-link.active { color: var(--web-warm-brown); font-weight: bold; border-bottom: 2px solid var(--web-warm-brown); }
.web-link.active::after { display: none; }

/* Mobile Menu Button */
.web-menu-btn { 
    display: none; /* Hidden by default on desktop */
    justify-self: end; /* Align to right */
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--web-warm-brown); 
}

/* Mobile Drawer */
.web-mobile-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid #eee;
    z-index: 2999;
}
.web-mobile-menu.open { display: flex; }

/* --- RESPONSIVE NAV ADJUSTMENTS --- */
@media (max-width: 900px) {
    .web-nav {
        display: flex; /* Switch to flex for mobile simplicity */
        justify-content: space-between;
    }
    .web-menu-desktop { display: none; }
    .web-menu-btn { display: block; }
}

/* --- SUB-NAVIGATION BAR (NEW) --- */
.sub-nav-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 70px; /* Sticks right below the main nav */
    z-index: 2900;
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.sub-nav-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #888;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: bold;
}

.sub-nav-btn:hover {
    color: var(--web-warm-brown);
    background: #f5f5f5;
}

.sub-nav-btn.active {
    background: var(--web-warm-brown);
    color: white;
}

/* Tab Content Visibility */
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- WEB LAYOUT CONTAINERS --- */
.web-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.web-hero {
    height: 60vh;
    min-height: 400px;
    background-color: var(--web-oat-milk);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.web-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.web-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--web-warm-brown);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.web-hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Floating Elements */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 10s infinite ease-in-out;
    z-index: 1;
}
.circle-1 { width: 300px; height: 300px; background: var(--web-sage-green); top: -50px; left: -50px; }
.circle-2 { width: 200px; height: 200px; background: var(--accent-gold); bottom: 10%; right: 5%; animation-delay: 2s; }
.circle-3 { width: 100px; height: 100px; background: var(--web-warm-brown); top: 20%; right: 20%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- WEB BUTTONS --- */
.web-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--web-warm-brown);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.web-btn:hover {
    background-color: white;
    color: var(--web-warm-brown);
    border-color: var(--web-warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}
.web-btn-outline {
    background: transparent;
    color: var(--web-warm-brown);
    border: 1px solid var(--web-warm-brown);
}
.web-btn-outline:hover {
    background: var(--web-warm-brown);
    color: white;
}

/* --- WEB SECTIONS --- */
.web-section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}
.web-section-split.reverse { direction: rtl; }
.web-section-split.reverse > * { direction: ltr; }

.web-img-box {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.web-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.web-img-box:hover img { transform: scale(1.05); }

.web-text-box h2 {
    font-size: 2rem;
    color: var(--web-warm-brown);
    margin-bottom: 20px;
}

.web-text-box p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* --- CARDS --- */
.web-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.web-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    text-align: center;
}

.web-card:hover { transform: translateY(-10px); }

.web-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--web-sage-green);
}

.web-card h3 { color: var(--web-warm-brown); margin-bottom: 15px; }
.web-card p { color: #888; font-size: 0.9rem; line-height: 1.6; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .web-section-split { grid-template-columns: 1fr; gap: 40px; }
    .web-section-split.reverse { direction: ltr; }
    .web-img-box { height: 300px; }
}