/* Full-width footer — dark strip (slightly lifted from main page, not white) */

.site-footer {
    --footer-bg-top: #1e2130;
    --footer-bg-bottom: #23273a;
    --footer-text: #e8e8ef;
    --footer-heading: #f4f4f8;
    --footer-muted: #8b8fa3;
    --footer-border: #35384f;
    --footer-link: #d4d6e3;
    --footer-link-hover: #ff6a00;
    --footer-cta-underline: #ff6a00;
    --footer-cta-bg: rgba(42, 45, 66, 0.92);
    --footer-cta-border: #3d4158;

    flex-shrink: 0;
    margin-top: auto;
    background: linear-gradient(180deg, var(--footer-bg-top) 0%, var(--footer-bg-bottom) 100%);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.site-footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--footer-link-hover);
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 28px;
}

/* TikTok + Discord CTA rows */
.site-footer__cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.site-footer__cta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--footer-cta-bg);
    border: 1px solid var(--footer-cta-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 106, 0, 0.2);
    border-color: rgba(255, 106, 0, 0.45);
}

.site-footer__cta:focus-visible {
    outline: 2px solid #ff6a00;
    outline-offset: 3px;
}

.site-footer__cta-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer__cta-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.site-footer__cta-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--footer-cta-underline);
    color: var(--footer-heading);
}

.site-footer__cta-sub {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    color: var(--footer-muted);
}

/* Link columns */
.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 20px;
    margin-bottom: 28px;
}

.site-footer__col h3 {
    margin: 0 0 14px;
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--footer-heading);
}

.site-footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__col li {
    margin-bottom: 10px;
}

.site-footer__col a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.site-footer__rule {
    border: none;
    height: 1px;
    margin: 0 0 20px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--footer-border) 12%,
        var(--footer-border) 88%,
        transparent
    );
}

.site-footer__legal {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--footer-muted);
    line-height: 1.5;
}

/* Light page theme: keep footer dark so it does not flash white */
body.light .site-footer {
    border-top-color: #2a2d42;
}

@media (max-width: 1024px) {
    .site-footer__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-footer__cta-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .site-footer__columns {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        padding: 28px 16px 22px;
    }
}
