/* ==========================================================
   Página de vagas: complementa styles.css
   Layout editorial (revista): tipografia grande em Playfair,
   fios finos no lugar de caixas e muito respiro.
   ========================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.is-locked { overflow: hidden; }

/* Os tokens de cor e largura agora vivem no styles.css, valendo para o site todo. */

/* Header */
.vg-header-right { display: flex; align-items: center; gap: 16px; }
.vg-recruit { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.vg-header-cta { min-height: 42px; padding: .5em 1.1em; }
@media (max-width: 560px) {
  .vg-recruit { display: none; }
  .vg-header-cta { flex: none; white-space: nowrap; font-size: .68rem; letter-spacing: .08em; padding: .5em .85em; min-height: 38px; }
  .page-vagas .brand-name small { font-size: .6rem; letter-spacing: .14em; }
}

/* ---------- Blocos de texto ---------- */
.ed-section { padding: 88px 0; }
.ed-section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .ed-section { padding: 136px 0; } }

.ed-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .32em; color: var(--muted);
}
.ed-eyebrow::before { content: ""; width: 26px; height: 2px; flex: none; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }
.ed-eyebrow .live-dot { margin-right: -4px; }

.ed-display {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 24px;
}
.ed-display-2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.7rem); line-height: 1.02; letter-spacing: -.015em;
  margin: 0 0 18px;
}
.ed-display em, .ed-display-2 em { font-style: italic; font-weight: 500; color: var(--muted); }

.ed-head { max-width: 58ch; margin-bottom: 56px; }
.ed-sub { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 54ch; }

/* ---------- Hero ---------- */
.ed-hero { padding: 48px 0 0; }
@media (min-width: 900px) { .ed-hero { padding: 84px 0 0; } }
.ed-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .ed-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; } }

.ed-lead {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 44ch; margin: 0;
  border-left: 2px solid var(--line-2); padding-left: 18px;
}
.ed-lead strong { color: var(--text); font-weight: 600; }
.ed-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* As fotos originais tem 900px de largura. O teto abaixo garante que nenhuma
   delas seja ampliada alem disso em nenhuma largura de tela. */
.ed-hero-figure { position: relative; margin: 0 auto; max-width: 900px; border: 1px solid var(--line); overflow: hidden; }
.ed-hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 25%;
  filter: grayscale(.25) contrast(1.04);
  transform: scale(1.05); animation: ed-zoom 16s var(--ease) forwards;
}
.ed-hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--veu) 0%, transparent 42%); }
.ed-hero-figure figcaption {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sobre-foto); font-weight: 600;
}
@keyframes ed-zoom { to { transform: scale(1); } }

/* Números do hero */
.ed-stats {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.ed-stats li { padding: 20px 0; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.ed-stats li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.ed-stats li:nth-child(even) { padding-left: 20px; }
.ed-stats strong { display: inline-flex; align-items: center; gap: 5px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 4.2vw, 2.1rem); line-height: 1.1; }
.ed-stats strong .icon { color: var(--btn-bg); width: .72em; height: .72em; }
.ed-stats span { color: var(--muted); font-size: .84rem; }
@media (min-width: 820px) {
  .ed-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .ed-stats li,
  .ed-stats li:nth-child(odd),
  .ed-stats li:nth-child(even) { border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 24px; }
  .ed-stats li:first-child { padding-left: 0; }
  .ed-stats li:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Cartão da vaga ---------- */
.ed-role {
  display: flex; align-items: center; gap: 24px;
  padding: 32px 26px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, background-color .25s;
}
.ed-role:hover { border-color: var(--line-2); background: var(--surface-2); }
.ed-role-main { flex: 1; min-width: 0; }
.ed-role-kicker { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.ed-role-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 5.4vw, 2.7rem); line-height: 1.05; margin: 0 0 14px; }
.ed-role-text { color: var(--muted); margin: 0 0 20px; max-width: 58ch; }
.ed-role-go {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.ed-role-go:hover { background: var(--btn-bg); color: var(--btn-fg); transform: translateX(4px); }
.ed-role-go .icon { width: 22px; height: 22px; }
@media (max-width: 680px) { .ed-role { flex-direction: column; align-items: stretch; } .ed-role-go { width: 100%; height: 52px; } }

.ed-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ed-chips li {
  padding: 7px 13px; border: 1px solid var(--line-2); color: var(--muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ed-chips-lg li { font-size: .82rem; letter-spacing: .06em; text-transform: none; color: var(--text); font-weight: 600; padding: 9px 15px; }
.ed-chips-lg small { color: var(--muted); font-weight: 500; font-size: .76em; }

/* Detalhes da vaga */
.ed-job { display: grid; gap: 40px; margin-top: 56px; }
.ed-minihead { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ed-job-card { border: 1px solid var(--line-2); background: var(--surface); padding: 26px 22px; display: grid; gap: 12px; align-content: start; }
.ed-job-card .note:empty { display: none; }
@media (min-width: 1000px) { .ed-job { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 48px; } }

.vg-dl { margin: 0 0 8px; }
.vg-dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vg-dl dt { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 3px; }
.vg-dl dd { margin: 0; font-weight: 600; font-size: .96rem; }

/* ---------- Valores ---------- */
.ed-values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ed-values li { display: grid; gap: 10px 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.ed-value-n { font-family: var(--serif); font-size: .92rem; letter-spacing: .1em; color: var(--muted); }
.ed-value-t { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.ed-value-t em { font-style: italic; font-weight: 500; color: var(--muted); }
.ed-value-why p { margin: 0; color: var(--muted); font-size: .98rem; }
.ed-why-label { font-size: .64rem !important; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px !important; }
@media (min-width: 900px) {
  .ed-values li { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding: 38px 0; }
  .ed-value-n { padding-top: .5em; }
}

/* ---------- A casa ---------- */
.ed-mission { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .ed-mission { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; } }
.ed-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ed-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ed-facts strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1; }
.ed-facts span { color: var(--muted); font-size: .94rem; }

/* A foto da casa é vertical (900x1125). Mantida no formato natural e com
   largura menor que a original, para nunca esticar e perder nitidez. */
.ed-casa-foto { position: relative; margin: 0 auto; max-width: 900px; width: 100%; border: 1px solid var(--line); overflow: hidden; align-self: start; }
.ed-casa-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 48%; filter: grayscale(.22) contrast(1.04); }
.ed-casa-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--veu) 0%, transparent 38%); }
.ed-casa-foto figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sobre-foto); font-weight: 600; }
.ed-mission-copy { display: flex; flex-direction: column; }
.ed-mission-copy .ed-facts { margin-top: 36px; }

