:root {
    --primary-color: #1b5e20;   /* Xanh lục bảo đậm - Nông sản xuất khẩu chuẩn quốc tế */
    --secondary-color: #ff6d00; /* Cam chín - Năng lượng, tươi ngon, năng suất */
    --gold-color: #ffb300;      /* Vàng nhấn uy tín danh hiệu */
    --dark-color: #0f172a;      /* Chữ chính */
    --light-bg: #f8fafc;        /* Nền nhạt */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-color);
    line-height: 1.6;
}

/* --- 1. TOPBAR & NAVIGATION --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}
.top-bar .info span { margin-right: 15px; }

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa ảnh logo và chữ */
}

/* Định dạng cho ảnh Logo nhỏ */
.logo-img {
    height: 38px; /* Giới hạn chiều cao vừa vặn dòng menu */
    width: auto;
    object-fit: contain;
    border-radius: 6px; /* Bo góc nhẹ cho logo thêm tinh tế */
}

.logo span { color: var(--secondary-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, background 0.3s;
}
.btn-contact:hover {
    background: #e65100;
    transform: translateY(-2px);
}

/* --- 2. HERO BANNER --- */
.hero {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.08) 0%, rgba(255, 109, 0, 0.04) 100%);
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 2rem;
}

/* --- 3. SECTION GENERAL --- */
.section-padding {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 3px;
    background: var(--secondary-color);
}

.section-title p {
    color: #64748b;
    margin-top: 10px;
}

/* --- 4. NĂNG LỰC CỐT LÕI (NHÀ XƯỞNG & KHO LẠNH) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-card {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* --- 5. DANH MỤC NÔNG SẢN ĐỌC DỮ LIỆU TỰ ĐỘNG --- */
.product-section {
    background: var(--light-bg);
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid #cbd5e1;
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.p-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .p-img-element {
    transform: scale(1.08);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--dark-color);
}

.product-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 12px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

/* --- 6. HÌNH ẢNH NHÀ XƯỞNG THỰC TẾ --- */
.farm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}
.gallery-item:hover img { transform: scale(1.08); }

/* --- 7. THỊ TRƯỜNG & CAM KẾT VÀNG --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.features-left {
    background: linear-gradient(rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.9)), url('https://images.unsplash.com/photo-1595855759920-86582396756a?q=80&w=400');
    background-size: cover;
    padding: 3rem 2rem;
    border-radius: 24px;
    color: var(--white);
    text-align: center;
}

.features-left h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.features-left p { font-size: 0.95rem; opacity: 0.9; }

.features-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 15px;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 16px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.feature-text h4 { margin-bottom: 5px; color: var(--dark-color); }
.feature-text p { font-size: 0.85rem; color: #64748b; }

/* --- 8. FOOTER DOANH NGHIỆP B2B --- */
footer {
    background: #0b1320;
    color: #94a3b8;
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p { font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-col i { color: var(--secondary-color); margin-top: 3px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }

.map-placeholder {
    width: 100%; height: 180px;
    background: #14213d; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #1e293b; color: #475569;
}

.copyright {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .process-grid, .features-grid, .features-right, .footer-grid, .farm-gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.2rem; }
    .navbar { flex-direction: column; gap: 15px; }
}
/* --- BỘ CHUYỂN ĐỔI NGÔN NGỮ LÁ CỜ --- */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 15px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.lang-btn img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--secondary-color);
    background-color: rgba(255, 109, 0, 0.1);
}

@media (max-width: 992px) {
    .lang-switcher {
        margin: 10px 0;
    }
}