/* Dark Pink Glass, lighter fill (Figma footer) */
footer {
    position: relative;
    color: #ffffff;

    /* Fill only. The Figma grey gradients were removed: normal blending greys the pink and makes it dull. */
    background: #BC506980;

    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6),       /* bright top edge */
        inset 0 6px 12px -6px rgba(255, 255, 255, 0.7), /* soft glow under the top edge */
        inset 6px 0 12px -8px rgba(255, 255, 255, 0.5), /* side glow */
        inset -6px 0 12px -8px rgba(255, 255, 255, 0.5),
        0px 4px 8px 0px #0000000D;

    /* no blur, so circles stay sharp; this only brightens what shows through */
    backdrop-filter: brightness(1.1) saturate(1.3);
    -webkit-backdrop-filter: brightness(1.1) saturate(1.3);

    padding: 100px 0 30px;
    border-radius: 5px 5px 0 0;
}

footer * {
    color: #fff;
}

footer a {
    font-weight: 400;
    white-space: nowrap;
}

footer .footer_links .links a {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

footer .footer_links .links .sched {
    pointer-events: none;
}

footer .footer_links .links a:hover {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 15%; /* 2.4px */
    text-underline-offset: 25%; /* 4px */
    text-underline-position: from-font;
}

footer .gap-15 {
    gap: 15px;
}

footer .footer_content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    @media (max-width: 1400px) {
        justify-content: center;
    }
}

footer .footer_text {
    max-width: 394px;
    align-content: center;
}

footer .footer_links .links {
    max-width: fit-content;
}

footer .footer_links p.title {
    font-weight: 600;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

footer .footer_links {
    gap: clamp(0.9375rem, -4.9519rem + 6.7308vw, 3.125rem);
}

footer .gap-30 {
    gap: clamp(0.9375rem, -1.5865rem + 2.8846vw, 1.875rem);
}

footer div.hr {
    height: 1px;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    margin: 30px 0;
}

footer .footer_branch {
    display: flex;
    gap: 30px;
    align-items: center;
}

footer .copyright p,
footer .copyright p a {
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
}

@media (max-width: 1199px) {
    footer {
        padding: 70px 0 30px
    }
    footer .footer_content {
        flex-direction: column;
        gap: 50px;
    }

    footer .footer_text {
        max-width: 100%;
    }

    footer .footer_links {
        flex-wrap: wrap;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    footer .footer_logo img {
        max-width: 250px;
        width: 100%;
    }
    footer .footer_text {
        text-align: center;
    }
    footer .footer_socials {
        justify-content: center;
    }
    footer .footer_links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    footer .footer_branch {
        flex-direction: column;
    }

    footer .copyright {
        flex-direction: column;
        justify-content: center;
    }
}

/* mobile footer (767px and below): one centred column, like the mobile design */
@media (max-width: 767px) {
    footer .footer_content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    footer .footer_text {
        text-align: center;
        align-items: center;
    }

    footer .footer_socials {
        justify-content: center;
    }

    footer .footer_links {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    footer .footer_links .links {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    footer .footer_links .links ul,
    footer .footer_links .links .d-flex {
        align-items: center;
    }

    /* Treatment Programs: the two sub-lists stack instead of sitting side by side */
    footer .footer_links .links > .d-flex.gap-30 {
        flex-direction: column;
        gap: 15px;
    }

    footer .copyright {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    footer .footer_branch {
        justify-content: center;
    }

    footer {
        padding: 50px 0 30px
    }
}
