/* =========================================================
   footer.css
   Style cho Footer — CHỈ còn khối .footer-top (logo, giới thiệu
   công ty, bản đồ, "Về chúng tôi", "Sản phẩm", "Thông tin liên
   hệ") + copyright. Đã bỏ hẳn khối .footer-links-extra (Kiến
   thức giao dịch / Kiến thức đầu tư / Tải app).
   ========================================================= */

.image-placeholder {
    color: white;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 24px;
    min-height: 120px
}

footer {
    background: var(--blue);
    color: white;
}

.footer-top {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr;
    gap: 28px
}

.footer-brand {
    margin-bottom: 12px
}

.footer-top p {
    font-size: 13px
}

.footer-top h3 {
    font-size: 18px;
    font-weight: 900;
}

.footer-top > div > a:not(.brand) {
    color: white;
    text-decoration: none;
    display: block;
    margin: 12px 0;
    font-size: 14px;
}

.footer-top > div > a:hover {
    color: var(--cyan);
}

.footer-brand .logo {
    border-color: #78c8f0;
    color: #d7edff
}

.contact-pill {
    font-size: 15px;
    display: block;
    margin: 12px 0;
    padding: 10px 14px;
    background: #1db6ee;
    color: #fff;
    text-decoration: none;
    border-radius: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

    .contact-pill:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 20px rgba(29,182,238,.35);
        background: #12aee8;
    }

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

    .social-icons a {
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
        background: #fff;
        transition: transform .3s ease, box-shadow .3s ease;
    }

        .social-icons a:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,.18);
        }

    .social-icons img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.map {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
}

.copyright {
    background: #5479ad;
    text-align: center;
    padding: 14px;
    font-size: 13px
}

/* ============ FLOATING ACTIONS (Zalo / Phone) ============ */
.floating-actions {
    position: fixed;
    left: 20px;
    bottom: 26px;
    z-index: 10;
    display: grid;
    gap: 12px
}

.float-button {
    position: relative;
    width: 59px;
    height: 59px;
    border-radius: 50%;
    box-shadow: 0 4px 12px #073b7830;
    display: grid;
    place-items: center;
    text-decoration: none;
    text-align: center;
    color: #126cf0;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    animation: shake 2s infinite;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .float-button:hover {
        animation: none;
        transform: scale(1.18) translateY(-4px);
        box-shadow: 0 10px 26px #073b7850;
    }

    .float-button::before {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        filter: blur(8px);
        opacity: .5;
        z-index: -1;
        animation: glow-pulse 2.2s ease-in-out infinite;
    }

    .float-button img {
        width: 95%;
        height: 95%;
        object-fit: contain;
    }

.float-zalo {
    background: #eaf4ff;
}

    .float-zalo::before {
        background: #0180ff;
    }

.float-phone {
    background: #ffecec;
}

    .float-phone::before {
        background: #2ceb1e;
    }

@keyframes glow-pulse {
    0%,100% {
        transform: scale(1);
        opacity: .35;
    }

    50% {
        transform: scale(1.15);
        opacity: .65;
    }
}

@keyframes shake {
    0%,78%,100% {
        transform: rotate(0) scale(1)
    }

    82% {
        transform: rotate(-20deg) scale(1.08)
    }

    86% {
        transform: rotate(20deg) scale(1.08)
    }

    90% {
        transform: rotate(-16deg) scale(1.05)
    }

    94% {
        transform: rotate(14deg) scale(1.05)
    }

    98% {
        transform: rotate(-6deg) scale(1)
    }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 26px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: #87b9ff;
    color: white;
    font-size: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .25s;
    cursor: pointer;
    z-index: 10
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: none
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Ảnh trong khung .map: hiển thị đủ ảnh, không bị cắt */
.map img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 1200px) {
    .footer-top {
        gap: 30px;
    }
}

/* ---- Tablet: cột thương hiệu full-width, 2 cột còn lại nằm cạnh nhau ---- */
@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 28px;
        padding: 36px 0;
    }

        .footer-top > div:first-child {
            grid-column: 1 / -1;
        }
}

/* ---- Mobile lớn: 1 cột ---- */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 0;
    }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .footer-top {
        gap: 24px;
        padding: 28px 0;
    }

        .footer-top h3 {
            font-size: 16px;
            margin: 0 0 6px;
        }

        .footer-top p {
            font-size: 12.5px;
            line-height: 1.6;
        }

        .footer-top > div > a:not(.brand) {
            margin: 10px 0;
            font-size: 13.5px;
        }

    .contact-pill {
        font-size: 14px;
        padding: 10px 12px;
        margin: 10px 0;
    }

    .map {
        border-radius: 12px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .copyright {
        font-size: 12px;
        padding: 14px 70px; /* chừa chỗ cho nút nổi Zalo/Phone và back-to-top */
        line-height: 1.5;
    }

    .floating-actions {
        left: 10px;
        bottom: 15px;
    }

    .float-button {
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        right: 13px;
        bottom: 16px;
        width: 47px;
        height: 47px;
        font-size: 28px;
    }
}

/* ---- Mobile nhỏ ---- */
@media (max-width: 400px) {
    .social-icons a {
        width: 32px;
        height: 32px;
    }

    .copyright {
        padding: 12px 60px;
    }
}