/* ---------- Processo ---------- */
.ed-process { max-width: 940px; }
.ed-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ed-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ed-steps li > span { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); padding-top: .15em; }
.ed-steps h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 4px; }
.ed-steps h3 small { font-weight: 500; color: var(--muted); font-size: .76em; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.ed-steps p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 760px) { .ed-steps li { grid-template-columns: 70px minmax(0, 1fr); padding: 28px 0; } .ed-steps li > span { font-size: 1.3rem; } }

.ed-quote { margin: 48px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--line-2); }
.ed-quote p { color: var(--muted); font-size: 1.05rem; margin: 0 0 .8em; max-width: 56ch; }
.ed-quote p:last-child { margin-bottom: 0; }

/* ---------- Verdade ---------- */
.ed-truth { padding: 96px 0; text-align: center; background: radial-gradient(70% 110% at 50% 0%, var(--brilho), transparent 62%), var(--bg); border-top: 1px solid var(--line); }
.ed-truth .container { display: flex; flex-direction: column; align-items: center; }
.ed-truth .ed-display-2 { max-width: 19ch; }
.ed-truth-text { color: var(--muted); max-width: 54ch; font-size: 1.08rem; margin-bottom: 30px; }
.ed-truth-text strong { color: var(--text); }
@media (min-width: 900px) { .ed-truth { padding: 132px 0; } }

/* ---------- Barra fixa no celular ---------- */
.vg-sticky {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--sticky-bg); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.vg-sticky.is-shown { transform: none; }
.vg-sticky div { display: flex; flex-direction: column; line-height: 1.2; }
.vg-sticky span { font-size: .8rem; color: var(--verde-txt); }
@media (min-width: 900px) { .vg-sticky { display: none; } }
.page-vagas .site-footer { padding-bottom: 110px; }
@media (min-width: 900px) { .page-vagas .site-footer { padding-bottom: 40px; } }

