/* =====================================================================
   Talent Hub — Lens & Minarelli
   Design system copiado do site institucional (index.html) — não inventar.
   Cores: navy #001E3C / #0A2850, dourado #AF873C / #D4B068, branco.
   ===================================================================== */

:root {
  --navy-deep: #001E3C;
  --navy: #0A2850;
  --navy-soft: #A2B7BA;
  --gold: #AF873C;
  --gold-light: #D4B068;
  --cream: #FFFFFF;
  --beige: #A2B7BA;
  --white: #ffffff;
  --ink: #001E3C;
  --muted: #2C3E50;
  --line: rgba(0, 30, 60, 0.14);
  --editorial: "Playfair Display", Georgia, serif;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", Arial, sans-serif;
  --brand-font: "Montserrat", "Avenir Next", Arial, sans-serif;
  --max: 1180px;
  --header-offset-desktop: 120px;
  --header-offset-mobile: 110px;
}

/* ---------- base (idêntica ao site) ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main[id], section[id] { scroll-margin-top: var(--header-offset-desktop); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }
h1, h2, h3 { margin: 0; color: var(--navy-deep); line-height: 1.08; letter-spacing: 0; }
h1 { font-family: var(--sans); font-size: clamp(36px, 5.5vw, 56px); max-width: 760px; font-weight: 400; line-height: 1.12; }
h2 { font-family: var(--sans); font-size: clamp(26px, 3.4vw, 36px); max-width: 760px; font-weight: 300; line-height: 1.22; }
h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: 17px; color: var(--muted); max-width: 680px; font-weight: 400; line-height: 1.65; }
.section { padding: 92px 0; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,.45); background: transparent; }
.btn-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- cabeçalho (idêntico ao site) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy-deep); border-bottom: 1px solid rgba(212,176,104,.22); backdrop-filter: blur(14px); }
.nav { min-height: 100px; display: grid; grid-template-columns: max-content minmax(0, max-content) 1fr; column-gap: 26px; row-gap: 6px; align-items: center; min-width: 0; }
.site-header .brand { grid-column: 1; }
.brand { display: inline-grid; gap: 6px; color: var(--white); align-content: center; min-width: 0; }
.brand-main { font-family: var(--brand-font); font-size: 25px; line-height: 1; font-weight: 300; text-transform: lowercase; letter-spacing: 0; white-space: nowrap; }
.brand-sub { color: var(--gold-light); font-size: 7.5px; font-weight: 700; text-transform: none; letter-spacing: .12em; white-space: nowrap; }
.links { grid-column: 2; display: grid; grid-template-rows: auto auto; row-gap: 6px; align-items: center; min-width: 0; color: var(--white); font-size: 0.78rem; font-weight: 400; }
.links a:not(.btn):hover { color: var(--gold-light); }
.links a.nav-draft4 { color: var(--gold-light); font-size: inherit; font-weight: inherit; font-family: inherit; white-space: nowrap; }
.links a.nav-draft4:hover { color: var(--white); }
.links a[aria-current="page"] { color: var(--gold-light); font-weight: 700; }
.nav-main-links { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; white-space: nowrap; }
.nav-draft4-stack { display: flex; justify-content: flex-end; align-items: center; line-height: inherit; }
.language-switcher { grid-column: 3; justify-self: end; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; margin: 0; padding: 0; white-space: nowrap; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 24px; min-height: auto; padding: 0; border: 0; font-size: 19.5px; line-height: 1; opacity: .88; transition: opacity .2s ease, transform .2s ease; }
.language-switcher a:hover { opacity: 1; transform: translateY(-1px); }
.menu { display: none; background: transparent; border: 0; color: var(--white); font-weight: 700; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.menu svg { width: 26px; height: 26px; stroke: var(--white); stroke-width: 2; fill: none; }

/* ---------- rodapé (idêntico ao site) ---------- */
footer { background: #05162F; color: rgba(255,255,255,.74); padding: 40px 0 18px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
footer a:hover { color: var(--gold-light); }
.footer-brand { display: grid; justify-items: start; text-align: left; }
.footer-brand .brand { justify-items: start; text-align: left; }
.footer-brand .brand-main { color: var(--white); }
footer .brand-sub { color: var(--gold-light); font-size: 7.5px; font-weight: 700; letter-spacing: .12em; text-transform: none; white-space: nowrap; }
.footer-message { display: grid; justify-items: end; text-align: right; align-content: start; }
.footer-statement { display: block; color: var(--white); font-family: var(--brand-font); font-size: 25px; font-style: normal; font-weight: 300; letter-spacing: 0; line-height: 1; text-align: right; white-space: nowrap; }
.footer-ai-line { display: block; margin-top: 6px; color: var(--gold-light); font-family: var(--sans); font-size: 7.5px; font-weight: 700; letter-spacing: .12em; line-height: 1.3; text-transform: none; text-align: right; white-space: nowrap; }
.footer-contact { margin-top: 28px; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 17px; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-nav { margin-top: 24px; padding: 18px 0 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; font-size: 13.5px; border-top: 1px solid rgba(209,176,113,.18); }
.footer-nav a { color: rgba(255,255,255,.78); transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(209,176,113,.22); display: flex; justify-content: center; align-items: center; text-align: center; font-size: 13px; }
.copyright-line { font-family: var(--sans); font-size: 13px; font-weight: 400; }
.copyright-brand { color: var(--white); text-decoration: none; }
.copyright-brand:hover { color: var(--gold-light); }
.copyright-separator { color: rgba(255,255,255,.74); }
.powered-by { color: var(--gold-light); text-decoration: none; white-space: nowrap; font-family: var(--sans); font-size: 13px; font-weight: 400; }
.powered-by:hover { color: var(--white); }

/* ---------- WhatsApp flutuante (idêntico ao site) ---------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); background: #20bd5a; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34); }
.whatsapp-float svg { width: 34px; height: 34px; fill: currentColor; }

/* ---------- acessibilidade (idêntica ao site) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--white); padding: 12px 20px; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* =====================================================================
   Seções próprias do Talent Hub (usando os mesmos tokens do site)
   ===================================================================== */

/* Hero — mesmo padrão do hero institucional */
.th-hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.th-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,22,47,.98) 0%, rgba(5,22,47,.86) 45%, rgba(5,22,47,.38) 100%), url('/Executivos%201.JPG') center top/cover no-repeat; }
.th-hero .container { position: relative; display: grid; align-content: center; padding: 130px 0 64px; min-height: 480px; }
.th-hero h1 { color: var(--white); margin-bottom: 18px; overflow-wrap: break-word; }
.th-hero .lead { color: rgba(255,255,255,.85); }
.th-hero-signature { margin-top: 28px; display: inline-block; color: var(--gold-light); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; position: relative; padding-top: 16px; }
.th-hero-signature::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 1px; background: var(--gold-light); }
.th-hero-signature a:hover { color: var(--white); }

