﻿
/* =========================================
           BASE
        ========================================= */
body {
    margin: 0 !important;
}

.body-content {
    min-height: calc(100vh - 220px);
}

/* =========================================
           FOOTER - WARM NEUTRAL
        ========================================= */
.footer-section {
    --ft-bg: #F8F7F4;
    --ft-surface: #FFFFFF;
    --ft-border: #E7DED2;
    --ft-border-strong: #D9CFBF;
    --ft-text: #243247;
    --ft-text-soft: #6F7C89;
    --ft-text-muted: #8E877F;
    --ft-accent: #173765;
    --ft-dot: #90A6BE;
    --ft-social-bg: #EEE5D9;
    --ft-social-icon: #334B67;
    --ft-side: clamp(12px, 2vw, 24px);
    --ft-gap: clamp(14px, 2vw, 28px);
    --ft-divider-gap: clamp(14px, 2vw, 26px);
    --ft-title-size: clamp(13px, 1.1vw, 18px);
    --ft-text-size: clamp(11px, .92vw, 15px);
    --ft-copy-size: clamp(11px, .86vw, 14px);
    --ft-qr: clamp(58px, 6.2vw, 88px);
    --ft-social: clamp(34px, 3vw, 46px);
    --ft-social-icon-size: clamp(14px, 1.15vw, 18px);
    --ft-icon-pink: #FF5D90;
    position: relative;
    background: var(--ft-bg);
    color: var(--ft-text);
    padding: clamp(18px, 2.6vw, 30px) 0 clamp(8px, 1.4vw, 14px);
    overflow: hidden;
    border-top: 1px solid rgba(31, 41, 55, .05);
}

    .footer-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 18% 20%, rgba(23, 55, 101, .03), transparent 28%), radial-gradient(circle at 78% 72%, rgba(109, 125, 143, .04), transparent 22%);
        pointer-events: none;
    }

.container_footer {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--ft-side);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr .9fr;
    gap: var(--ft-gap);
    align-items: start;
    padding-bottom: clamp(10px, 1.2vw, 16px);
    border-bottom: 1px solid var(--ft-border);
}

.footer-col {
    min-width: 0;
}

    .footer-col.with-divider {
        padding-left: var(--ft-divider-gap);
        border-left: 1px solid var(--ft-border);
    }

