/* ============================================================
   INDEP — Cursos Técnicos por Competência (mobile-first)
   Animações: só transform e opacity. Tudo que anima fica atrás
   da classe .motion no <html>, que não é ligada quando a pessoa
   pede "reduzir movimento".
   ============================================================ */

:root {
  /* Cores do INDEP (tiradas da logo) */
  --azul: #0d2b5e;          /* azul-marinho principal */
  --azul-2: #1e4fa0;        /* azul médio */
  --azul-escuro: #081d40;
  --azul-claro: #e8eef7;
  --amarelo: #e3a82b;       /* dourado */
  --amarelo-escuro: #c78f1a;
  --amarelo-claro: #fdf6e7;
  --branco: #ffffff;
  --cinza: #f4f6f9;
  --borda: #dde3ec;
  --texto: #1c2635;
  --texto-suave: #556274;
  --verde: #168a46;         /* WhatsApp com contraste para texto branco */
  --verde-escuro: #11703a;

  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raio: 18px;
  --raio-sm: 10px;
  --sombra: 0 10px 30px rgba(13, 43, 94, .08);
  --sombra-forte: 0 22px 48px rgba(13, 43, 94, .18);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --topo-altura: 76px;
  --topo-altura-solido: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-altura-solido) + 16px); }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--azul); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container--estreito { max-width: 820px; }

.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;
}
.pular {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--amarelo); color: var(--azul); padding: 10px 16px;
  border-radius: var(--raio-sm); font-weight: 700; text-decoration: none;
}
.pular:focus { top: 12px; }

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

.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ============================================================
   Tela de abertura (só na primeira visita da sessão)
   ============================================================ */
.intro { display: none; }
.com-intro .intro {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--azul-2) 0%, var(--azul) 55%, var(--azul-escuro) 100%);
  animation: intro-sai .35s ease .85s forwards;
}
.intro__conteudo { display: grid; justify-items: center; gap: 22px; }
.intro__logo { width: min(64vw, 300px); animation: intro-logo .6s var(--ease) both; }
.intro__linha {
  display: block; width: min(52vw, 240px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--amarelo), transparent);
  transform-origin: center; animation: intro-linha .5s var(--ease) .3s both;
}
@keyframes intro-logo { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes intro-linha { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-sai { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   Botões
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--fonte); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease),
              translate .4s var(--ease), box-shadow .4s var(--ease);
}
/* "translate" (e não "transform") para não brigar com as animações de entrada */
.btn:hover { translate: 0 -2px; }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: .9em 1.8em; font-size: 1.05rem; }
.btn--amarelo { background: var(--amarelo); color: var(--azul); }
.btn--amarelo:hover { background: var(--amarelo-escuro); }
.btn--whats { background: var(--verde); color: var(--branco); box-shadow: 0 8px 20px rgba(22, 138, 70, .25); }
.btn--whats:hover { background: var(--verde-escuro); box-shadow: 0 12px 26px rgba(22, 138, 70, .32); }
.btn--contorno { border-color: rgba(255, 255, 255, .7); color: var(--branco); }
.btn--contorno:hover { background: rgba(255, 255, 255, .12); border-color: var(--branco); }

/* Pulso sutil no botão principal do hero, a cada poucos segundos */
.motion .btn--pulso::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, .75); pointer-events: none;
  opacity: 0; animation: pulso 4.5s var(--ease) 3s infinite;
}
@keyframes pulso {
  0% { opacity: .9; transform: scale(1); }
  22% { opacity: 0; transform: scale(1.1, 1.45); }
  100% { opacity: 0; transform: scale(1.1, 1.45); }
}

/* ============================================================
   Cabeçalho — transparente sobre o hero, branco ao rolar
   ============================================================ */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.topo::before { /* leve degradê para o menu ficar legível sobre a foto */
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 29, 64, .55), transparent);
  transition: opacity .4s var(--ease);
}
.topo.is-solido, .topo.menu-aberto { background: var(--branco); box-shadow: 0 6px 24px rgba(13, 43, 94, .1); }
.topo.is-solido::before, .topo.menu-aberto::before { opacity: 0; }

.topo__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--topo-altura);
  transition: height .4s var(--ease);
}
.topo.is-solido .topo__inner { height: var(--topo-altura-solido); }

