/* =========================================
   2. HEADER PREMIUM (Grid Layout - Definitivo)
   ========================================= */

.main-header {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 90px;
    width: 100%;
}

.main-header .container {
    max-width: 98%; /* Ocupa a tela toda */
    padding: 0 40px; /* Margem lateral generosa */
    margin: 0 auto;
    height: 100%;
}

.header-wrapper {
    display: grid;
    /* 3 Colunas.
       1fr (Esquerda) | auto (Meio - Tamanho do Menu) | 1fr (Direita) */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

/* --- 1. Logo (Esquerda) --- */
.logo-area {
    display: flex;
    justify-content: flex-start;
}

.logo-area img {
    height: 100px;
    width: auto;
    display: flex;
    object-fit: contain;
}

/* --- 2. Menu (Centro Absoluto) --- */
.nav-area {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px; /* Espaço entre os links */
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-list a:hover, .nav-list a.active { color: #fff; }

.nav-list a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background-color: var(--gold-primary); transition: width 0.3s ease;
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

/* --- 3. Botão (Direita Isolada) --- */
.action-area {
    display: flex;
    justify-content: flex-end;
    padding-left: 20px; 
}

.btn-header {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    background: transparent;
    text-decoration: none;
}

.btn-header:hover {
    background-color: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 25px rgba(201, 162, 58, 0.5); 
    transform: translateY(-2px);
}

/* --- Mobile Toggle --- */
.mobile-toggle { display: none; font-size: 1.8rem; color: #fff; cursor: pointer; justify-self: end; }

/* Responsivo */
@media (max-width: 1200px) {
    /* Muda o grid para: Logo (Esq) e Hambúrguer (Dir) */
    .header-wrapper { display: flex; justify-content: space-between; }
    .nav-area, .action-area { display: none; }
    .mobile-toggle { display: block; }
}

/* =========================================
   3. MOBILE MENU FIX (Ocultar a lista solta)
   ========================================= */

.mobile-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #050505;
    border-bottom: 1px solid var(--gold-primary);
    padding: 40px 20px;
    
    display: none;
    
    flex-direction: column;
    gap: 25px;
    text-align: center;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Classe que o JavaScript adiciona para abrir */
.mobile-menu.open {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu a:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Animação suave */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CAREERS PAGE --- */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: -250px;
}

.job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.job-card:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.05);
}

.job-main h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.job-main span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-job {
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 10px 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-job:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
}

@media (max-width: 600px) {
    .job-card { flex-direction: column; text-align: center; gap: 20px; }
}