.footer-contact-col {
    --ft-left-indent: clamp(12px, 0.4vw, 0px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-top: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    /*margin-bottom: 2px;*/
}

.img_logo_footer {
    height: clamp(42px, 3.15vw, 56px);
    width: auto;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.footer-brand-name {
    font-size: clamp(20px, 1.95vw, 28px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ft-accent);
    white-space: nowrap;
}

.footer-slogan {
    width: 100%;
    max-width: 340px;
    margin: 0 0 6px;
    padding-left: var(--ft-left-indent);
}

.footer-slogan-line {
    display: block;
    font-size: clamp(12px, .84vw, 15px);
    line-height: 1.48;
    /* font-weight: 500;*/
    font-style: italic;
    color: #6D7580;
    text-align: left;
    white-space: nowrap;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 var(--ft-left-indent);
    display: grid;
    gap: 10px;
}

    .footer-contact-pill,
    .footer-contact-list li {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 10px !important;
        width: auto;
        max-width: 100%;
        min-height: 0;
        padding: 0 !important;
        margin: 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible;
        position: static !important;
    }

        .footer-contact-pill::before {
            display: none !important;
            content: none !important;
        }

        .footer-contact-pill i {
            width: 16px !important;
            flex: 0 0 16px !important;
            text-align: center;
            margin: 0 !important;
            line-height: 1;
        }

.footer-contact-pill--location i {
    color: var(--ft-icon-pink) !important;
    font-size: 15px !important;
}

.footer-contact-pill--phone i {
    color: var(--ft-icon-pink) !important;
    font-size: 14px !important;
}

.footer-contact-pill--email i {
    color: var(--ft-dot) !important;
    font-size: 13px !important;
}

.footer-contact-pill a,
.footer-contact-pill span {
    color: var(--ft-text-soft) !important;
    font-size: var(--ft-text-size) !important;
    line-height: 1.35 !important;
    font-weight: 0 !important;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

    .footer-contact-pill a:hover {
        color: var(--ft-accent) !important;
    }

.footer-contact-pill--location,
.footer-contact-pill--phone,
.footer-contact-pill--email {
    min-width: 0 !important;
}

.footer-title {
    margin: 0 0 clamp(8px, 1vw, 12px);
    font-size: var(--ft-title-size);
    font-weight: 800;
    color: var(--ft-accent);
    letter-spacing: -.01em;
    white-space: nowrap;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: clamp(13px, .0vw, 0px);
}

    .footer-menu li a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: clamp(7px, .7vw, 10px);
        color: var(--ft-text-soft);
        text-decoration: none;
        font-size: var(--ft-text-size);
        line-height: 1.3;
        transition: all .2s ease;
        white-space: nowrap;
    }

        .footer-menu li a::before {
            content: "";
            width: clamp(6px, .55vw, 8px);
            height: clamp(6px, .55vw, 8px);
            border-radius: 50%;
            background: var(--ft-dot);
            opacity: .95;
            flex: 0 0 auto;
            transition: all .2s ease;
        }

        .footer-menu li a:hover {
            color: var(--ft-accent);
            transform: translateX(2px);
        }

            .footer-menu li a:hover::before {
                transform: scale(1.08);
                opacity: 1;
            }

.footer-qr {
    width: var(--ft-qr);
    height: var(--ft-qr);
    border-radius: 8px;
    background: #FFFFFF;
    padding: 4px;
    display: block;
    object-fit: contain;
    margin-bottom: clamp(10px, 1vw, 14px);
    border: 1px solid var(--ft-border);
    box-shadow: 0 4px 12px rgba(31, 41, 55, .05);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: clamp(8px, .9vw, 12px);
    flex-wrap: nowrap;
}

.footer-social-link {
    width: var(--ft-social);
    height: var(--ft-social);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ft-social-bg);
    color: var(--ft-social-icon);
    font-size: var(--ft-social-icon-size);
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid rgba(51, 75, 103, .06);
    flex: 0 0 auto;
}

    .footer-social-link:hover {
        background: #E7DDD0;
        color: var(--ft-accent);
        transform: translateY(-1px);
    }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1vw, 14px);
    padding-top: clamp(10px, 1.3vw, 16px);
}

.footer-copy {
    margin: 0;
    color: var(--ft-text-muted);
    font-size: clamp(10px, .82vw, 13px);
    line-height: 1.35;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: clamp(6px, .8vw, 10px);
    flex-wrap: nowrap;
}

    .footer-bottom-links a,
    .footer-bottom-links span {
        color: var(--ft-text-muted);
        text-decoration: none;
        font-size: var(--ft-copy-size);
        line-height: 1.35;
        white-space: nowrap;
        transition: color .2s ease;
    }

        .footer-bottom-links a:hover {
            color: var(--ft-accent);
        }

    .footer-bottom-links .footer-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: clamp(16px, 1.7vw, 22px);
        height: clamp(16px, 1.7vw, 22px);
        border-radius: 50%;
        color: var(--ft-accent);
        font-size: clamp(8px, .75vw, 11px);
    }

/* =========================================
           <= 991px
        ========================================= */