.marca { position: relative; display: block; text-decoration: none; transform-origin: left center; transition: transform .4s var(--ease); }
.marca__logo { height: 48px; width: auto; transition: opacity .4s var(--ease); }
.marca__logo--clara { position: absolute; left: 0; top: 0; }
.marca__logo--escura { opacity: 0; }
.topo.is-solido .marca__logo--clara, .topo.menu-aberto .marca__logo--clara { opacity: 0; }
.topo.is-solido .marca__logo--escura, .topo.menu-aberto .marca__logo--escura { opacity: 1; }
.topo.is-solido .marca { transform: scale(.88); }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--raio-sm); background: rgba(255, 255, 255, .14); cursor: pointer;
  transition: background-color .3s var(--ease);
}
.nav-toggle svg { width: 24px; height: 24px; fill: var(--branco); transition: fill .3s var(--ease); }
.topo.is-solido .nav-toggle, .topo.menu-aberto .nav-toggle { background: var(--cinza); }
.topo.is-solido .nav-toggle svg, .topo.menu-aberto .nav-toggle svg { fill: var(--azul); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 16px 20px; background: var(--branco);
  border-top: 1px solid var(--borda); box-shadow: var(--sombra);
}
.nav.is-open { display: flex; }
.nav a:not(.btn) {
  padding: 12px 8px; font-weight: 600; text-decoration: none; color: var(--azul);
  border-radius: var(--raio-sm);
}
.nav a:not(.btn):hover { background: var(--cinza); }
.nav .btn { margin-top: 8px; }

/* Menu completo só a partir de 1100px (com 6 links + botão não cabe antes) */
@media (min-width: 1100px) {
  .marca__logo { height: 56px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 2px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a:not(.btn) {
    position: relative; padding: 8px 12px; font-size: .95rem; color: var(--branco);
    transition: color .3s var(--ease);
  }
  .nav a:not(.btn):hover { background: none; }
  .nav a:not(.btn)::after { /* sublinhado dourado no hover */
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--amarelo); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
  }
  .nav a:not(.btn):hover::after { transform: scaleX(1); }
  .topo.is-solido .nav a:not(.btn) { color: var(--azul); }
  .nav .btn { margin: 0 0 0 10px; }
}

/* ============================================================
   Hero com slideshow
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(92vh, 800px);
  min-height: min(92svh, 800px);
  padding: 130px 0 40px;
  color: var(--branco);
  background: var(--azul);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); overflow: hidden; }
.slide.is-ativo { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos-m, center);
}
/* Ken Burns: zoom lento na foto ativa (e na que está saindo, para não "pular") */
.motion .slide.is-ativo img, .motion .slide.is-saindo img {
  animation: ken-burns 7s linear both; will-change: transform;
}
@keyframes ken-burns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

/* Camada azulada para o texto ficar legível */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(13, 43, 94, .96) 0%, rgba(13, 43, 94, .74) 45%, rgba(13, 43, 94, .4) 100%);
}
.hero__conteudo { position: relative; }
.hero h1 { color: var(--branco); max-width: 12ch; }
.hero__sub { font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-weight: 700; color: var(--amarelo); margin-bottom: .5em; max-width: 26ch; }
.hero__texto { font-size: 1.05rem; max-width: 34rem; color: rgba(255, 255, 255, .9); }
.hero__acoes { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.selo-prazo {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 18px;
  padding: .45em 1em; border-radius: 999px;
  background: var(--amarelo); color: var(--azul);
  font-weight: 800; font-size: .95rem; letter-spacing: .01em;
}
.selo-prazo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }

