

.footer,
.footer__social-bar,
.footer__contact-form,
.footer__to-top-btn {
    --footer-bg: var(--bd-color-primary);
    --footer-hover: var(--bd-color-hover);
    --footer-muted: rgba(var(--bd-color-white-rgb), 0.74);
    --footer-soft: rgba(var(--bd-color-white-rgb), 0.12);
    --footer-border: rgba(var(--bd-color-white-rgb), 0.2);
    --footer-max: var(--bd-container-shell-max);
    --footer-gutter: var(--bd-container-gutter);
    --footer-text-size: 16.5px;
}

.footer {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 2.5rem;
    background: var(--footer-bg);
    color: var(--bd-color-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer__search-container {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(320px, .8fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
    box-sizing: border-box;
    width: 100%;
    max-width: var(--footer-max);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding-inline: var(--footer-gutter);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--footer-border);
}

.footer__search-copy {
    min-width: 0;
    max-width: 760px;
}

.footer__search-kicker {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--bd-color-white);
    font-size: 0.78rem;
    font-weight: var(--weight-black);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.footer__search-title {
    display: block;
    color: var(--bd-color-white);
    font-size: clamp(1.6rem, 2.8vw, 2.45rem);
    font-weight: var(--weight-black);
    letter-spacing: 0;
    line-height: 1.08;
}

.footer__search-copy p {
    max-width: 38rem;
    margin: 0.85rem 0 0;
    color: var(--footer-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.footer__search-panel {
    min-width: 0;
    width: 100%;
    max-width: 560px;
    justify-self: end;
}

.footer .bd-site-search--footer .bd-site-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.footer .bd-site-search--footer .bd-site-search__row,
.footer__search-form {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 6px;
    border: 1px solid rgba(var(--bd-color-white-rgb), 0.24);
    border-radius: var(--radius-full);
    background: rgba(var(--bd-color-white-rgb), 0.1);
    box-shadow: 0 18px 42px rgba(var(--bd-shadow-rgb), 0.18), inset 0 1px 0 rgba(var(--bd-color-white-rgb), 0.16);
}

.footer .bd-site-search--footer .bd-site-search__row:focus-within {
    border-color: rgba(var(--bd-color-white-rgb), 0.64);
    background: rgba(var(--bd-color-white-rgb), 0.14);
    box-shadow: 0 22px 52px rgba(var(--bd-shadow-rgb), 0.22), 0 0 0 4px rgba(var(--bd-color-white-rgb), 0.1);
}

.footer .bd-site-search--footer .bd-site-search__scope-wrap,
.footer .bd-site-search--footer .bd-site-search__icon {
    display: inline-flex;
}

.footer .bd-site-search--footer .bd-site-search__scope-wrap {
    position: relative;
    width: 170px;
    max-width: 28vw;
    height: 46px;
    min-height: 46px;
}

.footer .bd-site-search--footer .bd-site-search__scope {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 46px;
    padding: 0 34px 0 16px;
    border: 0;
    border-right: 1px solid rgba(var(--bd-color-white-rgb), 0.18);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    background: transparent;
    color: var(--bd-color-white);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: var(--weight-heavy);
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.footer .bd-site-search--footer .bd-site-search__scope-icon {
    right: 15px;
    color: var(--bd-color-white);
    font-size: 0.72rem;
}

.footer .bd-site-search--footer .bd-site-search__icon {
    color: var(--bd-color-white);
}

.footer .bd-site-search--footer .bd-site-search__scope option {
    color: var(--bd-color-darker);
}

.footer .bd-site-search--footer .bd-site-search__icon {
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 46px;
    font-size: 1rem;
}

.footer .bd-site-search--footer input[type="search"],
.footer__search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--bd-color-white);
    font-family: inherit;
    font-size: 1rem;
    outline: 0;
}

.footer .bd-site-search--footer input::placeholder,
.footer__search-form input::placeholder {
    color: rgba(var(--bd-color-white-rgb), 0.7);
}

.footer .bd-site-search--footer button[type="submit"],
.footer__search-form button {
    min-width: 116px;
    height: 46px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--bd-color-white);
    color: var(--footer-bg);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: var(--weight-black);
    line-height: 1;
    box-shadow: 0 12px 26px rgba(var(--bd-shadow-rgb), 0.16);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer .bd-site-search--footer button[type="submit"]:hover,
.footer .bd-site-search--footer button[type="submit"]:focus-visible,
.footer__search-form button:hover,
.footer__search-form button:focus-visible {
    background: var(--bd-color-secondary);
    color: var(--footer-hover);
    transform: translateY(-1px);
}

.footer .bd-site-search--footer .bd-site-search__results {
    top: calc(100% + 12px);
    z-index: 30;
    max-height: min(430px, calc(100vh - 160px));
    color: var(--bd-color-body);
    text-align: left;
}

.footer .bd-site-search--footer .bd-site-search__all-results,
.footer .bd-site-search--footer .bd-site-search__all-results:visited {
    background: var(--footer-bg);
    color: var(--bd-color-white);
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--footer-max);
    margin: 0 auto;
    padding-inline: var(--footer-gutter);
}

.footer__section .footer__title {
    position: relative;
    display: block;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--bd-color-white);
    font-size: 1.25rem;
    font-weight: var(--weight-black);
}

.footer__section .footer__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--bd-color-white);
}

