/* =========================================================
   HOMEPAGE — HERO
   ========================================================= */

.home-hero {
    position: relative;
    min-height: 800px;
    overflow: hidden;
    background: #eef6ff;
}


/* =========================================================
   FOTOGRAFIA
   ========================================================= */

.home-hero-photo {
    position: absolute;
    inset: 0 0 0 36%;

    background-image:
        url("/assets/img/home/hero-cdc.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}


/* =========================================================
   TRANSIÇÃO TEXTO / FOTO
   ========================================================= */

.home-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #f4f9ff 0%,
            #f4f9ff 25%,
            rgba(244, 249, 255, .98) 31%,
            rgba(244, 249, 255, .88) 38%,
            rgba(244, 249, 255, .42) 49%,
            rgba(244, 249, 255, 0) 62%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,.06),
            rgba(7,31,61,.04)
        );
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.home-hero-inner {
    position: relative;
    z-index: 2;

    min-height: 690px;

    display: flex;
    align-items: center;
}


.home-hero-content {
    width: min(49%, 700px);

    padding:
        70px 0
        155px;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.hero-eyebrow {
    display: inline-flex;

    margin-bottom: 24px;

    color: var(--cdc-blue);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .24em;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.hero-title {
    max-width: 680px;

    margin: 0;

    color: var(--cdc-navy);

    font-size:
        clamp(
            44px,
            4.05vw,
            68px
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.05em;
}


.hero-title strong {
    display: block;

    color: var(--cdc-blue);

    font-weight: 900;
}


/* =========================================================
   DESCRIÇÃO
   ========================================================= */

.hero-description {
    max-width: 520px;

    margin:
        26px 0 0;

    color: #435a76;

    font-size:
        clamp(
            17px,
            1.3vw,
            20px
        );

    line-height: 1.55;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.hero-actions {
    position: relative;
    z-index: 7;

    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}


.hero-btn {
    min-height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    padding:
        0 24px;

    border-radius: 18px;

    font-size: 14px;
    font-weight: 850;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.hero-btn svg {
    width: 20px;
    height: 20px;

    flex: 0 0 auto;
}


.hero-btn:hover {
    transform:
        translateY(-3px);
}


/* =========================================================
   BOTÃO PRIMÁRIO
   ========================================================= */

.hero-btn-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--cdc-green),
            #0fc276
        );

    box-shadow:
        0 13px 30px
        rgba(24,166,106,.23);
}


.hero-btn-primary:hover {
    box-shadow:
        0 17px 36px
        rgba(24,166,106,.30);
}


/* =========================================================
   BOTÃO SECUNDÁRIO
   ========================================================= */

.hero-btn-secondary {
    color: var(--cdc-blue);

    background:
        rgba(255,255,255,.96);

    border:
        2px solid
        rgba(18,100,227,.78);

    box-shadow:
        0 12px 30px
        rgba(7,31,61,.08);
}


.hero-btn-secondary:hover {
    background: #ffffff;
}


/* =========================================================
   SETAS
   ========================================================= */

.hero-arrow {
    font-size: 19px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.hero-btn:hover .hero-arrow {
    transform:
        translateX(4px);
}


/* =========================================================
   BARRA DOS BENEFÍCIOS
   ========================================================= */

.hero-benefits-wrap {
    position: absolute;

    z-index: 6;

    right: 0;
    bottom: 24px;
    left: 0;
}


.hero-benefits {
    min-height: 108px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    align-items: center;

    padding:
        12px 16px;

    background:
        rgba(255,255,255,.96);

    border:
        1px solid
        rgba(255,255,255,.85);

    border-radius: 25px;

    box-shadow:
        0 22px 60px
        rgba(7,31,61,.14);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


/* =========================================================
   BENEFÍCIO INDIVIDUAL
   ========================================================= */

.hero-benefit {
    min-width: 0;

    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding:
        8px 22px;

    border-right:
        1px solid
        rgba(7,31,61,.10);
}


.hero-benefit:last-child {
    border-right: 0;
}


.hero-benefit > div:last-child {
    min-width: 0;
}


.hero-benefit strong {
    display: block;

    margin-bottom: 6px;

    color: var(--cdc-navy);

    font-size: 15px;
    font-weight: 850;
}


.hero-benefit span {
    display: block;

    color: var(--cdc-muted);

    font-size: 12px;

    line-height: 1.35;
}


/* =========================================================
   ÍCONES
   ========================================================= */

.benefit-icon {
    width: 54px;
    height: 54px;

    flex:
        0 0 54px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;
}


.benefit-icon svg {
    width: 25px;
    height: 25px;
}


.benefit-blue {
    background:
        linear-gradient(
            135deg,
            #1264e3,
            #087cff
        );
}


.benefit-green {
    background:
        linear-gradient(
            135deg,
            #18a66a,
            #0dc686
        );
}


.benefit-coral {
    background:
        linear-gradient(
            135deg,
            #ff6b57,
            #ff8a58
        );
}


.benefit-purple {
    background:
        linear-gradient(
            135deg,
            #7756ff,
            #8d55ff
        );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    .home-hero {
        min-height: auto;

        padding-bottom: 30px;
    }


    .home-hero-photo {
        inset:
            0 0 0 42%;
    }


    .home-hero-overlay {
        background:
            linear-gradient(
                90deg,
                #f4f9ff 0%,
                #f4f9ff 37%,
                rgba(244,249,255,.90) 47%,
                rgba(244,249,255,.20) 67%,
                transparent 78%
            );
    }


    .home-hero-inner {
        min-height: 680px;
    }


    .home-hero-content {
        width: 55%;

        padding-bottom: 120px;
    }


    .hero-benefits-wrap {
        position: relative;

        bottom: auto;

        margin-top: -35px;
    }


    .hero-benefits {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .hero-benefit:nth-child(2) {
        border-right: 0;
    }


    .hero-benefit:nth-child(-n+2) {
        border-bottom:
            1px solid
            rgba(7,31,61,.10);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .home-hero {
        display: flex;

        flex-direction: column;

        background: #f4f9ff;
    }


    .home-hero-photo {
        position: relative;

        inset: auto;

        order: 2;

        width: 100%;

        min-height: 390px;

        background-position:
            54% center;
    }


    .home-hero-overlay {
        display: none;
    }


    .home-hero-inner {
        order: 1;

        min-height: auto;
    }


    .home-hero-content {
        width: 100%;

        padding:
            56px 0 42px;
    }


    .hero-eyebrow {
        margin-bottom: 18px;

        font-size: 10px;

        letter-spacing: .18em;
    }


    .hero-title {
        max-width: 600px;

        font-size:
            clamp(
                39px,
                12vw,
                57px
            );
    }


    .hero-description {
        max-width: 560px;

        margin-top: 22px;

        font-size: 17px;
    }


    .hero-actions {
        display: grid;

        grid-template-columns: 1fr;

        margin-top: 27px;
    }


    .hero-btn {
        width: 100%;

        min-height: 58px;
    }


    .hero-benefits-wrap {
        position: relative;

        order: 3;

        width: 100%;

        margin-top: -18px;

        padding-bottom: 14px;
    }


    .hero-benefits {
        grid-template-columns: 1fr;

        padding:
            8px 14px;

        border-radius: 22px;
    }


    .hero-benefit {
        border-right: 0;

        border-bottom:
            1px solid
            rgba(7,31,61,.10);

        padding:
            13px 8px;
    }


    .hero-benefit:nth-child(2) {
        border-bottom:
            1px solid
            rgba(7,31,61,.10);
    }


    .hero-benefit:last-child {
        border-bottom: 0;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 420px) {

    .home-hero-content {
        padding-top: 44px;
    }


    .hero-title {
        font-size: 40px;
    }


    .home-hero-photo {
        min-height: 320px;
    }


    .benefit-icon {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }

}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-btn,
    .hero-arrow {
        transition: none;
    }

}