/* Link "Conclusão do Ensino Médio" abaixo dos botões do hero */
.hero__link {
  display: inline-flex; align-items: center; gap: .5em; align-self: flex-start;
  padding: 6px 0; font-weight: 700; color: var(--amarelo);
  /* sublinhado só no texto (a borda ocuparia a linha toda no desktop) */
  text-decoration: underline 2px rgba(227, 168, 43, .5); text-underline-offset: 7px;
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
.hero__link svg { width: 18px; height: 18px; fill: currentColor; transition: translate .4s var(--ease); }
.hero__link:hover { color: #f0c25e; text-decoration-color: currentColor; }
.hero__link:hover svg { translate: 4px 0; }
@media (min-width: 640px) { .hero__link { flex-basis: 100%; margin-top: 4px; } }

/* Bolinhas do slideshow */
.hero__pontos { display: flex; gap: 6px; margin-top: 28px; }
.ponto {
  position: relative; width: 36px; height: 24px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.ponto::before { /* trilho */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 4px; background: rgba(255, 255, 255, .35);
}
.ponto::after { /* preenchimento */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 4px; background: var(--amarelo);
  transform: scaleX(0); transform-origin: left;
}
.ponto[aria-current="true"]::after { transform: scaleX(1); }
.motion .hero__pontos.is-tocando .ponto[aria-current="true"]::after { animation: ponto-tempo var(--tempo, 5s) linear both; }
@keyframes ponto-tempo { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 640px) {
  .hero__acoes { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { align-items: center; padding: 150px 0 90px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(13, 43, 94, .95) 0%, rgba(13, 43, 94, .8) 40%, rgba(13, 43, 94, .2) 78%);
  }
  .slide img { object-position: var(--pos-d, center); }
  .hero__conteudo > * { max-width: 580px; }
  .hero__conteudo > .hero__titulo { max-width: 700px; }
}

/* Sequência de entrada do hero */
.palavra { display: inline-block; }
.motion .hero__titulo:not(.dividido) { opacity: 0; } /* evita piscar antes de dividir em palavras */
.motion .hero__titulo .palavra,
.motion .hero-anima {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.motion.hero-pronto .hero__titulo .palavra,
.motion.hero-pronto .hero-anima { opacity: 1; transform: none; }

/* ============================================================
   Faixa de números
   ============================================================ */
.numeros { position: relative; z-index: 2; background: var(--branco); border-bottom: 1px solid var(--borda); }
.numeros__lista {
  list-style: none; margin: 0; padding: 26px 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.numero { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 4px 6px; text-align: center; }
.numero + .numero { border-left: 1px solid var(--borda); }
.numero__valor {
  font-size: clamp(1.9rem, 7vw, 3rem); font-weight: 800; line-height: 1; color: var(--azul);
  font-variant-numeric: tabular-nums;
}
.numero__valor small { font-size: .45em; font-weight: 700; color: var(--texto-suave); }
.numero__valor::after { /* tracinho dourado */
  content: ""; display: block; width: 28px; height: 3px; margin: 10px auto 0;
  background: var(--amarelo); border-radius: 2px;
}
.numero__rotulo { font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--texto-suave); }

@media (min-width: 900px) {
  .numeros__lista { padding: 40px 0; }
  .numero__rotulo { font-size: .95rem; }
}

/* ============================================================
   Seções
   ============================================================ */
.secao { padding: 72px 0; }
.secao--cinza { background: var(--cinza); }
.secao__cabeca { max-width: 680px; margin-bottom: 36px; }
.sobretitulo {
  display: inline-block; margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--azul-2);
}
.sobretitulo::before {
  content: ""; display: inline-block; width: 24px; height: 3px; margin-right: 10px;
  vertical-align: middle; background: var(--amarelo); border-radius: 2px;
}
.sobretitulo--amarelo { color: var(--amarelo); }
.lead { font-size: 1.1rem; color: var(--texto-suave); }

/* Linha dourada embaixo dos títulos */
.titulo-linha::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 16px;
  background: var(--amarelo); border-radius: 4px; transform-origin: left;
}

@media (min-width: 900px) {
  .secao { padding: 104px 0; }
}

/* ============================================================
   Animações ao rolar
   ============================================================ */
/* Bloco de título: sobe e aparece; a linha dourada cresce em seguida */
.motion .cabeca-anima > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.motion .cabeca-anima > :nth-child(2) { transition-delay: .08s; }
.motion .cabeca-anima > :nth-child(3) { transition-delay: .16s; }
.motion .cabeca-anima > :nth-child(4) { transition-delay: .24s; }
.motion .cabeca-anima.is-visivel > * { opacity: 1; transform: none; }
.motion .cabeca-anima .titulo-linha::after { transform: scaleX(0); transition: transform .9s var(--ease) .35s; }
.motion .cabeca-anima.is-visivel .titulo-linha::after { transform: scaleX(1); }

/* Cascata: os filhos entram um depois do outro (--i é definido no JS) */
.motion .cascata > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion .cascata.is-visivel > * { opacity: 1; transform: none; }

/* Fotos: "cortina" azul que se recolhe + leve zoom-out */
.revela-foto { position: relative; overflow: hidden; border-radius: var(--raio); }
.revela-foto img { transition: transform .9s var(--ease); }
.revela-foto:hover img { transform: scale(1.05); }
.motion .revela-foto::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, var(--azul), var(--azul-2));
  transform-origin: right; transition: transform .9s var(--ease);
}
.motion .revela-foto.is-visivel::after { transform: scaleX(0); }
.motion .revela-foto img { transform: scale(1.18); }
.motion .revela-foto.is-visivel img { transform: scale(1); transition-delay: .1s; }
.motion .revela-foto.is-visivel:hover img { transform: scale(1.05); transition-delay: 0s; }

