/**
 * Unified Muya CORS site footer (homepage + clients area).
 */
#footer.muya-site-footer {
    position: relative;
    margin-top: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    font-size: 14px;
    background: linear-gradient(
        165deg,
        var(--muya-color-footer-bg, #06152b) 0%,
        var(--muya-color-footer-bg-mid, #0b2545) 48%,
        var(--muya-color-footer-bg-end, #0d2e52) 100%
    );
    color: var(--muya-color-footer-text, #cbd5e1);
    overflow: hidden;
}

#footer.muya-site-footer .muya-site-footer-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 15% 0%, rgba(3, 169, 244, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#footer.muya-site-footer .muya-site-footer-main {
    position: relative;
    z-index: 1;
    padding: 56px 0 40px;
}

#footer.muya-site-footer .muya-footer-brand-link {
    display: inline-block;
    margin-bottom: 14px;
    text-decoration: none;
}

#footer.muya-site-footer .muya-footer-logo {
    max-width: 180px;
    max-height: 56px;
    width: auto;
    height: auto;
    filter: brightness(1.05);
}

#footer.muya-site-footer .muya-footer-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

#footer.muya-site-footer .muya-footer-tagline {
    margin: 0 0 18px;
    max-width: 360px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.92rem;
    /* Lets the browser pick break points that even out line lengths
       (was wrapping as "...RINEX data, and" / "professional CORS
       support across Kenya." — a short, lopsided first line).
       Unsupported browsers just fall back to normal wrapping. */
    text-wrap: balance;
}

#footer.muya-site-footer .muya-footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

#footer.muya-site-footer .muya-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    color: #e2e8f0;
}

#footer.muya-site-footer .muya-footer-contact-list i {
    /* --muya-color-footer-accent is a faint glow tint, not readable as icon color */
    color: var(--muya-color-footer-icon, #f8fafc);
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.95;
}

#footer.muya-site-footer .muya-footer-contact-list li:hover i {
    color: var(--muya-color-footer-icon-hover, #fff);
    opacity: 1;
}

#footer.muya-site-footer .muya-footer-contact-list a {
    color: #e2e8f0;
    text-decoration: none;
}

#footer.muya-site-footer .muya-footer-contact-list a:hover {
    color: #fff;
    text-decoration: underline;
}

#footer.muya-site-footer .muya-footer-heading {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

#footer.muya-site-footer .muya-footer-heading::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--muya-color-primary, #03a9f4), transparent);
}

#footer.muya-site-footer .muya-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

#footer.muya-site-footer .muya-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

#footer.muya-site-footer .muya-footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

#footer.muya-site-footer .muya-footer-social-copy {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(203, 213, 225, 0.9);
}

#footer.muya-site-footer .muya-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    max-width: 100%;
}

#footer.muya-site-footer .muya-footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#footer.muya-site-footer .muya-footer-social-btn i {
    font-size: 1.2rem;
    line-height: 1;
    color: #fff;
}

#footer.muya-site-footer .muya-footer-social-btn:hover {
    background: #03a9f4;
    border-color: #03a9f4;
    color: #fff;
    transform: translateY(-2px);
}

#footer.muya-site-footer .muya-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    /* Darkened from #03a9f4 for WCAG AA contrast with white text (audit D1) */
    background: #0277bd;
    border: 1px solid #0277bd;
    color: #fff !important;
}

#footer.muya-site-footer .muya-footer-cta:hover {
    background: #015e96;
    border-color: #015e96;
    color: #fff !important;
}

#footer.muya-site-footer .muya-site-footer-bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    padding: 18px 0;
}

#footer.muya-site-footer .muya-footer-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

#footer.muya-site-footer .muya-footer-copyright,
#footer.muya-site-footer .muya-footer-credits {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(203, 213, 225, 0.85);
}

#footer.muya-site-footer .muya-footer-copyright strong {
    color: #fff;
    font-weight: 700;
}

#footer.muya-site-footer .muya-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

#footer.muya-site-footer .muya-footer-legal a {
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

#footer.muya-site-footer .muya-footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

#footer.muya-site-footer .muya-footer-credits a {
    color: #93c5fd;
}

@media (max-width: 991px) {
    #footer.muya-site-footer .muya-site-footer-main {
        padding: 44px 0 32px;
    }

    #footer.muya-site-footer .muya-footer-brand-col {
        margin-bottom: 8px;
    }
}

@media (max-width: 767px) {
    #footer.muya-site-footer .muya-footer-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    #footer.muya-site-footer .muya-footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
