/* ==========================================================================
   Grupo TeoriaCuriosa — Landing page de Recrutamento
   Fontes: Poppins (títulos) + DM Sans (texto), as mesmas do site da Teoria.
   Cores: dourado #C8891E (logótipo) + azul-ardósia #20282D (títulos do site).
   ========================================================================== */

/* ---------- Fontes (alojadas localmente: sem pedidos a servidores da Google) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-style: normal; font-display: swap;
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Variáveis ---------- */
:root {
  --gold: #C8891E;
  --gold-hover: #D79A2E;
  --gold-dark: #8A5C0B;      /* dourado escuro para texto sobre fundo claro (contraste AA) */
  --gold-soft: #F7EDD8;
  --ink: #20282D;
  --text: #263037;
  --muted: #5E6B73;
  --line: #E6DFCF;
  --bg: #FBF9F4;
  --surface: #FFFFFF;
  --danger: #B3261E;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(32, 40, 45, .05), 0 12px 32px rgba(32, 40, 45, .08);
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 500 1rem/1.1 var(--font-head); padding: 1em 1.7em; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(200, 137, 30, .32); }
.btn--gold:active { transform: translateY(0); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; padding: .78em 1.35em; font-size: .9rem; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 1.15em 2.2em; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Etiquetas de secção ---------- */
.eyebrow {
  font: 500 .8rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--dark { color: var(--gold-dark); }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-bottom: clamp(56px, 9vw, 108px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 90% 0%, rgba(200, 137, 30, .20), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(200, 137, 30, .07), transparent 65%);
}
.hero__arcs { position: absolute; top: 0; right: 0; width: min(520px, 86vw); height: auto; pointer-events: none; }
.hero__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 30px; }
.brand img { width: clamp(190px, 26vw, 270px); }
.hero__nav { display: flex; align-items: center; gap: 26px; }
.hero__nav > a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font: 500 .95rem/1 var(--font-head); }
.hero__nav > a:not(.btn):hover { color: var(--gold); }
@media (max-width: 560px) { .hero__nav > a:not(.btn) { display: none; } }

.hero__body { position: relative; padding-top: clamp(44px, 8vw, 96px); max-width: 1120px; }
.hero__text { max-width: 720px; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.2rem, 5.6vw, 3.9rem); letter-spacing: -.01em; margin-bottom: 26px; }
.hero h1 span { color: var(--gold); display: block; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; color: rgba(255, 255, 255, .84); max-width: 58ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.hero__count { padding-left: 6px; font: 400 .95rem/1 var(--font-head); color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: 10px; }
.hero__count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(200, 137, 30, .25); }

/* ==========================================================================
   VAGAS (dropdowns)
   ========================================================================== */
.vagas { padding-block: clamp(56px, 8vw, 100px); }
.vagas__list { display: grid; gap: 14px; }