/* Faixa de números: aparece em cascata */
.motion .numeros__lista > .numero {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.motion .numeros__lista.is-visivel > .numero { opacity: 1; transform: none; }

/* ============================================================
   Como funciona — linha do tempo que se desenha ao rolar
   ============================================================ */
.como { display: grid; gap: 40px; }
.como__foto { box-shadow: var(--sombra-forte); }
.como__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.passos-wrap { position: relative; margin-top: 28px; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.passos__linha { /* topo e altura ajustados no JS para ir do 1º ao último número */
  position: absolute; left: 21px; top: 22px; width: 2px; height: 0;
  background: var(--borda); border-radius: 2px; overflow: hidden;
}
.passos__progresso {
  position: absolute; inset: 0; background: linear-gradient(var(--azul-2), var(--amarelo));
  transform: scaleY(1); transform-origin: top;
}
.motion .passos__progresso { transform: scaleY(var(--progresso, 0)); }

.passo { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.passo h3 { margin: 8px 0 .25em; }
.passo p { margin: 0; color: var(--texto-suave); font-size: .95rem; }
.passo__num {
  position: relative; z-index: 1;
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--azul); color: var(--amarelo); font-weight: 800;
  box-shadow: 0 0 0 6px var(--branco);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.passo:last-child .passo__num { background: var(--amarelo); color: var(--azul); }
.motion .passo .passo__num { background: var(--branco); color: var(--azul); box-shadow: 0 0 0 6px var(--branco), inset 0 0 0 2px var(--borda); }
.motion .passo.is-ativo .passo__num { background: var(--azul); color: var(--amarelo); box-shadow: 0 0 0 6px var(--branco); transform: scale(1.06); }
.motion .passo.is-ativo:last-child .passo__num { background: var(--amarelo); color: var(--azul); }

/* Os passos também entram em cascata */
.motion .passos.cascata > * { transition-delay: calc(var(--i, 0) * 120ms); }

@media (min-width: 900px) {
  .como { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .como__foto img { aspect-ratio: 4 / 5; }
}

/* ============================================================
   Cursos — abas, banner da área, grid de cards e busca
   ============================================================ */
.ferramentas { display: grid; gap: 10px; margin-bottom: 24px; }
.busca { position: relative; display: block; max-width: 560px; }
.busca svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: var(--texto-suave); pointer-events: none; }
.busca input {
  width: 100%; min-height: 56px; padding: 0 18px 0 50px;
  border: 2px solid var(--borda); border-radius: 999px; background: var(--branco);
  font: 500 1rem var(--fonte); color: var(--texto);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.busca input:focus { outline: none; border-color: var(--azul-2); box-shadow: 0 0 0 4px rgba(30, 79, 160, .15); }
.contador { margin: 0; min-height: 1.5em; font-size: .9rem; font-weight: 600; color: var(--texto-suave); }

/* Abas */
.abas {
  position: relative;
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -16px 24px; padding: 4px 16px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  flex: none; scroll-snap-align: center;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--borda); border-radius: 999px; background: var(--branco);
  font: 700 .92rem var(--fonte); color: var(--azul); cursor: pointer; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.aba:hover { border-color: var(--azul-2); }
.aba__icone {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--azul-claro); color: var(--azul-2);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.aba__icone svg { width: 20px; height: 20px; }
.aba__qtd { font-weight: 600; color: var(--texto-suave); white-space: nowrap; transition: color .4s var(--ease); }
.aba[aria-selected="true"] { background: var(--azul); border-color: var(--azul); color: var(--branco); box-shadow: 0 10px 24px rgba(13, 43, 94, .2); }
.aba[aria-selected="true"] .aba__icone { background: var(--amarelo); color: var(--azul); }
.aba[aria-selected="true"] .aba__qtd { color: rgba(255, 255, 255, .75); }

/* Indicador dourado que desliza até a aba ativa (posição e largura via transform) */
.abas__indicador {
  position: absolute; left: 0; bottom: 2px; width: 1px; height: 4px;
  border-radius: 4px; background: var(--amarelo);
  transform-origin: left; pointer-events: none;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}
.abas.em-busca .abas__indicador { opacity: 0; }
.abas.em-busca .aba[aria-selected="true"] { background: var(--branco); color: var(--azul); border-color: var(--borda); box-shadow: none; }
.abas.em-busca .aba[aria-selected="true"] .aba__qtd { color: var(--texto-suave); }
.abas.em-busca .aba[aria-selected="true"] .aba__icone { background: var(--azul-claro); color: var(--azul-2); }

@media (min-width: 1000px) {
  .abas {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; overflow: visible;
    margin: 0 0 28px; padding: 8px 8px 14px;
    background: var(--branco); border: 1px solid var(--borda); border-radius: 24px;
    box-shadow: var(--sombra);
  }
  .aba {
    border-color: transparent; border-radius: 16px; white-space: normal; text-align: left;
    padding: 10px 14px 10px 10px; min-height: 64px;
  }
  .aba:hover { border-color: transparent; background: var(--cinza); }
  .aba[aria-selected="true"]:hover { background: var(--azul); }
  .abas__indicador { bottom: 5px; }
}

/* Painéis: ficam empilhados na mesma célula para trocar com crossfade */
.paineis { display: grid; }
.painel { grid-area: 1 / 1; min-width: 0; }
.painel:focus-visible { outline-offset: 6px; border-radius: var(--raio); }
.motion .painel.saindo { animation: painel-sai .4s var(--ease) both; pointer-events: none; }
.motion .painel.entrando { animation: painel-entra .6s var(--ease) both; }
@keyframes painel-sai { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -28px)); } }
@keyframes painel-entra { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }

/* Banner da área */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 210px; padding: 22px 20px; margin-bottom: 20px;
  border-radius: var(--raio); color: var(--branco);
}
.banner img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.banner:hover img { transform: scale(1.05); }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 29, 64, .92) 0%, rgba(13, 43, 94, .55) 60%, rgba(13, 43, 94, .25) 100%);
}
.banner__icone {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px;
  border-radius: 14px; background: var(--amarelo); color: var(--azul);
}
.banner__icone svg { width: 26px; height: 26px; }
.banner h3 { margin: 0 0 .3em; color: var(--branco); font-size: clamp(1.4rem, 4vw, 2rem); }
.banner p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .88); }
.banner__qtd {
  display: inline-block; margin-top: 12px; padding: .3em .85em; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 700;
}
@media (min-width: 900px) {
  .banner { min-height: 240px; padding: 32px 36px; align-items: center; }
  .banner::before { background: linear-gradient(90deg, rgba(8, 29, 64, .94) 0%, rgba(13, 43, 94, .72) 45%, rgba(13, 43, 94, .15) 100%); }
}

