/* ===================================================================
   BNE Lawyers — Layout: header, menu, chuyển ngôn ngữ, footer, CTA nổi
   =================================================================== */

/* ================================================== HEADER ========= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    transition: background var(--t), box-shadow var(--t), border-color var(--t);
    /* border-bottom: 1px solid transparent; */
}

/* Trang chủ: trong suốt phủ lên hero */
.site-header.is-home {
    background: linear-gradient(180deg, rgba(6, 18, 41, .72) 0%, rgba(6, 18, 41, 0) 100%);
}
/* Trang con + trạng thái cuộn: nền navy đặc */
.site-header.is-inner,
.site-header.is-stuck {
    background: var(--c-primary);
    border-bottom-color: rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-sm);
}
.site-header.is-stuck{padding-bottom: 0;padding-top: 0;}
.site-header.is-stuck .header-right{padding-top: 0;padding-bottom: 0;gap: 0;}
.site-header.is-stuck .header-top{padding-top: 0;display: none !IMPORTANT;}
.header-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-brand {flex: 0 0 auto;padding-top: 10px;padding-bottom: 10px;}
.navbar-brand { display: block; }
.navbar-brand img {height: 120px;width: auto;transition: height var(--t);}
.site-header.is-stuck .navbar-brand img {height: 60px;}

.header-right {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

/* ---- Hàng trên: ngôn ngữ + hotline + CTA ---- */
.header-top {
    align-items: center;
    gap: 18px;
    padding-top: 8px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-white);
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: .01em;
}
.header-phone i { color: var(--c-accent); }
.header-phone:hover { color: var(--c-accent); }

/* ---- Chuyển ngôn ngữ EN | VI ---- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius);
    overflow: hidden;
}
.lang-switch-item {
    padding: 3px 10px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .8);
    transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch-item + .lang-switch-item { border-left: 1px solid rgba(255, 255, 255, .28); }
.lang-switch-item:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }
.lang-switch-item.is-active { background: var(--c-accent); color: var(--c-primary-dark); }

/* ---- Hàng dưới: menu chính ---- */
.header-nav-row {display: flex;align-items: center;gap: 14px;padding-bottom: 0;}

.header-home {
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .8);
}
.header-home:hover, .header-home.is-active { border-color: var(--c-accent); color: var(--c-accent); }

.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.main-nav .menu-item > a {
    display: block;
    padding: 15px 15px;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, .88);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-transform: capitalize;
}
.main-nav .menu-item > a:hover { color: var(--c-white); border-bottom-color: rgba(200, 162, 74, .5); }
.main-nav .menu-item.is-active > a,
.main-nav .menu-item > a.active { color: var(--c-white); border-bottom-color: var(--c-accent); }

.mobile-menu-btn {
    margin-left: auto;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius);
    color: var(--c-white);
    font-size: 1.125rem;
    cursor: pointer;
}

/* Offcanvas — CHỈ áp dụng dưới 992px.
   Trên desktop Bootstrap biến .offcanvas-lg thành khối tĩnh, nếu không giới hạn
   media query thì menu sẽ xếp DỌC ngay trên desktop và đội lệch cả header. */
