/* Shared public-site footer for both the legacy Bootstrap layout and the
   redesigned homepage layout. Every selector is scoped to avoid changing the
   legacy page body. */
.uh-site-footer {
    --uh-footer-navy: #223652;
    --uh-footer-green: #33c05b;
    --uh-footer-green-dark: #135e32;
    --uh-footer-green-mid: #1d9a4e;
    --uh-footer-green-light: #6fd489;
    --uh-footer-gap-2: .5rem;
    --uh-footer-gap-3: .75rem;
    --uh-footer-gap-4: 1rem;
    --uh-footer-gap-5: 1.25rem;
    --uh-footer-gap-6: 1.5rem;
    --uh-footer-gap-8: 2rem;
    --uh-footer-radius: 14px;
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.65;
}

.legacy-footer[hidden] { display: none !important; }

.uh-site-footer *,
.uh-site-footer *::before,
.uh-site-footer *::after { box-sizing: border-box; }

.uh-site-footer .uh-wrap {
    width: min(calc(100% - (clamp(1rem, .5rem + 2vw, 2rem) * 2)), 1200px);
    margin-inline: auto;
}

.uh-site-footer .uh-partner {
    position: relative;
    z-index: 2;
    margin-bottom: -3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--uh-footer-gap-5);
    padding: var(--uh-footer-gap-6) clamp(1.25rem, 1rem + 2vw, 2.5rem);
    border-radius: var(--uh-footer-radius);
    color: #fff;
    background: linear-gradient(90deg, var(--uh-footer-green-dark), #27ae55);
    box-shadow: 0 10px 30px rgb(34 54 82 / 10%);
}

.uh-site-footer .uh-partner h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 1.05rem + .75vw, 1.5rem);
    font-weight: 800;
    line-height: 1.12;
}

.uh-site-footer .uh-partner p {
    margin: 0;
    color: #dff5e7;
    font-size: .875rem;
}

.uh-site-footer .uh-btn {
    display: inline-flex;
    min-height: 48px;
    padding-inline: var(--uh-footer-gap-6);
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--uh-footer-green-dark);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease;
}

.uh-site-footer .uh-btn--white {
    background: #fff;
    color: var(--uh-footer-green-dark);
}

.uh-site-footer .uh-btn:hover {
    background: #f0fbf4;
    color: var(--uh-footer-green-dark);
    transform: translateY(-1px);
}

.uh-site-footer .uh-footer {
    margin: 0;
    padding-block: clamp(4rem, 3rem + 3vw, 6rem) var(--uh-footer-gap-8);
    background: var(--uh-footer-navy);
    color: #c9d6e4;
    font-size: .875rem;
}

.uh-site-footer .uh-footer p { margin: 0; }

.uh-site-footer .uh-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.uh-site-footer .uh-footer__brand {
    grid-column: span 1;
    max-width: 34ch;
}

.uh-site-footer .uh-footer__brand img,
.uh-site-footer .uh-footer__brand svg {
    width: auto;
    height: 34px;
    margin-bottom: var(--uh-footer-gap-5);
}

.uh-site-footer .uh-footer h3 {
    margin: 0 0 var(--uh-footer-gap-5);
    color: #fff;
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.uh-site-footer .uh-footer nav {
    display: grid;
    gap: var(--uh-footer-gap-3);
}

.uh-site-footer .uh-footer a {
    color: #c9d6e4;
    text-decoration: none;
}

.uh-site-footer .uh-footer a:hover { color: var(--uh-footer-green-light); }

.uh-site-footer .uh-social {
    display: flex;
    gap: var(--uh-footer-gap-3);
    margin-top: var(--uh-footer-gap-5);
}

.uh-site-footer .uh-social a {
    display: grid;
    inline-size: 34px;
    block-size: 34px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 6px;
    color: #fff;
    transition: background-color .16s ease, border-color .16s ease;
}

.uh-site-footer .uh-social a:hover {
    border-color: var(--uh-footer-green-mid);
    background: var(--uh-footer-green-mid);
}

.uh-site-footer .uh-footer__legal {
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
    padding-top: var(--uh-footer-gap-6);
    border-top: 1px solid rgb(255 255 255 / 14%);
}

.uh-site-footer .uh-disclaimer {
    color: #a9bcd0;
    font-size: .8125rem;
    line-height: 1.7;
}

.uh-site-footer .uh-disclaimer strong { color: #e4edf5; }

.uh-site-footer .uh-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--uh-footer-gap-4);
    margin-top: var(--uh-footer-gap-6);
    font-size: .8125rem;
}

.uh-site-footer .uh-footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--uh-footer-gap-5);
}

@media (max-width: 720px) {
    .uh-site-footer .uh-partner {
        justify-content: center;
        text-align: center;
    }
}

@media print {
    .uh-site-footer .uh-partner { display: none !important; }
}
