/* Página de carreiras da empresa — personalizável.
   Tudo vem de variáveis: --p (cor principal), --pt (texto sobre a principal),
   --bn (banner), --bt (texto sobre o banner), --ff (fonte). */

.cp {
  --p: #FFC72C; --pt: #1E1E1E; --bn: #1E1E1E; --bt: #F7F4EC; --ff: "Hanken Grotesk", system-ui, sans-serif;
  --cp-bg: #ffffff; --cp-ink: #1E1E1E; --cp-soft: #F7F4EC;
  background: var(--cp-bg); color: var(--cp-ink); font-family: var(--ff); font-size: 1rem; line-height: 1.55;
  font-variant-numeric: tabular-nums; overflow: hidden; container-type: inline-size;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp h1, .cp h2, .cp h3, .cp h4, .cp p, .cp ul { margin: 0; padding: 0; }
.cp ul { list-style: none; }
.cp a { color: inherit; }
/* Topo: cartão de visita da empresa, com o logo em destaque */
.cp-top { display: flex; align-items: center; gap: clamp(12px, 3cqw, 24px); padding: clamp(16px, 3cqw, 28px) clamp(16px, 5cqw, 48px); background: var(--cp-bg); border-bottom: 6px solid var(--p); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); position: relative; z-index: 1; }
.cp-logo-img { height: clamp(56px, 11cqw, 104px); width: auto; max-width: min(46%, 320px); object-fit: contain; flex-shrink: 0; }
.cp-logo { width: clamp(56px, 11cqw, 96px); height: clamp(56px, 11cqw, 96px); display: grid; place-items: center; background: var(--p); color: var(--pt); font-weight: 700; font-size: clamp(1.25rem, 4cqw, 2.25rem); border-radius: 4px; flex-shrink: 0; }
.cp-co { font-weight: 800; font-size: clamp(1.125rem, 3.4cqw, 1.875rem); letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: break-word; min-width: 0; flex: 1 1 8em; }
.cp-sec-bn { position: relative; min-height: clamp(220px, 28cqw, 340px); align-content: center; background-size: cover; background-position: center; }
.cp-sec-bn::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.cp-sec-bn > * { position: relative; }
.cp-sec-bn .cp-talent { background: rgba(0, 0, 0, 0.45); }
.cp-sec-bn .cp-job { border-top-color: rgba(255, 255, 255, 0.4); }
.cp-banner {
  background-color: var(--bn); color: var(--bt); background-size: cover; background-position: center;
  padding: clamp(32px, 9cqw, 96px) clamp(16px, 5cqw, 48px); display: grid; gap: 16px; align-content: end; min-height: 260px; position: relative;
}
.cp-banner.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.cp-banner > * { position: relative; }
.cp-banner h1, .cp-banner h3.cp-h { font-size: clamp(1.75rem, 6cqw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; max-width: 14em; overflow-wrap: anywhere; }
.cp-banner p { max-width: 34em; font-size: 1.0625rem; }
.cp-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; justify-self: start;
  background: var(--p); color: var(--pt); font-weight: 700; text-decoration: none; border-radius: 2px; border: 0;
}
.cp-banner .cp-cta { outline: 2px solid var(--bt); outline-offset: 2px; }
.cp-sec { padding: clamp(28px, 6cqw, 56px) clamp(16px, 5cqw, 48px); display: grid; gap: 14px; }
.cp-sec:nth-of-type(even) { background: var(--cp-soft); }
.cp-sec h2, .cp-sec h4.cp-h { font-size: clamp(1.25rem, 3.2cqw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.cp-sec p { max-width: 40em; }
.cp-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cp-list li { background: color-mix(in srgb, currentColor 10%, transparent); border: 1px solid color-mix(in srgb, currentColor 28%, transparent); color: inherit; padding: 16px; border-radius: 2px; font-weight: 500; overflow-wrap: anywhere; }
.cp-quote { background: var(--cp-bg); padding: 18px 20px; border-radius: 2px; border-left: 4px solid var(--p); max-width: 40em; }
.cp-quote small { display: block; margin-top: 8px; opacity: 0.75; }
.cp-video { position: relative; aspect-ratio: 16 / 9; background: var(--bn); color: var(--bt); display: grid; place-items: center; border-radius: 2px; overflow: hidden; max-width: 720px; }
.cp-video button { min-height: 48px; padding: 0 22px; border: 0; background: var(--p); color: var(--pt); font-weight: 700; border-radius: 2px; font-family: inherit; }
.cp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-video .cp-vt { position: absolute; left: 16px; bottom: 12px; font-size: 0.875rem; opacity: 0.9; }
.cp-video .cp-ph { padding: 24px; text-align: center; max-width: 28em; }
.cp-jobs { display: grid; gap: 0; }
.cp-job { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(110, 125, 132, 0.35); flex-wrap: wrap; }
.cp-job b { overflow-wrap: anywhere; min-width: 0; }
.cp-job span { color: inherit; opacity: 0.8; font-size: 0.9375rem; }
.cp-job .cp-cta { min-height: 44px; padding: 0 18px; }
.cp-foot { padding: 18px clamp(16px, 5cqw, 48px); font-size: 0.875rem; background: var(--cp-bg); opacity: 0.85; }
.cp :focus-visible { outline: 3px solid var(--p); outline-offset: 3px; }
.cp-banner :focus-visible { outline-color: var(--bt); }

/* Formulário de candidatura */
.cp-form { display: grid; gap: 16px; max-width: 640px; }
.cp-fld { display: grid; gap: 6px; }
.cp-fld > label, .cp-fld > .lab, .cp-fld legend { font-weight: 700; font-size: 0.9375rem; padding: 0; }
.cp-fld fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.cp-fld input:not([type=radio]):not([type=checkbox]):not([type=file]), .cp-fld select {
  width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #6e7d84; border-radius: 2px; background: #fff; color: var(--cp-ink); font: inherit; font-size: 16px;
}
.cp-fld input[type=file] { font: inherit; font-size: 16px; min-height: 48px; padding: 8px 0; }
.cp-fld [aria-invalid="true"] { border-color: #a32a2a; border-width: 2px; }
.cp-fld .err { color: #a32a2a; font-size: 0.875rem; font-weight: 500; }
.cp-fld .hint { font-size: 0.8125rem; opacity: 0.8; }
.cp-radios { display: flex; gap: 20px; flex-wrap: wrap; }
.cp-radios label, .cp-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.cp-radios input, .cp-check input { width: 22px; height: 22px; accent-color: var(--p); flex-shrink: 0; }
.cp-check { align-items: flex-start; padding-top: 8px; }
.cp-submit { justify-self: start; min-height: 52px; padding: 0 30px; font: inherit; font-weight: 700; cursor: pointer; }
.cp-ok { background: var(--cp-soft); padding: 18px 20px; border-radius: 2px; font-weight: 500; }

.cp a.cp-cta { color: var(--pt); }

/* Plano, links e banners */
.cp-links { margin-left: auto; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.cp-soc { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-weight: 500; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cp-soc:hover { text-decoration: underline; text-underline-offset: 4px; } }
.cp-banner { position: relative; }
.cp-slides { position: absolute; inset: 0; }
.cp-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 600ms; }
.cp-slide.on { opacity: 1; }
.cp-bin { position: relative; display: grid; gap: 16px; align-content: end; }
.cp-dots { display: flex; gap: 8px; margin-top: 4px; }
.cp-pg { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.9); color: #1E1E1E; font-size: 1.25rem; font-weight: 700; }
.cp-videos { display: grid; gap: 14px; }
.cp-talent { margin-top: 22px; padding: 18px 20px; background: rgba(255,199,44,0.25); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-talent b { font-size: 1.125rem; }
.cp a.cp-cta { text-decoration: none; }
.cp { color: var(--tx, #1E1E1E); }

/* Topo em telas estreitas: logo e nome na primeira linha, links na segunda */
@container (max-width: 520px) {
  .cp-top { flex-wrap: wrap; row-gap: 4px; }
  .cp-links { margin-left: 0; width: 100%; }
}

.cp-quotes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cp-quotes .cp-quote { max-width: none; }
.cp-foot a { color: inherit; text-decoration: underline; }
