.footer-spacer {
    min-height: calc(86px + var(--site-padding));
    margin-top: 0;
}

.footer-wrapper {
    position: fixed;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    padding-top: calc(100vh - 106px); /* Adjust this value based on your footer height */
    width: calc(100% - 2 * var(--site-padding));
    max-width: 1600px;
    align-content: center;
    pointer-events: none;
}

/* Footer Gradient */
.footer-gradient::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--main-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 9998;
}

/* Ensure footer content stays visible */
.footer-links,
.footer-info {
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.footer-links {
    flex: 0 0 calc((100% - 2 * var(--element-gap)) / 3);
    padding-top: var(--border-width);
    display: flex;
    flex-direction: column;
    outline: 2px solid var(--main-bg);
}

.footer-links .subhead-btn-r + .subhead-btn-r,
.footer-links .subhead-btn + .subhead-btn {
    margin-bottom: calc(-1 * (var(--border-width)));
    flex: 1;
}

.footer-info {
    flex: 0 0 calc(2 * (100% - 2 * var(--element-gap)) / 3 + var(--element-gap));
    display: flex;
    flex-direction: column;
    margin-left: var(--element-gap);
    outline: 2px solid var(--main-bg);
}

.footer-info .text-footer {
    margin: 0;
}

.footer-info .text-field + .text-footer {
    margin-top: calc(-1 * var(--border-width));
}