@media (max-width: 991px) {
    .footer-menu {
        gap: clamp(0px, .0vw, 0px);
    }

    .footer-section {
        --ft-side: 14px;
        --ft-gap: 16px;
        --ft-divider-gap: 14px;
        --ft-title-size: 12px;
        --ft-text-size: 10.5px;
        --ft-copy-size: 10.5px;
        --ft-qr: 58px;
        --ft-social: 30px;
        --ft-social-icon-size: 12px;
    }

    .footer-top {
        grid-template-columns: 1.32fr 0.96fr 0.96fr 0.86fr;
        gap: 14px;
    }

    .footer-contact-col {
        --ft-left-indent: 10px;
    }

    .img_logo_footer {
        height: 34px;
    }

    .footer-brand {
        gap: 8px;
    }

    .footer-brand-name {
        font-size: 17px;
    }

    .footer-slogan {
        max-width: none;
        margin: 0 0 5px;
        padding-left: var(--ft-left-indent);
    }

    .footer-slogan-line {
        font-size: 8.8px;
        line-height: 1.48;
        white-space: normal;
    }

    .footer-contact-list {
        gap: 3px;
    }

    .footer-contact-pill i {
        width: 12px !important;
        flex: 0 0 12px !important;
    }

    .footer-contact-pill--location i,
    .footer-contact-pill--phone i {
        font-size: 11px !important;
    }

    .footer-contact-pill--email i {
        font-size: 10px !important;
    }

    .footer-contact-pill a,
    .footer-contact-pill span,
    .footer-menu li a,
    .footer-copy,
    .footer-bottom-links a,
    .footer-bottom-links span {
        white-space: normal;
        word-break: break-word;
    }
}



