/*
 * Menu Interativo — Braslimpo
 */


/* =========================================================
   1. CONTAINER PRINCIPAL
   ========================================================= */

   .bl-menu-section {
    --bl-size: clamp(300px, 38vw, 546px);
    --bl-hub: 45%;

    --bl-surface: rgba(255, 255, 255, 0.94);
    --bl-divider: #e5e7eb;

    --bl-shift-x: calc(var(--bl-size) * 0.024);
    --bl-shift-y: calc(var(--bl-size) * 0.026);

    --bl-ease: cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;

    padding-top: 60px;
    padding-bottom: 70px;
}


/* =========================================================
   2. BACKGROUNDS
   ========================================================= */

.bl-menu-backgrounds {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 0;

    pointer-events: none;
}


.bl-menu-bg-layer {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;

    transition:
        opacity 0.4s ease;
}


/* Background ativo */

.bl-menu-section[data-bl-active="0"]
.bl-menu-bg-layer[data-index="0"] {
    opacity: 1;
}

.bl-menu-section[data-bl-active="1"]
.bl-menu-bg-layer[data-index="1"] {
    opacity: 1;
}

.bl-menu-section[data-bl-active="2"]
.bl-menu-bg-layer[data-index="2"] {
    opacity: 1;
}

.bl-menu-section[data-bl-active="3"]
.bl-menu-bg-layer[data-index="3"] {
    opacity: 1;
}


/* Camada branca sobre o background */

.bl-menu-veil {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.55);

    z-index: 1;

    pointer-events: none;
}


/* =========================================================
   3. CONTEÚDO
   ========================================================= */

.bl-menu-content {
    position: relative;

    z-index: 2;
}


/* =========================================================
   4. TÍTULO
   ========================================================= */

.bl-menu-section-title {
    position: relative;

    margin-top: 0;
    margin-bottom: 40px;

    text-align: center;

    color: #133984;

    z-index: 2;
}


/* =========================================================
   5. PALCO DO MENU
   ========================================================= */

