/*
 * Dental ED public footer
 *
 * Shared presentation for frontend/_home_footer.html. Keeping this component
 * separate makes its responsive behaviour and contrast easy to maintain
 * without coupling footer changes to individual public page layouts.
 */

.de-home-footer,
.de-home-footer *,
.de-home-footer *::before,
.de-home-footer *::after {
    box-sizing: border-box;
}

.de-home-footer {
    color: var(--de-home-ink, #102b45);
    border-top: 1px solid #dfe7eb;
    background: #fff;
    font-family: var(--de-home-sans, "Roboto", Arial, Helvetica, sans-serif);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.de-home-footer-shell {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.de-home-footer-main {
    padding: 58px 0 52px;
}

.de-home-footer-main .de-home-footer-shell {
    display: grid;
    grid-template-columns: minmax(240px, 1.05fr) minmax(430px, 1.7fr) auto;
    align-items: start;
    gap: 64px;
}

.de-home-footer-brand > a {
    display: inline-flex;
}

.de-home-footer-brand img {
    display: block;
    width: 142px;
    max-width: 100%;
    height: auto;
}

.de-home-footer-brand p {
    max-width: 350px;
    margin: 19px 0 0;
    color: #314b5c;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.de-home-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
}

.de-home-footer-links > div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.de-home-footer-links strong,
.de-home-footer-social > strong {
    margin-bottom: 5px;
    color: #102b45;
    font-family: var(--de-home-heading, "Raleway", Arial, Helvetica, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.de-home-footer-links a {
    width: fit-content;
    color: #29485b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    text-decoration-color: transparent;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.de-home-footer-links a:hover,
.de-home-footer-links a:focus {
    color: var(--de-home-blue, #155b86);
    outline: 0;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

.de-home-footer a:focus-visible {
    outline: 2px solid #3186b4;
    outline-offset: 5px;
}

.de-home-footer-social {
    display: grid;
    gap: 10px;
}

.de-home-footer-social > div {
    display: flex;
    gap: 7px;
}

.de-home-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #29485b;
    border: 1px solid #c4d2da;
    border-radius: 50%;
    background: #fff;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.de-home-footer-social a:hover,
.de-home-footer-social a:focus {
    color: #fff;
    border-color: var(--de-home-navy, #0c2f4a);
    outline: 0;
    background: var(--de-home-navy, #0c2f4a);
    transform: translateY(-2px);
}

.de-home-footer-bottom {
    padding: 18px 0;
    color: #294355;
    border-top: 1px solid #dbe4e9;
    background: #f3f6f8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.de-home-footer-bottom .de-home-footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-right: 96px;
}

@media (min-width: 1200px) {
    .de-home-footer-shell {
        width: calc(100% - clamp(40px, 3vw, 64px));
    }

    .de-home-footer-main .de-home-footer-shell {
        gap: clamp(44px, 4vw, 72px);
    }
}

@media (max-width: 1199px) {
    .de-home-footer-main .de-home-footer-shell {
        grid-template-columns: minmax(220px, 0.85fr) minmax(430px, 1.7fr);
        gap: 46px;
    }

    .de-home-footer-social {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .de-home-footer-main .de-home-footer-shell {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .de-home-footer-social {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .de-home-footer-shell {
        width: calc(100% - 36px);
    }

    .de-home-footer-main {
        padding: 54px 0 48px;
    }

    .de-home-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .de-home-footer-bottom .de-home-footer-shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-right: 72px;
    }
}

@media (max-width: 520px) {
    .de-home-footer-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .de-home-footer a {
        transition: none;
    }
}
