/* =======================================================
   FOOTER COMPONENT
   CSS TĨNH - KHÔNG PHỤ THUỘC TAILWIND
   ======================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* =======================================================
   FOOTER
   ======================================================= */

.site-footer {
    position: relative;

    margin-top: auto;

    padding:
        64px
        0
        24px;

    overflow: hidden;

    background: #00479b;
    color: #ffffff;

    border-top: 4px solid #ff5e00;
}


/* =======================================================
   BACKGROUND
   ======================================================= */

.site-footer-background {
    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;
}

.site-footer-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.08;
}

.site-footer-overlay {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 71, 155, 0.95);
}


/* =======================================================
   CONTAINER
   ======================================================= */

.footer-container {
    position: relative;

    z-index: 2;

    width: min(
        1536px,
        calc(100% - 32px)
    );

    margin: 0 auto;
}


/* =======================================================
   GRID
   ======================================================= */

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 40px;

    margin-bottom: 48px;
}


/* =======================================================
   COLUMN
   ======================================================= */

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


/* =======================================================
   COMPANY
   ======================================================= */

.footer-logo-box {
    display: inline-block;

    padding: 12px;

    margin-bottom: 16px;

    background: #ffffff;

    border-radius: 6px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.footer-logo-box img {
    display: block;

    width: auto;
    height: 32px;
}


.footer-company-description {
    margin: 0;

    color: #dbeafe;

    font-size: 14px;
    line-height: 1.7;
}

.footer-company-name {
    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}


/* =======================================================
   SOCIAL
   ======================================================= */

.footer-socials {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 18px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #93c5fd;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-social-link:hover {
    color: #ffffff;

    transform: translateY(-2px);
}

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


/* =======================================================
   HEADING
   ======================================================= */

.footer-heading {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


/* =======================================================
   LINK LIST
   ======================================================= */

.footer-link-list {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;

    color: #bfdbfe;

    font-size: 14px;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-nav-link:hover {
    color: #ff5e00;

    transform: translateX(3px);
}


/* =======================================================
   CONTACT LIST
   ======================================================= */

.footer-contact-list {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    color: #bfdbfe;

    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    margin-top: 1px;

    color: #ff5e00;
}

.footer-contact-link {
    color: #bfdbfe;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #ffffff;
}

.footer-contact-address span {
    display: block;
}


/* =======================================================
   FOOTER BOTTOM
   ======================================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 24px;

    border-top:
        1px solid rgba(255, 255, 255, 0.2);

    color: #bfdbfe;

    font-size: 13px;
}

.footer-copyright,
.footer-established {
    margin: 0;
}

.footer-established {
    font-weight: 700;
    color: #9ca3af;
}


/* =======================================================
   FLOATING ACTIONS
   ======================================================= */

.floating-actions {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    pointer-events: none;
}

.floating-action {
    position: relative;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    border: none;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.18);

    cursor: pointer;

    pointer-events: auto;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.floating-action:hover {
    transform: translateY(-3px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.2);
}

.floating-action svg {
    width: 20px;
    height: 20px;
}


/* =======================================================
   SCROLL TOP
   ======================================================= */

.floating-scroll-top {
    background: #374151;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(12px);
}

.floating-scroll-top.floating-visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* =======================================================
   MAP
   ======================================================= */

.floating-map {
    background: #10b981;
}

.floating-map:hover {
    background: #059669;
}


/* =======================================================
   ZALO
   ======================================================= */

.floating-zalo {
    background: #0068ff;
}

.floating-zalo:hover {
    background: #0056d6;
}

.floating-zalo-text {
    font-size: 20px;
    font-weight: 900;
}


/* =======================================================
   HOTLINE
   ======================================================= */

.floating-hotline {
    background: #ff5e00;
}

.floating-hotline:hover {
    background: #e95100;
}


/* =======================================================
   TOOLTIP
   ======================================================= */

.floating-wrapper {
    position: relative;

    display: flex;
    justify-content: flex-end;

    pointer-events: auto;
}

.floating-tooltip {
    position: absolute;

    right: 58px;
    top: 50%;

    padding: 7px 11px;

    transform:
        translateY(-50%)
        translateX(5px);

    opacity: 0;
    visibility: hidden;

    white-space: nowrap;

    background: #1f2937;
    color: #ffffff;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.floating-wrapper:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}

.floating-scroll-top .floating-tooltip {
    right: 58px;
}


/* =======================================================
   UTILITIES
   ======================================================= */

.is-hidden {
    display: none !important;
}

.no-print {
    /* dùng cho print stylesheet nếu cần */
}


/* =======================================================
   RESPONSIVE - TABLET
   ======================================================= */

@media (max-width: 1024px) {

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 36px;
    }

}


/* =======================================================
   RESPONSIVE - MOBILE
   ======================================================= */

@media (max-width: 767px) {

    .site-footer {
        padding-top: 48px;
    }

    .footer-container {
        width:
            calc(100% - 24px);
    }

    .footer-grid {
        grid-template-columns:
            1fr;

        gap: 32px;

        margin-bottom: 36px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;

        gap: 8px;
    }

    .floating-actions {
        right: 14px;
        bottom: 14px;

        gap: 9px;
    }

    .floating-action {
        width: 44px;
        height: 44px;
    }

    .floating-action svg {
        width: 18px;
        height: 18px;
    }

    .floating-tooltip {
        display: none;
    }

}


/* =======================================================
   RESPONSIVE - VERY SMALL
   ======================================================= */

@media (max-width: 420px) {

    .footer-heading {
        font-size: 15px;
    }

    .footer-company-description,
    .footer-nav-link,
    .footer-contact-item {
        font-size: 13px;
    }

}