.site-footer {
    position: relative;
    overflow: hidden;

    /*
     * Mais escuro que as seções de atendimento.
     * Isso cria a separação visual entre conteúdo e rodapé.
     */
    background: #001e30;

    color: rgb(255 255 255 / 72%);
}


/* =========================================================
   HOME
   ========================================================= */

.site-footer--home {
    border-top:
        1px solid
        rgb(255 255 255 / 9%);
}


/* =========================================================
   FUNDO TÉCNICO
   ========================================================= */

.site-footer__background {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgb(255 255 255 / 2.5%) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgb(255 255 255 / 2.5%) 1px,
            transparent 1px
        );

    background-size:
        5rem 5rem;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            black 45%,
            black 100%
        );
}


.site-footer::after {
    position: absolute;

    right: -13rem;
    bottom: -18rem;

    width: 38rem;
    height: 38rem;

    border:
        1px solid
        rgb(0 181 226 / 10%);

    border-radius: 50%;

    box-shadow:
        0 0 0 5rem
        rgb(0 181 226 / 2%),

        0 0 0 10rem
        rgb(0 181 226 / 1.5%);

    content: "";

    pointer-events: none;
}


/* =========================================================
   CTA
   ========================================================= */

.site-footer__cta {
    position: relative;
    z-index: 2;

    /*
     * O CTA das páginas internas permanece ligeiramente
     * mais claro que o corpo principal do footer.
     */
    background: #00283f;

    border-bottom:
        1px solid
        rgb(255 255 255 / 12%);
}


.site-footer__cta-content {
    min-height: 11rem;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 3rem;

    padding-block: 2.5rem;
}


