/* ===== Footer ===== */
.site-footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: clamp(40px, 5vh, 70px) 0 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col {
    flex-shrink: 0;
}

.footer-nav {
    width: clamp(180px, 22vw, 280px);
}

.footer-col h5 {
    color: #fff;
    font-size: clamp(14px, 1.2vw, 18px);
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-nav .nav-links-row {
    display: flex;
    gap: 24px;
}

.footer-nav .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav .nav-links li {
    margin-bottom: 8px;
}

.footer-nav .nav-links li a {
    color: #999;
    text-decoration: none;
    font-size: clamp(12px, 1vw, 15px);
    transition: color 0.3s;
    line-height: 1.6;
}

.footer-nav .nav-links li a:hover {
    color: var(--primary-red-light);
}

.footer-nav .nav-pair {
    display: flex;
    gap: 24px;
}

.footer-nav .nav-pair a {
    flex: 0.2;
}

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

.footer-contact-col .contact-list li {
    font-size: clamp(12px, 1vw, 15px);
    line-height: 2;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-col .contact-list li img {
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.contact-row {
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.contact-row .contact-list {
    flex: 1;
}

.contact-row .social-icons {
    align-self: flex-end;
}

.footer-social-logo {
    margin-bottom: 14px;
}

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

.footer-social-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.social-icons a {
    width: clamp(24px, 2vw, 30px);
    height: clamp(24px, 2vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.15);
}

/* WeChat QR Code Popup */
.wechat-qr-trigger {
    position: relative;
}

.wechat-qr-popup {
    display: none;
    position: fixed;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    z-index: 99999;
}

.wechat-qr-popup img {
    width: 150px;
    height: 150px;
    display: block;
    object-fit: contain;
}

.wechat-qr-trigger:hover .wechat-qr-popup,
.wechat-qr-trigger.show .wechat-qr-popup {
    display: block;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: clamp(11px, 0.9vw, 14px);
    color: #666;
}

.footer-brand {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-main {
        gap: 30px;
        flex-wrap: wrap;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-brand .footer-logo {
        /* width: 190px; */
        max-height: 80px;
        object-fit: contain;
    }

    .footer-brand .footer-brand-name {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 1px;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        flex-direction: column;
        gap: 25px;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    .footer-brand .footer-logo {
        /* width: 190px; */
        max-height: 80px;
        object-fit: contain;
    }

    .footer-brand .footer-brand-name {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 1px;
    }

    .footer-nav-mobile {
        display: none;
    }

    .footer-col {
        width: 100% !important;
    }

    .footer-contact-col h5 {
        display: none;
    }

    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .contact-row .contact-list {
        flex: 1;
    }

    .contact-row .social-icons {
        align-self: flex-start;
    }

    .footer-contact-col .contact-list li {
        font-size: 13px;
        line-height: 1.9;
        margin-bottom: 8px;
    }

    .footer-contact-col .contact-list li img {
        width: 14px;
        height: 14px;
        margin-right: 8px;
        margin-top: 4px;
    }

    .social-icons {
        gap: 10px;
    }

    .footer-social-logo {
        display: none;
    }

    .social-icons a {
        width: 28px;
        height: 28px;
    }

    .wechat-qr-popup img {
        width: 130px;
        height: 130px;
    }

    .site-footer .container {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .footer-contact-col .contact-list li {
        justify-content: flex-start;
    }

    .footer-bottom {
        margin-top: 25px;
        padding: 15px 0;
        font-size: 11px;
        text-align: left;
    }
}
