/*
 * 05 Footer.
 * Load order: content-style.css -> css/05-header.css -> css/05-footer.css -> css/10-content-patterns.css -> css/11-tabs-block.css -> css/15-woocommerce.css -> css/20-page-patterns.css -> css/20-support-pages.css -> style.css.
 * Purpose: Global footer background, text, social icons, spacing, and widget visibility rules.
 * Related files: Kadence Customizer handles footer layout; these are child-theme overrides.
 * Scope: moved from style.css — footer chrome only.
 */

/* ============================================================
   Global Footer Adjustments
   ============================================================ */


/* Footer */
div.site-footer-row {
    padding-top: clamp(45px, 4.5vw, 75px);
}
.site-footer {
    background: var(--dmax-black);
    color: var(--dmax-white);
}

.site-footer a, .site-footer p, .site-footer li {
    color: var(--dmax-white);
}

.site-footer h2, .site-footer h3 {
    color: var(--dmax-sky);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

/* Footer social icons — horizontal row (production parity) */
.site-footer .social-row:has(figure) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 2.0625rem;
}

.site-footer .social-row figure {
    margin: 0;
}

.site-footer .social-row figure img {
    display: block;
}

/* Reduce Kadence's default 30px padding and gaps in the bottom footer row */
div.site-bottom-footer-inner-wrap {
    padding-top: var(--global-kb-spacing-xxs, 10px);
    padding-bottom: var(--global-kb-spacing-xxs, 10px);
}

div.site-middle-footer-inner-wrap .widget {
    margin-bottom: var(--global-kb-spacing-xxs, 10px);
}

#text-5 .widget-title,
#block-12 .wp-block-column:empty,
#block-14 .wp-block-column:empty,
#block-21 .wp-block-column:empty,
#block-24 .wp-block-column:empty {
    display: none;
}

#block-14,
#block-16,
#block-24,
#block-25 {
    margin-bottom: 0;
}