/* TÁI CẤU TRÚC VÀ THIẾT KẾ PHONG CÁCH BEYOND MEAT XANH ĐẬM ĐÀ */
:root {
    --bg-organic: #efece6;
    --bg-white: #ffffff;
    --beyond-green: #174224; /* Màu xanh đậm thương hiệu Beyond Meat */
    --pastel-green: #eaf2eb;
    --neon-green: #4ade80;
    --text-black: #111111;
    --text-muted: #555555;
    --font-heading: 'Cabinet Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-organic);
    color: var(--text-black);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* HOA VĂN NỀN XANH LÁ ĐẬM NÉT */
.cultural-bg-pattern {
    position: absolute;
    top: 3%;
    right: -80px;
    width: 550px;
    height: 550px;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23174224' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='50' cy='50' r='30' stroke='%23174224' stroke-width='0.8' fill='none'/%3E%3Ccircle cx='50' cy='50' r='20' stroke='%23174224' stroke-width='0.8' fill='none'/%3E%3Cpath d='M50,15 L53,32 L47,32 Z M50,85 L53,68 L47,68 Z M15,50 L32,53 L32,47 Z M85,50 L68,53 L68,47 Z' fill='%23174224'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.cultural-bg-pattern-left {
    position: absolute;
    top: 40%;
    left: -120px;
    width: 650px;
    height: 650px;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' stroke='%23174224' stroke-width='1.2' fill='none' stroke-dasharray='3,3'/%3E%3Ccircle cx='50' cy='50' r='35' stroke='%23174224' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 130px 4% 60px 4%;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

/* ĐÃ SỬA: CỐ ĐỊNH Ở GÓC PHẢI MÀN HÌNH, KHÔNG BỊ TRỒNG LẤN KHI CUỘN TRANG */
.lang-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.lang-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: #999999;
    transition: color 0.3s;
}
.lang-label.active {
    color: var(--beyond-green);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #b9bfb9;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--beyond-green); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.brand-title {
    font-family: var(--font-heading);
    font-size: 5rem; /* Giảm nhẹ từ 6rem xuống 5rem để đẹp hơn trên nhiều màn hình */
    color: var(--beyond-green);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1;
}
.hero-tagline {
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--text-black);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    border-left: 3px solid var(--beyond-green);
    border-right: 3px solid var(--beyond-green);
    padding: 0 20px;
}

/* KHỬ LỖI NỀN ĐEN ẢNH SAKE TRONG SUỐT */
.sake-hero-img-container {
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 0 auto;
    width: 100%;
    max-width: 500px;
    height: 320px;
    position: relative;
}
.sake-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sake-transparent-img {
    position: absolute;
    background: transparent !important;
    mix-blend-mode: multiply;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}
.sake-animation-wrapper:hover .sake-transparent-img {
    transform: scale(1.05);
}

.img-fruit { animation: crossfadeFruit 8s infinite ease-in-out; }
.img-meat { animation: crossfadeMeat 8s infinite ease-in-out; }

@keyframes crossfadeFruit {
    0%, 35% { opacity: 1; z-index: 2; }
    50%, 85% { opacity: 0; z-index: 1; }
    100% { opacity: 1; z-index: 2; }
}
@keyframes crossfadeMeat {
    0%, 35% { opacity: 0; z-index: 1; }
    50%, 85% { opacity: 1; z-index: 2; }
    100% { opacity: 0; z-index: 1; }
}

/* 4 STEPS PROCESS */
.steps-section { padding: 60px 20px; background: rgba(23, 66, 36, 0.04); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Auto co giãn linh hoạt */
    gap: 25px; max-width: 1200px; margin: 0 auto;
}
.step-card {
    background: #fff; padding: 25px; border-radius: 20px;
    display: flex; flex-direction: column;
    justify-content: space-between; height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* SỐ QUY TRÌNH ĐẬM NÉT RÕ RÀNG */
.step-num {
    font-family: var(--font-heading); 
    font-size: 3rem;       
    font-weight: 900;        
    color: var(--beyond-green); 
    opacity: 0.95;           
    margin-bottom: 5px;
    display: block;
    letter-spacing: -1px;
}

.step-card h3 {
    font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--beyond-green);
    margin-bottom: 12px; min-height: 3rem; display: flex; align-items: flex-start;
}
.step-card p {
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px;
    line-height: 1.6; text-align: justify; flex-grow: 1;
}

/* CHỐNG MỜ VÀ CHỐNG TRÀN ẢNH BƯỚC QUY TRÌNH */
.step-thumb-box { 
    width: 100%; 
    height: 120px; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #e5e5e5; 
}
.step-thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.step-card:hover .step-thumb { transform: scale(1.05); }

/* WHY CHOOSE SECTION */
.why-choose-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-top: 40px; }
.why-card { background: #fff; padding: 30px 22px; border-radius: 20px; border: 1px solid rgba(23,66,36,0.08); display: flex; flex-direction: column; height: 100%; }
.why-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--beyond-green); margin-bottom: 12px; min-height: 3rem; display: flex; align-items: flex-start; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; text-align: justify; flex-grow: 1; }

