/* Trabalhe Conosco – AIMARA
   Paleta extraída de aimara.com.br: azul-marinho do logo, ciano dos ícones
   e o azul dos botões do site. */

:root {
  --navy: #21509a;
  --navy-900: #112b57;
  --blue: #4869e8;
  --blue-600: #3653cc;
  --cyan: #00c6f7;
  --ink: #1a1c26;
  --text: #5e606c;
  --muted: #73747f;
  --label: #2b2d3a;
  --line: #e3e8ef;
  --line-strong: #c9d1dd;
  --soft: #f7f9fb;
  --white: #fff;
  --footer: #343535;
  --success: #00a99d;
  --danger: #d23a3a;
  --danger-soft: #fff4f4;
  --focus: 0 0 0 4px rgba(72, 105, 232, 0.16);
  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
p { margin: 0; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 500 15px/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 24px -12px rgba(72, 105, 232, 0.8); }
.btn-primary:hover { background: var(--blue-600); }
.btn-primary[disabled] { opacity: 0.8; cursor: progress; }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf6fd; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { width: auto; height: 46px; }

.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(17, 43, 87, 0.3);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .nav a { padding: 12px 10px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  color: #fff;
  background: linear-gradient(118deg, var(--navy-900) 0%, var(--navy) 50%, #2d6cd6 100%);
}

/* Pontos inspirados no símbolo do logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.5px, transparent 1.8px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 88%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 88%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 247, 0.42), transparent 64%);
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow-dark { color: var(--blue); }

.hero h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero h1 strong { font-weight: 500; }

.hero-lead { max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, 0.84); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  max-width: 760px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.stat dt { font-family: var(--font-head); font-size: 24px; color: #fff; }
.stat dd { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Por que a AIMARA ---------- */

.section { padding: 96px 0; }

.why-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.why-photo { margin: 0; }
.why-photo img { border-radius: 6px; box-shadow: 0 30px 60px -28px rgba(17, 43, 87, 0.45); }
.why-intro h2 { margin: 12px 0 18px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.card {
  padding: 36px 26px 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(17, 43, 87, 0.35); }
.card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; font-size: 19px; font-weight: 400; }
.card p { font-size: 15px; color: var(--muted); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .section { padding: 72px 0; }
  .why-intro { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Formulário ---------- */

.apply { padding: 96px 0; background: var(--soft); scroll-margin-top: 80px; }

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}

.apply-aside { position: sticky; top: 120px; }
.apply-aside h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; }

.steps { display: grid; gap: 22px; margin: 32px 0; padding: 0; list-style: none; counter-reset: passo; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(passo);
  counter-increment: passo;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font: 500 16px var(--font-head);
  color: var(--navy);
}
.steps strong { display: block; font-weight: 500; color: var(--ink); }
.steps span { font-size: 15px; }

.privacy-note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}
.privacy-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--success); }

.form-card {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 34px 64px -34px rgba(17, 43, 87, 0.3);
}

fieldset { min-width: 0; margin: 0 0 36px; padding: 0; border: 0; }

legend {
  width: 100%;
  margin-bottom: 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
}
.legend-num { margin-right: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; color: var(--cyan); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }

label,
.label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; color: var(--label); }

.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--soft);
  font: 15px var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  scroll-margin-top: 130px;
}

textarea { height: auto; min-height: 128px; padding: 14px 16px; line-height: 1.5; resize: vertical; }

select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2373747F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
select:has(option[value=""]:checked) { color: #9a9eab; }
select option { color: var(--ink); }

::placeholder { color: #9a9eab; opacity: 1; }

input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }

input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: var(--focus); }

.is-invalid input,
.is-invalid select,
.is-invalid textarea { border-color: var(--danger); background-color: var(--danger-soft); }
.is-invalid input:focus,
.is-invalid select:focus,
.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(210, 58, 58, 0.14); }

.field-error { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--danger); }
.field-error:empty { display: none; }

.counter { margin-top: 6px; font-size: 12px; text-align: right; color: var(--muted); }

.input-icon { position: relative; }
.input-icon svg { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; color: #0a66c2; transform: translateY(-50%); pointer-events: none; }
.input-icon input { padding-left: 46px; }

/* Anexo */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 30px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.dropzone > * { pointer-events: none; }
.dropzone:hover,
.dropzone.is-dragover { border-color: var(--blue); background: #f0f3fe; }
.dropzone:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.is-invalid .dropzone { border-color: var(--danger); background: var(--danger-soft); }

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px -10px rgba(17, 43, 87, 0.45);
}
.dropzone-icon svg { width: 24px; height: 24px; }
.dropzone-text { font-size: 15px; font-weight: 400; color: var(--ink); }
.dropzone-text strong { font-weight: 500; color: var(--blue); }
.dropzone-hint { font-size: 13px; font-weight: 400; color: var(--muted); }

.file-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.file-chip-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #eef2fd;
  color: var(--blue);
}
.file-chip-icon svg { width: 22px; height: 22px; }
.file-meta { flex: 1; min-width: 0; }
.file-name { display: block; overflow: hidden; font-weight: 500; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.file-size { font-size: 13px; color: var(--muted); }
.file-remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.file-remove svg { width: 18px; height: 18px; }
.file-remove:hover { background: #fdeaea; color: var(--danger); }

/* Campo isca para robôs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  transition: border-color 0.2s, background-color 0.2s;
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; scroll-margin-top: 130px; }
.consent label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--text); cursor: pointer; }
.consent.is-invalid { border-color: var(--danger); background: var(--danger-soft); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}
.form-actions small { font-size: 13px; color: var(--muted); }

.form-alert {
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid #f2c4c4;
  border-radius: 6px;
  background: var(--danger-soft);
  font-size: 14px;
  color: #a12c2c;
}

.success { padding: 36px 8px; text-align: center; outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(0, 169, 157, 0.12);
  color: var(--success);
}
.success-icon svg { width: 38px; height: 38px; }
.success h3 { margin-bottom: 12px; font-size: 30px; font-weight: 400; }
.success p { max-width: 460px; margin: 0 auto 32px; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 960px) {
  .apply { padding: 72px 0; }
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .apply-aside { position: static; }
}

@media (max-width: 640px) {
  .hero { padding: 72px 0 64px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 18px 32px; margin-top: 44px; }
  .form-card { padding: 28px 18px; border-radius: 8px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}

/* ---------- Rodapé ---------- */

.site-footer { padding-top: 64px; background: var(--footer); font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 0.8fr; gap: 48px; }
.footer-brand img { width: auto; height: 46px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }

.footer-title { margin-bottom: 18px; font-size: 17px; font-weight: 400; color: #fff; }

.footer-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; gap: 12px; }
.footer-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--cyan); }

.social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.social a:hover { border-color: var(--blue); background: var(--blue); }
.social svg { width: 18px; height: 18px; }

.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

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