/*
 * Leader Footer — hand-crafted, full-width black footer.
 *
 * Rendered on the `kadence_footer` hook in place of the theme's default footer
 * (see includes/footer.php). BEM-namespaced under .leader-footer so nothing
 * here leaks into the rest of the theme.
 */

.leader-footer {
    width: 100%;
}

.leader-footer * {
    box-sizing: border-box;
}

.leader-footer__top {
    margin-top: 1rem;
    background: #000;
    color: #fff;
    padding: 72px 24px 64px;
}

.leader-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.leader-footer__intro {
    text-align: center;
    margin: 0 auto 56px;
}

.leader-footer__badge {
    display: block;
    width: auto;
    height: 50px;
    margin: 0 auto 28px;
}

.leader-footer__heading {
    margin: 0 0 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.leader-footer__text {
    margin: 0 auto 30px;
    line-height: 1.65;
    color: #e6e6e6;
    font-size: 1.6rem;
}

.leader-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.leader-footer__cta:hover,
.leader-footer__cta:focus-visible {
    color: #fff;
    opacity: 0.75;
}

.leader-footer__cta-arrow {
    flex: none;
    transition: transform 0.18s ease;
}

.leader-footer__cta:hover .leader-footer__cta-arrow,
.leader-footer__cta:focus-visible .leader-footer__cta-arrow {
    transform: translateX(4px);
}

/* --- Certifications ----------------------------------------------------- */

.leader-footer__certs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

.leader-footer__cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.leader-footer__cert-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 200 / 140;
    background: #fff;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 18px;
}

.leader-footer__cert-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.leader-footer__cert-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #cfcfcf;
}

/* --- Bottom bar (white) ------------------------------------------------- */

.leader-footer__bottom {
    background: #fff;
    color: #1a1a1a;
    padding: 28px 24px;
}

.leader-footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
}

.leader-footer__col {
    display: flex;
}

.leader-footer__col--logo {
    align-items: center;
}

.leader-footer__logo {
    display: block;
    width: auto;
    height: 125px;
}

.leader-footer__col--address {
    flex-direction: column;
    text-align: center;
}

.leader-footer__company {
    margin: 0 0 2px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.leader-footer__address-line {
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;
}

.leader-footer__phone {
    color: inherit;
    text-decoration: none;
}

.leader-footer__phone:hover {
    text-decoration: underline;
}

.leader-footer__col--social {
    align-items: center;
    gap: 16px;
}

.leader-footer__social {
    display: inline-flex;
    color: #1a1a1a;
    transition: opacity 0.18s ease;
}

.leader-footer__social:hover,
.leader-footer__social:focus-visible {
    opacity: 0.6;
    color: #1a1a1a;
}

.leader-footer__col--links,
.leader-footer__oiva-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leader-footer__link {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.18s ease;
}

.leader-footer__link:hover,
.leader-footer__link:focus-visible {
    opacity: 0.6;
    color: #1a1a1a;
    text-decoration: underline;
}

.leader-footer__link-arrow {
    font-weight: 400;
}

.leader-footer__col--oiva {
    align-items: center;
    gap: 16px;
}

.leader-footer__oiva-logo {
    display: block;
    width: auto;
    height: 46px;
    flex: none;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
    .leader-footer__certs {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 28px;
    }

    .leader-footer__bar {
        justify-content: center;
        text-align: center;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    .leader-footer {
        padding: 56px 0px 48px;
    }

    .leader-footer__heading {
        font-size: 1.75rem;
    }

    .leader-footer__certs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .leader-footer__certs {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}
