/* Rodapé SCGÁS */

#footer.scgas-footer {
    padding: 50px 0 60px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

#footer.scgas-footer,
#footer.scgas-footer * {
    box-sizing: border-box;
    font-family: "Sora", sans-serif;
}

/* Container */

#footer.scgas-footer .footer-container {
    width: min(100% - 140px, 1430px);
    margin: 1em auto;
    display: flex;
    flex-direction: column;
}

/* Redes sociais */

#footer.scgas-footer .footer-social {
    display: flex;
    gap: 18px;
}

#footer.scgas-footer .social-icon {
    width: 48px;
    height: 48px;
    background-color: #ffd86b;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

#footer.scgas-footer .social-icon img {
    max-width: 31.5px;
    max-height: 31.5px;
    width: auto;
    height: auto;
    display: block;
}

/* Card principal */

#footer.scgas-footer .footer-card {
    width: 100%;
    padding: 10px 28px 18px;
    min-height: 111px;

    margin-top: 1.5em;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);

    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-areas: "logo contato endereco transparencia";
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(24px, 4vw, 72px);
}

#footer.scgas-footer .footer-logo {
    grid-area: logo;
}

#footer.scgas-footer .footer-logo img {
    max-width: 268px;
    width: 100%;
    height: auto;
    display: block;
}

#footer.scgas-footer .footer-contato {
    grid-area: contato;
}

#footer.scgas-footer .footer-endereco {
    grid-area: endereco;
}

#footer.scgas-footer .footer-transparencia {
    grid-area: transparencia;
    margin-right: 24px;
}

#footer.scgas-footer .footer-contato,
#footer.scgas-footer .footer-endereco {
    max-width: 320px;
    white-space: nowrap;
    font-size: 0;
}

#footer.scgas-footer .footer-contato p,
#footer.scgas-footer .footer-endereco address {
    display: inline-block;
    width: calc(100% - 54px);
    margin: 0;
    vertical-align: middle;

    color: #1f1f1f;
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    white-space: normal;
}

#footer.scgas-footer .footer-contato::before,
#footer.scgas-footer .footer-endereco::before {
    content: "";
    display: inline-block;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    vertical-align: middle;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#footer.scgas-footer .footer-contato::before {
    background-image: url("/scgas/assets/images/rodape/telefone.png");
}

#footer.scgas-footer .footer-endereco::before {
    background-image: url("/scgas/assets/images/rodape/group-299.png");
}

#footer.scgas-footer .footer-transparencia img {
    max-width: 170px;
    width: 100%;
    height: auto;
    display: block;
}

/* Links do rodapé */

#footer.scgas-footer .footer-links {
    width: 100%;
    margin: 64px auto 0;
    word-wrap: break-word;

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;

    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 40px;
}

#footer.scgas-footer .footer-column {
    min-width: 0;
    max-width: none;
    padding: 0;
    flex: 0 1 clamp(165px, 12vw, 230px);
}

#footer.scgas-footer .footer-column:first-child {
    flex-basis: clamp(150px, 11vw, 200px);
}

#footer.scgas-footer .footer-column-title {
    display: block;
    color: #1f1f1f;
    background: transparent;
    text-decoration: none;
}

#footer.scgas-footer .footer-column-title:hover {
    text-decoration: none;
}

#footer.scgas-footer .footer-column h4 {
    color: #1f1f1f;
    background: transparent;

    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    margin: 0 0 18px;
    padding: 0;
}

#footer.scgas-footer .footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer.scgas-footer .footer-column li {
    margin-top: 5px;
    padding: 0;
    line-height: 1.1;
    list-style: none;
    background: transparent;
}

#footer.scgas-footer .footer-column li a {
    color: #1f1f1f;
    background: transparent;
    text-decoration: none;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 120%;
    transition: none;
}

#footer.scgas-footer .footer-column li a:hover {
    text-decoration: underline;
}

/* Remove ícones antigos gerados pelo menu legado */

#footer.scgas-footer .footer-column i.fa,
#footer.scgas-footer .footer-column .fa-angle-right {
    display: none;
}

#footer.scgas-footer .footer-column-check,
#footer.scgas-footer .footer-column-toggle {
    display: none;
}

/* Responsivo - desktop grande */

@media (min-width: 1600px) {
    #footer.scgas-footer .footer-container {
        width: min(calc(100% - 160px), 1600px);
    }

    #footer.scgas-footer .footer-links {
        justify-content: space-between;
        column-gap: clamp(32px, 2.5vw, 48px);
    }

    #footer.scgas-footer .footer-column {
        flex-basis: clamp(190px, 12vw, 230px);
    }

    #footer.scgas-footer .footer-column:first-child {
        flex-basis: clamp(170px, 11vw, 200px);
    }

    #footer.scgas-footer .footer-column h4 {
        font-size: clamp(20px, 1.15vw, 22px);
    }

    #footer.scgas-footer .footer-column li a {
        font-size: clamp(16px, 0.95vw, 18px);
    }
}

/* Responsivo - tablet */

