.site-footer {
    position: relative;
    overflow: hidden;
    width: min(calc(100% - 2rem), 80rem);
    margin: 4.5rem auto 1.5rem;
    border: 1px solid rgba(223, 192, 137, 0.14);
    border-radius: 1.375rem;
    background: var(--bhw-shell-panel-gradient);
    box-shadow: var(--bhw-shell-shadow-deep);
}

.site-footer::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(223, 192, 137, 0.08), transparent 30%);
    content: "";
    pointer-events: none;
}

.bhw-footer-trust,
.site-footer__grid,
.site-footer__meta {
    position: relative;
    width: 100%;
}

.bhw-footer-trust {
    border-block-end: 1px solid rgba(223, 192, 137, 0.11);
    background: rgba(255, 255, 255, 0.018);
}

.bhw-footer-trust ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 1.125rem 1.75rem;
    list-style: none;
}

.bhw-footer-trust li {
    display: grid;
    gap: 0.125rem;
    padding-inline: 1rem;
    border-inline-start: 1px solid rgba(223, 192, 137, 0.1);
}

.bhw-footer-trust li:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.bhw-footer-trust strong {
    color: var(--bhw-color-accent);
    font-size: 0.8125rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.bhw-footer-trust span {
    color: var(--bhw-shell-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(13rem, 1.25fr) repeat(3, minmax(9rem, 0.75fr));
    gap: clamp(1.25rem, 3vw, 2.75rem);
    padding: 1.75rem;
}

.bhw-footer__brand {
    align-items: flex-start;
}

.bhw-footer__brand img {
    display: block;
    width: 3.75rem;
    height: 3.75rem;
    flex: 0 0 auto;
    opacity: 0.9;
    object-fit: contain;
}

.bhw-footer__brand p {
    max-width: 30ch;
    margin: 0;
    font-size: 0.9rem;
}

.site-footer h2 {
    position: relative;
    margin-block: 0 0.625rem;
    padding-block-end: 0.625rem;
    font-family: var(--bhw-font-heading);
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
}

.site-footer h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.25rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(223, 192, 137, 0.98), rgba(223, 192, 137, 0.22), transparent);
    content: "";
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: var(--bhw-shell-muted);
    line-height: 1.6;
}

.bhw-footer__links {
    display: grid;
    gap: 0.175rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bhw-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding-block: 0.125rem;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
}

.bhw-footer__links a:hover,
.bhw-footer__links a:focus-visible {
    color: var(--bhw-color-accent);
    text-decoration-color: currentColor;
}

.site-footer__meta {
    display: grid;
    gap: 0.875rem;
    padding: 1rem 1.75rem 1.125rem;
    border-block-start: 1px solid rgba(223, 192, 137, 0.11);
}

.bhw-footer__facts,
.bhw-footer__payments,
.bhw-footer__social,
.bhw-footer__closing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.bhw-footer__social strong {
    color: var(--bhw-shell-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.bhw-footer__social a {
    display: inline-grid;
    width: 2.125rem;
    height: 2.125rem;
    place-items: center;
    border: 1px solid rgba(223, 192, 137, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: var(--bhw-color-accent);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease,
        background-color 160ms ease, box-shadow 160ms ease;
}

.bhw-footer__social a:hover,
.bhw-footer__social a:focus-visible {
    border-color: rgba(223, 192, 137, 0.7);
    background: rgba(223, 192, 137, 0.1);
    box-shadow: 0 0 1.25rem rgba(223, 192, 137, 0.14);
    color: var(--bhw-color-heading);
    transform: translateY(-2px);
}

.bhw-footer__facts span,
.bhw-footer__payments span {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(223, 192, 137, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--bhw-shell-muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

.bhw-footer__closing {
    justify-content: space-between;
}

.site-footer__meta p {
    margin: 0;
    font-size: 0.8125rem;
}

.bhw-footer-consent-button {
    min-height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bhw-shell-muted);
    font: inherit;
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.bhw-footer-consent-button:hover,
.bhw-footer-consent-button:focus-visible {
    color: var(--bhw-color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .bhw-footer-consent-button {
        transition: none;
    }
}
