/* ============================================================
   Rax Mining Premium Footer - July 2026 Revamp
   ============================================================ */

/* Hide theme's default footer content (widget areas + bottom bar) */
#site-footer #footer-wave { display: none; }
#site-footer > .footer-bg { display: none !important; }

/* Also hide old mu-plugin footer if it somehow renders */
#rax-premium-footer { display: none !important; }

/* ---- Main Footer Container ---- */
.rax-footer-main {
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    border-top: 1px solid #1a1a1a;
    padding: 56px 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}
.rax-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}
.rax-footer-col { min-width: 0; }

/* ---- Brand Column ---- */
.rax-footer-brand { padding-right: 24px; }
.rax-footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 16px;
}
.rax-footer-logo-img {
    max-height: 48px;
    width: auto;
    border-radius: 6px;
    /* No filter needed: logo is white text on dark bg, matches dark footer naturally */
}
.rax-footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
}
.rax-footer-tagline {
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 280px;
}
.rax-footer-social {
    display: flex;
    gap: 12px;
}
.rax-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #999;
    transition: all 0.25s ease;
    text-decoration: none;
}
.rax-social-link:hover {
    background: #f7931a;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Column Headings ---- */
.rax-footer-heading {
    color: #f7931a;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(247,147,26,0.2);
}

/* ---- Link Lists ---- */
.rax-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rax-footer-links li {
    margin-bottom: 10px;
}
.rax-footer-links a {
    color: #b0b0b0;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.rax-footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ---- Contact Items ---- */
.rax-footer-contact {
    margin-top: 20px;
}
.rax-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}
.rax-contact-item svg {
    flex-shrink: 0;
    color: #f7931a;
}
.rax-contact-item:hover {
    color: #fff;
}

/* ---- CTA Row ---- */
.rax-footer-cta-row {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(247,147,26,0.08) 0%, rgba(247,147,26,0.03) 100%);
    border: 1px solid rgba(247,147,26,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.rax-footer-cta-text {
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
.rax-footer-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #f7931a;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.rax-footer-cta-btn:hover {
    background: #e8841a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(247,147,26,0.3);
    color: #000;
}

/* ---- Bottom Bar ---- */
.rax-footer-bottom {
    background: #070707;
    border-top: 1px solid #1a1a1a;
    padding: 20px 24px;
    margin-top: 48px;
}
.rax-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.rax-footer-copyright {
    color: #555;
    font-size: 13px;
    margin: 0;
}
.rax-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.rax-footer-legal a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rax-footer-legal a:hover {
    color: #f7931a;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .rax-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .rax-footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
    .rax-footer-tagline {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .rax-footer-main {
        padding: 40px 20px 0;
    }
    .rax-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .rax-footer-cta-row {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .rax-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .rax-footer-legal {
        justify-content: center;
    }
}
