/* =========================================================
   Humana Consultoria — Identidade visual
   Paleta: vinho, vinho grafite, bordô, terracota,
   laranja queimado, ocre, creme claro.
   Tipografia: Petrona (títulos) + Public Sans (texto).
   ========================================================= */

:root {
  --vinho: #421322;
  --vinho-grafite: #1A080E;
  --bordo: #7A1536;
  --terracota: #A52010;
  --laranja: #CF6126;
  --ocre: #B9966A;
  --creme: #FDFBF7;
  --creme-2: #F5EFE7;

  --ink: #2A0D16;
  --muted: #6e5560;
  --line: rgba(66, 19, 34, 0.12);

  --serif: "Petrona", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--creme);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--vinho); color: var(--creme); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow,
.section__kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--terracota);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.95em 1.6em; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--laranja); color: #fff; box-shadow: 0 10px 24px -12px rgba(165, 32, 16, 0.7); }
.btn--primary:hover { background: var(--terracota); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--creme); }
.btn--ghost:hover { background: rgba(253, 251, 247, 0.12); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 8, 14, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(253, 251, 247, 0.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.55em; color: var(--creme); }
.brand__mark { width: 26px; color: var(--laranja); }
.brand__mark svg { width: 100%; height: auto; }
.brand__word { font-family: var(--sans); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__menu a { color: rgba(253, 251, 247, 0.82); font-weight: 500; font-size: 0.96rem; transition: color .2s; }
.nav__menu a:hover { color: var(--creme); }
.nav__cta {
  background: var(--laranja); color: #fff !important; padding: 0.55em 1.1em; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--terracota); transform: translateY(-1px); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--creme); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #5a1a2e 0%, var(--vinho) 38%, var(--vinho-grafite) 100%);
  color: var(--creme);
  padding: clamp(70px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: url("/symbol-pattern.svg");
  background-size: 220px;
  opacity: 0.06;
  pointer-events: none;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; max-width: 880px; }
.hero .eyebrow { color: var(--ocre); }
.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem); margin-top: 0.5em; margin-bottom: 0.45em;
}
.hero__title em { color: var(--laranja); font-style: italic; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(253, 251, 247, 0.86); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(48px, 7vw, 80px); padding-top: 32px;
  border-top: 1px solid rgba(253, 251, 247, 0.15);
}
.hero__stats dt { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ocre); }
.hero__stats dd { font-size: 0.92rem; color: rgba(253, 251, 247, 0.75); margin-top: 4px; }

/* ---------- Seções base ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream { background: var(--creme-2); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 0.4em; color: var(--vinho); }
.section__sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); margin-top: 1em; max-width: 60ch; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--creme); }
.manifesto__quote {
  font-size: clamp(2rem, 5vw, 3.6rem); color: var(--vinho); margin: 0.3em 0 0.8em;
  letter-spacing: -0.02em;
}
.manifesto__quote span { color: var(--terracota); font-style: italic; }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.manifesto__grid p { font-size: 1.08rem; color: #4a323b; }
.manifesto__grid strong { color: var(--terracota); }
.manifesto__close {
  margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-style: italic; color: var(--bordo); max-width: 56ch;
}

/* ---------- Cards (soluções) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--creme); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 5px;
  background: linear-gradient(var(--laranja), var(--bordo));
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(66, 19, 34, 0.55); border-color: transparent; }
.card:hover::after { transform: scaleY(1); }
.card__num { font-family: var(--serif); font-size: 1.1rem; color: var(--ocre); font-weight: 600; }
.card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--vinho); margin: 0.4em 0 0.5em; }
.card p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Método (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding-top: 28px;
  border-top: 3px solid var(--line);
}
.step::before {
  content: ""; position: absolute; top: -7.5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--laranja); box-shadow: 0 0 0 4px var(--creme);
}
.step__n { font-family: var(--serif); font-size: 1rem; color: var(--terracota); font-weight: 600; }
.step h3 { font-size: 1.3rem; color: var(--vinho); margin: 0.25em 0 0.5em; }
.step p { font-size: 0.96rem; color: var(--muted); }

/* ---------- Stats band ---------- */
.stats { background: var(--vinho-grafite); color: var(--creme); padding: clamp(56px, 8vw, 96px) 0; }
.stats__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.stat { display: flex; gap: 22px; align-items: flex-start; }
.stat strong {
  font-family: var(--serif); font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9;
  color: var(--laranja); font-weight: 600;
}
.stat figcaption { font-size: 1.05rem; color: rgba(253, 251, 247, 0.85); padding-top: 0.4em; }
.stat cite { display: block; margin-top: 0.7em; font-size: 0.8rem; font-style: normal; color: rgba(253, 251, 247, 0.5); }

/* ---------- Símbolo / marca ---------- */
.simbolo__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.simbolo__art {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 30% 20%, #5a1a2e, var(--vinho) 60%, var(--vinho-grafite));
  position: relative; overflow: hidden;
}
.simbolo__art::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/symbol-pattern.svg"); background-size: 120px; opacity: 0.08;
}
.simbolo__svg { width: 44%; color: var(--laranja); position: relative; }
.simbolo__list { margin-top: 1.8em; display: grid; gap: 0.7em; }
.simbolo__list li { display: flex; align-items: center; gap: 14px; color: #4a323b; font-size: 1.02rem; }
.simbolo__list span {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--vinho); color: var(--ocre); font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
}

