/* =========================================================
   SoxyPro Landing Footer
   BEM prefix: spf-
   ========================================================= */

/* ── Scroll-linked reveal wrapper ─────────────────────────── */
/* Footer is fixed at the bottom, hidden below the viewport.
   JS updates translateY proportionally to scroll depth —
   no animation trigger, no threshold, purely scroll-driven. */
.spf-outer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(100%);
    will-change: transform;
}

/* ── Footer shell ─────────────────────────────────────────── */
.spf {
    background: #07001a;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    line-height: 1.6;
    padding-top: 4rem;
}

/* ── Container ────────────────────────────────────────────── */
.spf-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Top row ──────────────────────────────────────────────── */
.spf-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem 3rem;
    padding-bottom: 3rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.06);
}

/* ── Brand column ─────────────────────────────────────────── */
.spf-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spf-brand__logo {
    height: 1.75rem;
    width: auto;
    display: block;
    opacity: 0.9;
}

.spf-brand__tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
    max-width: 18rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.spf-brand__socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.spf-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.spf-social:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
    color: #c084fc;
}

/* ── Nav columns ──────────────────────────────────────────── */
.spf-col__heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.spf-col__heading-icon {
    font-size: 0.625rem;
    opacity: 0.6;
}

.spf-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.spf-col__link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.spf-col__link:hover {
    color: rgba(192, 132, 252, 0.9);
}

.spf-col__link-icon {
    font-size: 0.7rem;
    width: 0.875rem;
    text-align: center;
    opacity: 0.65;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.spf-col__link:hover .spf-col__link-icon {
    opacity: 1;
}

/* ── Bottom bar ───────────────────────────────────────────── */
.spf-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 0 2rem;
}

.spf-address {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.spf-address__row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.spf-address strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    flex-shrink: 0;
}

.spf-address__pin {
    color: rgba(192, 132, 252, 0.7);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.spf-legal {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.spf-legal__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.spf-legal__link:hover {
    color: rgba(192, 132, 252, 0.9);
    background: rgba(124, 58, 237, 0.08);
}

.spf-legal__sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    user-select: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 64rem) {
    .spf-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .spf-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 40rem) {
    .spf-top {
        grid-template-columns: 1fr;
        padding-bottom: 0.25rem;
    }

    .spf-brand {
        grid-column: auto;
    }

    /* hide use-case columns on mobile */
    .spf-col {
        display: none;
    }

    .spf-bottom {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 0 1.5rem;
    }

    /* hide address on mobile */
    .spf-address {
        display: none;
    }

    .spf-legal {
        justify-content: flex-start;
    }
}