.vaga { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .3s ease; }
.vaga:hover { border-color: #d6c9a8; }
.vaga.is-open { border-color: var(--gold); box-shadow: var(--shadow); }
.vaga__head { margin: 0; font-size: inherit; }
.vaga__toggle {
  appearance: none; background: none; border: 0; margin: 0; width: 100%; text-align: left; color: inherit; font: inherit;
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 8px; align-items: center;
  padding: 22px 26px; cursor: pointer; border-radius: var(--radius);
}
.vaga__title { grid-column: 1; font: 500 clamp(1.1rem, 2.3vw, 1.35rem)/1.25 var(--font-head); color: var(--ink); }
.vaga__tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.vaga__tags span { font-size: .84rem; line-height: 1; color: var(--muted); background: #F4EFE3; padding: 6px 12px; border-radius: 999px; }
.vaga__chev {
  grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark);
  transition: transform .35s ease, background-color .2s ease, color .2s ease;
}
.vaga__toggle:hover .vaga__chev { background: #F1DFB9; }
.vaga.is-open .vaga__chev { transform: rotate(180deg); background: var(--gold); color: var(--ink); }

.vaga__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.vaga.is-open .vaga__panel { grid-template-rows: 1fr; }
.vaga__panelInner { overflow: hidden; min-height: 0; }
.vaga__content { padding: 6px 26px 30px; border-top: 1px solid var(--line); margin-inline: 26px; padding-inline: 0; padding-top: 26px; }
.vaga__content p { max-width: 74ch; }
.vaga__about { color: var(--muted); font-size: .98rem; border-left: 3px solid var(--line); padding-left: 16px; }
.vaga__content h4 { font-size: 1.02rem; letter-spacing: .01em; color: var(--ink); }
.vaga__cols { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 900px) { .vaga__cols { grid-template-columns: 1fr 1fr; gap: 44px; } }

.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 26px; }
.list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.vaga__offer { margin-top: 30px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 14px; padding: 22px 26px; }
.vaga__offer .list { grid-template-columns: 1fr; }
@media (min-width: 720px) { .vaga__offer .list { grid-template-columns: 1fr 1fr; gap: 10px 32px; } }
.vaga__close { margin: 30px 0 22px; font-weight: 500; color: var(--ink); }
.vaga__close span { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */
.candidatura { background: #F3EEE2; padding-block: clamp(56px, 8vw, 100px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4.5vw, 46px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field > label, .label { display: block; font: 500 .92rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.req { color: var(--gold-dark); margin-left: 2px; }

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #D9D2C1; border-radius: 12px; padding: 14px 16px; min-height: 52px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder { color: #8b969c; }
input:hover, select:hover { border-color: #bfb59c; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 137, 30, .22); }
select {
  appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%238A5C0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
select.is-prefilled { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 137, 30, 0); } 20% { box-shadow: 0 0 0 6px rgba(200, 137, 30, .35); border-color: var(--gold); } }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .18) !important; }
.field__error { margin: 7px 0 0; color: var(--danger); font-size: .88rem; line-height: 1.4; }
.field__error:empty { display: none; }
.field__hint { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Upload do CV */
.drop {
  position: relative; border: 2px dashed #CBBF9F; border-radius: 16px; background: #FDFBF6; text-align: center;
  padding: 28px 20px; transition: border-color .2s ease, background-color .2s ease;
}
.drop:hover, .drop.is-dragover { border-color: var(--gold); background: var(--gold-soft); }
.drop:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 137, 30, .22); }
.drop.has-file { border-style: solid; border-color: var(--gold); background: #fff; }
.drop[data-invalid="true"] { border-color: var(--danger); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; font-size: 0; }
.drop.has-file input[type="file"] { pointer-events: none; }
.drop__empty { display: grid; justify-items: center; gap: 6px; }
.drop__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark); margin-bottom: 6px; }
.drop__title { font: 500 1rem/1.3 var(--font-head); color: var(--ink); }
.drop__title u { color: var(--gold-dark); text-underline-offset: 3px; }
.drop__meta { font-size: .88rem; color: var(--muted); }
.drop__file { display: flex; align-items: center; gap: 14px; text-align: left; }
.drop__file[hidden], .drop__empty[hidden] { display: none; }
.drop__fileicon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark); font: 600 .7rem/1 var(--font-head); letter-spacing: .04em; }
.drop__filename { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.drop__filesize { font-size: .86rem; color: var(--muted); }
.drop__remove {
  position: relative; z-index: 2; margin-left: auto; flex: none; appearance: none; border: 1.5px solid #D9D2C1; background: #fff;
  color: var(--text); font: 500 .85rem/1 var(--font-head); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s;
}
.drop__remove:hover { border-color: var(--danger); color: var(--danger); }

/* Consentimentos */
.consents { display: grid; gap: 16px; padding: 22px; background: #FBF8F0; border: 1px solid var(--line); border-radius: 16px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0; width: 24px; height: 24px; border: 1.5px solid #b3a98f; border-radius: 7px; background: #fff;
  cursor: pointer; display: grid; place-content: center; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.check input[type="checkbox"]::after {
  content: ""; width: 12px; height: 12px; background: var(--ink); transform: scale(0); transition: transform .12s ease;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.check input[type="checkbox"]:checked::after { transform: scale(1); }
.check input[type="checkbox"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.check input[type="checkbox"][aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .18); }
.check label { font-size: .97rem; line-height: 1.55; cursor: pointer; }
.check .field__error { grid-column: 2; margin-top: -6px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: .95rem; background: #FBEAE8; color: #7d1a14; border: 1px solid #f1c9c5; }
.form-status:empty { display: none; }
.spinner { width: 1.05em; height: 1.05em; border-radius: 50%; border: 2.5px solid rgba(32, 40, 45, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sucesso */
.success { text-align: center; padding: clamp(18px, 4vw, 40px) 8px; }
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(200, 137, 30, .18); }
.success h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 12px; }
.success p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.success__demo { margin-top: 18px !important; font-size: .9rem; background: #FFF6DD; border: 1px solid #ecd9a3; color: #6b4a06 !important; padding: 12px 16px; border-radius: 12px; }
.success .btn { margin-top: 14px; }
.btn--outline { border-color: #cfc5ab; color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 64px); }
.footer__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr auto; } }
.footer__brand img { width: clamp(150px, 20vw, 200px); margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 40ch; margin: 0; font-size: .98rem; }
.footer__title { font: 500 .8rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 8px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a { display: block; border-radius: 18px; transition: transform .2s ease; }
.social a:hover { transform: translateY(-4px); }
.social img { width: 76px; height: auto; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-block: 22px;
  border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}
.footer__legal p { margin: 0; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--gold-dark); }

/* ==========================================================================
   PÁGINA LEGAL (Política de Privacidade — Recrutamento)
   ========================================================================== */
.hero--compact { padding-bottom: clamp(36px, 6vw, 68px); }
.hero--compact .hero__body { padding-top: clamp(18px, 4vw, 44px); }
.hero--compact h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin-bottom: 0; max-width: 20ch; }
.hero--compact .eyebrow { margin-bottom: 14px; }

.legal { padding-block: clamp(36px, 6vw, 80px); }
.legal__card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.legal__card h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin: 2.1em 0 .6em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.legal__card h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__card p { max-width: 72ch; }
.legal__data { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 12px; padding: 18px 22px; line-height: 1.8; overflow-wrap: anywhere; }
.legal__back { margin: 26px 4px 0; font: 500 .95rem/1.3 var(--font-head); }
.legal__back a { text-decoration: none; }
.legal__back a:hover { text-decoration: underline; text-underline-offset: 4px; }
