/* ─────────────────────────────────────────────────────────────────────────────
   Site footer (2026) — template-parts/sqe2/blocks/footer.php, inc/site-footer.php.
   Built from sx-system.css tokens/components: .sx-wrap, .sx-frame, .sx-eyebrow,
   .sx-label, .sx-title, .sx-btn--main(.sx-btn--accent), .sx-btn--glass.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Pre-footer CTA card ─────────────────────────────────────────────────── */

.sx-prefoot {
    position: relative;
    isolation: isolate;
    padding: clamp(56px, 7vw, 104px) 0;
    background: radial-gradient(120% 140% at 0% 0%, #6d5fae 0%, var(--sx-brand-mid) 35%, var(--sx-brand-deep) 100%);
    color: #fff;
    font-family: var(--sx-font-body);
}
.sx-prefoot .sx-wrap { position: relative; z-index: 1; }
.sx-prefoot__card { display: flex; flex-direction: column; align-items: center; max-width: 860px; margin: 0 auto; text-align: center; }

.sx-prefoot__eyebrow { color: #fff; }
.sx-prefoot .sx-prefoot__title { max-width: 860px; margin: 10px 0 0; color: #fff !important; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; }
.sx-prefoot__text { max-width: 620px; margin: 14px 0 0; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.6; }
.sx-prefoot__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.sx-prefoot__btn { height: 52px; font-size: 16px; }
.sx-prefoot__btn.sx-btn--main { padding: 0 14px 0 26px; font-weight: 700; }
.sx-prefoot__btn.sx-btn--glass { padding: 0 26px; }

.sx-prefoot__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 32px 0 0; padding: 0; list-style: none; }

.sx-prefoot__points li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    font-weight: 600;
}

.sx-prefoot__points li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sx-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2753' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.sx-footer {
    position: relative;
    isolation: isolate;
    background: var(--sx-canvas);
    color: var(--sx-ink);
    font-family: var(--sx-font-body);
}

.sx-footer * { box-sizing: border-box; }
.sx-footer ul { margin: 0; padding: 0; list-style: none; }
.sx-footer li { margin: 0; }

.sx-footer__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 3fr);
    gap: 40px;
    padding-top: clamp(64px, 7vw, 96px);
    padding-bottom: clamp(48px, 6vw, 72px);
}

.sx-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 12px; }
.sx-footer__logo { display: inline-block; line-height: 0; }
.sx-footer__logo img { width: auto; height: 44px; }
.sx-footer__tagline { max-width: 320px; margin: 4px 0 0; color: var(--sx-muted); font-size: 15.5px; line-height: 1.6; }
.sx-footer__aka { margin: 0; color: var(--sx-muted); font-size: 13.5px; }
.sx-footer__aka strong { color: var(--sx-ink); font-weight: 700; }

.sx-footer__mail {
    color: var(--sx-ink) !important;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: underline !important;
    text-decoration-color: rgba(101, 88, 153, .35) !important;
    text-underline-offset: 4px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.sx-footer__mail:hover { color: var(--sx-brand) !important; text-decoration-color: currentColor !important; }

.sx-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px !important; }

.sx-footer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sx-line);
    border-radius: 50%;
    background: #fff;
    color: var(--sx-brand-deep) !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--sx-ease);
}

.sx-footer__social a:hover { border-color: var(--sx-brand); background: var(--sx-brand); color: #fff !important; transform: translateY(-2px); }

.sx-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sx-footer__col ul { display: grid; gap: 4px; }

.sx-footer__link {
    display: inline-block;
    padding: 5px 0;
    color: var(--sx-ink) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 3px) / 0 1.5px no-repeat;
    transition: color .2s ease, background-size .3s var(--sx-ease);
}

.sx-footer__link:hover,
.sx-footer__link[aria-current="page"] { color: var(--sx-brand) !important; background-size: 100% 1.5px; }

.sx-footer :is(a):focus-visible { outline: 2px solid var(--sx-brand); outline-offset: 3px; border-radius: 4px; }

/* Bottom bar with a node-capped rule that meets the frame lines. */
.sx-footer__bar { position: relative; z-index: 1; }

.sx-footer__bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(35, 28, 80, .08);
}

.sx-footer__bar-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 40px; padding-top: 28px; padding-bottom: 36px; }
.sx-footer__notice { max-width: 460px; margin: 0; color: var(--sx-muted); font-size: 13px; line-height: 1.6; }
.sx-footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.sx-footer__legal a { color: var(--sx-ink) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; transition: color .2s ease; }
.sx-footer__legal a:hover { color: var(--sx-brand) !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .sx-footer__main { grid-template-columns: minmax(0, 1fr); }
    .sx-footer__brand { padding-right: 0; }
    .sx-footer__tagline { max-width: 560px; }
}

@media (max-width: 860px) {
    .sx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
    .sx-footer__bar-inner { flex-direction: column; }
    .sx-footer__legal { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .sx-prefoot__actions { flex-direction: column; align-self: stretch; }
    .sx-prefoot__btn { width: 100%; }
    .sx-prefoot__points { flex-direction: column; align-items: flex-start; align-self: center; }
    .sx-footer__link { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .sx-footer *, .sx-prefoot * { transition: none !important; }
}