@media (max-width: 769px) {
    .footer-section {
        --ft-side: 10px;
        --ft-gap: 10px;
        --ft-divider-gap: 10px;
        --ft-title-size: 11px;
        --ft-text-size: 9.5px;
        --ft-copy-size: 9.5px;
        --ft-qr: 50px;
        --ft-social: 26px;
        --ft-social-icon-size: 11px;
        padding-top: 14px;
        padding-bottom: 8px;
    }

    .container_footer {
        padding: 0 10px;
    }

    .footer-top {
        grid-template-columns: 1.28fr 0.92fr 0.92fr 0.84fr;
        gap: 10px;
        padding-bottom: 10px;
    }

    .footer-col.with-divider {
        padding-left: 10px;
    }

    .footer-contact-col {
        --ft-left-indent: 11px;
    }

    .img_logo_footer {
        height: 28px;
    }

    .footer-brand {
        gap: 7px;
        margin-bottom: 1px;
    }

    .footer-brand-name {
        font-size: 15px;
        line-height: 1.05;
        white-space: nowrap;
    }

    .footer-slogan {
        margin: 0 0 4px;
        padding-left: var(--ft-left-indent);
    }

    .footer-slogan-line {
        font-size: 8px;
        line-height: 1.46;
        white-space: normal;
    }

    .footer-contact-list {
        gap: 5px;
        padding-left: var(--ft-left-indent);
    }

        .footer-contact-pill,
        .footer-contact-list li {
            gap: 6px !important;
            align-items: baseline;
        }

            .footer-contact-pill i {
                width: 10px !important;
                flex: 0 0 10px !important;
                margin-top: 2px !important;
            }

    .footer-contact-pill--location i,
    .footer-contact-pill--phone i {
        font-size: 9px !important;
    }

    .footer-contact-pill--email i {
        font-size: 8px !important;
    }

    .footer-title {
        white-space: nowrap;
        margin-bottom: 7px;
    }

    .footer-menu {
        gap: 0px;
    }

        .footer-menu li a {
            gap: 6px;
            line-height: 1.25;
        }

            .footer-menu li a::before {
                width: 5px;
                height: 5px;
            }

    .footer-qr {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .footer-social {
        gap: 6px;
    }

    .footer-social-link {
        width: 26px;
        height: 26px;
    }

    .footer-bottom {
        gap: 8px;
        padding-top: 8px;
    }

    .footer-bottom-links {
        gap: 5px;
    }
}
/* =========================================
           <= 575px
        ========================================= */
@media (max-width: 575px) {
    .footer-section {
        --ft-side: 8px;
        --ft-gap: 8px;
        --ft-divider-gap: 8px;
        --ft-title-size: 10px;
        --ft-text-size: 8.6px;
        --ft-copy-size: 8.6px;
        --ft-qr: 44px;
        --ft-social: 24px;
        --ft-social-icon-size: 10px;
    }

    .container_footer {
        padding: 0 8px;
    }

    .footer-top {
        grid-template-columns: 1.24fr 0.6fr 0.9fr 0.86fr;
        gap: 8px;
    }

    .footer-col.with-divider {
        padding-left: 8px;
    }

    .footer-contact-col {
        --ft-left-indent: 6px;
    }

    .img_logo_footer {
        height: 24px;
    }

    .footer-brand-name {
        font-size: 13px;
    }

    .footer-slogan {
        margin: 0 0 3px;
    }

    .footer-slogan-line {
        font-size: 7.2px;
        line-height: 1.44;
    }

    .footer-contact-list {
        gap: 5px;
    }

    .footer-contact-pill i {
        width: 9px !important;
        flex: 0 0 9px !important;
    }

    .footer-contact-pill--location i,
    .footer-contact-pill--phone i {
        font-size: 8px !important;
    }

    .footer-contact-pill--email i {
        font-size: 7.5px !important;
    }

    .footer-menu li a::before {
        width: 4px;
        height: 4px;
    }

    .footer-qr {
        width: 44px;
        height: 44px;
        padding: 3px;
    }

    .footer-social-link {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 390px) {
    .footer-section {
        --ft-title-size: 9px;
        --ft-text-size: 8px;
        --ft-copy-size: 8px;
        --ft-qr: 40px;
        --ft-social: 22px;
        --ft-social-icon-size: 9px;
    }

    .footer-top {
        grid-template-columns: 1.2fr 0.6fr 0.88fr 1fr;
        gap: 7px;
    }

    .footer-contact-col {
        --ft-left-indent: 6px;
    }

    .img_logo_footer {
        height: 22px;
    }

    .footer-brand {
        gap: 6px;
    }

    .footer-brand-name {
        font-size: 12px;
    }

    .footer-slogan-line {
        font-size: 6.8px;
    }

    .footer-contact-list {
        gap: 4px;
    }

    .footer-contact-pill i {
        width: 8px !important;
        flex: 0 0 8px !important;
    }

    .footer-contact-pill--location i,
    .footer-contact-pill--phone i {
        font-size: 7.5px !important;
    }

    .footer-contact-pill--email i {
        font-size: 7px !important;
    }
}

/* =========================================
   LAYOUT FINAL STABILITY PATCH
   Giữ giao diện footer cũ, chỉ chống vỡ layout trên máy khác locale/font
========================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.body-content {
    display: flow-root;
    clear: both;
    position: relative;
    z-index: 1;
}

.footer-section,
.footer-section * {
    box-sizing: border-box;
}

.footer-section {
    clear: both;
    position: relative;
    z-index: 2;
}

.footer-top {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) !important;
}

.footer-col,
.footer-contact-col,
.footer-menu,
.footer-menu li,
.footer-brand,
.footer-slogan,
.footer-contact-list,
.footer-contact-pill,
.footer-contact-list li,
.footer-bottom,
.footer-bottom-links {
    min-width: 0 !important;
    max-width: 100%;
}

    .footer-title,
    .footer-menu li a,
    .footer-slogan-line,
    .footer-contact-pill a,
    .footer-contact-pill span,
    .footer-bottom-links a,
    .footer-bottom-links span {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

.footer-brand-name {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-contact-pill,
.footer-contact-list li {
    align-items: baseline !important;
}

    .footer-contact-pill i {
        line-height: 1.35 !important;
    }

.footer-menu li a {
    max-width: 100%;
    align-items: flex-start;
}

    .footer-menu li a::before {
        margin-top: .45em;
    }

.footer-bottom,
.footer-bottom-links {
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.32fr) minmax(0, .96fr) minmax(0, .96fr) minmax(0, .86fr) !important;
    }
}

@media (max-width: 769px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.28fr) minmax(0, .92fr) minmax(0, .92fr) minmax(0, .84fr) !important;
    }
}

@media (max-width: 575px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.24fr) minmax(0, .6fr) minmax(0, 1fr) minmax(0, .6fr) !important;
    
    }
}

@media (max-width: 390px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr) minmax(0, .88fr) minmax(0, 0.6fr) !important
    }
}

@media (max-width: 340px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .footer-contact-col {
        grid-column: 1 / -1;
    }

    .footer-col.with-divider {
        padding-left: 0;
        border-left: 0;
    }
}