@media (max-width: 991.98px) {
    .site-nav-shell { background: var(--c-primary); color: var(--c-white); }
    .site-nav-shell .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .site-nav-shell .btn-close { filter: invert(1) grayscale(1); opacity: .8; }
    .mobile-menu-logo img { height: 46px; width: auto; }
    .site-nav-shell .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav-shell .main-nav .menu-item > a {
        padding: 13px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .site-nav-shell .main-nav .menu-item.is-active > a { border-bottom-color: var(--c-accent); }
    .nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
}
@media (min-width: 992px) {
    .nav-actions { display: none; }
}

/* Đẩy nội dung xuống dưới header cố định (trang con) */
.page-body-offset { padding-top: var(--header-h); }

/* ================================================== FOOTER ========= */
.site-footer { background: var(--c-primary-darker); color: rgba(255, 255, 255, .68); }

.footer-main {padding: clamp(44px, 5vw, 50px) 0;padding-bottom: 30px;}

.footer-title {
    font-family: var(--font-base);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    position: relative;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 44px; height: 2px;
    background: var(--c-accent);
}

.footer-brand { margin-bottom: 20px; }
/* Mô tả chân trang (SiteSettingTranslations.FooterDescription) — nằm giữa logo
   và khối thông tin liên hệ. Không có dữ liệu thì literal rỗng, không chiếm chỗ. */
.footer-desc { margin-bottom: 20px; }
.footer-desc p {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
    max-width: 42ch;
}
.footer-logo img { height: 76px; width: auto; }

.footer-contact p {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: var(--fs-small);
    line-height: 1.6;
}
.footer-contact i { color: var(--c-accent); width: 16px; margin-top: 5px; flex: 0 0 16px; }
.footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-contact a:hover { color: var(--c-accent); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: var(--fs-small);
}
.footer-links a::before { content: "\203A"; color: var(--c-accent); line-height: 1.4; }
.footer-links a:hover { color: var(--c-white); }

.footer-fanpage iframe { border-radius: var(--radius); background: rgba(255, 255, 255, .04); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 10px 0;
    font-size: .8125rem;
    text-align: center;
}
.copyright {display: flex;flex-wrap: wrap;gap: 8px 24px;justify-content: center;text-align: center;}
.copyright a { color: rgba(255, 255, 255, .8); }
.copyright a:hover { color: var(--c-accent); }

/* ================================================== CTA NỔI ======== */
.float-cta {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-cta-btn {
    position: relative;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-white);
    box-shadow: var(--shadow);
    transition: transform var(--t-fast), background var(--t-fast);
}
.float-cta-btn:hover { transform: translateY(-2px); color: var(--c-white); }
.float-cta-quote { background: var(--c-accent); color: var(--c-primary-dark); }
.float-cta-quote:hover { background: var(--c-accent-dark); color: var(--c-primary-dark); }
.float-cta-phone { background: var(--c-success); }
/* WhatsApp dung mau thuong hieu #25D366 — day la mau nhan dien, khong lay tu token */
.float-cta-whatsapp { background: #25d366; color: var(--c-white); }
.float-cta-whatsapp:hover { background: #1da851; color: var(--c-white); }
.float-cta-whatsapp i { font-size: 1.375rem; }
.float-cta-text { display: none; }

/* Vòng sóng nhấp nháy quanh nút chính */
.float-cta-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: .55;
    animation: ctaRing 2.2s ease-out infinite;
}
@keyframes ctaRing {
    0%   { transform: scale(1);    opacity: .55; }
    100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .float-cta-ring { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================ THANH CTA DÍNH MOBILE */
/* Trên điện thoại phần lớn khách sẽ bấm gọi chứ không điền form.
   Ẩn hoàn toàn từ 768px trở lên; cụm .float-cta nổi vẫn giữ cho desktop. */
.mobile-cta { display: none; }

@media (max-width: 767.98px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: flex;
        background: var(--c-primary);
        border-top: 1px solid rgba(255, 255, 255, .14);
        box-shadow: 0 -6px 20px rgba(6, 18, 41, .28);
        padding-bottom: 0;
    }
    .mobile-cta-btn {
        flex: 1 1 0;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        padding: 14px 6px;
        font-size: var(--fs-small); font-weight: 600;
        color: var(--c-white);
        border-left: 1px solid rgba(255, 255, 255, .14);
    }
    .mobile-cta-btn:first-child { border-left: 0; }
    .mobile-cta-btn img { width: 18px; height: 18px; }
    .mobile-cta-btn i { font-size: 1.0625rem; }
    .mobile-cta-call { background: var(--c-success); }
    .mobile-cta-book { background: var(--c-accent); color: var(--c-primary-dark); }
    .mobile-cta-whatsapp { background: #25d366; }

    /* Chừa chỗ cho thanh dính, tránh che chân trang */
    body { padding-bottom: 58px; }

    /* Thanh CTA dính đã có Gọi / Đặt lịch / WhatsApp -> cụm nút nổi lặp lại
       y hệt và che mất nội dung. Ẩn hết, CHỈ giữ nút "lên đầu trang". */
    .float-cta-btn { display: none; }
    .float-cta-top {display: inline-flex;bottom: 50px;}

    /* Còn đúng 1 nút nên nhấc vừa đủ khỏi thanh CTA */
    .float-cta { bottom: 70px; }
}
.icon-svg{width: 40px;height: 40px;background-position: center;background-size: contain;background-repeat: no-repeat;}
.svg-passport{background-image: url(../images/passport.svg);}
.svg-people-roof{background-image: url(../images/people-roof.svg);}
.svg-house-chimney{background-image: url(../images/house-building.svg);}
.svg-briefcase{background-image: url(../images/briefcase.svg);}
.svg-scale-balanced{background-image: url(../images/equality.svg);}
.svg-gavel{background-image: url(../images/gavel.svg);}