/* ── Header Principal ──────────────────────────────────── */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.main-header.header--scrolled {
    background-color: rgba(5, 8, 13, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 80px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ── Logo & Hambúrguer ───────────────────────────────────── */

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo__img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* ── Menu Desktop ────────────────────────────────────────── */

.nav-sentence {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-answers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
}

.nav-sentence a {
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.nav-sentence a:hover {
    color: #38bdf8;
}

/* ── Dropdown Desktop ────────────────────────────────────── */

.nav-sentence .dropdown {
    position: relative;
}

.nav-sentence .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

.nav-sentence .dropdown-menu {
    background-color: rgba(11, 25, 44, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-sentence .dropdown-item {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    text-transform: none;
    transition: all 0.2s ease;
}

.nav-sentence .dropdown-item:hover {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

/* ── Ações do Topo (Botão Fala Comigo + Toggle) ──────────── */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: #25d366;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-contact-btn:hover {
    background: #1eb558;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ── Botão Hambúrguer Mobile ─────────────────────────────── */

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 8px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 4px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ── Backdrop do Drawer ──────────────────────────────────── */

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1001;
}

/* ── Drawer Menu Mobile ──────────────────────────────────── */

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 340px);
    height: 100dvh;
    background: #08101e;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.55);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1002;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body.nav-open,
.nav-open {
    overflow: hidden;
}

body.nav-open .nav-backdrop,
.main-header.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
}

body.nav-open .nav-drawer,
.main-header.nav-open .nav-drawer {
    transform: translateX(0);
}

/* Cabeçalho do Drawer */
.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer__logo .header-logo__img {
    height: 46px;
}

.nav-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    transform: rotate(90deg);
}

.nav-close svg {
    width: 20px;
    height: 20px;
}

/* Corpo do Drawer */
.nav-drawer__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.nav-drawer__nav {
    width: 100%;
}

.nav-drawer__answers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-drawer__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    padding-left: 18px;
}

/* Dropdown dentro do Drawer */
.nav-drawer .dropdown {
    width: 100%;
}

.nav-drawer .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-drawer .dropdown-toggle::after {
    display: none;
}

.nav-drawer .dropdown-toggle.show i {
    transform: rotate(180deg);
}

.nav-drawer .dropdown-menu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px;
    box-shadow: none;
}

.nav-drawer .dropdown-item {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    display: block;
}

.nav-drawer .dropdown-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

/* Ação inferior no Drawer */
.nav-drawer__action {
    margin-top: 6px;
}

/* Redes Sociais no rodapé do Drawer */
.nav-drawer__social {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-drawer__social a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.nav-drawer__social a:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    transform: translateY(-3px);
}

/* ── Breakpoints Responsivos ─────────────────────────────── */

@media (max-width: 992px) {
    .header-inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-sentence {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-logo__img {
        height: 48px;
    }
}

@media (max-width: 576px) {
    .header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-logo__img {
        height: 42px;
    }

    .header-contact-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .header-contact-btn span {
        display: none; /* Apenas ícone no cabeçalho em telas pequenas */
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
    }
}

