/* ===== Portal de Oportunidades - Grupo Glatz ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2d3d;
  background: #f4f7fb;
  line-height: 1.6;
}
a { color: #0A66C2; }
img { max-width: 100%; }

/* Topo */
.topo { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10; }
.topo-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.topo-logo img { height: 42px; width: auto; display: block; }
.topo-nav a { margin-left: 22px; text-decoration: none; font-weight: 600; color: #1f2d3d; font-size: .95rem; }
.topo-nav a:hover { color: #0A66C2; }

/* Conteúdo */
.conteudo { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }

/* Hero */
.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; color: #0d1d2e; }
.hero p { color: #4a5b6b; max-width: 640px; margin: 0 auto; }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 32px; }
.filtro-btn {
  text-decoration: none; padding: 8px 18px; border-radius: 999px;
  background: #fff; color: #0A66C2; border: 1.5px solid #d3e0ee; font-size: .9rem; font-weight: 600;
  transition: all .2s ease;
}
.filtro-btn:hover { border-color: #0A66C2; }
.filtro-btn.ativo { background: #0A66C2; color: #fff; border-color: #0A66C2; }

/* Grid de vagas */
.vagas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vaga-card {
  background: #fff; border-radius: 14px; padding: 24px; text-decoration: none; color: inherit;
  box-shadow: 0 4px 16px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease; border: 1px solid #eef2f7;
}
.vaga-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(10,102,194,.15); }
.vaga-empresa {
  display: inline-block; align-self: flex-start; background: #eaf2fb; color: #0A66C2;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 6px;
}
.vaga-empresa.grande { font-size: .8rem; margin-bottom: 8px; }
.vaga-titulo { margin: 4px 0 2px; font-size: 1.15rem; color: #0d1d2e; }
.vaga-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #5a6b7b; }
.vaga-meta.grande { font-size: .92rem; gap: 18px; margin-bottom: 20px; }
.vaga-resumo { font-size: .9rem; color: #4a5b6b; margin: 6px 0 0; flex-grow: 1; }
.vaga-link { font-weight: 600; color: #0A66C2; font-size: .9rem; margin-top: 6px; }

.sem-vagas { text-align: center; background: #fff; border-radius: 14px; padding: 50px 20px; color: #5a6b7b; }

/* Detalhe da vaga */
.breadcrumb { margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.vaga-detalhe { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.vaga-detalhe h1 { margin: 0 0 6px; color: #0d1d2e; font-size: clamp(1.5rem, 3vw, 2rem); }
.vaga-bloco { margin-top: 24px; }
.vaga-bloco h2 { font-size: 1.1rem; color: #0A66C2; margin: 0 0 8px; }
.vaga-bloco p { margin: 0; color: #3d4d5d; }

/* Candidatura */
.candidatura { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 16px rgba(0,0,0,.06); margin-top: 26px; }
.candidatura h2 { margin: 0 0 20px; color: #0d1d2e; }
.form-candidatura .campo { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-candidatura .campo-linha { display: flex; gap: 16px; }
.form-candidatura .campo-linha .campo { flex: 1; }
.form-candidatura label { font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #3d4d5d; }
.form-candidatura input, .form-candidatura textarea {
  border: 1.5px solid #d3e0ee; border-radius: 9px; padding: 11px 13px; font-size: .95rem;
  font-family: inherit; color: #1f2d3d; background: #fbfdff; transition: border-color .2s ease;
}
.form-candidatura input:focus, .form-candidatura textarea:focus { outline: none; border-color: #0A66C2; }
.form-candidatura input[type="file"] { padding: 8px; background: #fff; }

.btn {
  display: inline-block; background: #0A66C2; color: #fff; text-decoration: none;
  padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #084e96; transform: translateY(-2px); }
.btn-enviar { margin-top: 8px; }

/* Alertas */
.alerta { padding: 18px 20px; border-radius: 12px; margin-bottom: 22px; }
.alerta.erro { background: #fdecec; border: 1px solid #f5c2c2; color: #a12626; }
.alerta.sucesso { background: #e9f8ee; border: 1px solid #b6e6c5; color: #1d7a3e; }
.alerta ul { margin: 8px 0 0; padding-left: 20px; }
.alerta .btn { margin-top: 14px; }

/* Rodapé */
.rodape { background: #0d1d2e; color: #c5d3e0; text-align: center; padding: 30px 20px; margin-top: 40px; }
.rodape-inner { max-width: 1100px; margin: 0 auto; }
.rodape p { margin: 4px 0; font-size: .88rem; }
.rodape-empresas { color: #7e93a8; font-size: .8rem; }

/* Responsivo */
@media (max-width: 900px) {
  .vagas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vagas-grid { grid-template-columns: 1fr; }
  .form-candidatura .campo-linha { flex-direction: column; gap: 0; }
  .vaga-detalhe, .candidatura { padding: 24px; }
  .topo-logo img { height: 34px; }
}