/* FLAVORS GRID - KHÁM PHÁ HƯƠNG VỊ */
.flavors-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-family: var(--font-heading); font-size: 2.8rem; color: var(--beyond-green); margin-bottom: 15px; text-transform: uppercase; }
.section-subtitle-cultural { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 40px; font-style: italic; }
.flavors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }

.flavor-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); cursor: pointer; transition: transform 0.3s; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; height: 100%; }
.flavor-card:hover { transform: translateY(-5px); }

/* CHỐNG MỜ VÀ ĐỊNH HÌNH LẠI ẢNH HƯƠNG VỊ Vừa vặn */
.flavor-img-wrapper { 
    height: 180px; 
    overflow: hidden; 
    background: #f4f4f4; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.flavor-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}
.flavor-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.flavor-info h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--beyond-green); margin-bottom: 15px; min-height: 3rem; display: flex; align-items: flex-start; }
.flavor-info .price { font-weight: bold; font-size: 1.1rem; color: var(--beyond-green); margin-top: auto; padding-top: 10px; display: block; }

/* POPUP DETAILS */
.popup-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); display:none; justify-content:center; align-items:center; z-index:99999; padding: 20px; }
.popup-content { background:#fff; width:100%; max-width:600px; padding:40px 30px; border-radius:24px; position:relative; max-height: 90vh; overflow-y: auto; }
.close-popup-btn { position:absolute; top:20px; right:25px; font-size:2rem; background:none; border:none; cursor:pointer; color: #888; }
.popup-content h3 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--beyond-green); margin-bottom: 15px; }
.pop-description { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }
.tabs-container { display: flex; flex-direction: column; gap: 15px; }
.tab-data { padding: 14px 18px; background: var(--bg-organic); border-radius: 12px; font-size: 0.95rem; }
.tab-data strong { color: var(--beyond-green); display: block; margin-bottom: 6px; }
.cooking-box { border-left: 4px solid var(--beyond-green); }
.alert-box { border-left: 4px solid #f43f5e; background: #fff1f2; }
.alert-box strong { color: #e11d48; }

/* FAQ MARQUEE RIVER */
.faq-river-section { padding: 80px 0; background: #dadfd9; overflow: hidden; border-top: 1px solid rgba(23,66,36,0.1); border-bottom: 1px solid rgba(23,66,36,0.1); }
.river-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 45px; width: 100vw; }
.river-track { display: flex; width: max-content; gap: 15px; }
.to-left { animation: scrollLeft 38s linear infinite; }
.to-right { animation: scrollRight 38s linear infinite; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.faq-btn {
    background: #ffffff; border: 2px solid var(--beyond-green); color: var(--beyond-green);
    padding: 12px 24px; border-radius: 50px; font-family: var(--font-body);
    font-size: 0.9rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.2s ease;
}
.faq-btn:hover { background: var(--beyond-green); color: #ffffff; transform: scale(1.03); }

.faq-answer-display {
    max-width: 800px; margin: 0 20px; background: #ffffff; border-radius: 20px;
    padding: 30px; min-height: 110px; border: 1px solid rgba(23, 66, 36, 0.1); text-align: center;
    box-shadow: 0 10px 30px rgba(23, 66, 36, 0.08);
}
@media (min-width: 840px) {
    .faq-answer-display { margin: 0 auto; }
}
.answer-placeholder { color: #888; font-style: italic; }
.active-answer { text-align: left; animation: fadeIn 0.4s ease forwards; }
.active-answer h4 { color: var(--beyond-green); font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }
.active-answer p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* FOOTER & PHONE ORDER BUTTON */
.beyond-order-section { background: var(--beyond-green); color: #ffffff; padding: 80px 20px 40px 20px; text-align: center; }
.order-box-content { max-width: 650px; margin: 0 auto; }
.beyond-order-section h2 { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 20px; letter-spacing: -1px; }
.beyond-order-section p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 35px; }

.hotline-btn {
    display: inline-flex; align-items: center; background: #ffffff;
    color: var(--beyond-green); padding: 16px 40px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 1.6rem; text-decoration: none;
    font-weight: bold; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.hotline-btn:hover { background: var(--neon-green); color: var(--beyond-green); transform: translateY(-4px); box-shadow: 0 15px 30px rgba(74, 222, 128, 0.3); }
.sub-delivery { font-size: 0.85rem !important; opacity: 0.6; margin-top: 20px; margin-bottom: 40px; }

.social-divider { width: 100%; max-width: 400px; height: 1px; background: rgba(255,255,255,0.15); margin: 30px auto; }
.social-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; }
.social-icon { color: #ffffff; font-size: 1rem; font-weight: 600; text-decoration: none; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.3); border-radius: 30px; background: rgba(255,255,255,0.03); }
.social-icon:hover { background: #ffffff; color: var(--beyond-green); border-color: #ffffff; }
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 20px; }

/* ĐẢM BẢO THIẾT BỊ DI ĐỘNG KHÔNG BỊ TRÀN CHỮ/TRỒNG LẤN */
@media (max-width: 768px) {
    .brand-title { font-size: 3.2rem; }
    .hero-tagline { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .beyond-order-section h2 { font-size: 2rem; }
    .hotline-btn { font-size: 1.3rem; padding: 12px 30px; }
    .lang-switch-wrapper { top: 15px; right: 15px; padding: 6px 12px; }
}