/* Bloco explicativo em duas colunas */
.th-intro { background: var(--white); }
.th-intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: start; }
.th-intro h2 { color: var(--gold); font-family: var(--sans); font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.22; margin-bottom: 20px; }
.th-intro p { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 14px; }
.th-intro ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 16.5px; line-height: 1.8; }
.th-intro h3 { color: var(--gold); font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 26px 0 12px; }

/* Painel de filtros — padrão dos painéis navy do site */
.th-filters { background: var(--cream); padding: 0 0 92px; }
.th-filters-panel {
  background: var(--navy-deep);
  border-left: 4px solid var(--gold);
  box-shadow: 0 28px 70px rgba(5,22,47,.18);
  padding: clamp(34px, 5vw, 56px);
}
.th-filters-panel h2 { color: var(--white); font-weight: 400; margin-bottom: 10px; }
.th-filters-panel .th-filters-lead { color: rgba(255,255,255,.82); font-size: 17px; max-width: 760px; margin-bottom: 34px; }
.th-filters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.th-field { display: grid; gap: 8px; }
.th-field label { color: var(--gold-light); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.th-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(212,176,104,.45);
  border-radius: 0;
}
.th-field select:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.th-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Área de resultados */
.th-results { background: var(--white); padding: 0 0 92px; }
.th-status { color: var(--muted); font-size: 16.5px; }
.th-status[data-tone="erro"] { color: #8A2A2A; font-weight: 600; }
.th-status:empty { display: none; }
.th-results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 0 0 26px; }
.th-results-head h2 { font-weight: 400; }
.th-results-head h2:focus { outline: none; }
.th-count { color: var(--gold); font-weight: 700; font-size: 17px; }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Card de executivo — padrão .program do site (borda superior dourada) */
.th-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.th-card:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(5,22,47,.12); }
.th-card h3 { font-size: 20px; color: var(--navy-deep); }
.th-card-headline {
  color: var(--muted); font-size: 14.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.th-card-meta { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.th-card-meta dt { font-weight: 700; color: var(--navy-deep); display: inline; }
.th-card-meta dd { display: inline; margin: 0; }
.th-card-meta div { line-height: 1.5; }
.th-badge { display: inline-block; background: rgba(175,135,60,.12); color: var(--gold); font-weight: 700; font-size: 12.5px; padding: 3px 10px; margin: 0 6px 6px 0; }
.th-card-cta { margin-top: auto; padding-top: 14px; }
.th-card-cta .btn { width: 100%; min-height: 44px; }

/* Perfil individual — painel navy com títulos dourados (referência das telas atuais) */
.th-breadcrumb { margin: 0 0 18px; font-size: 14.5px; }
.th-breadcrumb a { color: var(--gold); font-weight: 700; }
.th-breadcrumb a:hover { color: var(--gold-light); }
.th-profile-panel {
  background: var(--navy-deep);
  border-left: 4px solid var(--gold);
  box-shadow: 0 28px 70px rgba(5,22,47,.18);
  padding: clamp(34px, 5vw, 60px);
  color: rgba(255,255,255,.88);
}
.th-profile-panel h1 { color: var(--white); font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.th-profile-label { color: var(--gold); font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 30px 0 8px; max-width: none; }
.th-profile-text { color: rgba(255,255,255,.88); font-size: 16.5px; line-height: 1.7; max-width: 900px; }
.th-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; align-items: start; }
.th-profile-grid .th-profile-text { font-size: 15.5px; }
.th-profile-bottom { margin-top: 8px; align-items: center; }
.th-profile-linkedin { justify-self: center; align-self: center; }
.th-profile-linkedin a { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--white); font-weight: 700; font-size: 13px; padding: 10px; min-width: 44px; min-height: 44px; }
.th-profile-linkedin a:hover { color: var(--gold-light); }
.th-profile-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.th-error-panel h1 { margin-bottom: 14px; }
.th-error-panel .th-profile-actions { justify-content: flex-start; margin-top: 30px; }

@media (max-width: 1080px) {
  .th-profile-grid { grid-template-columns: 1fr; gap: 4px; }
  .th-profile-linkedin { justify-self: start; }
}
@media (max-width: 680px) {
  .th-profile-actions { flex-direction: column; }
  .th-profile-actions .btn { width: 100%; }
}

/* Estados */
.th-hidden { display: none !important; }
/* visível somente para leitores de tela (anúncio aria-live sem duplicar o texto na tela) */
.th-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; }
[aria-busy="true"] { opacity: .65; }

