/* My Pure Filter Boston — o que o site da matriz fazia pelo React e aqui é HTML puro.
   O visual é o do mpf.css (o CSS original da matriz). */

/* animação de entrada das seções */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* menu do celular */
.menu-celular { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
  background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 12px 24px rgba(15,28,46,.08); padding: 8px 24px 20px; }
.menu-celular.aberto { display: flex; }
.menu-celular a { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16px; color: #0f1c2e;
  text-decoration: none; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.menu-celular .menu-celular__cta { margin-top: 16px; border: 0; background: #0f1c2e; color: #fff; text-align: center; border-radius: 999px; }
@media (min-width: 1024px) { .menu-celular, .menu-celular.aberto { display: none; } }
header nav a[aria-current="page"] { color: #0f1c2e; }

/* página de vagas: espaço para o cabeçalho fixo e foto de fundo */
.heroi-vagas { padding-top: 72px; }
.heroi-vagas__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }

/* seletor de idioma com bandeiras */
.idiomas-bandeiras { display: flex; flex-wrap: wrap; gap: 10px; }
.idioma-bandeira { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.25); color: #fff;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15px; text-decoration: none; transition: all .2s; }
.idioma-bandeira:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.idioma-bandeira[aria-current="true"] { background: #fff; color: #0f1c2e; border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.idioma-bandeira .bandeira { width: 32px; height: 22px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
@media (max-width: 480px) { .idioma-bandeira { font-size: 14px; padding: 8px 14px 8px 8px; } .idioma-bandeira .bandeira { width: 28px; height: 19px; } }

/* faixa de números da página de vagas: palavras longas (espanhol) no celular */
@media (max-width: 480px) {
  .faixa-numeros .px-4 { padding-left: 6px; padding-right: 6px; }
  .faixa-numeros .text-xl { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
  .faixa-numeros .text-sm { font-size: 12px; }
}

/* seletor de idioma com bandeiras (cabeçalho e menu do celular) */
.idiomas-topo { display: none; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; }
@media (min-width: 640px) { .idiomas-topo { display: flex; } }
.idiomas-topo a { display: inline-flex; padding: 3px; border-radius: 6px; opacity: .55; transition: opacity .2s, transform .2s; }
.idiomas-topo a:hover, .idiomas-topo a:focus-visible { opacity: 1; transform: translateY(-1px); }
.idiomas-topo a[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #0f1c2e; }
.idiomas-topo svg { width: 26px; height: 18px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.idiomas-menu { display: flex; gap: 12px; padding: 16px 0 4px; }
.idiomas-menu a { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; opacity: .55; }
.idiomas-menu a[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #0f1c2e; }
.idiomas-menu svg { width: 34px; height: 23px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
@media (min-width: 640px) { .idiomas-menu { display: none; } }

/* aviso discreto de vagas no rodapé */
.vagas-rodape { margin-top: 14px; font-size: 12px; }
.vagas-rodape a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.vagas-rodape a:hover { opacity: 1; }
.vagas-rodape--escuro { color: rgba(255,255,255,.4); }
.vagas-rodape--escuro a:hover { color: #fff; }
.vagas-rodape--claro { color: #94a3b8; }
.vagas-rodape--claro a:hover { color: #0f1c2e; }

/* menu do cabeçalho numa linha só (textos em espanhol e português são mais longos) */
header nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { header nav { gap: 14px; } header nav a { font-size: 13px; } }

/* espanhol e português: nessa faixa o botão usa o rótulo curto para o cabeçalho caber */
@media (min-width: 1024px) and (max-width: 1399px) {
  html:not([lang="en"]) header a[target="_blank"] > span:first-child { display: none; }
  html:not([lang="en"]) header a[target="_blank"] > span:nth-child(2) { display: inline; }
}
@media (min-width: 1024px) and (max-width: 1099px) { header nav { gap: 10px; } }

/* ===== HERO com formulário ===== */
.hero-mpf { min-height: 100vh; }
.hero-mpf__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; }
.hero-mpf__veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,46,.78) 0%, rgba(15,28,46,.6) 45%, rgba(15,28,46,.92) 100%); }
.hero-mpf__grade { display: grid; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 28px 24px 48px; align-items: start; }
.hero-mpf__copy h1 { font-size: clamp(2.1rem, 8.5vw, 2.75rem); margin-bottom: 16px; }
.hero-mpf__copy > p:first-child { margin-bottom: 12px; font-size: 12px; letter-spacing: .22em; }
.hero-mpf__copy > p:nth-of-type(2) { font-size: 16px; margin-bottom: 20px; }
.hero-mpf__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (min-width: 1024px) {
  .hero-mpf__veu { background: linear-gradient(90deg, rgba(15,28,46,.88) 0%, rgba(15,28,46,.55) 55%, rgba(15,28,46,.35) 100%); }
  .hero-mpf__grade { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 56px; padding: 56px 40px; min-height: calc(100vh - 72px); align-items: center; }
  .hero-mpf__copy h1 { font-size: clamp(2.6rem, 4.2vw, 4rem); }
  .hero-mpf__copy > p:first-child { font-size: 14px; letter-spacing: .3em; }
  .hero-mpf__copy > p:nth-of-type(2) { font-size: 18px; }
  .hero-mpf__cta a[href="#free-test-form"] { display: none; }   /* no computador o formulário já está na tela */
}

/* cartão do formulário */
.hero-form { scroll-margin-top: 88px; }
.mpf-form { background: #fff; color: #0f1c2e; border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 30px 70px rgba(0,0,0,.4); font-family: "DM Sans", -apple-system, "Segoe UI", sans-serif; }
@media (min-width: 640px) { .mpf-form { padding: 28px 28px 22px; } }
.mpf-form__titulo { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 4px; }
.mpf-form__sub { font-size: 14px; color: #5d696c; margin: 0 0 16px; }
.mpf-q { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.mpf-q legend, .mpf-f > span { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 13px; color: #1e293b; padding: 0; margin-bottom: 6px; display: block; }
.mpf-f > span em { font-style: normal; font-weight: 400; color: #94a3b8; }
.mpf-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mpf-pills label { position: relative; cursor: pointer; }
.mpf-pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mpf-pills span { display: block; text-align: center; padding: 11px 10px; border: 1.5px solid #dbe2ea; border-radius: 12px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 14px; color: #334155; transition: all .15s; }
.mpf-pills input:checked + span { background: #0f1c2e; border-color: #0f1c2e; color: #fff; }
.mpf-pills input:focus-visible + span { outline: 2px solid #266980; outline-offset: 2px; }
.mpf-f { display: block; margin-bottom: 12px; }
.mpf-f input, .mpf-f select { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1.5px solid #dbe2ea; border-radius: 12px; font: 400 16px "DM Sans", sans-serif; color: #0f1c2e; background: #fff; }
.mpf-f select { appearance: none; background: #fff 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 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.mpf-f input:focus, .mpf-f select:focus { outline: 0; border-color: #266980; box-shadow: 0 0 0 3px rgba(38,105,128,.18); }
.mpf-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) { .mpf-row { grid-template-columns: 1fr 1fr; } .mpf-row--cidade { grid-template-columns: 1.5fr 1fr; } }
.mpf-invalido input, .mpf-invalido select, .mpf-q.mpf-invalido .mpf-pills span { border-color: #d9534f; }
.mpf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.mpf-enviar { width: 100%; height: 52px; border: 0; border-radius: 14px; background: #d9844d; color: #fff; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, transform .15s; margin-top: 4px; }
.mpf-enviar:hover { background: #c4733f; transform: translateY(-1px); }
.mpf-enviar[disabled] { opacity: .6; cursor: progress; transform: none; }
.mpf-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.mpf-msg--erro { background: #fdecea; color: #a4282a; }
.mpf-msg--ok { background: #e8f5ee; color: #1d6b43; }
.mpf-consent { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: #94a3b8; }
.mpf-form--enviado > :not(.mpf-msg) { display: none; }

/* ===== faixa de confiança (logo abaixo da hero) ===== */
.confianca-mpf { background: #fff; border-bottom: 1px solid #eef2f6; }
.confianca-mpf ul { list-style: none; margin: 0 auto; padding: 14px 20px; max-width: 1280px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.confianca-mpf li { display: inline-flex; align-items: center; gap: 9px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 14px; color: #0f1c2e; }
.confianca-mpf svg { width: 18px; height: 18px; color: #266980; flex: none; }
.confianca-mpf .confianca-mpf__bandeira svg { width: 26px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
@media (max-width: 480px) { .confianca-mpf li { font-size: 13px; } .confianca-mpf ul { gap: 8px 20px; } }

/* ===== carrossel de famílias ===== */
.familias-mpf { background: #f6f8fa; padding: 64px 0 56px; overflow: hidden; }
.familias-mpf__topo { text-align: center; padding: 0 24px 32px; max-width: 720px; margin: 0 auto; }
.familias-mpf__eyebrow { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #266980; margin: 0 0 12px; }
.familias-mpf h2 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -.02em; color: #0f1c2e; margin: 0 0 12px; }
.familias-mpf__sub { font-size: 17px; color: #5d696c; margin: 0; }
.familias-mpf__faixa { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.familias-mpf__trilho { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: familias-rola 75s linear infinite; }
.familias-mpf__faixa:hover .familias-mpf__trilho { animation-play-state: paused; }
.familias-mpf__trilho li { flex: none; }
.familias-mpf__trilho img { display: block; height: 280px; width: auto; border-radius: 18px; box-shadow: 0 8px 24px rgba(15,28,46,.12); }
@keyframes familias-rola { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .familias-mpf { padding: 48px 0 40px; } .familias-mpf__trilho img { height: 210px; } }
@media (prefers-reduced-motion: reduce) {
  .familias-mpf__faixa { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .familias-mpf__trilho { animation: none; }
  .familias-mpf__trilho li[aria-hidden="true"] { display: none; }
}

/* formulário mais compacto: as duas perguntas de sim/não lado a lado */
.mpf-qpar { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 560px) { .mpf-qpar { grid-template-columns: 1fr 1fr; gap: 0 14px; } }
@media (min-width: 1024px) {
  .mpf-form { padding: 22px 24px 16px; }
  .mpf-form__titulo { font-size: 21px; }
  .mpf-form__sub { margin-bottom: 12px; }
  .mpf-q, .mpf-f { margin-bottom: 9px; }
  .mpf-pills span { padding: 9px 8px; font-size: 13.5px; }
  .mpf-f input, .mpf-f select { height: 42px; }
  .mpf-enviar { height: 48px; }
  .mpf-consent { margin-top: 9px; font-size: 11px; }
}

/* certificações e selos (como no site de referência) */
.certif-mpf { max-width: 1040px; margin: 40px auto 0; padding: 32px 28px 30px; text-align: center; background: linear-gradient(160deg, #0a1628 0%, #0f1c2e 70%, #16263f 100%); border-radius: 22px; box-shadow: 0 18px 50px rgba(15,28,46,.18); }
.certif-mpf__eyebrow { font-family: "Outfit", sans-serif; font-weight: 500; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: #d9844d; margin: 0 0 10px; }
.certif-mpf__h { font-family: "Outfit", sans-serif; font-weight: 400; font-size: clamp(1.25rem, 3.2vw, 1.7rem); color: #fff; margin: 0 0 28px; }
.certif-mpf__h em { font-family: "Playfair Display", Georgia, serif; font-style: italic; color: #d9844d; }
.certif-mpf__grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; align-items: start; }
@media (min-width: 720px) { .certif-mpf__grade { grid-template-columns: 1fr 1fr 1.6fr 1.1fr; gap: 28px 12px; } }
.certif-mpf figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.certif-mpf__logo { height: 120px; display: flex; align-items: center; justify-content: center; }
.certif-mpf__logo img { max-height: 110px; max-width: 100%; width: auto; }
.certif-mpf figure:nth-child(1) .certif-mpf__logo img { width: 130px; max-height: none; filter: brightness(0) invert(1); }
.certif-mpf figure:nth-child(2) .certif-mpf__logo img { width: 112px; }
.certif-mpf figure:nth-child(3) .certif-mpf__logo img { width: 100%; max-width: 320px; max-height: none; filter: brightness(0) invert(1); }
.certif-mpf__usa { flex-direction: column; gap: 4px; }
.certif-mpf__usa i { font-style: normal; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .18em; color: #fff; }
.certif-mpf__usa img { width: 96px; height: auto; }
.certif-mpf figcaption { display: flex; flex-direction: column; gap: 3px; }
.certif-mpf figcaption b { font-family: "Outfit", sans-serif; font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #d9844d; }
.certif-mpf figcaption span { font-size: 12.5px; color: rgba(255,255,255,.72); }
.certif-mpf figcaption small { font-size: 11px; color: rgba(255,255,255,.4); }

/* formulário: opções de marcar em azul claro com seletor, botão no azul (petrol) da marca */
.mpf-pills span { display: flex; align-items: center; justify-content: center; gap: 8px; background: #eaf3f6; border-color: #a9cbd7; color: #1c4c5c; }
.mpf-pills span::before { content: ""; width: 17px; height: 17px; flex: none; border-radius: 50%; border: 2px solid #64a2b7; background: #fff; box-sizing: border-box; transition: all .15s; }
.mpf-pills label:hover span { border-color: #266980; background: #dfeef3; }
.mpf-pills input:checked + span { background: #266980; border-color: #266980; color: #fff; }
.mpf-pills input:checked + span::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23266980' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mpf-enviar { background: #266980; }
.mpf-enviar:hover { background: #0f1c2e; }
@media (max-width: 420px) { .mpf-pills span { font-size: 13px; gap: 6px; padding-left: 6px; padding-right: 6px; } }

/* ===== CELULAR: hero curta com botão que desce ao formulário; formulário em bloco próprio e compacto ===== */
@media (max-width: 1023px) {
  .hero-mpf { min-height: 0; background: #f6f8fa; }
  .hero-mpf__foto, .hero-mpf__veu { height: 372px; bottom: auto; }
  .hero-mpf__veu { background: linear-gradient(180deg, rgba(15,28,46,.72) 0%, rgba(15,28,46,.62) 55%, rgba(15,28,46,.9) 100%); }
  .hero-mpf__grade { gap: 0; padding: 22px 20px 28px; }
  .hero-mpf__copy { min-height: 340px; display: flex; flex-direction: column; }
  .hero-mpf__copy > p:nth-of-type(2) { display: none; }                 /* parágrafo longo sai no celular */
  .hero-mpf__copy h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 0; }
  .hero-mpf__cta { margin-top: auto; padding-bottom: 6px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-mpf__cta a[href="#free-test-form"] { justify-content: center; height: 54px; border-radius: 14px; font-size: 16px; background: #266980; color: #fff; }
  .hero-mpf__cta span { text-align: center; font-size: 13px; }
  .hero-form { margin-top: 18px; scroll-margin-top: 76px; }
  .mpf-form { padding: 18px 16px 14px; border-radius: 18px; box-shadow: 0 10px 34px rgba(15,28,46,.12); border: 1px solid #e6edf2; }
  .mpf-form__titulo { font-size: 19px; }
  .mpf-form__sub { font-size: 13px; margin-bottom: 10px; }
  .mpf-q, .mpf-f { margin-bottom: 8px; }
  .mpf-q legend, .mpf-f > span { font-size: 12.5px; margin-bottom: 4px; }
  .mpf-pills span { padding: 8px 6px; font-size: 13.5px; }
  .mpf-f input, .mpf-f select { height: 42px; font-size: 16px; }
  .mpf-row, .mpf-row--cidade { grid-template-columns: 1fr; }
  .mpf-row--cidade { grid-template-columns: 1.4fr 1fr; gap: 0 10px; }
  .mpf-enviar { height: 50px; }
  .mpf-consent { font-size: 11px; margin-top: 8px; }
}

/* computador: as caixas de escolha voltam ao estilo original (sem bolinha); o novo visual fica só no celular */
@media (min-width: 1024px) {
  .mpf-pills span { display: block; text-align: center; background: #fff; border-color: #dbe2ea; color: #334155; padding: 9px 8px; }
  .mpf-pills span::before { display: none; }
  .mpf-pills label:hover span { background: #fff; border-color: #94a3b8; }
  .mpf-pills input:checked + span { background: #0f1c2e; border-color: #0f1c2e; color: #fff; }
}
