.jcdc-footer {
    --footer-surface: #12384c;
    --footer-visit: #1b4c66;
    --footer-ink: #f5fbfd;
    --footer-muted: #c9dfe8;
    --footer-line: #a7c4d2;
    --footer-action: #a6e3f6;
    --footer-focus: #ffba7a;
    border-block-start: 4px solid var(--jcdc-orange);
    border-image: linear-gradient(90deg, var(--jcdc-brand-blue) 50%, var(--jcdc-orange) 50%) 1;
    background: var(--footer-surface);
    color: var(--footer-ink);
    overflow-wrap: anywhere;
}
[data-bs-theme="dark"] .jcdc-footer {
    --footer-surface: #102b39;
    --footer-visit: #1a4359;
}

.jcdc-footer .container { padding-inline: clamp(16px, 3vw, 36px); }
.jcdc-footer a { text-decoration: none; }

.jcdc-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(24px, 4vw, 62px);
    padding-block: clamp(30px, 4.5vw, 56px);
}
.jcdc-footer__grid > * { min-width: 0; }
.jcdc-footer__logo { display: inline-flex; padding: 5px 9px; border-radius: 13px; background: #fff; }
.jcdc-footer__logo img { display: block; width: 124px; height: 58px; object-fit: contain; }
.jcdc-footer__identity p { margin: 14px 0 16px; color: var(--footer-muted); font-size: .95rem; }
.jcdc-footer__socials, .jcdc-footer__links { margin: 0; padding: 0; list-style: none; }
.jcdc-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.jcdc-footer .jcdc-footer__socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--footer-line);
    border-radius: var(--jcdc-button-radius);
    color: var(--footer-ink);
}
.jcdc-footer .jcdc-footer__socials a:hover { background: var(--footer-visit); }
.jcdc-footer__grid h2 { margin: 0 0 12px; color: var(--footer-ink); font-size: 1.14rem; }
.jcdc-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.jcdc-footer .jcdc-footer__links a { display: flex; align-items: center; min-height: 40px; color: var(--footer-muted); font-size: .92rem; line-height: 1.4; }
.jcdc-footer__contact address { margin: 0; color: var(--footer-muted); font-size: .92rem; }
.jcdc-footer__contact address p { display: grid; grid-template-columns: 1.1em minmax(0, 1fr); align-items: baseline; gap: 7px 10px; margin: 0 0 8px; }
.jcdc-footer__contact address i { color: var(--footer-action); }
.jcdc-footer .jcdc-footer__contact a { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 28px; color: var(--footer-action); font-weight: 650; }
.jcdc-footer :is(.jcdc-footer__links, .jcdc-footer__contact) a:hover {
    border-radius: 4px;
    background: var(--footer-visit);
    color: var(--footer-ink);
}
.jcdc-footer a:focus-visible { outline: 2px solid var(--footer-focus); outline-offset: 3px; }
.jcdc-footer__legal { margin: 0; padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--footer-line) 55%, transparent); color: var(--footer-muted); font-size: .82rem; }
.jcdc-footer__legal { padding-inline-end: 72px; }
.jcdc-footer__end { display: block; height: 1px; }

.jcdc-floating-actions {
    position: fixed;
    inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto;
    z-index: 1040;
    display: grid;
    justify-items: center;
    gap: 10px;
}
.jcdc-floating-actions > :is(.jcdc-back-to-top, .whatsapp-float) {
    width: 48px;
    height: 48px;
}
.jcdc-back-to-top {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--footer-action);
    border-radius: var(--jcdc-button-radius);
    background: var(--footer-surface);
    color: var(--footer-ink);
    font-size: 1.125rem;
    box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
}
.jcdc-back-to-top:hover { background: var(--footer-visit); }
.jcdc-back-to-top:focus-visible { outline: 2px solid var(--footer-focus); outline-offset: 3px; }
.jcdc-back-to-top[hidden] { display: none; }

@media (max-width: 991.98px) {
    .jcdc-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jcdc-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .jcdc-footer__grid { grid-template-columns: minmax(0, 1fr); }
    .jcdc-footer .jcdc-footer__links a { min-height: 44px; }
}