/* ---------- Conteúdo / blog ---------- */
.conteudo__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.post-card {
  background: var(--vinho); color: var(--creme); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px); position: relative; overflow: hidden;
}
.post-card::before {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 240px;
  background-image: url("/symbol-pattern.svg"); background-size: 120px; opacity: 0.1;
}
.post-card__tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ocre); font-weight: 700; margin-bottom: 1em;
}
.post-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.5em; }
.post-card p { color: rgba(253, 251, 247, 0.82); }
.post-card__soon {
  display: inline-block; margin-top: 1.4em; font-size: 0.85rem; font-weight: 600;
  color: var(--laranja); border: 1px solid rgba(207, 97, 38, 0.5); padding: 0.4em 1em; border-radius: 999px;
}

/* ---------- Contato ---------- */
.contato { background: var(--vinho-grafite); color: var(--creme); }
.section__kicker--light { color: var(--ocre); }
.contato .section__title { color: var(--creme); }
.contato .section__sub { color: rgba(253, 251, 247, 0.78); }
.contato__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contato__channels { margin-top: 2em; display: grid; gap: 1.2em; }
.contato__channels li { display: grid; gap: 4px; }
.contato__label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocre); font-weight: 600; }
.contato__channels a { font-size: 1.15rem; color: var(--creme); border-bottom: 1px solid rgba(207, 97, 38, 0.5); width: max-content; transition: color .2s; }
.contato__channels a:hover { color: var(--laranja); }

.contato__form { display: grid; gap: 16px; background: rgba(253, 251, 247, 0.04); border: 1px solid rgba(253, 251, 247, 0.1); padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: rgba(253, 251, 247, 0.85); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--creme);
  background: rgba(253, 251, 247, 0.06); border: 1px solid rgba(253, 251, 247, 0.18);
  border-radius: 12px; padding: 0.8em 1em; resize: vertical; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(253, 251, 247, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--laranja); background: rgba(253, 251, 247, 0.1); }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: var(--terracota); }
.contato__hint { font-size: 0.82rem; color: rgba(253, 251, 247, 0.55); margin-top: 4px; }
.contato__hint strong { color: var(--ocre); }

/* ---------- Footer ---------- */
.site-footer { background: #120508; color: rgba(253, 251, 247, 0.7); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(253, 251, 247, 0.1); }
.brand--light .brand__word { color: var(--creme); }
.footer__brand p { margin-top: 1em; font-size: 0.95rem; line-height: 1.7; }
.footer__nav { display: grid; gap: 0.7em; align-content: start; }
.footer__nav a { transition: color .2s; }
.footer__nav a:hover { color: var(--laranja); }
.footer__contact { display: grid; gap: 0.5em; align-content: start; }
.footer__contact a:hover { color: var(--laranja); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 0.82rem; color: rgba(253, 251, 247, 0.45); }

/* ---------- Página de candidatura ---------- */
.hero--compact { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hero--compact .hero__title { font-size: clamp(2rem, 5vw, 3.4rem); }
.form-wrap { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.apply-form {
  display: grid; gap: 18px; background: var(--creme); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px);
}
.apply-form .field label { color: var(--vinho); }
.apply-form .field label span { color: var(--terracota); }
.apply-form .field input, .apply-form .field textarea {
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.8em 1em; font-family: var(--sans); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.apply-form .field input:focus, .apply-form .field textarea:focus {
  outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(207, 97, 38, 0.15);
}
.apply-form input[type="file"] { padding: 0.6em; background: var(--creme-2); cursor: pointer; }
.field__hint { color: var(--muted); font-size: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: #4a323b; line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--laranja); flex: none; }
.consent .req { color: var(--terracota); }
.form-msg { margin: 2px 0 0; font-size: 0.95rem; font-weight: 500; }
.form-msg.is-error { color: var(--terracota); }
.form-msg.is-success { color: #1f7a4d; }

.apply-aside { position: sticky; top: 92px; }
.apply-card {
  background: radial-gradient(120% 120% at 20% 0%, #5a1a2e, var(--vinho) 60%, var(--vinho-grafite));
  color: var(--creme); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 36px);
}
.apply-card__mark { width: 40px; color: var(--laranja); display: block; margin-bottom: 14px; }
.apply-card h2 { font-size: 1.5rem; margin-bottom: 0.6em; }
.apply-card ul { display: grid; gap: 0.8em; }
.apply-card li { position: relative; padding-left: 1.4em; color: rgba(253, 251, 247, 0.85); font-size: 0.98rem; }
.apply-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); }

@media (max-width: 820px) {
  .form-wrap { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav__toggle { display: flex; z-index: 120; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 4px; background: var(--vinho-grafite); padding: 18px clamp(20px, 5vw, 48px) 28px;
    border-bottom: 1px solid rgba(253, 251, 247, 0.1);
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: 0 24px 40px -20px rgba(0,0,0,0.6);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { width: 100%; }
  .nav__menu a { display: block; padding: 12px 0; width: 100%; font-size: 1.05rem; }
  .nav__cta { display: inline-block; margin-top: 8px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .manifesto__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .stats__inner { grid-template-columns: 1fr; gap: 36px; }
  .simbolo__inner { grid-template-columns: 1fr; }
  .simbolo__art { max-width: 320px; }
  .conteudo__inner { grid-template-columns: 1fr; }
  .contato__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .stat { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
