/* ===================================================
   1. BIẾN MÀU SẮC & CẤU TRÚC NỀN TẢNG
=================================================== */
:root {
    --law-primary: #0a2540;   /* Xanh Navy chủ đạo */
    --law-accent: #c5a059;    /* Vàng Kim uy tín */
    --law-dark: #1f2937;
    --law-light: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--law-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===================================================
   2. NÚT BẤM (BUTTONS)
=================================================== */
.btn-gold {
    background: var(--law-accent);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-gold:hover {
    background: #b38f48;
    transform: translateY(-1px);
}

/* ===================================================
   3. THANH ĐIỀU HƯỚNG TRÊN CÙNG (TOPBAR)
=================================================== */
.top-bar {
    background: #06192c;
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
    color: var(--law-accent);
    text-decoration: none;
}

/* ===================================================
   4. HEADER & MENU ĐIỀU HƯỚNG CHÍNH
=================================================== */
.main-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1000;
}

.header-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding .brand-name {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--law-primary);
    line-height: 1.2;
}

.site-branding .brand-sub {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Menu máy tính (Desktop) */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul.primary-menu-list {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.main-navigation ul.primary-menu-list li {
    white-space: nowrap;
}

.main-navigation ul.primary-menu-list li a {
    color: var(--law-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-navigation ul.primary-menu-list li a:hover,
.main-navigation ul.primary-menu-list li.current-menu-item > a {
    color: var(--law-accent);
}

/* Nút CTA góc phải Desktop */
.header-cta {
    flex-shrink: 0;
}

.header-cta .btn {
    white-space: nowrap;
    display: inline-block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

/* Nút Hamburger (Mặc định ẩn trên Desktop) */
.mobile-toggle-btn {
    display: none !important;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    outline: none;
}

.mobile-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--law-primary);
    border-radius: 2px;
}

/* ===================================================
   5. CHÂN TRANG (FOOTER)
=================================================== */
.footer-widgets {
    background: var(--law-primary);
    color: #cbd5e1;
    padding: 50px 0 30px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: var(--law-accent);
}

.footer-bottom {
    background: #06192c;
    color: #94a3b8;
    padding: 20px 0;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================================
   6. THANH GỌI NỔI MOBILE (STICKY ACTIONS)
=================================================== */
.mobile-quick-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 99999;
}

.mobile-quick-actions .quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.mobile-quick-actions .btn-call {
    background: #dc2626;
}

.mobile-quick-actions .btn-zalo {
    background: #0284c7;
}

/* ===================================================
   7. RESPONSIVE CHO MÀN HÌNH NHỎ (DƯỚI 992PX)
=================================================== */
@media screen and (max-width: 992px) {
    .header-cta,
    .top-bar {
        display: none !important;
    }

    .mobile-toggle-btn {
        display: flex !important;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #e2e8f0;
        z-index: 9999;
    }

    .main-navigation.is-open {
        display: block !important;
    }

    .main-navigation ul.primary-menu-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 10px 20px !important;
    }

    .main-navigation ul.primary-menu-list li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .main-navigation ul.primary-menu-list li a {
        display: block;
        padding: 12px 0;
        font-size: 14px;
    }

    .mobile-quick-actions {
        display: flex !important;
    }

    body {
        padding-bottom: 50px !important;
    }
}