/**
 * Footer CSS - LightUI Child Theme (Modern Dark Style)
 * Thiết kế chuẩn xác theo ảnh: Nền đen tối giản, Logo trắng + Menu ngang, Divider mảnh, Copyright + Socials
 */

:root {
    --footer-bg: #0f0f0f;
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.65);
    --footer-border: rgba(255, 255, 255, 0.15);
    --footer-hover: #ef4444;
}

/* ==========================================================================
   1. KHUNG CHÍNH FOOTER
   ========================================================================== */
.lmt-footer {
    background-color: var(--footer-bg, #0f0f0f);
    color: var(--footer-text, #ffffff);
    padding: 48px 0 32px 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lmt-footer *,
.lmt-footer *::before,
.lmt-footer *::after {
    box-sizing: border-box;
}

.lmt-footer .lmt-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. TẦNG TRÊN (TOP ROW): LOGO TRÁI - MENU NGANG PHẢI
   ========================================================================== */
.lmt-footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 28px;
}

/* Logo Footer */
.lmt-footer-brand {
    flex-shrink: 0;
}

.lmt-footer-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.lmt-footer-logo-img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.lmt-footer-logo-text {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.lmt-footer-logo-text:hover {
    opacity: 0.85;
}

/* Menu Ngang Footer */
.lmt-footer-nav {
    display: flex;
    align-items: center;
}

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

.lmt-footer-nav-list li {
    margin: 0;
    padding: 0;
}

.lmt-footer-nav-list li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
    padding: 4px 0;
}

.lmt-footer-nav-list li a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. ĐƯỜNG KẺ PHÂN CÁCH (DIVIDER)
   ========================================================================== */
.lmt-footer-divider {
    height: 1px;
    background-color: var(--footer-border, rgba(255, 255, 255, 0.15));
    width: 100%;
    margin: 0;
}

/* ==========================================================================
   4. TẦNG DƯỚI (BOTTOM ROW): COPYRIGHT TRÁI - SOCIAL ICONS PHẢI
   ========================================================================== */
.lmt-footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    gap: 20px;
}

.lmt-footer-copyright p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--footer-text-muted, rgba(255, 255, 255, 0.65));
    line-height: 1.6;
}

.lmt-footer-socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lmt-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lmt-footer-social-link .lmt-footer-social-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.lmt-footer-social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* ==========================================================================
   5. RESPONSIVE CHO FOOTER
   ========================================================================== */
@media (max-width: 768px) {
    .lmt-footer {
        padding: 36px 0 24px 0;
    }

    .lmt-footer-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 24px;
    }

    .lmt-footer-nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .lmt-footer-bottom-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-top: 20px;
    }
}

/* ==========================================================================
   6. CỤM NÚT LIÊN HỆ NỔI (STICKY / FLOATING CONTACTS)
   ========================================================================== */
.lmt-sticky-contacts {
    position: fixed;
    bottom: var(--lmt-sticky-bottom, 30px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lmt-sticky-contacts.pos-right {
    right: 24px;
}

.lmt-sticky-contacts.pos-left {
    left: 24px;
}

.lmt-sticky-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.lmt-sticky-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.lmt-btn-phone {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: lmtPulsePhone 2.2s infinite;
}

.lmt-btn-zalo {
    background-color: #0068ff;
}

.lmt-btn-fb {
    background-color: #1877f2;
}

.lmt-btn-msg {
    background: transparent;
}

/* Tooltip nhãn hover */
.lmt-sticky-tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lmt-sticky-contacts.pos-right .lmt-sticky-tooltip {
    right: calc(100% + 12px);
}

.lmt-sticky-contacts.pos-left .lmt-sticky-tooltip {
    left: calc(100% + 12px);
}

.lmt-sticky-btn:hover .lmt-sticky-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes lmtPulsePhone {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (max-width: 640px) {
    .lmt-sticky-contacts {
        bottom: 20px;
    }
    .lmt-sticky-contacts.pos-right {
        right: 16px;
    }
    .lmt-sticky-contacts.pos-left {
        left: 16px;
    }
    .lmt-sticky-btn {
        width: 44px;
        height: 44px;
    }
    .lmt-sticky-tooltip {
        display: none;
    }
}