/* Grid de cards de curso */
.grade { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grade { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border: 1px solid var(--borda); border-radius: var(--raio);
  background: var(--branco);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
/* "translate" separado do "transform" usado na entrada em cascata */
.card:hover { translate: 0 -5px; box-shadow: var(--sombra-forte); border-color: var(--amarelo); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: .25em .7em; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.4; }
.tag--area { background: var(--azul-claro); color: var(--azul-2); }
.tag--prazo { background: var(--amarelo-claro); color: #8a5a00; }
.card__nome { flex: 1; margin: 0; font-size: 1.02rem; line-height: 1.35; }
.card .btn { align-self: flex-start; }

.motion .grade .card { opacity: 0; }
.motion .grade.anima .card {
  animation: card-entra .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes card-entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Resultados da busca, agrupados por área */
.grupo + .grupo { margin-top: 32px; }
.grupo__titulo {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 1.15rem;
}
.grupo__titulo .aba__icone { width: 34px; height: 34px; background: var(--amarelo); color: var(--azul); }
.grupo__qtd { font-size: .9rem; font-weight: 600; color: var(--texto-suave); }

.vazio {
  padding: 36px 20px; text-align: center; background: var(--branco);
  border: 2px dashed var(--borda); border-radius: var(--raio);
}

/* ============================================================
   Conclusão do Ensino Médio
   ============================================================ */
.em { position: relative; overflow: hidden; isolation: isolate; }
/* Curvas decorativas no fundo: faixa azul-marinho e arco dourado */
.em::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -30vw; top: 0; width: 120vw; height: 300px; /* no celular fica só atrás da foto */
  border-radius: 0 0 60% 40% / 0 0 100% 70%;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-2) 100%);
}
.em::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -22vw; top: 0; width: 118vw; height: 322px;
  border-radius: 0 0 60% 40% / 0 0 100% 70%;
  border-bottom: 3px solid var(--amarelo); border-right: 3px solid var(--amarelo);
  opacity: .9;
}
.em__inner { display: grid; gap: 40px; align-items: center; }

