/* =========================================================
   CDC — MENU MOBILE / TABLET
   ========================================================= */


/* =========================================================
   BOTÃO HAMBÚRGUER
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 48px;
    height: 48px;

    margin-left: 12px;

    padding: 0;

    border: 0;
    border-radius: 14px;

    background: #eef5ff;
    color: var(--cdc-navy);

    cursor: pointer;

    align-items: center;
    justify-content: center;

    transition:
        background .2s ease,
        transform .2s ease;
}


.mobile-menu-toggle:hover {
    background: #e0edff;
}


.mobile-menu-toggle:active {
    transform: scale(.96);
}


.mobile-menu-icon {
    position: relative;

    width: 22px;
    height: 16px;

    display: block;
}


.mobile-menu-icon span {
    position: absolute;

    left: 0;

    width: 22px;
    height: 2px;

    border-radius: 99px;

    background: currentColor;

    transition:
        top .22s ease,
        transform .22s ease,
        opacity .18s ease;
}


.mobile-menu-icon span:nth-child(1) {
    top: 0;
}


.mobile-menu-icon span:nth-child(2) {
    top: 7px;
}


.mobile-menu-icon span:nth-child(3) {
    top: 14px;
}


/* Estado aberto */

.mobile-menu-toggle[aria-expanded="true"]
.mobile-menu-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}


.mobile-menu-toggle[aria-expanded="true"]
.mobile-menu-icon span:nth-child(2) {
    opacity: 0;
}


.mobile-menu-toggle[aria-expanded="true"]
.mobile-menu-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}


/* =========================================================
   PAINEL
   ========================================================= */

.mobile-nav {
    display: none;
}


.mobile-nav[hidden] {
    display: none !important;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 1220px) {

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 48px;
    }


    .mobile-nav {
        position: fixed;

        z-index: 2000;

        top: var(--mobile-nav-top, 80px);
        right: 0;
        bottom: 0;
        left: 0;

        display: block;

        overflow-y: auto;
        overscroll-behavior: contain;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f7fbff 100%
            );

        border-top:
            1px solid
            rgba(7, 31, 61, .08);

        box-shadow:
            0 22px 45px
            rgba(7, 31, 61, .13);
    }


    .mobile-nav-inner {
        width: min(
            calc(100% - 36px),
            760px
        );

        margin: 0 auto;

        padding:
            27px 0 40px;
    }


    /* =============================================
       NAVEGAÇÃO PRINCIPAL
       ============================================= */

    .mobile-nav-list {
        margin: 0;
        padding: 0;

        list-style: none;
    }


    .mobile-nav-item {
        border-bottom:
            1px solid
            rgba(7, 31, 61, .08);
    }


    .mobile-nav-link,
    .mobile-solutions-trigger {
        width: 100%;

        min-height: 62px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 15px;

        padding: 0;

        border: 0;

        color: var(--cdc-navy);
        background: transparent;

        text-align: left;

        font-family: inherit;
        font-size: 17px;
        font-weight: 850;

        cursor: pointer;
    }


    .mobile-nav-link {
        text-decoration: none;
    }


    .mobile-nav-arrow {
        color: var(--cdc-blue);

        font-size: 20px;
        font-weight: 700;
    }


    /* =============================================
       SOLUÇÕES — ACCORDION
       ============================================= */

    .mobile-solutions-trigger-icon {
        width: 31px;
        height: 31px;

        display: grid;
        place-items: center;

        flex: 0 0 31px;

        border-radius: 50%;

        color: #ffffff;
        background: var(--cdc-blue);

        font-size: 19px;

        transition:
            transform .22s ease,
            background .22s ease;
    }


    .mobile-solutions-trigger[aria-expanded="true"]
    .mobile-solutions-trigger-icon {
        transform: rotate(45deg);
        background: var(--cdc-coral);
    }


    .mobile-solutions-panel {
        padding:
            0 0 20px;
    }


    .mobile-solutions-panel[hidden] {
        display: none !important;
    }


    .mobile-solutions-grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .mobile-solution-link {
        min-height: 84px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding: 14px 15px;

        border:
            1px solid
            rgba(7, 31, 61, .07);

        border-radius: 16px;

        color: var(--cdc-navy);
        background: #ffffff;

        box-shadow:
            0 8px 22px
            rgba(7, 31, 61, .045);

        font-size: 13px;
        font-weight: 850;

        line-height: 1.25;

        text-decoration: none;
    }


    .mobile-solution-link span {
        display: block;

        margin-top: 4px;

        color: var(--cdc-muted);

        font-size: 10px;
        font-weight: 600;
    }


    /* =============================================
       BOTÕES DO MENU
       ============================================= */

    .mobile-nav-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

        margin-top: 27px;
    }


    .mobile-nav-btn {
        min-height: 54px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        padding: 0 15px;

        border-radius: 15px;

        font-size: 13px;
        font-weight: 900;

        text-align: center;

        text-decoration: none;
    }


    .mobile-nav-find {
        color: #ffffff;

        background:
            linear-gradient(
                135deg,
                var(--cdc-green),
                #0bc67c
            );

        box-shadow:
            0 12px 26px
            rgba(24, 166, 106, .18);
    }


    .mobile-nav-operator {
        color: #ffffff;

        background:
            linear-gradient(
                135deg,
                var(--cdc-blue),
                #087df6
            );

        box-shadow:
            0 12px 26px
            rgba(18, 100, 227, .18);
    }


    /* =============================================
       PEQUENO RODAPÉ DO MENU
       ============================================= */

    .mobile-nav-foot {
        margin-top: 27px;

        padding-top: 20px;

        border-top:
            1px solid
            rgba(7, 31, 61, .08);

        color: var(--cdc-muted);

        font-size: 11px;
        line-height: 1.6;
    }


    /* =============================================
       BODY COM MENU ABERTO
       ============================================= */

    body.mobile-nav-open {
        overflow: hidden;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .mobile-menu-toggle {
        width: 46px;
        height: 46px;

        margin-left: auto;

        border-radius: 13px;
    }


    .mobile-nav-inner {
        width: calc(100% - 30px);

        padding-top: 18px;
    }


    .mobile-nav-link,
    .mobile-solutions-trigger {
        min-height: 58px;

        font-size: 16px;
    }


    .mobile-nav-actions {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 430px) {

    .mobile-solutions-grid {
        grid-template-columns: 1fr;
    }


    .mobile-solution-link {
        min-height: 68px;
    }

}


/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mobile-menu-toggle,
    .mobile-menu-icon span,
    .mobile-solutions-trigger-icon {
        transition: none;
    }

}