/* ---------- Formulário passo a passo ---------- */
.vg-form {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
.vg-form::backdrop { background: rgba(0, 0, 0, .7); }
.vg-form[open] { animation: vg-fade .25s var(--ease); }
@keyframes vg-fade { from { opacity: 0; transform: translateY(12px); } }
.vg-form form { height: 100%; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.vg-form-top { display: flex; align-items: center; gap: 12px; padding: 14px 0; padding-top: calc(14px + env(safe-area-inset-top)); }
.vg-icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.vg-icon-btn:hover { border-color: var(--gold); }
.vg-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.vg-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .35s var(--ease); }
.vg-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

.vg-stage { flex: 1; overflow-y: auto; padding: 28px 2px 12px; }
.vg-stage.is-in > * { animation: vg-step .35s var(--ease) both; }
.vg-stage.is-in > *:nth-child(2) { animation-delay: .04s; }
.vg-stage.is-in > *:nth-child(3) { animation-delay: .08s; }
.vg-stage.is-in > *:nth-child(4) { animation-delay: .12s; }
@keyframes vg-step { from { opacity: 0; transform: translateY(14px); } }
.vg-step-label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.vg-q { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.15; margin-bottom: 10px; }
.vg-help { color: var(--muted); margin-bottom: 4px; }

.vg-input {
  width: 100%; margin-top: 22px; padding: 14px 4px; font: inherit; font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 600;
  color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; outline: none; transition: border-color .2s;
}
.vg-input::placeholder { color: var(--placeholder); }
.vg-input:focus { border-bottom-color: var(--gold); }
.vg-textarea { font-size: 1.1rem; font-weight: 500; line-height: 1.5; resize: vertical; min-height: 130px; border: 2px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.vg-textarea:focus { border-color: var(--gold); }
.vg-counter { text-align: right; font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

.vg-options { display: grid; gap: 10px; margin-top: 22px; }
.vg-options.is-multi { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vg-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s;
}
.vg-option:hover { border-color: var(--placeholder); }
.vg-option:active { transform: scale(.98); }
.vg-option kbd { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); font: inherit; font-size: .75rem; font-weight: 800; color: var(--muted); }
.vg-option span { flex: 1; }
.vg-tick { opacity: 0; color: var(--on-gold); background: var(--gold); border-radius: 50%; padding: 3px; width: 22px; height: 22px; transition: opacity .15s; }
.vg-option.is-on { border-color: var(--gold); background: var(--selecao); }
.vg-option.is-on kbd { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.vg-option.is-on .vg-tick { opacity: 1; }

.vg-form-bottom { padding: 12px 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.vg-form-bottom .btn { width: 100%; }
.vg-error { min-height: 1.2em; margin: 0; color: var(--erro); font-weight: 600; font-size: .92rem; }
.vg-error:empty { min-height: 0; }
.vg-hint { margin: 0; text-align: center; font-size: .78rem; color: var(--muted); }
.vg-hint kbd { font: inherit; font-weight: 700; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; }
@media (hover: none) { .vg-hint, .vg-option kbd { display: none; } }
@media (min-width: 720px) { .vg-form-bottom { grid-template-columns: auto 1fr; align-items: center; } .vg-form-bottom .btn { width: auto; grid-row: 2; } .vg-error { grid-column: 1 / -1; } .vg-hint { text-align: left; grid-row: 2; } }

.vg-intro { display: flex; flex-direction: column; align-items: flex-start; }
.vg-intro img { width: 88px; height: 88px; margin-bottom: 20px; }
.vg-intro-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.vg-intro-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.vg-intro-list .icon { color: var(--gold); }

.vg-review { margin: 18px 0; display: grid; gap: 0; }
.vg-review div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vg-review dt { font-size: .82rem; color: var(--muted); }
.vg-review dd { margin: 0; font-weight: 600; grid-column: 1; white-space: pre-wrap; word-break: break-word; }
.vg-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none; border: 0; color: var(--gold); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; padding: 10px 4px; }
.vg-consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: .95rem; color: var(--muted); }
.vg-consent input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.vg-copy { margin-top: 14px; }

.vg-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 24px; gap: 8px; }
.vg-done-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); margin-bottom: 14px; animation: vg-pop .5s var(--ease) both; }
.vg-done-badge .icon { width: 44px; height: 44px; }
.vg-done .btn { margin: 14px 0 6px; }
@keyframes vg-pop { from { transform: scale(.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ed-hero-figure img { animation: none; transform: none; }
}

.ed-hero-grid > *, .ed-job > *, .ed-mission > *, .ed-values > * { min-width: 0; }

/* ---------- Complementos: vaga, intro do processo e revisão ---------- */
.ed-job-desc { color: var(--muted); margin: 0 0 28px; }
.btn-link {
  justify-self: start; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--text); }

/* Abertura do formulário: "O processo" */
.vg-intro-label { margin-top: 28px; }
.vg-intro-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); width: 100%; }
.vg-intro-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.vg-intro-steps li > span { font-family: var(--serif); font-size: .95rem; color: var(--muted); }
.vg-intro-steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.vg-intro-steps strong { color: var(--text); font-weight: 700; }
.vg-intro-quote { margin: 26px 0 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--line-2); }
.vg-intro-quote p { color: var(--muted); font-size: .97rem; margin: 0 0 .7em; }
.vg-intro-quote p:last-child { margin-bottom: 0; }

/* Revisão */
.vg-review-sec { grid-column: 1 / -1; margin: 22px 0 2px; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vg-review-sec:first-child { margin-top: 6px; }
.vg-ko { color: var(--ko); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.vg-privacy { margin-top: 16px !important; line-height: 1.5; }
.vg-warn { color: var(--alerta); }
.vg-done .btn-ghost { margin-top: 2px; }

/* Tela final: os dois passos do envio */
.vg-done-steps { list-style: none; margin: 4px 0 10px; padding: 0; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.vg-done-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.vg-done-steps li > span { font-family: var(--serif); font-size: .95rem; color: var(--muted); }
.vg-done-steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.vg-done-steps strong { color: var(--text); }
