header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--gray-colors-200);
    border-radius: 200px;
    padding: 12px 32px;
    width: 100%;
    margin-top: 24px;
    position: relative;
    box-sizing: border-box;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--primary-600);
    margin: 0;
    white-space: nowrap; 
}

/* LINKS CENTRALIZADOS NO DESKTOP (Sem quebrar o layout) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    width: auto; /* Remove o 100% que causava o encavalamento */
}

.btn-desktop {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-mobile, 
.hamburger-menu {
    display: none !important;
}

/* Estilo do Hambúrguer */
.hamburger-menu {
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-600);
    border-radius: 2px;
}

/* MOBILE */
@media screen and (max-width: 900px) {
    .hamburger-menu {
        display: flex !important;
    }

    .btn-desktop {
        display: none !important;
    }

    .btn-mobile {
        display: inline-flex !important;
        white-space: nowrap;
        margin-top: 8px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%; /* No mobile ele volta a ter 100% para fazer a caixa de dropdown */
        background-color: #fff;
        border: 1px solid var(--gray-colors-200);
        border-radius: 24px;
        padding: 24px;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 100;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex !important;
    }
}
