/* DETALHE DA VAGA — /carreiras/<vaga>/ (single-vaga.php e page-vaga.php) */

/* ── HERO ── */
#job-hero {
  background: var(--grad-hero);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.job-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.07) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50,6 94,31 94,69 50,94 6,69 6,31' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
.job-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.job-hero-inner .breadcrumb {
  margin-bottom: 24px;
}
.job-eyebrow {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--salmon);
}
.job-hero-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.job-meta-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
}
.job-meta-tag.loc {
  color: var(--salmon);
}
.job-meta-tag.type {
  color: rgba(255, 255, 255, 0.8);
}
.job-meta-tag svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.job-meta-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}
.job-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 620px;
}

.job-hero-inner > * {
  animation: fadeUp 0.8s var(--ease) both;
}
.job-hero-inner .breadcrumb {
  animation-delay: 0.1s;
}
.job-eyebrow {
  animation-delay: 0.2s;
}
.job-hero-title {
  animation-delay: 0.3s;
}
.job-meta {
  animation-delay: 0.35s;
}
.job-hero-desc {
  animation-delay: 0.4s;
}

/* ── CORPO ── */
#job-body {
  background: var(--off-white);
  padding: 72px 0 96px;
}
.job-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: flex-start;
}

.job-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.job-section {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 20px;
}
.job-section:last-child {
  margin-bottom: 0;
}
.job-section-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Barrinha de gradiente à esquerda de cada título. */
.job-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--grad);
  border-radius: 2px;
  flex-shrink: 0;
}
.job-section p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.job-section p:last-child {
  margin-bottom: 0;
}
/* Nota sob um título de secção — usada nos Diferenciais, para deixar claro
   que aqueles pontos não são requisitos obrigatórios. */
.job-section-nota {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  list-style: none;
}
.job-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  margin-top: 8px;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.offer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}
.offer-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── SIDEBAR ── */
.job-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 92px;
}
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.sidebar-card-center {
  text-align: center;
}
.partilha-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Na coluna de conteúdo a secção é larga, e dois botões pequenos ao centro
   ficavam perdidos. Alinham à esquerda, como o resto do texto. */
.job-section-partilha .partilha-btns {
  justify-content: flex-start;
}
/* ── Resumo da função ── */
.glance-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.glance-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.glance-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.glance-icon {
  width: 36px;
  height: 36px;
  background: var(--peach);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.glance-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}
.glance-key {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.glance-val {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ── Responsivo ──
   Estas três regras eram tudo o que restava desta página no main.css,
   órfãs das regras base que deviam estar acima delas. */
@media (max-width: 1024px) {
  .job-layout {
    grid-template-columns: 1fr;
  }
  .job-sidebar {
    position: static;
  }
}
@media (max-width: 768px) {
  .job-hero-inner {
    max-width: 100%;
  }
  .job-hero-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .job-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .job-section {
    padding: 28px 24px;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
}
