/* HI Design Talentos — identidade visual (vermelho HI Design, Archivo + IBM Plex Sans) */
:root {
  --red: #C8000E;
  --red-dark: #8F000A;
  --red-soft: #FDEEEE;
  --ink: #151515;
  --ink-2: #4A4641;
  --muted: #5E5A55;
  --muted-2: #6B665F;
  --line: #E2DFDA;
  --line-2: #EFEDEA;
  --field: #DCD8D2;
  --bg: #F6F5F3;
  --chip: #F1EFEC;
  --col: #EDEBE7;
  --white: #FFFFFF;
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; }
h1 { font-size: 34px; line-height: 40px; }
h2 { font-size: 20px; line-height: 26px; }
p { margin: 0; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Estrutura do RH ---------- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 240px; max-width: 100%; padding: 28px 18px; background: #151515; display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; text-decoration: none; }
.brand img { width: 52px; height: 46px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 18px; color: #fff; }
.brand small { display: block; font-weight: 600; color: #B9B4AE; font-size: 15px; }
.nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #D8D4CE; text-decoration: none; font-size: 15px; }
.nav a:hover { background: #2A2826; color: #fff; }
.nav a.on { background: var(--red); color: #fff; font-weight: 600; }
.nav .badge { background: #fff; color: var(--red); border-radius: 10px; font-size: 12px; font-weight: 700; padding: 1px 7px; }
.side .rodape { margin-top: auto; padding: 18px 8px 0; color: #B9B4AE; font-size: 13px; }
.side .rodape b { color: #fff; display: block; font-size: 14px; }
.side .rodape button { background: none; border: none; color: #D8D4CE; padding: 6px 0; font: inherit; cursor: pointer; text-decoration: underline; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 820px) { .main { padding: 24px 16px 40px; } .side { padding: 16px; } .nav { display: flex; flex-wrap: wrap; gap: 4px; } }

.topo { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.topo .sub { font-size: 14px; color: var(--muted); }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #B5AFA8; color: var(--ink); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.dark { background: #151515; border-color: #151515; color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: #55514C; font-weight: 400; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.link { border: none; background: none; padding: 0; min-height: 0; color: var(--red); text-decoration: underline; font-weight: 600; }
.card { background: #fff; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.card.dark { background: #151515; color: #fff; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: #fff; border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi .n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 48px; }
.kpi .s { font-size: 13px; color: var(--muted-2); }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.row > .w2 { flex: 2 1 560px; min-width: 0; }
.row > .w3 { flex: 3 1 480px; min-width: 0; }
.row > .w1 { flex: 1 1 320px; min-width: 0; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 3px 8px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red-dark); }
.pill.dark { background: #151515; color: #fff; }
.pill.solid { background: var(--red); color: #fff; }
.tag { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted-2); background: var(--chip); border-radius: 6px; padding: 2px 8px; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 18px; color: var(--muted-2); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--red-dark); text-transform: uppercase; }

/* Tabelas */
.tabela { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr.sel td { background: var(--red-soft); }
td a.nome { color: var(--ink); font-weight: 600; text-decoration: none; }
td a.nome:hover { color: var(--red); }

/* Barras */
.barras { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.barra .t { display: flex; justify-content: space-between; margin-bottom: 4px; }
.barra .b { height: 8px; background: var(--chip); border-radius: 4px; }
.barra .b i { display: block; height: 8px; background: var(--red); border-radius: 4px; }

/* Alertas */
.alertas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.alerta { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; }
.alerta.red { background: var(--red-soft); }
.alerta b { font-family: var(--display); font-size: 22px; }
.alerta span { font-size: 14px; color: var(--ink-2); }
.alerta:hover { color: var(--ink); outline: 2px solid var(--line); }

/* Formulários */
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
label.f .opc { font-weight: 400; color: var(--muted-2); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); width: 100%;
}
textarea { padding: 10px 12px; resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.fim { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.busca { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--field); border-radius: 10px; color: var(--muted); }
.busca input { border: none; outline: none; min-height: 40px; padding: 0; background: transparent; }
.busca input:focus { outline: none; }

/* Mensagens */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 15px; background: #E9F5EC; color: #1E5B2E; border: 1px solid #BFE0C8; }
.flash.erro { background: var(--red-soft); color: var(--red-dark); border-color: #F3C3C6; }

/* Link da vaga */
.link-box { display: flex; gap: 8px; align-items: center; background: #2A2826; border-radius: 10px; padding: 6px 6px 6px 14px; }
.link-box input { flex: 1; min-width: 0; background: transparent; border: none; color: #fff; padding: 0; min-height: 40px; font-size: 14px; }
.qr { width: 112px; height: 112px; flex: none; background: #fff; border-radius: 10px; padding: 6px; }
.lista-linhas > div { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lista-linhas > div:last-child { border-bottom: none; }

/* Filtros do banco */
.filtros { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtros .busca { flex: 1 1 260px; }
.filtros select { width: auto; border-radius: 22px; min-height: 44px; font-size: 14px; }
.filtros select.on { background: #151515; color: #fff; border-color: #151515; }
.paginacao { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding-top: 10px; font-size: 14px; }

/* Ficha */
.ficha .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 20px; }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* Funil (kanban) */
.kanban-wrap { overflow-x: auto; padding-bottom: 8px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(168px, 1fr)); gap: 10px; min-width: 1068px; }
.coluna { background: var(--col); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.coluna.fin { background: var(--red-soft); }
.coluna.over { outline: 2px dashed var(--red); }
.coluna h2 { padding: 4px 4px 2px; display: flex; justify-content: space-between; font-family: var(--body); font-size: 14px; font-weight: 600; }
.coluna.fin h2 { color: var(--red-dark); }
.cartao { background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: grab; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.cartao:hover { border-color: var(--line); color: var(--ink); }
.cartao.drag { opacity: .5; }
.cartao b { font-size: 15px; }
.cartao .m { font-size: 13px; color: var(--muted); }
.cartao .x { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cartao .x.red { color: var(--red-dark); }
.cartao .notas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; font-size: 12px; color: var(--ink-2); }
.vazio { border: 1px dashed #B5AFA8; border-radius: 10px; min-height: 88px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 13px; color: var(--muted); }

/* Notas (avaliações) */
.notas4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.notas4 div { background: var(--bg); border-radius: 8px; padding: 8px; }
.notas4 span { display: block; color: var(--muted); }
.media { text-align: right; flex: none; }
.media b { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 32px; color: var(--red); }
.media span { font-size: 12px; color: var(--muted); }

/* Portal do gestor */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1280px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .marca { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.topbar .marca img { width: 52px; height: 46px; object-fit: contain; }
.topbar .marca small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--muted); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.topbar nav a, .topbar nav button { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font: inherit; font-size: 15px; background: none; border: none; cursor: pointer; }
.topbar nav a.on { background: #151515; color: #fff; font-weight: 600; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 700px) { .wrap { padding: 20px 16px; } .topbar .in { padding: 12px 16px; } }
.finalistas { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .finalistas { grid-template-columns: 1fr; } }
.finalista { background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.finalista h2 { font-size: 22px; line-height: 28px; }

/* ---------- Página pública ---------- */
.pub-head { background: #fff; border-bottom: 1px solid var(--line); }
.pub-head .in { max-width: 1040px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-head img { width: 60px; height: 53px; object-fit: contain; display: block; }
.hero { background: var(--red); color: #fff; }
.hero .in { max-width: 1040px; margin: 0 auto; padding: 48px 24px 56px; display: flex; flex-direction: column; gap: 14px; }
.hero .k { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; }
.hero h1 { font-size: 52px; line-height: 56px; letter-spacing: -0.5px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .chips span { font-size: 14px; font-weight: 600; background: rgba(255,255,255,.16); border-radius: 6px; padding: 5px 10px; }
.hero p { max-width: 680px; font-size: 17px; line-height: 26px; white-space: pre-line; }
@media (max-width: 600px) { .hero h1 { font-size: 36px; line-height: 40px; } .hero .in { padding: 32px 16px 48px; } }
.pub-form { max-width: 760px; margin: -28px auto 64px; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.pub-form section { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) { .pub-form section { padding: 20px; } }
.pub-form h2 { font-size: 22px; line-height: 28px; }
.texto-legal p { font-size: 16px; line-height: 25px; }
.texto-legal a, .aceite a { color: var(--red-dark); font-weight: 600; }
.pub-form input[type=text], .pub-form input[type=email], .pub-form input[type=tel], .pub-form input[type=url], .pub-form select, .pub-form textarea { min-height: 48px; padding-left: 14px; border-color: #CFCAC3; font-size: 16px; }
.pub-form textarea { padding-top: 12px; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sel label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #CFCAC3; border-radius: 22px; font-size: 15px; font-weight: 400; cursor: pointer; }
.chips-sel label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.chips-sel input, .radio-box input { accent-color: var(--red); }
.radio-box { display: flex; gap: 8px; }
.radio-box label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid #CFCAC3; border-radius: 10px; font-size: 15px; font-weight: 400; cursor: pointer; }
.upload { display: flex; align-items: center; justify-content: center; min-height: 72px; border: 1px dashed #B5AFA8; border-radius: 12px; font-weight: 400; color: var(--muted); text-align: center; padding: 10px; cursor: pointer; position: relative; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload.ok { border-color: var(--red); color: var(--ink); background: var(--red-soft); }
.aceite { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 22px; font-weight: 400; }
.aceite input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); flex: none; }
.enviar { min-height: 56px; background: var(--red); color: #fff; border: none; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.enviar:hover { background: var(--red-dark); }
.hp { position: absolute; left: -9999px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #151515; }
.login .box { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login img { width: 96px; height: 85px; object-fit: contain; }