.bl-menu-stage {
    position: relative;

    width: var(--bl-size);

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   6. RODA
   ========================================================= */

.bl-menu-wheel {
    position: relative;

    width: var(--bl-size);
    height: var(--bl-size);

    margin-left: auto;
    margin-right: auto;
}


.bl-menu-disc {
    display: grid;

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

    gap: 2px;

    width: 100%;
    height: 100%;

    background: var(--bl-divider);

    border-radius: 50%;

    overflow: hidden;

    filter:
        drop-shadow(
            0 18px 40px rgba(19, 57, 132, 0.18)
        );
}


/* =========================================================
   7. ITENS
   ========================================================= */

.bl-menu-item {
    display: flex;

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

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    background: var(--bl-surface);

    color: var(--bl-accent, #133984);

    text-align: center;
    text-decoration: none;

    border: 0;

    padding: 0;

    font: inherit;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


.bl-menu-item:hover,
.bl-menu-item:focus {
    text-decoration: none;
}


/* =========================================================
   8. ITEM ATIVO
   ========================================================= */

.bl-menu-section[data-bl-active="0"]
.bl-menu-item:nth-child(1) {
    background: var(--bl-accent, #133984);
    color: #ffffff;
}


.bl-menu-section[data-bl-active="1"]
.bl-menu-item:nth-child(2) {
    background: var(--bl-accent, #133984);
    color: #ffffff;
}


.bl-menu-section[data-bl-active="2"]
.bl-menu-item:nth-child(3) {
    background: var(--bl-accent, #133984);
    color: #ffffff;
}


.bl-menu-section[data-bl-active="3"]
.bl-menu-item:nth-child(4) {
    background: var(--bl-accent, #133984);
    color: #ffffff;
}


/* =========================================================
   9. CONTEÚDO DOS ITENS
   ========================================================= */

.bl-menu-body {
    display: flex;

    flex-direction: column;

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

    gap: calc(var(--bl-size) * 0.028);
}


/* Item superior esquerdo */

.bl-menu-item:nth-child(1) .bl-menu-body {
    transform:
        translate(
            calc(var(--bl-shift-x) * -1),
            var(--bl-shift-y)
        );
}


/* Item superior direito */

.bl-menu-item:nth-child(2) .bl-menu-body {
    transform:
        translate(
            var(--bl-shift-x),
            var(--bl-shift-y)
        );
}


/* Item inferior esquerdo */

.bl-menu-item:nth-child(3) .bl-menu-body {
    transform:
        translate(
            calc(var(--bl-shift-x) * -1),
            calc(var(--bl-shift-y) * -1)
        );
}


/* Item inferior direito */

.bl-menu-item:nth-child(4) .bl-menu-body {
    transform:
        translate(
            var(--bl-shift-x),
            calc(var(--bl-shift-y) * -1)
        );
}


/* =========================================================
   10. ÍCONES
   ========================================================= */

.bl-menu-icon {
    width: calc(var(--bl-size) * 0.112);

    height: auto;
}


.bl-menu-icon svg {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   11. TEXTO
   ========================================================= */

.bl-menu-label {
    font-size:
        clamp(
            13px,
            calc(var(--bl-size) * 0.033),
            18px
        );

    font-weight: 700;

    line-height: 1.25;

    color: inherit;
}


/* =========================================================
   12. CENTRO DA RODA
   ========================================================= */

.bl-menu-hub {
    position: absolute;

    top: 50%;
    left: 50%;

    width: var(--bl-hub);
    height: var(--bl-hub);

    transform: translate(-50%, -50%);

    display: flex;

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

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.72);

    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    z-index: 5;

    pointer-events: none;
}


.bl-menu-hub img {
    display: block;

    width: 46%;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   13. TOOLTIPS
   ========================================================= */

.bl-menu-tips {
    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 10;
}


.bl-menu-tip {
    position: absolute;

    width: max(180px, 34%);

    box-sizing: border-box;

    margin: 0;

    padding: 16px 20px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(19, 57, 132, 0.15);

    font-size: 15px;

    line-height: 1.45;

    text-align: center;

    opacity: 0;

    visibility: hidden;

    transform: translateY(6px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}


/* Tooltip item 1 */

.bl-menu-tip[data-index="0"] {
    right: 82%;
    top: 4%;
}


/* Tooltip item 2 */

.bl-menu-tip[data-index="1"] {
    left: 82%;
    top: 4%;
}


/* Tooltip item 3 */

.bl-menu-tip[data-index="2"] {
    right: 82%;
    bottom: 4%;
}


/* Tooltip item 4 */

.bl-menu-tip[data-index="3"] {
    left: 82%;
    bottom: 4%;
}


/* Tooltip ativo */

.bl-menu-section[data-bl-active="0"]
.bl-menu-tip[data-index="0"] {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.bl-menu-section[data-bl-active="1"]
.bl-menu-tip[data-index="1"] {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.bl-menu-section[data-bl-active="2"]
.bl-menu-tip[data-index="2"] {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.bl-menu-section[data-bl-active="3"]
.bl-menu-tip[data-index="3"] {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   14. TABLET
   ========================================================= */

@media (max-width: 959px) {

    .bl-menu-section {
        --bl-size: clamp(300px, 65vw, 460px);

        padding-top: 50px;
        padding-bottom: 50px;
    }


    .bl-menu-stage {
        width: auto;
    }


    .bl-menu-tips {
        position: relative;

        inset: auto;

        display: grid;

        max-width: 420px;

        margin: 30px auto 0;
    }


    .bl-menu-tip,
    .bl-menu-tip[data-index="0"],
    .bl-menu-tip[data-index="1"],
    .bl-menu-tip[data-index="2"],
    .bl-menu-tip[data-index="3"] {

        position: static;

        grid-area: 1 / 1;

        width: auto;
    }

}


/* =========================================================
   15. MOBILE
   ========================================================= */

@media (max-width: 639px) {

    .bl-menu-section {
        --bl-size: min(340px, 88vw);

        padding-top: 40px;
        padding-bottom: 40px;
    }


    .bl-menu-section-title {
        margin-bottom: 30px;

        font-size: 26px;
    }


    .bl-menu-icon {
        width: calc(var(--bl-size) * 0.13);
    }

}


/* =========================================================
   16. REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bl-menu-bg-layer,
    .bl-menu-item,
    .bl-menu-tip {
        transition: none;
    }

}

/* =========================================================
   17. BACKGROUND NA SECTION DO YOOTHEME
   ========================================================= */

   .menu-interativo-area {
    position: relative;
    overflow: hidden;
}

/* Faz as camadas ocuparem a Section inteira */
.menu-interativo-area .bl-menu-backgrounds {
    position: absolute;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 100%;

    transform: translateX(-50%);

    z-index: 0;
}

/* Garante que o conteúdo da Section fique por cima */
.menu-interativo-area > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   18. REFINO DO BACKGROUND DA SECTION
   ========================================================= */

   .menu-interativo-area {
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: background-image 0.35s ease;
}

/* overlay claro por cima do background */
.menu-interativo-area::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.55);

    z-index: 0;

    pointer-events: none;
}

/* conteúdo da section acima do overlay */
.menu-interativo-area > * {
    position: relative;
    z-index: 1;
}

/* Remove o background interno do componente */
.bl-menu-backgrounds {
    opacity: 0 !important;
    pointer-events: none;
}