/* =====================================================
   Shortcode: [da_nav_mobile]
   ===================================================== */

/* ── Hamburger ── */
.da-mob__hamburger,
.da-mob__hamburger:hover,
.da-mob__hamburger:focus,
.da-mob__hamburger:active,
.da-mob__hamburger.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none !important;
    background-color: transparent !important;
    border: none;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.da-mob__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.da-mob__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.da-mob__hamburger.is-open span:nth-child(2) { opacity: 0; }
.da-mob__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay ── */
.da-mob__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
}
.da-mob__overlay.is-open { display: block; }

/* =====================================================
   Painel — dropdown abaixo do header (não é mais gaveta lateral)
   ===================================================== */

.da-mob__drawer {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    border-top: 1px solid #262626;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.da-mob__drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.da-mob__drawer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px 32px;
    box-sizing: border-box;
}

/* Em telas de tablet, o painel não estica de ponta a ponta —
   o conteúdo fica centralizado numa coluna confortável de leitura */
@media (min-width: 600px) {
    .da-mob__drawer-inner {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Padrão decorativo de quadrados no rodapé do painel */
.da-mob__drawer-pattern {
    position: absolute;
    left: 24px;
    bottom: 16px;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 20px);
    grid-template-rows: repeat(3, 20px);
    gap: 4px;
    pointer-events: none;
}

.da-mob__drawer-pattern span {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: transparent;
}

.da-mob__drawer-pattern span:nth-child(1)  { background: rgba(0, 94, 247, 0.5); }
.da-mob__drawer-pattern span:nth-child(2)  { background: rgba(0, 94, 247, 0.25); }
.da-mob__drawer-pattern span:nth-child(6)  { background: rgba(0, 94, 247, 0.35); }
.da-mob__drawer-pattern span:nth-child(7)  { background: rgba(0, 94, 247, 0.6); }
.da-mob__drawer-pattern span:nth-child(11) { background: rgba(0, 94, 247, 0.2); }
.da-mob__drawer-pattern span:nth-child(12) { background: rgba(0, 94, 247, 0.4); }

/* ── Links ── */
.da-mob__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.da-mob__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #e5e5e5;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: background 0.2s;
}

.da-mob__link:hover { background: #1a1a1a; color: #fff; }

/* =====================================================
   Card Soluções
   ===================================================== */

.da-mob__solucoes-card {
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border: 1px solid #262626;
    border-radius: 16px;
    overflow: hidden;
}

.da-mob__solucoes-promo {
    position: relative;
    padding: 20px;
    min-height: 132px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.da-mob__solucoes-pattern {
    position: absolute;
    top: 16px;
    left: 20px;
    display: grid;
    grid-template-columns: repeat(4, 16px);
    grid-template-rows: repeat(3, 16px);
    gap: 4px;
}

.da-mob__solucoes-pattern span {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: transparent;
}

.da-mob__solucoes-pattern span:nth-child(1) { background: #0a1a44; }
.da-mob__solucoes-pattern span:nth-child(2) { background: #1f57e0; }
.da-mob__solucoes-pattern span:nth-child(3) { background: #2f4ea8; }
.da-mob__solucoes-pattern span:nth-child(5) { background: #123a8f; }
.da-mob__solucoes-pattern span:nth-child(8) { background: #0a1a44; }
.da-mob__solucoes-pattern span:nth-child(9) { background: #0a1a44; }

.da-mob__solucoes-promo-text {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    padding-top: 56px;
}

.da-mob__solucoes-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #262626;
    text-decoration: none;
    transition: background 0.2s;
}

.da-mob__solucoes-item:hover { background: #1a1a1a; }

.da-mob__solucoes-item img:first-child {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.da-mob__solucoes-item span {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #e5e5e5;
}

.da-mob__solucoes-caret {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =====================================================
   Seletor de idioma ([da_lang_switcher]) — centralizado no drawer
   ===================================================== */

.da-mob__lang {
    display: flex;
    justify-content: center;
}

.da-mob__lang .da-lang__menu {
    right: auto;
    left: 50%;
    transform: translate(-50%, -8px);
}

.da-mob__lang .da-lang.is-open .da-lang__menu {
    transform: translate(-50%, 0);
}

/* =====================================================
   CTA — pill azul preenchido
   ===================================================== */

.da-mob__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 100px;
    background: #005ef7;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.25s;
}

.da-mob__cta:hover { background: #0048c0; }

.da-mob__cta img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* =====================================================
   Compensação da admin bar do WordPress (usuário logado)
   ===================================================== */
@media screen and (min-width: 783px) {
    body.admin-bar .da-mob__drawer { top: 105px; }
}
@media screen and (max-width: 782px) {
    body.admin-bar .da-mob__drawer { top: 119px; }
}