.em__visual { position: relative; padding: 0 0 18px 18px; }
.em__visual::before { /* placa dourada deslocada atrás da foto */
  content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%;
  border-radius: var(--raio); background: var(--amarelo);
}
.em__foto { position: relative; box-shadow: var(--sombra-forte); }
.em__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }

.em h2 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); }
.destaque { color: #b07d10; } /* dourado mais escuro: legível sobre fundo branco */

.beneficios { list-style: none; margin: 8px 0 32px; padding: 0; display: grid; gap: 14px; }
.beneficio {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px 14px 14px; border: 1px solid var(--borda); border-radius: var(--raio);
  background: var(--branco);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease);
}
.beneficio:hover { border-color: var(--amarelo); box-shadow: var(--sombra); translate: 4px 0; }
.beneficio__icone {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px;
  border-radius: 14px; background: var(--azul); color: var(--amarelo);
}
.beneficio__icone svg { width: 28px; height: 28px; }
.beneficio__texto { font-weight: 700; font-size: 1.05rem; color: var(--azul); line-height: 1.3; }
.motion .beneficios.cascata > * { transition-delay: calc(var(--i, 0) * 160ms + 120ms); }

@media (min-width: 900px) {
  .em__inner { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .em__visual { order: 2; padding: 0 0 24px 24px; }
  .em__foto img { aspect-ratio: 4 / 5; }
  /* No desktop as curvas ficam do lado da foto (direita) */
  .em::before { left: auto; right: -12vw; top: -10%; width: 52vw; height: 120%; border-radius: 55% 0 0 45% / 50% 0 0 50%; }
  .em::after { left: auto; right: -8vw; top: -6%; width: 52vw; height: 112%; border-radius: 55% 0 0 45% / 50% 0 0 50%;
    border: 0; border-left: 3px solid var(--amarelo); }
}

/* ============================================================
   Faixa
   ============================================================ */
.faixa {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--azul) 0%, var(--azul-2) 100%);
  color: var(--branco); padding: 64px 0;
}
.faixa::before, .faixa::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.faixa::after { right: -80px; top: -80px; width: 260px; height: 260px; border: 40px solid rgba(227, 168, 43, .2); }
.faixa::before { left: -60px; bottom: -110px; width: 220px; height: 220px; border: 2px solid rgba(255, 255, 255, .12); }
.motion .faixa::after { animation: flutua 9s ease-in-out infinite; }
@keyframes flutua { 50% { transform: translate(-14px, 12px) scale(1.04); } }
.faixa__inner { position: relative; z-index: 1; text-align: center; }
.faixa__titulo { margin: 0 0 .25em; font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; color: var(--amarelo); line-height: 1.15; }
.faixa__texto { margin: 0; font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 500; }

/* ============================================================
   Reconhecimento
   ============================================================ */