/* ---------- responsivo (mesmos breakpoints do site) ---------- */
@media (max-width: 1100px) {
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .language-switcher { order: 2; }
  .links { display: none; }
  .menu { display: inline-flex; order: 3; }
  .links.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); padding: 16px 20px 20px; border-bottom: 1px solid rgba(212,176,104,.22); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .links.open .nav-main-links { display: block; }
  .links.open .nav-draft4-stack { display: block; }
  .links.open a { min-height: 48px; display: flex; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.06); white-space: normal; }
  .links.open .nav-main-links a:last-child { border-bottom: 0; }
  .links.open .nav-draft4-stack .nav-draft4 { min-height: auto; padding: 8px 4px; border-bottom: 0; }
}
@media (max-width: 1080px) {
  .th-grid { grid-template-columns: repeat(2, 1fr); }
  .th-intro-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  main[id], section[id] { scroll-margin-top: var(--header-offset-mobile); }
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 60px 0; }
  h1 { font-size: 36px; line-height: 1.15; }
  h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .brand-main { font-size: 20px; }
  .brand-sub { font-size: 6.5px; }
  .nav { min-height: 90px; gap: 12px; }
  .th-hero .container { min-height: auto; padding: 105px 0 44px; align-content: start; }
  .th-filters { padding-bottom: 60px; }
  .th-filters-grid { grid-template-columns: 1fr; }
  .th-actions { gap: 12px; }
  .th-actions .btn { width: 100%; }
  .th-grid { grid-template-columns: 1fr; }
  .th-results { padding-bottom: 60px; }
  footer { padding: 34px 0 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; justify-items: center; text-align: center; }
  .footer-brand, .footer-brand .brand { justify-items: center; text-align: center; }
  .footer-message { justify-items: center; text-align: center; }
  footer .brand-sub { white-space: normal; text-align: center; }
  .footer-statement { text-align: center; white-space: normal; }
  .footer-ai-line { text-align: center; white-space: normal; }
  .footer-contact { margin-top: 24px; font-size: 15px; }
  .footer-nav { gap: 10px 16px; font-size: 12.5px; padding: 14px 0 2px; }
  .copyright { margin-top: 24px; justify-content: center; }
  .whatsapp-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 31px; height: 31px; }
}
@media (max-width: 380px) {
  .container { width: min(100% - 24px, var(--max)); }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .section { padding: 48px 0; }
  .brand-main { font-size: 18px; }
  .brand-sub { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .th-card:hover, .whatsapp-float:hover, .language-switcher a:hover { transform: none; }
  .btn, .th-card, .whatsapp-float, .language-switcher a { transition: none; }
}
