/* ============================================================== */
/* FOOTER HIỆN ĐẠI & CHUẨN RESPONSIVE                             */
/* ============================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14.5px;
    margin-top: 60px;
}

/* KHỐI TRUST TOP */
.footer-top-trust {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}
.footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff1f2;
    color: #e60012;
    border: 1px solid #fecdd3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-trust-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.footer-trust-item p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* NỘI DUNG CHÍNH FOOTER */
.footer-main-content {
    padding: 48px 20px 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.35fr;
    gap: 32px;
}
.footer-brand-header {
    margin-bottom: 14px;
}
.footer-logo {
    max-height: 42px;
    object-fit: contain;
}
.footer-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}
.footer-logo-text span {
    font-size: 11px;
    background: #e60012;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
}
.footer-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-model-badge {
    background: #f1f5f9;
    border-left: 3px solid #e60012;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.footer-model-badge svg {
    color: #e60012;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 8px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #e60012;
    border-radius: 2px;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: #e60012;
    transform: translateX(3px);
}

/* THÔNG TIN LIÊN HỆ CỘT 4 */
.contact-line {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13.5px;
}
.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-icon.phone-icon {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #16a34a;
}
.contact-line .lbl {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.contact-line .phone-link {
    font-size: 17px;
    font-weight: 800;
    color: #e60012;
    text-decoration: none;
    font-family: monospace;
}
.service-area-text {
    margin: 2px 0 0;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.45;
}

/* BOTTOM BAR */
.footer-bottom-bar {
    border-top: 1px solid #e2e8f0;
    padding: 16px 0;
    background: #f8fafc;
    font-size: 13px;
    color: #64748b;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
}
.footer-bottom-links a:hover {
    color: #e60012;
}

/* ============================================================== */
/* RESPONSIVE: IPAD & MOBILE                                      */
/* ============================================================== */

/* iPad Ngang & Tablet Lớn (1024px - 1199px) */
@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
        gap: 24px;
    }
}

/* iPad Dọc & Tablet Vừa (768px - 1023px) */
@media (max-width: 1023px) {
    .footer-trust-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    .footer-main-content {
        padding: 36px 16px 28px;
    }
}

/* Di động (< 768px) */
@media (max-width: 767px) {
    .footer-trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-main-content {
        padding: 28px 14px 20px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    .footer-bottom-links {
        justify-content: center;
    }
}

/* ============================================================== */
/* THANH BOTTOM BAR DI ĐỘNG & FLOATING BUTTON DESKTOP             */
/* ============================================================== */

/* 1. MÁY TÍNH & TABLET LỚN (≥ 768px): FLOATING ACTION BUTTON */
.mobile-bottom-bar {
    display: none;
}

.desktop-fab-wrap {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9990;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
}

.fab-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(230, 0, 18, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
    outline: none;
}

.fab-main-btn svg {
    transition: transform 0.3s ease;
}

.fab-main-btn:hover {
    background: var(--primary-red-hover);
    transform: scale(1.06);
}

.desktop-fab-wrap.open .fab-main-btn svg {
    transform: rotate(135deg);
}

/* Menu sổ lên trên của Desktop FAB */
.fab-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-fab-wrap.open .fab-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu-item a,
.fab-menu-item button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    border-right: 3px solid var(--primary-red);
}

.fab-menu-item a:hover,
.fab-menu-item button:hover {
    background: #f8fafc;
    color: var(--primary-red);
    transform: translateX(-4px);
}

.fab-menu-item .fab-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff1f2;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 2. TRÊN DI ĐỘNG (< 768px): BOTTOM NAVIGATION BAR */
@media (max-width: 767px) {
    .desktop-fab-wrap {
        display: none !important;
    }

    body {
        padding-bottom: 64px !important; /* Tránh che khuất nội dung trang */
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        z-index: 9995;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
    }

    .m-bar-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px 0;
        gap: 3px;
        transition: color 0.15s;
    }

    .m-bar-btn svg {
        width: 20px;
        height: 20px;
    }

    .m-bar-btn:hover,
    .m-bar-btn:active {
        color: var(--primary-red);
    }

    /* Nút tròn to ở giữa nhô cao */
    .m-bar-center-wrap {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .m-center-btn {
        position: absolute;
        top: -24px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: var(--primary-red);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(230, 0, 18, 0.45);
        border: 4px solid #ffffff;
        text-decoration: none;
        cursor: pointer;
        animation: pulseRing 2s infinite;
    }

    .m-center-btn svg {
        width: 24px;
        height: 24px;
    }

    .m-center-label {
        font-size: 11px;
        font-weight: 700;
        color: var(--primary-red);
        margin-top: 32px;
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 0, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 18, 0);
    }
}

/* POPUP CHỌN GỌI / ZALO NHANH TRÊN DI ĐỘNG */
.contact-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.contact-sheet-box {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 22px 20px 30px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
    animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.contact-sheet-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

.contact-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-contact-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.1s ease;
}

.btn-contact-action:active {
    transform: scale(0.98);
}

.btn-contact-call {
    background: #e60012;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
}

.btn-contact-zalo {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-contact-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
    cursor: pointer;
    margin-top: 4px;
}
