/* Footer structure only; typography, colors, padding and gaps remain native. */
:where(.hx-footer) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: calc(100% - 32px);
    margin: 0 auto 16px;
}

:where(.hx-footer *) {
    box-sizing: border-box;
}

:where(.hx-footer :is(h3, p, figure, .wp-block-buttons)) {
    margin: 0;
}

:where(.hx-footer-top) {
    display: grid;
    grid-template-columns: 548fr 776fr;
}

:where(.hx-footer-brand) {
    position: relative;
    max-width: 548px;
}

:where(.hx-footer-logo),
:where(.hx-footer-logo img) {
    width: 201px;
    height: auto;
}

:where(.hx-footer-wordmark) {
    position: absolute;
    top: -5px;
    left: 40px;
}

:where(.hx-footer-contact a) {
    display: inline-block;
    margin-top: 8px;
    text-underline-offset: .2em;
}

:where(.hx-footer-navigation) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.hx-footer-navigation > *) {
    margin-block: 0;
}

:where(.hx-footer-column h3) {
    margin-bottom: 18px;
}

:where(.hx-footer-column p + p) {
    margin-top: 18px;
}

:where(.hx-footer-column a),
:where(.hx-footer-legal p),
:where(.hx-footer-legal a) {
    text-decoration: none;
}

:where(.hx-footer a:hover) {
    text-decoration: underline;
    text-underline-offset: .2em;
}

:where(.hx-footer a:focus-visible) {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

:where(.hx-footer-legal) {
    display: flex;
    justify-content: space-between;
    border: 0;
}

:where(.hx-footer-legal-links) {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

@media (max-width: 781px) {
    :where(.hx-footer-top),
    :where(.hx-footer-navigation) {
        grid-template-columns: 1fr;
    }

    :where(.hx-footer-legal),
    :where(.hx-footer-legal-links) {
        flex-direction: column;
    }

    :where(.hx-footer-wordmark) {
        top: 0;
    }
}

.hx-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}
.hx-footer-inner > * { width: 100%; }
.hx-footer-column h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.hx-footer-link { font-size: 15px; line-height: 1.6; }
.hx-footer-link a { color: #fffef5; text-decoration: none; }
.hx-footer-link a:hover { color: var(--wp--preset--color--home-yellow); text-decoration: underline; }
@media (min-width: 782px) and (max-width: 1100px) {
    .hx-footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 781px) {
    .hx-footer-top { row-gap: 36px; }
    .hx-footer-navigation { gap: 32px; }
    .hx-footer-link a { display: inline-block; padding-block: 5px; }
    .hx-footer-column p + p { margin-top: 8px; }
}
.hx-footer .hx-footer-inner { max-width: 1440px; align-self: center; }
.hx-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hx-footer-column p + p { margin-top: 0; }
.hx-footer-legal-links { gap: 24px; }
.hx-footer-wordmark { font-family: var(--wp--preset--font-family--anton-sc); }

@media (max-width: 781px) {
    .hx-footer .hx-footer-column { gap: 8px; }
    .hx-footer .hx-footer-column h3 { margin-bottom: 8px; }
    .hx-footer .hx-footer-link { margin-block: 0; }
    .hx-footer .hx-footer-link a { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; padding-block: 8px; }
    .hx-footer .hx-footer-legal { gap: 20px; }
    .hx-footer .hx-footer-legal-links { gap: 12px; }
}
