/* Site footer (replaces the theme's iq-footer4), matches the mx- header */

.mx-footer {
    --mx-footer-bg: #071d38;
    --mx-footer-text: rgba(255, 255, 255, 0.72);
    --mx-footer-line: rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 110px;
    background: var(--mx-footer-bg);
    color: var(--mx-footer-text);
    font-size: 14px;
    line-height: 1.7;
}
.mx-footer a { color: inherit; transition: color 0.2s ease; }
.mx-footer a:hover, .mx-footer a:focus { color: #fff; text-decoration: none; }

/* Call to action card, pulled up so it overlaps the section above */
.mx-footer-cta {
    position: relative;
    top: -60px;
    margin-bottom: -20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--mx-green, #1e7fe4) 0%, var(--mx-green-dark, #1565c0) 100%);
    box-shadow: 0 20px 50px rgba(21, 101, 192, 0.35);
    color: #fff;
    overflow: hidden;
}
.mx-footer-cta::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.mx-footer-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}
.mx-footer-cta h3 {
    margin: 0 0 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.mx-footer-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.mx-footer-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}
.mx-footer .mx-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 2px solid #fff;
    border-radius: 50px;
    background: #fff;
    color: var(--mx-green-dark, #1565c0);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mx-footer .mx-footer-btn:hover { transform: translateY(-2px); color: var(--mx-green-dark, #1565c0); }
.mx-footer .mx-footer-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.mx-footer .mx-footer-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Link columns */
.mx-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.15fr 1.15fr 1.4fr;
    gap: 40px;
    padding: 20px 0 48px;
}
.mx-footer-name {
    margin: 0 0 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.mx-footer-brand p { margin: 0 0 22px; color: var(--mx-footer-text); }
.mx-footer-social { display: flex; gap: 10px; }
.mx-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.mx-footer-social a:hover { background: var(--mx-green, #1e7fe4); transform: translateY(-3px); }

.mx-footer-col h6 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}
.mx-footer-col h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--mx-green, #1e7fe4);
}
.mx-footer-col ul { margin: 0; padding: 0; list-style: none; }
.mx-footer-col li { margin-bottom: 10px; }
.mx-footer-col:not(.mx-footer-contact) li a { position: relative; display: inline-block; transition: color 0.2s ease, transform 0.2s ease; }
.mx-footer-col:not(.mx-footer-contact) li a:hover { transform: translateX(4px); }

.mx-footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.mx-footer-contact i {
    flex-shrink: 0;
    width: 18px;
    margin-top: 4px;
    text-align: center;
    font-size: 15px;
    color: var(--mx-green, #1e7fe4);
}
.mx-footer-contact small { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.mx-footer-contact a { word-break: break-word; }

/* Certifications strip */
.mx-footer-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--mx-footer-line);
}
.mx-footer-trust img {
    flex-shrink: 0;
    width: 74px;
    height: auto;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
}
.mx-footer-trust p { margin: 0; }
.mx-footer-trust strong { color: #fff; }
.mx-footer-trust .mx-footer-copy { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* Responsive */
@media (max-width: 1199px) {
    .mx-footer-grid { grid-template-columns: repeat(3, 1fr); }
    .mx-footer-brand { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 991px) {
    .mx-footer-cta { flex-direction: column; align-items: flex-start; padding: 32px; }
    .mx-footer-cta h3 { font-size: 22px; }
}
@media (max-width: 767px) {
    .mx-footer { margin-top: 90px; }
    .mx-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .mx-footer-contact { grid-column: 1 / -1; }
    .mx-footer-trust { flex-direction: column; text-align: center; }
}
@media (max-width: 479px) {
    .mx-footer-cta { padding: 26px 22px; }
    .mx-footer-cta-actions, .mx-footer .mx-footer-btn { width: 100%; justify-content: center; }
    .mx-footer-grid { grid-template-columns: 1fr; }
}
