/*
Theme Name: Montlink Child
Theme URI: https://www.montlink.cn
Template: astra
Version: 1.0.0
Author: Montlink
Description: Custom child theme for Montlink International Trade with bespoke footer.
*/

/* Hide default Astra footer to avoid duplicate footers */
footer#colophon,
.site-footer,
.ast-footer-copyright,
.ast-footer-widget-area,
.ast-small-footer {
    display: none !important;
}

/* ===== Montlink Footer Styles ===== */
.montlink-footer {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2d5e 100%);
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 50px 20px 25px;
    margin-top: 60px;
    font-size: 14px;
    line-height: 1.7;
    box-sizing: border-box;
}
.montlink-footer *,
.montlink-footer *::before,
.montlink-footer *::after {
    box-sizing: border-box;
}
.montlink-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.montlink-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
/* Logo & About */
.footer-brand .footer-logo-img {
    width: 140px;
    height: auto;
    margin-bottom: 15px;
}
.footer-about p {
    color: #aaa;
    font-size: 13px;
    margin: 0;
    max-width: 320px;
}
/* Column headings */
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #e63946;
    margin-top: 8px;
}
/* Links */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
    display: inline-block;
}
.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}
/* Contact items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #bbb;
    font-size: 13px;
}
.contact-icon {
    color: #4da6ff;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}
.contact-item a {
    color: #bbb;
    text-decoration: none;
}
.contact-item a:hover {
    color: #fff;
}
/* Social icons */
.social-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #bbb;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all .25s;
}
.social-icon:hover {
    background: #e63946;
    color: #fff;
    transform: translateY(-2px);
}
/* Copyright bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    font-size: 12px;
    color: #777;
}
.footer-bottom-links a {
    color: #888;
    text-decoration: none;
    margin-left: 18px;
    transition: color .2s;
}
.footer-bottom-links a:hover {
    color: #fff;
}

@media(max-width: 768px){
    .montlink-footer-top{grid-template-columns:1fr;gap:28px;text-align:center}
    .footer-brand{text-align:center}
    .footer-about p{max-width:none;margin:0 auto}
    .contact-item{justify-content:center}
    .social-row{justify-content:center}
    .footer-bottom{flex-direction:column;gap:10px;text-align:center}
    .footer-bottom-links a{margin:0 10px}
}

@media(max-width: 480px){
    .montlink-footer{padding:35px 15px 20px;margin-top:40px;font-size:13px}
    .montlink-footer-top{gap:22px;padding-bottom:25px}
    .footer-col h4{font-size:14px;margin-bottom:12px}
    .footer-logo-img{width:120px}
    .social-icon{width:40px;height:40px;font-size:15px}
    .footer-bottom{font-size:11px}
    .footer-bottom-links a{margin:0 8px}
}
