/* =========================================================
   CTA FINAL — HOMEPAGE
   ========================================================= */

.home-final-cta {
    padding:
        54px 0 60px;

    background:
        #ffffff;
}


/* =========================================================
   BANNER
   ========================================================= */

.final-cta-banner {
    position: relative;

    min-height: 205px;

    overflow: hidden;

    border-radius: 29px;

    background:
        linear-gradient(
            90deg,
            #0864e5,
            #00a7c9,
            #10b96d
        );

    box-shadow:
        0 22px 55px
        rgba(7, 31, 61, .13);

    isolation: isolate;
}


/* =========================================================
   IMAGEM DE FUNDO
   ========================================================= */

.final-cta-background {
    position: absolute;

    z-index: -2;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    pointer-events: none;
}


/*
   Camada muito discreta para manter
   boa leitura independentemente do ecrã.
*/

.final-cta-banner::after {
    content: "";

    position: absolute;

    z-index: -1;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 58, 171, .10) 0%,
            rgba(0, 124, 200, .02) 45%,
            rgba(0, 137, 79, .04) 100%
        );

    pointer-events: none;
}


/* =========================================================
   LETTERING
   ========================================================= */

.final-cta-copy-image {
    position: absolute;

    z-index: 3;

    top: 50%;

    left: 22%;

    width: 37%;

    transform:
        translateY(-50%);
}


.final-cta-copy-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.final-cta-actions {
    position: absolute;

    z-index: 5;

    top: 50%;

    right: 4.5%;

    display: flex;

    align-items: center;

    gap: 12px;

    transform:
        translateY(-50%);
}


/* =========================================================
   BOTÕES
   ========================================================= */

.final-cta-btn {
    min-height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding:
        0 21px;

    border-radius:
        999px;

    white-space: nowrap;

    font-size: 13px;

    font-weight: 900;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.final-cta-btn:hover {
    transform:
        translateY(-3px);
}


/* ABRIR CDC */

.final-cta-primary {
    color:
        var(--cdc-navy);

    background:
        #ffffff;

    box-shadow:
        0 12px 30px
        rgba(7, 31, 61, .13);
}


.final-cta-primary:hover {
    background:
        #f8fbff;

    box-shadow:
        0 16px 35px
        rgba(7, 31, 61, .18);
}


/* WHATSAPP */

.final-cta-whatsapp {
    color:
        #ffffff;

    background:
        rgba(13, 167, 103, .32);

    border:
        2px solid
        rgba(255, 255, 255, .82);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.final-cta-whatsapp:hover {
    background:
        rgba(9, 177, 105, .55);
}


.final-cta-whatsapp svg {
    width: 22px;
    height: 22px;

    flex:
        0 0 22px;
}


/* =========================================================
   SETA
   ========================================================= */

.final-cta-arrow {
    font-size: 18px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.final-cta-primary:hover
.final-cta-arrow {
    transform:
        translateX(4px);
}


/* =========================================================
   NOTEBOOK / TABLET GRANDE
   ========================================================= */

@media (max-width: 1250px) {

    .final-cta-banner {
        min-height:
            220px;
    }


    .final-cta-copy-image {
        left:
            19%;

        width:
            38%;
    }


    .final-cta-actions {
        right:
            3%;
    }


    .final-cta-btn {
        min-height:
            50px;

        padding:
            0 17px;

        font-size:
            12px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .final-cta-banner {
        min-height:
            320px;
    }


    .final-cta-background {
        object-position:
            center;
    }


    .final-cta-copy-image {
        top:
            43%;

        left:
            24%;

        width:
            52%;
    }


    .final-cta-actions {
        top:
            auto;

        right:
            auto;

        bottom:
            27px;

        left:
            50%;

        width:
            max-content;

        transform:
            translateX(-50%);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .home-final-cta {
        padding:
            38px 0 44px;
    }


    .final-cta-banner {
        min-height:
            470px;

        border-radius:
            25px;
    }


    .final-cta-background {
        object-fit:
            cover;

        object-position:
            50% center;
    }


    /*
       Cria mais contraste no centro no mobile.
    */

    .final-cta-banner::after {
        background:
            linear-gradient(
                180deg,
                rgba(7, 67, 180, .08) 0%,
                rgba(0, 134, 173, .20) 46%,
                rgba(5, 111, 75, .12) 100%
            );
    }


    .final-cta-copy-image {
        top:
            43px;

        left:
            50%;

        width:
            min(
                82%,
                430px
            );

        transform:
            translateX(-50%);
    }


    .final-cta-actions {
        right:
            auto;

        bottom:
            31px;

        left:
            50%;

        width:
            calc(100% - 44px);

        display:
            grid;

        grid-template-columns:
            1fr;

        gap:
            10px;

        transform:
            translateX(-50%);
    }


    .final-cta-btn {
        width:
            100%;

        min-height:
            54px;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 420px) {

    .final-cta-banner {
        min-height:
            445px;
    }


    .final-cta-copy-image {
        width:
            88%;
    }


    .final-cta-btn {
        font-size:
            12px;
    }

}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .final-cta-btn,
    .final-cta-arrow {
        transition:
            none;
    }

}