/* =========================================
   1. CẤU HÌNH BIẾN MÀU SẮC & FONT CHỮ
========================================= */
:root {
    --bg-deep-green: #06241a;
    --accent-gold: #d4af37;
    --text-light: #ffffff;
    --text-muted: #d1d8d5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Quicksand', sans-serif;
    --font-script: 'Dancing Script', cursive; /* Thêm dòng này */
    
    --neon-glow: 0 0 15px rgba(212, 175, 55, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
}

/* =========================================
   2. THIẾT LẬP CƠ BẢN (RESET & BASE)
========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-deep-green); 
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Ngăn cuộn ngang ngoài ý muốn */
}

.container { 
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 80px 20px; 
}

/* =========================================
   3. HEADER & LOGO
========================================= */
.main-header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 10;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Tránh block click ở phần dưới */
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.logo-img {
    height: auto;
    max-height: 200px; /* Tăng từ 120px lên 160px để logo to và rõ hơn */
    width: auto;
    max-width: 90%;
    filter: drop-shadow(0px 4px 15px rgba(0,0,0,0.8));
    transition: all 0.3s ease;
    pointer-events: auto;
}

/* =========================================
   4. HERO SECTION (ẢNH NỀN & NÚT NEON)
========================================= */
.hero-section {
    height: 100vh;
    background: url('../images/background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Lớp phủ xanh lá đậm mờ lên ảnh nền */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 36, 26, 0.65); 
}

.hero-content { position: relative; z-index: 2; margin-top: 80px; }

.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 2px 4px 15px rgba(0,0,0,0.9);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* Định dạng riêng cho chữ Định Tâm Thảo viết tay */
.brand-name-script {
    font-family: var(--font-script);
    font-size: 5.5rem; /* Font viết tay cần to hơn để dễ đọc */
    color: var(--accent-gold);
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Định dạng cho 3 dòng Tagline */
.brand-tagline {
    font-size: 1.6rem; /* Tăng kích thước chữ */
    font-weight: 600;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.9); /* Đổ bóng đậm hơn để chữ rõ trên nền */
    color: var(--text-light);
}

/* Làm nổi bật dòng chữ giữa "100% từ thiên nhiên" */
.brand-tagline .highlight-gold {
    color: var(--accent-gold);
    font-size: 1.8rem;
    display: inline-block;
    margin: 5px 0;
}

/* NÚT MUA HÀNG NỔI BẬT */
.cta-group { display: flex; gap: 20px; justify-content: center; }

.btn-cta {
    display: inline-block;
    padding: 16px 35px;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--neon-glow);
}

.btn-cta:hover { 
    background: var(--accent-gold); 
    color: var(--bg-deep-green); 
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

/* =========================================
   5. CÁC SECTION NỘI DUNG (CÂU CHUYỆN, NGUYÊN LIỆU)
========================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
    text-align: center;
}

.story-text { 
    font-size: 1.25rem; 
    text-align: center; 
    line-height: 1.8; 
    color: var(--text-muted);
}

/* LƯỚI NGUYÊN LIỆU & HIỆU ỨNG HOVER */
.ingredients-wrapper {
    width: 100%;
    overflow: hidden; /* Quan trọng cho Swiper mobile */
}

/* Hiển thị Grid mặc định cho Desktop */
@media (min-width: 769px) {
    .ingredients-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .swiper-pagination { display: none; } /* Ẩn phân trang trên máy tính */
}

.ingredient-card {
    background: var(--glass-bg);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s ease;
    cursor: default;
}

.ingredient-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.06);
}

