/* ==========================================
   HEADER CSS
   ========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    height: var(--header-h);
}

.header-logo { flex-shrink: 0; }

.header-logo img {
    height: 46px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.header-nav .nav-link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    transition: color var(--ease);
}

.header-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform var(--ease);
}

.header-nav .nav-link:hover { color: var(--blue); }
.header-nav .nav-link:hover::after,
.header-nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header-nav .nav-link[aria-current="page"] { color: var(--blue); }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 700;
    transition: background-color var(--ease);
}

.header-cta:hover { background: var(--blue-700); }

.header-cta .icon { width: 18px; height: 18px; }

/* Tablet / celular: logo + botão na 1ª linha, menu rolável na 2ª */
@media (max-width: 899px) {
    :root { --header-h: 116px; }

    .header-content {
        flex-wrap: wrap;
        height: auto;
        gap: 0;
        padding-top: 12px;
    }

    .header-logo img { height: 40px; }

    .header-cta { margin-left: auto; }

    .header-nav {
        order: 3;
        width: 100%;
        margin: 10px 0 0;
        padding: 6px 0 12px;
        gap: 24px;
        overflow-x: auto;
        scrollbar-width: none;
        border-top: 1px solid var(--line);
    }

    .header-nav::-webkit-scrollbar { display: none; }

    .header-nav .nav-link {
        white-space: nowrap;
        padding: 6px 0;
    }

    .header-nav .nav-link::after { bottom: 0; }
}

.header-cta .cta-short { display: none; }

@media (max-width: 420px) {
    .header-cta { padding: 0 14px; font-size: 0.875rem; }
    .header-cta .cta-number { display: none; }
    .header-cta .cta-short { display: inline; }

    .header-nav { gap: 18px; }
    .header-nav .nav-link { font-size: 0.875rem; }
}