.footer__section ul {
    columns: 2;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__section li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.footer__section a,
.footer__bottom a,
.footer__contact-address a {
    color: var(--bd-color-white);
    font-size: var(--footer-text-size);
    transition: color var(--transition-fast);
}

.footer__section a:hover,
.footer__section a:focus-visible,
.footer__bottom a:hover,
.footer__bottom a:focus-visible,
.footer__contact-address a:hover,
.footer__contact-address a:focus-visible {
    color: var(--footer-muted);
}

.footer__logo img {
    display: block;
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    /* The original SVG includes a white canvas. Invert its luminance and
       screen out the resulting black canvas without changing the logo shape. */
    filter: grayscale(1) invert(1) contrast(3);
    mix-blend-mode: screen;
    box-shadow: none;
}

.footer__contact-address {
    margin-bottom: 1rem;
    color: var(--bd-color-white);
    font-size: var(--footer-text-size);
    font-style: normal;
    line-height: 1.6;
}

.footer__social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer__social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--bd-color-white-rgb), 0.16);
    border-radius: var(--radius-full);
    background: rgba(var(--bd-color-white-rgb), 0.1);
    color: var(--bd-color-white);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.footer__social-icons a:hover,
.footer__social-icons a:focus-visible {
    border-color: rgba(var(--bd-color-white-rgb), 0.34);
    background: rgba(var(--bd-color-white-rgb), 0.18);
    transform: translateY(-1px);
}

.footer__bottom {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--footer-max);
    margin: 2rem auto 0;
    padding-inline: var(--footer-gutter);
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--bd-color-white-rgb), 0.2);
    color: var(--bd-color-white);
    font-size: var(--footer-text-size);
    text-align: center;
}

.footer__bottom a {
    color: inherit;
}

.footer__language-note,
.footer__ai-note {
    max-width: 980px;
    margin: 0 auto;
    color: var(--footer-muted);
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer__social-bar {
    position: fixed;
    top: 50%;
    right: 20px;
    /* Keep the rail inside the right edge of the centered site frame. */
    right: max(var(--bd-floating-frame-inset), calc((100% - var(--bd-site-frame-max)) / 2 + var(--bd-floating-frame-inset)));
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .footer__social-bar {
        display: none;
    }
}

body.bd-legal-page .footer__social-bar,
body.bd-legal-page .footer__to-top-btn {
    display: none;
}

.footer__social-bar a,
.footer__social-bar button,
.footer__to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--footer-bg);
    color: var(--bd-color-white);
    font: inherit;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(var(--bd-shadow-rgb), 0.2);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.footer__social-bar a,
.footer__social-bar button {
    position: relative;
}

.footer__social-bar a:hover,
.footer__social-bar button:hover,
.footer__social-bar a:focus-visible,
.footer__social-bar button:focus-visible,
.footer__to-top-btn:hover,
.footer__to-top-btn:focus-visible {
    background: var(--footer-hover);
    color: var(--bd-color-white);
    transform: scale(1.08);
}

.footer__social-bar a:focus-visible,
.footer__social-bar button:focus-visible,
.footer__to-top-btn:focus-visible {
    outline: 3px solid rgba(var(--bd-color-primary-rgb), 0.32);
    outline-offset: 3px;
}

.footer__social-bar i,
.footer__to-top-btn i,
.footer__contact-form-close i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: currentColor;
    font-size: 1.25rem;
    line-height: 1;
}

.footer__contact-btn,
.footer__contact-btn:hover,
.footer__contact-btn:focus-visible {
    background: var(--bd-color-white);
    color: var(--footer-bg);
}

.footer__contact-btn.active,
.footer__contact-btn.active:hover,
.footer__contact-btn.active:focus-visible {
    background: var(--bd-color-darker);
    color: var(--bd-color-white);
}