.ingredient-card h3 { 
    color: var(--accent-gold); 
    margin-bottom: 15px; 
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.ingredient-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================
   6. HƯỚNG DẪN SỬ DỤNG & FOOTER
========================================= */
.usage-box {
    background: rgba(212, 175, 55, 0.05);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
    border-right: 4px solid var(--accent-gold);
    text-align: center;
    font-size: 1.3rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

/* =========================================
   6. ĐỊNH DẠNG CHI TIẾT FOOTER MỚI
========================================= */
.footer-section { 
    background: #03120d; /* Màu xanh đen đậm hơn nền chính để chốt trang */
    padding: 60px 0 30px; 
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container-box {
    padding: 0 20px !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Chia footer làm 2 phần cân đối */
    gap: 50px;
    margin-bottom: 40px;
    text-align: left;
}

/* Khối thương hiệu */
.footer-block h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 15px;
}

.brand-script-footer {
    font-family: var(--font-script);
    font-size: 2.4rem;
    color: var(--accent-gold);
    display: inline-block;
    margin-top: 5px;
}

.footer-commitment {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
}

/* Khối liên hệ */
.footer-block h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.contact-list li i {
    color: var(--accent-gold);
    margin-top: 5px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-list li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list li a:hover {
    color: var(--accent-gold);
}

/* KHỐI MẠNG XÃ HỘI VÀ BẢN QUYỀN PHÍA DƯỚI CÙNG */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

/* Hiệu ứng hover riêng cho từng nút mạng xã hội */
.social-link:hover {
    transform: translateY(-4px);
    color: #000;
}

.facebook-btn:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.5); }
.tiktok-btn:hover { background: #ffffff; border-color: #ffffff; color: #000; box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
.youtube-btn:hover { background: #ff0000; border-color: #ff0000; color: #fff; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Cập nhật lại responsive cho mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột đứng trên điện thoại */
        gap: 35px;
        text-align: center;
    }
    .footer-commitment {
        margin: 0 auto;
    }
    .contact-list li {
        justify-content: center;
    }
}

.footer-section strong { color: var(--accent-gold); }

.footer-cta {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================
   7. NÚT LIÊN HỆ CỐ ĐỊNH (FAB)
========================================= */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-sub {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-sub.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.fab-item:hover { transform: scale(1.1); }
.fab-item.phone { background: #00a8ff; }
.fab-item.zalo { background: #0068ff; }
.fab-item.facebook { background: #1877f2; }

.fab-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    color: var(--bg-deep-green);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main:hover { transform: scale(1.08); }

/* =========================================
   8. RESPONSIVE (TỐI ƯU MOBILE TỪ 768px TRỞ XUỐNG)
========================================= */
@media (max-width: 768px) {
    .logo-img { max-height: 100px; } /* Logo trên mobile cũng to lên tương ứng */
    .main-title { font-size: 2.2rem; }
    .brand-name-script { font-size: 3.8rem; }
    
    .brand-tagline { font-size: 1.25rem; line-height: 1.6; }
    .brand-tagline .highlight-gold { font-size: 1.4rem; }
    
    .cta-group, .footer-cta { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .btn-cta { 
        width: 85%; 
        margin: 8px 0; 
        text-align: center; 
    }

    .section-title { font-size: 2.2rem; }
    .story-text { font-size: 1.1rem; text-align: justify; }

    /* Fix layout Swiper ngang cho thẻ Nguyên Liệu trên Mobile */
    .ingredients-grid { 
        display: flex; 
        gap: 0; 
    }
    
    .ingredient-card { 
        border: 1px solid rgba(212, 175, 55, 0.3);
        padding: 30px 20px;
    }

    /* Định dạng dấu chấm chuyển slide */
    .swiper-pagination {
        position: relative;
        margin-top: 20px;
    }
    .swiper-pagination-bullet { background: #fff; opacity: 0.5; }
    .swiper-pagination-bullet-active { background: var(--accent-gold); opacity: 1; }

    .fab-container { bottom: 20px; right: 20px; }
    .fab-main { width: 55px; height: 55px; font-size: 24px; }
    .fab-item { width: 45px; height: 45px; font-size: 20px; }
}


/* =========================================
   9. POPUP TÀI LIỆU & ACCORDION
========================================= */
/* Lớp phủ đen mờ toàn màn hình */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

/* Khung nội dung Popup */
.modal-content {
    background: var(--bg-deep-green);
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 90%; max-width: 600px;
    max-height: 85vh;
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

/* Nút tắt X */
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent; border: none;
    color: var(--text-muted);
    font-size: 24px; cursor: pointer;
    transition: color 0.3s;
}
.close-btn:hover { color: var(--accent-gold); }

/* Giao diện Thẻ xếp (Accordion) */
.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; margin-bottom: 15px;
    overflow: hidden; text-align: left;
}

.accordion-header {
    width: 100%; padding: 15px 20px;
    background: transparent; border: none;
    color: var(--text-light);
    font-family: var(--font-body); font-size: 1.1rem; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: background 0.3s;
}

.accordion-header:hover { background: rgba(212, 175, 55, 0.1); }
.accordion-header i { transition: transform 0.3s; color: var(--accent-gold); }
.accordion-header.active i { transform: rotate(180deg); }

/* Danh sách file bên trong */
.accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.3);
}

.doc-file-item {
    padding: 15px 20px; border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center; gap: 15px;
}

.doc-file-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; flex-grow: 1; }

.download-btn {
    background: rgba(212, 175, 55, 0.15); color: var(--accent-gold);
    border: 1px solid var(--accent-gold); padding: 6px 12px;
    border-radius: 4px; text-decoration: none; font-size: 0.85rem; font-weight: bold;
    white-space: nowrap; transition: all 0.3s;
}
.download-btn:hover { background: var(--accent-gold); color: #000; }