/* Shared site footer (ssg/partials/footer.php). All rules are scoped to footer.skf. */
footer.footer-main.skf {
    --skf-navy: #0b1b3f;
    --skf-blue: #145bfb;
    --skf-line: rgba(255, 255, 255, 0.12);
    --skf-text: rgba(255, 255, 255, 0.86);
    --skf-mute: rgba(255, 255, 255, 0.66);
    --skf-head: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --skf-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    width: 100%;
    margin: 0 !important;
    padding: 48px 24px 40px !important;
    background: transparent;
    overflow: visible;
    font-family: var(--skf-body);
    color: var(--skf-text);
    box-sizing: border-box;
}
footer.skf *,
footer.skf *::before,
footer.skf *::after {
    box-sizing: border-box;
}
footer.skf ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer.skf li {
    margin: 0;
    padding: 0;
}
footer.skf p {
    margin: 0;
}
footer.skf a {
    color: inherit;
    text-decoration: none;
}
footer.skf a:focus-visible,
footer.skf summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 8px;
}

.skf-card {
    max-width: 1340px;
    margin: 0 auto;
    padding: 56px 64px 24px;
    background: var(--skf-navy);
    border-radius: 32px;
}
.skf-top {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 56px;
    align-items: start;
}

/* brand block */
.skf-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.skf-logo-img {
    display: block;
    margin-bottom: 4px;
    width: 200px;
    max-width: 100%;
    height: auto;
}
footer.skf .skf-tagline {
    margin-top: 20px;
    font-family: var(--skf-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 22ch;
}
footer.skf .skf-sub {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--skf-mute);
}
footer.skf a.skf-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 20px;
    padding: 0 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--skf-navy);
    font-family: var(--skf-head);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
footer.skf a.skf-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.skf-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--skf-line);
    border-radius: 16px;
    max-width: 380px;
}
.skf-avatars {
    display: flex;
    flex: none;
}
.skf-avatars img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--skf-navy);
    object-fit: cover;
    background: #fff;
}
.skf-avatars img + img {
    margin-left: -10px;
}
.skf-rating-text {
    min-width: 0;
}
.skf-stars {
    display: flex;
    gap: 2px;
}
footer.skf .skf-rating-text a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}
.skf-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px !important;
}
footer.skf .skf-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--skf-line);
    transition: background 0.15s ease;
}
footer.skf .skf-social a:hover {
    background: rgba(255, 255, 255, 0.16);
}
.skf-social img {
    display: block;
    max-width: 24px;
    max-height: 20px;
    width: auto;
    height: auto;
}

/* link groups (desktop: four columns) */
.skf-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.skf-group > summary {
    list-style: none;
}
.skf-group > summary::-webkit-details-marker {
    display: none;
}
.skf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--skf-head);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--skf-mute);
    cursor: default;
}
.skf-chev {
    display: none;
}
footer.skf .skf-group li a {
    display: flex;
    align-items: center;
    min-height: 36px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--skf-text);
    transition: color 0.15s ease;
}
footer.skf .skf-group li a:hover,
footer.skf .skf-legal a:hover,
footer.skf .skf-rating-text a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* bottom bar */
.skf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 8px 24px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--skf-line);
    font-size: 14px;
    color: var(--skf-mute);
}
.skf-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}
footer.skf .skf-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--skf-text);
}
.skf-copy {
    line-height: 1.5;
}

/* tablet: links stay open in four columns, brand block goes full width */
@media (max-width: 991.98px) {
    footer.footer-main.skf {
        padding: 32px 16px 32px !important;
    }
    .skf-card {
        padding: 40px 32px 128px;
        border-radius: 28px;
    }
    .skf-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 24px;
    }
    .skf-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .skf-tagline {
        max-width: none;
    }
}

/* phones: full-bleed, accordion groups, room for the floating buttons */
@media (max-width: 767.98px) {
    footer.footer-main.skf {
        margin: 32px 0 0 !important;
        padding: 0 !important;
        background: var(--skf-navy);
        overflow: hidden;
    }
    .skf-card {
        max-width: none;
        /* bottom space keeps the floating back-to-top and chat buttons clear of the last links */
        padding: 36px 20px max(176px, calc(160px + env(safe-area-inset-bottom)));
        border-radius: 0;
    }
    .skf-top {
        gap: 28px;
    }
    footer.skf a.skf-cta {
        display: flex;
        width: 100%;
    }
    .skf-rating {
        max-width: none;
    }
    .skf-nav {
        display: block;
        border-top: 1px solid var(--skf-line);
    }
    .skf-group {
        border-bottom: 1px solid var(--skf-line);
    }
    .skf-head {
        min-height: 56px;
        margin: 0;
        padding: 0 4px 0 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .skf-chev {
        display: block;
        flex: none;
        transition: transform 0.2s ease;
    }
    .skf-group[open] .skf-chev {
        transform: rotate(180deg);
    }
    .skf-group[open] > ul {
        padding-bottom: 12px;
    }
    footer.skf .skf-group li a {
        min-height: 44px;
        font-size: 16px;
    }
    .skf-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 8px;
        padding-top: 0;
        border-top: 0;
    }
    .skf-legal {
        gap: 0 20px;
    }
    footer.skf .skf-legal a {
        font-size: 14px;
    }
    .skf-copy {
        padding-bottom: 4px;
    }
    /* keep text out of the right-hand strip where the floating buttons sit */
    .skf-legal,
    .skf-copy {
        padding-right: 72px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .skf-chev,
    footer.skf a {
        transition: none !important;
    }
}