.selos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.selo {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  min-height: 150px; padding: 22px 14px; text-align: center;
  border: 1px solid var(--borda); border-radius: var(--raio); background: var(--branco);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease);
}
.selo:hover { border-color: var(--amarelo); box-shadow: var(--sombra); translate: 0 -4px; }
.selo__sigla {
  display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 12px;
  border-radius: 999px; border: 3px solid var(--amarelo);
  font-size: 1.05rem; font-weight: 800; color: var(--azul); letter-spacing: .02em;
  transition: background-color .4s var(--ease);
}
.selo:hover .selo__sigla { background: var(--amarelo-claro); }
.selo__nome { font-size: .82rem; line-height: 1.35; color: var(--texto-suave); }

@media (min-width: 700px) { .selos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .selos { grid-template-columns: repeat(6, 1fr); } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.faq details:hover { box-shadow: var(--sombra); }
.faq details[open] { border-color: var(--azul-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--azul);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cinza); color: var(--azul); font-size: 1.3rem; font-weight: 600; line-height: 1;
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.faq details[open] summary::after { content: "−"; background: var(--amarelo); transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--texto-suave); }
.motion .faq details[open] p { animation: faq-abre .5s var(--ease) both; }
@keyframes faq-abre { from { opacity: 0; transform: translateY(-6px); } }

/* ============================================================
   CTA final
   ============================================================ */
.cta { background: var(--azul); color: var(--branco); padding: 72px 0; overflow: hidden; }
.cta__inner { display: grid; gap: 40px; align-items: center; }
.cta h2 { color: var(--branco); }
.cta p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 34rem; margin-bottom: 1.5em; }
.cta__foto { box-shadow: 0 0 0 6px rgba(227, 168, 43, .9); }
.cta__foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 900px) {
  .cta { padding: 104px 0; }
  .cta__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ============================================================
   Rodapé
   ============================================================ */
.rodape { background: var(--azul-escuro); color: rgba(255, 255, 255, .78); padding: 56px 0 24px; font-size: .95rem; }
.rodape__inner { display: grid; gap: 28px; }
.rodape__logo { width: 210px; height: auto; margin-bottom: 16px; }
.rodape__slogan { color: var(--amarelo); font-weight: 700; }
.rodape__contato { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rodape__contato a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; transition: color .3s var(--ease); }
.rodape__contato a:hover { color: var(--amarelo); }
.rodape__base { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.rodape__base p { margin: 0; }
/* espaço para os botões flutuantes não cobrirem o texto no celular */
@media (max-width: 899px) { .rodape { padding-bottom: 96px; } }

.rodape__titulo { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--branco); }
.rodape__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rodape__nav a { text-decoration: none; padding: 4px 0; display: inline-block; transition: color .3s var(--ease); }
.rodape__nav a:hover { color: var(--amarelo); }

@media (min-width: 700px) {
  .rodape__inner { grid-template-columns: 1fr auto auto; gap: 56px; align-items: start; }
}

/* ============================================================
   Botões flutuantes: WhatsApp e voltar ao topo
   ============================================================ */
.whats-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--branco);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: scale .3s var(--ease);
}
.whats-flutuante:hover { scale: 1.08; }
.whats-flutuante svg { width: 32px; height: 32px; }
/* Entra depois de 2s e balança levemente de vez em quando */
.motion .whats-flutuante {
  animation: whats-entra .7s var(--ease) 2s both, whats-balanca 7s ease-in-out 4s infinite;
}
@keyframes whats-entra { from { opacity: 0; transform: translateY(24px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes whats-balanca {
  0%, 84%, 100% { transform: none; }
  87% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  93% { transform: rotate(-6deg); }
  96% { transform: rotate(3deg); }
}

.voltar-topo {
  position: fixed; right: 24px; bottom: 88px; z-index: 90;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--azul); color: var(--branco);
  box-shadow: 0 8px 22px rgba(13, 43, 94, .3); cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .3s var(--ease);
}
.voltar-topo svg { width: 22px; height: 22px; fill: currentColor; }
.voltar-topo:hover { background: var(--azul-2); }
.voltar-topo.is-visivel { opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 900px) {
  .whats-flutuante { right: 28px; bottom: 28px; }
  .voltar-topo { right: 36px; bottom: 104px; }
}

/* ============================================================
   Reduzir movimento: sem rolagem animada nem transições
   (as animações já ficam desligadas porque .motion não é aplicada)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