.site-footer__cta-eyebrow {
    margin-bottom: 0.6rem;

    color: var(--color-orange);

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.site-footer__cta h2 {
    margin: 0;

    color: var(--color-white);

    font-size:
        clamp(
            1.8rem,
            3vw,
            3rem
        );

    letter-spacing: -0.035em;

    line-height: 1.05;
}


.site-footer__cta p:not(
    .site-footer__cta-eyebrow
) {
    max-width: 42rem;

    margin-top: 0.8rem;

    color: rgb(255 255 255 / 65%);

    line-height: 1.65;
}


.site-footer__cta-button {
    min-height: 3.5rem;

    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    gap: 0.8rem;

    padding-inline: 1.5rem;

    background: var(--color-orange);

    border-radius: var(--radius-small);

    color: var(--color-white);

    font-weight: 750;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.site-footer__cta-button:hover,
.site-footer__cta-button:focus-visible {
    transform:
        translateY(-2px);

    box-shadow:
        0 0.8rem 2rem
        rgb(232 119 34 / 22%);
}


.site-footer__cta-button span {
    transition:
        transform 180ms ease;
}


.site-footer__cta-button:hover span {
    transform:
        translateX(0.3rem);
}


/* =========================================================
   CONTEÚDO PRINCIPAL
   ========================================================= */

.site-footer__main {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(18rem, 1.5fr)
        repeat(
            3,
            minmax(10rem, 1fr)
        );

    gap:
        clamp(
            2rem,
            5vw,
            5rem
        );

    padding-top:
        clamp(
            3.5rem,
            5vw,
            5rem
        );

    padding-bottom:
        clamp(
            2.75rem,
            4vw,
            3.75rem
        );
}


/* =========================================================
   MARCA
   ========================================================= */

.site-footer__brand {
    max-width: 27rem;
}


.site-footer__brand-link {
    display: inline-flex;
}


.site-footer__logo {
    width:
        clamp(
            12.5rem,
            15.5vw,
            15.75rem
        );

    height: auto;
}


.site-footer__description {
    max-width: 25rem;

    margin-top: 1.5rem;

    color: rgb(255 255 255 / 68%);

    font-size: 0.95rem;

    line-height: 1.7;
}


/* =========================================================
   REDES SOCIAIS
   ========================================================= */

.site-footer__socials {
    display: flex;

    gap: 0.65rem;

    margin-top: 1.6rem;
}


.site-footer__socials a {
    position: relative;

    width: 2.7rem;
    height: 2.7rem;

    display: grid;

    place-items: center;

    overflow: hidden;

    background:
        rgb(255 255 255 / 4%);

    border:
        1px solid
        rgb(255 255 255 / 16%);

    border-radius: 0.65rem;

    color: var(--color-cyan);

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}


.site-footer__socials a::after {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 0.45rem;
    height: 0.12rem;

    background: var(--color-orange);

    content: "";

    transition:
        width 180ms ease;
}


.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
    background:
        rgb(0 181 226 / 9%);

    border-color:
        var(--color-cyan);

    color:
        var(--color-white);

    transform:
        translateY(-2px);
}


.site-footer__socials a:hover::after {
    width: 100%;
}


.site-footer__socials svg {
    width: 1.2rem;
    height: 1.2rem;

    fill: currentColor;
}


/* =========================================================
   COLUNAS
   ========================================================= */

.site-footer__title {
    position: relative;

    margin-bottom: 1.4rem;

    padding-bottom: 0.8rem;

    color: var(--color-white);

    font-size: 0.92rem;
    font-weight: 750;
}


.site-footer__title::after {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 2rem;
    height: 0.125rem;

    background: var(--color-orange);

    content: "";
}


.site-footer__navigation {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.75rem;
}


.site-footer__navigation a {
    color:
        rgb(255 255 255 / 68%);

    font-size: 0.9rem;

    transition:
        color 180ms ease,
        transform 180ms ease;
}


.site-footer__navigation a:hover,
.site-footer__navigation a:focus-visible {
    color: var(--color-cyan);

    transform:
        translateX(0.25rem);
}


/* =========================================================
   CONTATOS
   ========================================================= */

.site-footer__contact-text {
    max-width: 18rem;

    margin-bottom: 1.25rem;

    color:
        rgb(255 255 255 / 64%);

    font-size: 0.9rem;

    line-height: 1.65;
}


.site-footer__contacts {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.65rem;
}


.site-footer__contacts a {
    color: var(--color-cyan);

    font-size: 0.9rem;

    font-weight: 700;

    transition:
        color 180ms ease;
}


.site-footer__contacts a:hover,
.site-footer__contacts a:focus-visible {
    color: var(--color-white);
}


/* =========================================================
   BASE
   ========================================================= */

.site-footer__bottom {
    position: relative;
    z-index: 2;

    border-top:
        1px solid
        rgb(255 255 255 / 11%);
}


.site-footer__bottom-content {
    min-height: 4.5rem;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 2rem;

    color:
        rgb(255 255 255 / 55%);

    font-size: 0.78rem;
}


.site-footer__bottom-tagline {
    color:
        rgb(255 255 255 / 40%);

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.site-footer__bottom-content > a {
    justify-self: end;

    color:
        rgb(255 255 255 / 65%);

    transition:
        color 180ms ease;
}


.site-footer__bottom-content > a:hover {
    color: var(--color-cyan);
}


/* =========================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================= */

.back-to-top {
    position: fixed;

    z-index: 1500;

    right:
        clamp(
            1rem,
            2vw,
            2rem
        );

    bottom:
        clamp(
            1rem,
            2vw,
            2rem
        );

    width: 3.25rem;
    height: 3.25rem;

    display: grid;

    place-items: center;

    overflow: hidden;

    background: var(--color-navy);

    border:
        1px solid
        rgb(0 181 226 / 50%);

    border-radius: 0.85rem;

    box-shadow:
        0 0.8rem 2rem
        rgb(0 0 0 / 18%);

    color: var(--color-cyan);

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transform:
        translateY(1rem);

    transition:
        opacity 220ms ease,
        transform 220ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}


.back-to-top.is-visible {
    opacity: 1;

    pointer-events: auto;

    transform:
        translateY(0);
}


.back-to-top:hover,
.back-to-top:focus-visible {
    background: #003a58;

    border-color:
        var(--color-cyan);

    transform:
        translateY(-0.2rem);
}


.back-to-top svg {
    width: 1.35rem;
    height: 1.35rem;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.back-to-top__detail {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 1rem;
    height: 0.16rem;

    background: var(--color-orange);

    transition:
        width 180ms ease;
}


.back-to-top:hover
.back-to-top__detail {
    width: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

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


    .site-footer__brand {
        max-width: none;
    }


    .site-footer__bottom-content {
        grid-template-columns:
            1fr
            1fr;
    }


    .site-footer__bottom-tagline {
        display: none;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .site-footer__cta-content {
        align-items: flex-start;

        flex-direction: column;

        gap: 1.5rem;
    }


    .site-footer__cta-button {
        width: 100%;
    }


    .site-footer__main {
        grid-template-columns: 1fr;

        gap: 2.5rem;
    }


    .site-footer__bottom-content {
        grid-template-columns: 1fr;

        gap: 0.6rem;

        padding-block: 1.2rem;
    }


    .site-footer__bottom-content > a {
        justify-self: start;
    }


    .back-to-top {
        width: 2.9rem;
        height: 2.9rem;

        right: 1rem;
        bottom: 1rem;
    }

}
/* =========================================================
   ROBUSTEZ DE CONTEUDO
   ========================================================= */

.site-footer__contacts a,
.site-footer__description {
    overflow-wrap: anywhere;
}
