/* Footer situs (template-parts/footer/footer-site.php). Redesign v2: tema-infonus-v2/Main.dc.html. */
footer.footer {
    background: none;
}

.site-footer {
    background: linear-gradient(90deg, var(--primary, #B5242F) 0%, var(--sw-mid, #6E1F3F) 50%, var(--secondary, #2A1647) 100%);
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px;
}

.site-footer > .container {
    padding: 32px var(--sw-gutter, 16px) 24px;
    box-sizing: border-box;
}

/* Ponsel: satu kolom; tiap menu selebar layar dengan daftar bertingkat (Kategori 3 kolom,
   lainnya 2 kolom) agar tidak menyisakan ruang kosong di kanan. */
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.site-footer-brand {
    grid-column: 1 / -1;
    text-align: center;
}

.site-footer-logo {
    display: inline-block;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

/* Logo berlatar putih: tampil di kartu putih agar tidak bertabrakan dengan gradien. */
.site-footer-logo:has(img) {
    padding: 12px 24px;
    border-radius: 12px;
    background: #fff;
}

.site-footer-logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.site-footer-tagline {
    margin: 12px 0 0;
    color: #fff;
}

.site-footer-label {
    margin: 16px 0 10px;
    font-weight: 700;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .site-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(255 255 255 / .22);
    color: #fff;
    transition: background .2s, color .2s;
}

.footer .site-footer-social a:hover,
.footer .site-footer-social a:focus-visible {
    background: #fff;
    color: var(--primary, #B5242F);
}

.site-footer-social svg {
    width: 18px;
    height: 18px;
}

.site-footer-col {
    padding-top: 16px;
    border-top: 1px solid rgb(255 255 255 / .2);
}

.site-footer-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.site-footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-col--wide ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer-col li {
    margin: 0;
}

.footer .site-footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
}

.footer .site-footer-col a:hover,
.footer .site-footer-col a:focus-visible {
    color: var(--active, #F5A32A);
    text-decoration: none;
}

.site-footer-copyright {
    padding: 14px 24px;
    background: var(--sw-bg, #FCFBFA);
    color: var(--sw-text, #1A1A1A);
    font-size: 13px;
    text-align: center;
}

.site-footer-copyright p,
.site-footer-copyright .widget {
    margin: 0;
}

.site-footer-copyright a {
    color: inherit;
}

/* Desktop: blok merek | garis | Kategori | Informasi, rata tengah (flex 360 / 380 / 260). */
@media (min-width: 768px) {
    .site-footer > .container {
        padding: 48px var(--sw-gutter, 16px);
    }

    .site-footer-tagline {
        margin-top: 20px;
    }

    .site-footer-label {
        margin: 28px 0 14px;
    }

    .footer .site-footer-social a {
        width: 44px;
        height: 44px;
    }

    .site-footer-title {
        margin-bottom: 20px;
    }

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

    .site-footer-col--wide ul {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        column-gap: 48px;
        row-gap: 14px;
    }

    .footer .site-footer-col a {
        padding: 0;
    }

    .site-footer-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .site-footer-brand {
        flex: 0 1 360px;
        padding-right: 40px;
        border-right: 1px solid rgb(255 255 255 / .35);
    }

    .site-footer-col {
        flex: 0 1 260px;
        padding-top: 0;
        border-top: 0;
    }

    .site-footer-col--wide {
        flex-basis: 380px;
    }
}

.darkmode .site-footer-copyright {
    background: #1b1b1b;
    color: #ccc;
}
