/**

 * Xuan Cuong Handicraft - Module: footer.css

 * Footer Figma, Illus Decor, Links, Back To Top & Copyright

 */


/* ==========================================================================
   FOOTER FIGMA (Nền --xc-text-link, noise-bg-red, illus-2 góc trái & lật ngang góc phải)
   ========================================================================== */
.site-footer {
    width: 100%;
    clear: both;
    background-color: var(--xc-text-link, #161519);
    position: relative;
    overflow: hidden;
    color: #A6A6A6;
    padding: 5rem 0 2.5rem 0;
    box-sizing: border-box;
}

/* Lớp noise-bg-red phủ bên trên nền */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/noise-bg-red.png');
    background-repeat: repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

/* Họa tiết illus-2 góc trái và góc phải lật ngược theo chiều ngang */
.footer-motif {
    position: absolute;
    bottom: 0;
    width: 600px;
    height: 600px;
    background-image: url('../../images/illus-2.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;
    pointer-events: none;
    mix-blend-mode: luminosity;
    z-index: 1;
}

.footer-motif-left {
    left: 0;
}

.footer-motif-right {
    right: 0;
    transform: scaleX(-1);
}

.footerinner {
    position: relative;
    z-index: 2;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cột thương hiệu & Logo */
.footer-col-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

/* Cụm nút mạng xã hội (Social Media) */
.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    margin-top: 1.75rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #EFF3DD;
    opacity: 0.88;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    transition: inherit;
}

.footer-social-link:hover {
    color: #FFFFFF;
    opacity: 1;
    transform: translateY(-2px);
}

/* Badge Đã Thông Báo Bộ Công Thương */
.footer-bct-badge {
    margin-top: 1.35rem;
    display: inline-block;
}

.footer-bct-badge a {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-bct-badge a:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.footer-bct-img {
    display: block;
    width: 135px;
    height: auto;
    max-width: 100%;
}

/* Tiêu đề các cột */
.footer-heading {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Các link */
.footer-list a {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    color: #FFFFFF95;
    display: inline-block;
    transition: var(--transition);
}

.footer-list a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.contact-block {
    margin-bottom: 1.2rem;
}

.contact-label {
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-desc {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    color: #FFFFFF95;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.contact-link {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    color: #FFFFFF95;
    display: inline-block;
    transition: var(--transition);
}

/* Đồng bộ với .footer-list a: chữ trắng + lùi vào khi hover */
.contact-link:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

/* Copyright và điều khoản sử dụng, chính sách bảo mật */
.footer-bottom-row {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    vertical-align: middle;
    color: #FFFFFF95;
}

.footer-copy,
.footer-legal a {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    vertical-align: middle;
    color: #FFFFFF95;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
/* ==========================================================================
   BACK TO TOP (Integrated in Floating Contacts)
   ========================================================================== */
.back-to-top {
    border-radius: var(--radius-full);
    background-color: var(--xc-primary, #881111);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}