@media (min-width: 640px) and (max-width: 1060px) {
    #footer.scgas-footer .footer-card {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo transparencia"
            "endereco contato";

        align-items: center;
        justify-items: center;

        column-gap: 48px;
        row-gap: 32px;
    }

    #footer.scgas-footer .footer-card>div:not(:last-child) {
        margin-bottom: 0;
    }

    #footer.scgas-footer .footer-transparencia {
        margin: 0;
    }

    #footer.scgas-footer .footer-contato,
    #footer.scgas-footer .footer-endereco {
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
        text-align: left;
        white-space: nowrap;
        font-size: 0;
    }

    #footer.scgas-footer .footer-contato::before,
    #footer.scgas-footer .footer-endereco::before {
        display: inline-block;
        width: 34px;
        height: 34px;
        margin-right: 10px;
        vertical-align: top;
    }

    #footer.scgas-footer .footer-contato p,
    #footer.scgas-footer .footer-endereco address {
        display: inline-block;
        width: calc(100% - 44px);
        max-width: 280px;
        margin: 0;
        text-align: left;
        font-size: 16px;
        line-height: 130%;
        vertical-align: top;
        white-space: normal;
    }

    #footer.scgas-footer .footer-transparencia img {
        max-width: 170px;
        width: 100%;
        height: auto;
    }
}

/* Responsivo - mobile */

@media (max-width: 639px) {
    #footer.scgas-footer {
        padding: 0 0 32px;
    }

    #footer.scgas-footer .footer-container {
        width: calc(100% - 32px);
        margin: 16px auto;
    }

    #footer.scgas-footer .footer-links {
        order: 1;
        display: block;
        width: 100%;
        margin-top: 0;
        white-space: normal;
    }

    #footer.scgas-footer .footer-card {
        order: 2;
        width: 100%;
        min-height: auto;
        margin: 28px auto 0;
        padding: 28px 22px;
        text-align: center;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);

        display: block;
    }

    #footer.scgas-footer .footer-social {
        order: 3;
        margin-top: 56px;
        text-align: center;
        font-size: 0;
        white-space: nowrap;
        justify-content: center;
        gap: clamp(6px, 4.5vw, 20px);
    }

    #footer.scgas-footer .footer-column,
    #footer.scgas-footer .footer-column:first-child {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
        padding: 0;
        display: block;
        margin-left: 0;
        border-bottom: 1px solid #cfcfcf;
        position: relative;
    }

    #footer.scgas-footer .footer-column-check {
        display: none;
    }

    #footer.scgas-footer .footer-column:not(:first-child) {
        margin-left: 0;
    }

    #footer.scgas-footer .footer-column-title {
        display: block;
        width: 100%;
        padding-right: 32px;
        text-decoration: none;
    }

    #footer.scgas-footer .footer-column h4 {
        color: #1f1f1f;
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        padding: 12px 24px 12px 0;
    }

    #footer.scgas-footer .footer-column-toggle {
        position: absolute;
        display: block;
        right: 0;
        top: 0;

        width: 32px;
        height: 42px;

        border: none;
        background: transparent;
        text-align: center;
        cursor: pointer;

        font-size: 18px;
        line-height: 42px;
        color: #1f1f1f;
    }

    #footer.scgas-footer .footer-column>ul {
        display: none;
        padding: 0 0 12px 0;
    }

    #footer.scgas-footer .footer-column-check:checked~ul {
        display: block;
    }

    #footer.scgas-footer .footer-column-check:checked~.footer-column-toggle {
        transform: rotate(180deg);
        transform-origin: center;
    }

    #footer.scgas-footer .footer-card>div {
        width: 100%;
        margin-top: 0;
        text-align: center;
    }

    #footer.scgas-footer .footer-card>div:not(:last-child) {
        margin-bottom: 36px;
    }

    #footer.scgas-footer .footer-logo {
        width: 100%;
        text-align: center;
    }

    #footer.scgas-footer .footer-logo img {
        max-width: 273px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    #footer.scgas-footer .footer-contato,
    #footer.scgas-footer .footer-endereco {
        width: 100%;
        max-width: none;
        text-align: center;
        white-space: nowrap;
        font-size: 0;
    }

    #footer.scgas-footer .footer-contato::before,
    #footer.scgas-footer .footer-endereco::before {
        display: inline-block;
        width: 34px;
        height: 34px;
        margin-right: 10px;
        vertical-align: top;
    }

    #footer.scgas-footer .footer-contato p,
    #footer.scgas-footer .footer-endereco address {
        display: inline-block;
        width: min(280px, calc(100% - 44px));
        margin: 0;
        text-align: left;
        font-size: 16px;
        line-height: 120%;
        vertical-align: top;
        white-space: normal;
    }

    #footer.scgas-footer .footer-transparencia {
        width: 100%;
        text-align: center;
        margin: 20px auto 25px;
    }

    #footer.scgas-footer .footer-transparencia img {
        max-width: 170px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    #footer.scgas-footer .social-icon {
        width: clamp(40px, 8vw, 42px);
        height: clamp(40px, 8vw, 42px);
    }

    #footer.scgas-footer .social-icon img {
        max-width: 31.5px;
        max-height: 31.5px;
    }
}



html.fonte-ampliada #footer.scgas-footer .footer-transparencia {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
}

html.fonte-ampliada #footer.scgas-footer .footer-transparencia a {
    display: block;
    width: 180px !important;
}

html.fonte-ampliada #footer.scgas-footer .footer-transparencia img {
    width: 180px !important;
    max-width: none !important;
    height: auto !important;
}

html.fonte-muito-ampliada #footer.scgas-footer .footer-transparencia {
    min-width: 220px;
}

html.fonte-muito-ampliada #footer.scgas-footer .footer-transparencia a,
html.fonte-muito-ampliada #footer.scgas-footer .footer-transparencia img {
    width: 220px !important;
}

/* #endregion */