/* ==========================================================================
   AGENCY PEONY FOOTER - ĐỒNG BỘ 100% HỆ THỐNG GLOBAL TOKENS
   ========================================================================== */

/* 1. Sticky Footer & Nền xanh dương hệ thống */
html,
body {
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

#page,
.site,
main,
#main,
.site-main,
.site-content {
    flex: 1 0 auto !important;
}

.agency-peony-footer {
    background-color: var(--color-accent, #027CC5) !important;
    /* Đồng bộ màu nền xanh dương chủ đạo */
    color: var(--text-white, #ffffff) !important;
    padding: 65px 0 25px 0 !important;
    font-family: var(--font-mona-sans), sans-serif !important;
    width: 100% !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.agency-peony-footer *,
.agency-peony-footer a,
.agency-peony-footer p {
    font-family: var(--font-mona-sans), sans-serif !important;
}

.agency-peony-footer h3,
.agency-peony-footer .af-col-title {
    font-family: var(--font-lexend), sans-serif !important;
}

.agency-peony-footer .af-container {
    max-width: var(--container-max-w, 1200px) !important;
    /* Đồng bộ độ rộng tối đa toàn website */
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: var(--container-pad-x, 10px) !important;
    /* Kế thừa lề hệ thống */
    padding-right: var(--container-pad-x, 10px) !important;
    box-sizing: border-box !important;
}

/* 2. Bố cục Grid 3 Cột Desktop */
.af-top-row {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 1.25fr !important;
    gap: 40px !important;
    margin-bottom: 50px !important;
    align-items: start !important;
}

/* Căn ngang hàng tiêu đề Sản phẩm và Maps với Thông tin liên hệ */
@media (min-width: 992px) {
    .col-products,
    .col-maps {
        padding-top: 72px !important;
    }
}

/* Tiêu đề Cột */
.af-col-title {
    color: var(--text-white, #ffffff) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    text-transform: none !important;
}

/* Cột 1: Logo, Liên hệ & Social */
.af-logo-link {
    display: inline-block !important;
    margin-bottom: 22px !important;
    text-decoration: none !important;
}

.af-main-logo {
    max-height: 50px !important;
    width: auto !important;
    display: block !important;
}

.af-logo-text {
    font-size: 42px !important;
    font-weight: 300 !important;
    color: var(--text-white, #ffffff) !important;
    letter-spacing: 1px !important;
}

.af-contact-info p.contact-line {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 8px 0 !important;
}

.af-contact-info p.contact-line strong {
    font-weight: 700 !important;
    color: var(--text-white, #ffffff) !important;
}

.af-contact-info a {
    color: var(--text-white, #ffffff) !important;
    text-decoration: none !important;
}

.af-contact-info a:hover {
    text-decoration: underline !important;
}

/* Social Icons trong Cột 1 */
.af-col.col-brand-contact .af-icons {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 20px !important;
}

.social-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    text-decoration: none !important;
    padding: 0 !important;
}

.social-circle:hover {
    background: transparent !important;
}

.af-social-img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.social-circle:hover .af-social-img {
    transform: scale(1.08) !important;
    opacity: 0.9 !important;
}

/* Cột 2: Sản Phẩm */
.af-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.af-menu li {
    margin-bottom: 12px !important;
}

.af-menu li a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    transition: opacity 0.2s ease !important;
}

.af-menu li a:hover {
    opacity: 0.8 !important;
}

/* Cột 3: Maps Box (150px, Không bo góc) */
.af-map-box {
    position: relative !important;
    width: 100% !important;
    height: 150px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.af-map-box iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
}


/* Dòng Copyright Căn Giữa */
.af-bottom {
    text-align: center !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.copyright {
    margin: 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Cho Mobile & Tablet */
@media (max-width: 991px) {
    .af-top-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 576px) {
    .af-top-row {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}