/* Header Global */
.direto-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.direto-header__container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.direto-header__logo img {
    height: auto;
    width: 160px;
    max-width: 190px;
    display: block;
}

/* Navigation */
.direto-header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.direto-header__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    transition: background 180ms ease;
    position: relative;
}

.direto-header__link svg {
    color: var(--color-primary);
    transition: color 180ms ease, filter 180ms ease;
}

.direto-header__link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.direto-header__link:hover svg {
    color: var(--color-primary-hover);
}

/* Active State */
.direto-header__link.is-active::after {
    content: '';
    position: absolute;
    bottom: -16px; /* Alinha com a borda do header, ajustado se necessário */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
}

/* Actions */
.direto-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.direto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
    border: none;
    font-family: var(--font-base);
}

.direto-btn svg {
    width: 20px;
    height: 20px;
}

.direto-btn--cliente {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(34, 197, 94, 0.55);
}

.direto-btn--cliente svg {
    color: var(--color-primary);
}

.direto-btn--cliente:hover {
    background: rgba(34, 197, 94, 0.08);
}

.direto-btn--projeto {
    background: var(--color-primary);
    color: #08110A;
}

.direto-btn--projeto:hover {
    background: var(--color-primary-hover);
}

/* Mobile Toggle */
.direto-header__mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Panel */
.direto-mobile-panel {
    display: none; /* hidden by default on desktop */
}

/* Responsive */
@media (max-width: 1024px) {
    .direto-header__container {
        height: 64px;
        padding: 0 20px;
    }

    .direto-header__logo img {
        width: 140px;
    }

    .direto-header__nav,
    .direto-header__actions {
        display: none;
    }

    .direto-header__mobile-toggle {
        display: block;
    }

    /* Mobile Panel Styles */
    .direto-mobile-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-base);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        padding: 24px;
    }

    .direto-mobile-panel.is-open {
        opacity: 1;
        visibility: visible;
    }

    .direto-mobile-panel__header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 32px;
    }

    .direto-mobile-panel__close {
        background: transparent;
        border: none;
        color: var(--color-text);
        cursor: pointer;
        padding: 8px;
    }

    .direto-mobile-panel__nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 48px;
    }

    .direto-mobile-panel__link {
        display: flex;
        align-items: center;
        gap: 16px;
        color: var(--color-text);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        padding: 12px 16px;
        border-radius: 8px;
        background: transparent;
    }

    .direto-mobile-panel__link svg {
        color: var(--color-primary);
        width: 24px;
        height: 24px;
    }

    .direto-mobile-panel__link:active {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .direto-mobile-panel__divider {
        height: 1px;
        background: var(--color-border);
        margin: 0 0 32px 0;
    }

    .direto-mobile-panel__actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .direto-mobile-panel__actions .direto-btn {
        width: 100%;
    }
}
