/* =========================================================
   1. DESIGN SYSTEM & VARIABLES
========================================================= */
:root {
    --primary: #1a8a1a;     /* Xanh lá thương hiệu */
    --dark: #2b303a;        /* Xám đậm chữ/footer */
    --light-bg: #f4f6f8;    /* Nền section nhạt */
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 4px 14px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
    --danger: #ef4444;
    --gold: #f5c542;
    --text-muted: #555555;
}

/* =========================================================
   2. RESET & TYPOGRAPHY
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Độ đậm vừa phải */
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* =========================================================
   3. UTILITIES & LAYOUT
========================================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white) !important; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.text-center { text-align: center; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #157315;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 138, 26, 0.2);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Check Lists */
.check-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 16px;
}
.check-list i { color: var(--primary); margin-top: 5px; }
.check-list.danger-list i { color: var(--danger); }

/* =========================================================
   4. HEADER & NAV
========================================================= */
.topbar {
    background: var(--dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 0;
    text-align: center;
}

.header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-box {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-box img {
    max-height: 40px; /* Cố định chiều cao logo */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap; /* Chống rớt dòng tuyệt đối */
}

.nav-item {
    position: relative;
    font-weight: 600;
    padding: 28px 0;
}

.nav-item > a {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover > a, .nav-item.active > a {
    color: var(--primary);
}

.btn-contact-header {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 28px !important;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-contact-header:hover {
    background: #157315;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid #eee;
    white-space: normal; /* Trả lại wrap cho chữ bên trong dropdown */
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    padding: 12px 25px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    border-left: 3px solid transparent;
}

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* =========================================================
   5. COMPONENT: CARD GRID DỊCH VỤ
========================================================= */
.section-title { margin-bottom: 50px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    border: 1px solid #eaeaea;
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(26, 138, 26, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 138, 26, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 24px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.service-card-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.service-card-link:hover { gap: 8px; }

/* =========================================================
   6. TRANG CHỦ (SPECIFIC SECTIONS)
========================================================= */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f0 100%);
}

.hero-subtitle {
    display: inline-block;
    background: rgba(26, 138, 26, 0.1);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 auto 35px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.about-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid #eaeaea;
    box-shadow: var(--shadow);
}

/* =========================================================
   7. FOOTER
========================================================= */
.footer {
    background: var(--dark);
    color: #a0a5af;
    padding: 80px 0 30px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px; /* Logo vuông */
    margin-bottom: 20px;
    display: block;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0a5af; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-links i { font-size: 12px; }

.footer-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    align-items: flex-start;
}
.footer-info i { color: var(--primary); margin-top: 4px; font-size: 16px; }
.footer-info a { color: #a0a5af; }
.footer-info a:hover { color: var(--white); }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%; color: #a0a5af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

/* Floating Contact */
.floating-contact {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 15px; z-index: 999;
}
.float-btn {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.3); font-size: 1.2rem;
}
.float-btn:hover { transform: scale(1.1); color: var(--white); }
.zalo-btn { background: #0068FF; }
.call-btn { background: var(--primary); }

/* Animations */
.animate-fade-up {
    opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   8. RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; padding: 30px 20px;
        transition: 0.4s; align-items: flex-start; overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-item { padding: 10px 0; width: 100%; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; width: 100%; display: none; border: none;
        border-left: 2px solid #eee; margin-top: 10px; padding: 10px 0;
    }
    .nav-item.active .dropdown { display: block; }
    
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .btn-contact-header { display: inline-block; text-align: center; margin-top: 10px; }
}
/* =========================================================
   9. FORM LIÊN HỆ
========================================================= */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--dark);
    background-color: #f9fafb;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 138, 26, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.w-100 {
    width: 100%;
}

.map-wrapper {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: var(--shadow);
    display: flex;
}
/* Khi menu mở, ép cái icon 3 gạch biến thành dấu X bằng CSS */
.menu-toggle.open .fa-bars::before {
    content: "\f00d" !important; /* Mã Unicode của icon fa-times (Dấu X) */
}