.footer__social-bar a::before,
.footer__social-bar button::before {
    content: attr(aria-label);
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    max-width: min(260px, calc(100vw - 100px));
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-2);
    background: var(--bd-color-darker);
    color: var(--bd-color-white);
    font-size: 0.82rem;
    font-weight: var(--weight-bold);
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(6px, -50%);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
}

.footer__social-bar a:hover::before,
.footer__social-bar button:hover::before,
.footer__social-bar a:focus-visible::before,
.footer__social-bar button:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.footer__contact-form {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100000;
    width: min(100%, 520px);
    height: 100%;
    background: var(--bd-color-white);
    color: var(--bd-color-body);
    box-shadow: -12px 0 34px rgba(var(--bd-shadow-rgb), 0.2);
    transition: right var(--transition);
}

.footer__contact-form.visible {
    right: 0;
}

.footer__contact-form-inner {
    position: relative;
    height: 100%;
    padding: clamp(1.5rem, 4vw, 2rem);
    overflow-y: auto;
}

.footer__contact-form-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--bd-color-lightgrey);
    color: var(--bd-color-body);
    cursor: pointer;
}

.footer__contact-form-close:hover,
.footer__contact-form-close:focus-visible {
    background: var(--footer-bg);
    color: var(--bd-color-white);
}

.footer__contact-form-content {
    padding-top: 2.25rem;
}

.footer__contact-form .wpcf7,
.footer__contact-form .wpcf7-form,
.footer__contact-form .wpcf7-response-output,
.footer__contact-form .wpcf7 form .wpcf7-response-output,
.footer__contact-form .wpcf7 form.invalid .wpcf7-response-output,
.footer__contact-form .wpa-test-msg {
    width: 100%;
}

.footer__contact-form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--bd-color-body);
    font-size: 0.95rem;
}

.footer__contact-form-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 0.625rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: var(--radius-full);
    animation: bd-footer-spin 0.8s linear infinite;
}

.footer__contact-form-content[data-state="ready"] .footer__contact-form-loading,
.footer__contact-form-content[data-state="error"] .footer__contact-form-loading {
    display: none;
}

.footer__contact-form-content[data-state="error"] {
    color: var(--color-error-base);
}

.footer__overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background: rgba(var(--bd-shadow-rgb), 0.5);
}

.footer__overlay.visible {
    display: block;
}

.footer__to-top-btn {
    position: fixed;
    right: 20px;
    right: max(var(--bd-floating-frame-inset), calc((100% - var(--bd-site-frame-max)) / 2 + var(--bd-floating-frame-inset)));
    bottom: 20px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
}

.footer__to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.is-modal-open {
    overflow: hidden;
}

.grecaptcha-badge {
    z-index: 100001;
    position: fixed;
    right: 12px;
    bottom: 12px;
}

@keyframes bd-footer-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .footer__search-container {
        grid-template-columns: 1fr;
    }

    .footer__search-copy {
        max-width: 760px;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
    }

    .footer__contact-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-inline: 0;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__contact-info {
        grid-column: span 1;
    }

    .footer__social-icons {
        justify-content: center;
    }

    .footer__section .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__section ul {
        columns: 1;
    }

    .footer .bd-site-search--footer .bd-site-search__row,
    .footer__search-form {
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: var(--radius-4);
    }

    .footer .bd-site-search--footer .bd-site-search__scope-wrap {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }

    .footer .bd-site-search--footer .bd-site-search__scope {
        border-right: 0;
        border-bottom: 1px solid rgba(var(--bd-color-white-rgb), 0.18);
        border-radius: var(--radius-3) var(--radius-3) 0 0;
    }

    .footer .bd-site-search--footer .bd-site-search__scope-icon {
        right: 16px;
    }

    .footer .bd-site-search--footer button[type="submit"],
    .footer__search-form button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .footer__social-bar {
        display: none;
    }

    body.bd-home-core .footer__social-bar {
        display: none;
    }

    body.bd-home-core .footer__to-top-btn {
        display: none;
    }

    .footer__social-bar a {
        display: none;
    }

    .footer__social-bar a,
    .footer__social-bar button,
    .footer__to-top-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .footer__social-bar a::before,
    .footer__social-bar button::before {
        display: none;
    }

    .footer__social-bar i,
    .footer__to-top-btn i {
        width: 1rem;
        height: 1rem;
        font-size: 1rem;
    }

    .footer__contact-form {
        width: 100%;
    }

    .footer__to-top-btn {
        right: 10px;
        bottom: 10px;
    }
}
