/* =============================================
   REINÍCIO E BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.6;
}

/* =============================================
   BARRA DE NAVEGAÇÃO
   ============================================= */
.navbar {
    background-color: #000000;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 72px;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.nav-logo svg {
    display: block;
    height: 28px;
    width: auto;
}

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

.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
}

.nav-lang span {
    font-size: 14px;
    color: #ffffff;
}

.nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fc5f2b;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 24px;
    border-radius: 9999px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-contact:hover {
    background-color: #e54e1e;
}


/* =============================================
   PÁGINA DE LISTAGEM DE VAGAS
   ============================================= */
.listings-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

/* --- Cabeçalho: Título + Filtros --- */
.listings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 40px;
}

.listings-title-col {
    flex: 1 1 auto;
}

.listings-title {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 700;
    color: #000000;
    letter-spacing: -2.5px;
    line-height: 1;
}

.listings-filters-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.filters-label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.filters-row {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Dropdowns dos filtros --- */
.filter-dropdown {
    position: relative;
}

.filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 1px solid #d9d9d9;
    min-width: 160px;
    user-select: none;
    transition: border-color 0.15s;
}

.filter-select:hover {
    border-color: #000000;
}

.filter-dropdown.aberto .filter-select {
    border-color: #000000;
}

.filter-dropdown.aberto .filter-chevron {
    transform: rotate(180deg);
}

.filter-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.filter-select-text {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.filter-select-text--ativo {
    color: #0008f2;
}

/* Lista de opções do dropdown */
.dropdown-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    list-style: none;
    padding: 6px 0;
    z-index: 200;
    overflow: hidden;
}

.filter-dropdown.aberto .dropdown-list {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #1d1d1f;
    cursor: pointer;
    transition: background-color 0.12s;
}

.dropdown-item:hover {
    background-color: #f5f5f7;
}

.dropdown-item--all {
    color: #6e6e73;
    font-style: italic;
}

.dropdown-item--selecionado {
    font-weight: 600;
    color: #0008f2;
    background-color: #f0f0ff;
}

/* --- Lista de vagas --- */
.jobs-list {
    width: 100%;
}

.job-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 120px;
    padding: 0 12px;
    border-bottom: 1px solid #d9d9d9;
    transition: background-color 0.15s;
}

.job-row:first-child {
    border-top: 1px solid #d9d9d9;
}

.job-row:hover {
    background-color: #f9f9ff;
}

.job-row--active {
    background-color: #f9f9ff;
}

.job-name {
    font-size: 18px;
    font-weight: 600;
    color: #656565;
}

.job-meta {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

.job-link {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    min-width: 110px;
    text-align: right;
    transition: color 0.15s;
}

.job-link:hover {
    color: #0008f2;
}

.job-link--active {
    font-weight: 600;
    color: #0008f2;
}


/* =============================================
   PÁGINA DE DETALHE DA VAGA
   ============================================= */
.detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Link de retorno */
.back-link {
    display: inline-block;
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1d1d1f;
}

/* Título da vaga */
.page-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 50px;
    line-height: 1.1;
}

/* Grelha de conteúdo */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

/* Barra lateral */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #d2d2d7;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 15px;
}

.sidebar-value {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Conteúdo principal */
.main-content {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #d2d2d7;
    margin-bottom: 40px;
}

.tab {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #6e6e73;
    padding: 0 0 15px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab:hover {
    color: #1d1d1f;
}

.tab.active {
    color: #0066cc;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0066cc;
}

/* Secções de conteúdo */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.content-section p {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.6;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.content-section ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #1d1d1f;
    font-weight: bold;
}

/* Secção de candidatura */
.apply-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #d2d2d7;
    margin-top: 60px;
}

.apply-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.apply-section p {
    font-size: 14px;
    color: #6e6e73;
}

.apply-button {
    background-color: #fc5f2b;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.apply-button:hover {
    background-color: #e54e1e;
}


/* =============================================
   RESPONSIVO – TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .nav-inner {
        padding: 0 24px;
    }

    .listings-wrapper {
        padding: 0 24px 60px;
    }

    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .filters-row {
        gap: 20px;
    }

    .filter-select {
        min-width: 130px;
    }

    .filter-select-text {
        font-size: 16px;
    }

    .job-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .job-name {
        grid-column: 1;
        grid-row: 1;
        font-size: 16px;
    }

    .job-meta {
        grid-column: 1;
        grid-row: 2;
        font-size: 14px;
        color: #6e6e73;
    }

    .job-link {
        grid-column: 2;
        grid-row: 1 / 3;
        font-size: 16px;
        align-self: center;
    }

    /* Página de detalhe */
    .detail-wrapper {
        padding: 32px 24px 60px;
    }

    .content-grid {
        grid-template-columns: 220px 1fr;
        gap: 48px;
    }
}


/* =============================================
   RESPONSIVO – TELEMÓVEL (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .nav-logo svg {
        height: 22px;
    }

    .nav-lang {
        display: none;
    }

    .nav-contact {
        font-size: 14px;
        padding: 8px 18px;
    }

    .listings-wrapper {
        padding: 0 16px 48px;
    }

    .listings-header {
        padding-top: 36px;
        padding-bottom: 32px;
        gap: 28px;
    }

    .listings-title {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .filters-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .filter-select {
        min-width: 200px;
    }

    .job-name {
        font-size: 15px;
    }

    .job-meta {
        font-size: 13px;
    }

    .job-link {
        font-size: 14px;
    }

    /* Página de detalhe */
    .detail-wrapper {
        padding: 24px 16px 48px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .main-content {
        padding: 24px 20px;
    }

    .apply-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .apply-button {
        width: 100%;
    }
}


/* =============================================
   RESPONSIVO – TELEMÓVEL PEQUENO (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    .listings-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-section {
        padding-bottom: 20px;
        border-bottom: 1px solid #d2d2d7;
        margin-bottom: 0;
    }

    .sidebar-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-section p,
    .content-section ul li {
        font-size: 15px;
    }
}


/*new*/

.lang-dropdown {
    position: relative;
    display: inline-block;
    padding:20px;
}

.lang-trigger {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    color: #fff;
    font-family: "Geist", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.lang-trigger svg {
    display: block;
    flex-shrink: 0;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 72px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

.lang-dropdown.open .lang-menu {
    display: flex;
}

.lang-option {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    width: 100%;
    display: block;
    text-align: left;
    padding: 10px 12px;
    margin: 0;
    border-radius: 10px;
    color: #fff;
    font-family: "Geist", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(255,255,255,0.08);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.page-btn {
    background: transparent;
    border: 1px solid #B2B2BC;
    color: #111;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.page-btn {
    background: transparent;
    border: 1px solid #B2B2BC;
    color: #111;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}
