@import "./section-common.css";

/* The CTA above fades its scene to solid black by its own lower edge, so a
   hard-edged section box + rule here doubled up as a flat black slab with a
   crisp seam. A blurred glow standing in for the rule, plus tighter padding
   that doesn't stack on top of .wwd-section--follow's own, closes that gap. */
/* The CTA's dark seam above (see comment above) means the footer must stay
   dark regardless of theme too, or the light-mode override would open a
   hard black-to-white cliff at that join. Re-pin the token subtree. */
#footer.wwd-section--follow {
    --bg: #0A0A0A;
    --text: #ffffff;
    --text-2: #cdccd1;
    --text-3: #a9a9b1;
    --text-4: #9a9aa4;
    --line: #ffffff1f;
    --line-strong: #ffffff2e;
    --brand-bright: #5fb56c;

    padding-top: 0;
    padding-bottom: clamp(40px, 5vw, 64px);
}

.site-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sec-gap);
    padding-top: 40px;
    position: relative;
}

.site-footer-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: radial-gradient(closest-side, var(--line-strong), transparent 90%);
    filter: blur(4px);
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 280px;
    flex-shrink: 0;
}

.site-footer-brand a {
    display: inline-flex;
    text-decoration: none;
}

.site-footer-brand img {
    height: 42px;
    width: auto;
    display: block;
}

.site-footer-tagline {
    margin: 0;
    font-family: DM Sans;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text-3);
}

.site-footer-cols {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    flex: 1;
    gap: var(--sec-gap) 24px;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 140px;
}

.site-footer-heading {
    margin: 0 0 4px;
    font-family: DM Sans;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-footer-cell {
    font-family: DM Sans;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-2);
    text-decoration: none;
}

a.site-footer-cell:hover {
    color: var(--brand-bright);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: var(--sec-gap);
    padding-top: 24px;
    border-top: var(--rule);
}

.site-footer-copy {
    margin: 0;
    font-family: DM Sans;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-4);
}

.site-footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer-bottom-link {
    font-family: DM Sans;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-4);
    text-decoration: none;
}

.site-footer-bottom-link:hover {
    color: var(--brand-bright);
}

.site-footer-social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: DM Sans;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-4);
}

@media (max-width: 992px) {
    .site-footer-row {
        flex-direction: column;
        gap: 40px;
    }

    .site-footer-brand {
        max-width: none;
    }

    .site-footer-cols {
        width: 100%;
        max-width: none;
        margin-left: 0;
        gap: 32px 24px;
    }
}

@media (max-width: 640px) {
    .site-footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
