/* ============================================================
   Anglo Fernandópolis | Matrículas 2027
   Campanha Anglo 2027 "Saia do básico"

   Tema travado: escuro na página inteira (cartaz de campanha).
   Paleta travada (tokens da marca Anglo Fernandópolis):
     base #020B33 · acento interativo #0153FF · destaque tipográfico #00D8FF
   Regra de acento: #0153FF é o ÚNICO acento interativo (botões, foco,
   ícones, links). #00D8FF é exclusivamente destaque de texto dentro do
   lockup de campanha ("X é básico / Y é Anglo") e dos números.
   Regra de raio: pill (999px) em tudo que é clicável · 14px em cards e
   mídia · 10px em campos de formulário.
   ============================================================ */

@font-face {
  font-family: "Boldonse";
  src: url("../assets/fonts/Boldonse-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/PublicSans-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/PublicSans-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --navy: #020b33;
  --navy-2: #061240;
  --navy-3: #0a1a56;
  --blue: #0153ff;
  --blue-hover: #0142cc;
  --blue-deep: #004c83;
  --cyan: #00d8ff;

  --paper: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.72);
  --faint: rgba(244, 246, 251, 0.5);
  --line: rgba(244, 246, 251, 0.14);
  --line-strong: rgba(244, 246, 251, 0.26);

  --whats: #0e7a36;
  --danger: #ff8b84;
  --danger-ink: #8c1d16;

  /* marcador de foto que ainda falta chegar da escola */
  --neon: #39ff14;

  --radius: 14px;
  --radius-field: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Boldonse", "Arial Black", sans-serif;

  /* Tokens semânticos: só estes mudam nos blocos claros, e todo componente
     acompanha sem precisar de regra própria. */
  --ink: #f4f6fb;
  --highlight: #00d8ff;
}

/* ---------- Bloco claro ----------
   A página alterna faixas escuras e brancas de propósito, no mesmo ritmo do
   site institucional. Dentro de .sec--light o destaque tipográfico troca de
   ciano para azul, porque #00D8FF não passa contraste sobre branco. */
.sec--light {
  background: #fff;
  color: var(--navy);
  --ink: #020b33;
  --highlight: var(--blue);
  --muted: rgba(2, 11, 51, 0.72);
  --faint: rgba(2, 11, 51, 0.62);
  --line: rgba(2, 11, 51, 0.13);
  --line-strong: rgba(2, 11, 51, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: #f4f6fb;
  color: var(--navy);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}
.form-card :focus-visible { outline-color: var(--blue); }

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

/* ---------- Tipografia ---------- */
/* Boldonse é a display da campanha: peso único e caixa larga, pede corpo
   menor e entrelinha maior do que uma grotesca comum. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  text-wrap: balance;
}

.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  letter-spacing: 0;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--highlight);
}

/* Lockup da campanha: "X é básico." / "Y é Anglo!" */
.lockup { display: block; }
.lockup .basico {
  display: block;
  font-family: var(--font);
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-bottom: 0.35em;
}
.lockup .destaque { color: var(--highlight); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s var(--ease),
    box-shadow 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(1, 83, 255, 0.34);
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(244, 246, 251, 0.45);
}
.btn-ghost:hover {
  background: rgba(244, 246, 251, 0.08);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: #0b6630; }

/* ---------- Ícones ---------- */
.icon { width: 28px; height: 28px; fill: var(--highlight); flex-shrink: 0; }
.icon-sm { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }
.icon-lg { width: 54px; height: 54px; fill: var(--blue); }

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-block: 14px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { width: 96px; height: 96px; }
.nav-right { display: flex; align-items: center; gap: 18px; }

@media (max-width: 1100px) {
  .nav-logo img { width: 76px; height: 76px; }
}
@media (max-width: 700px) {
  .nav-cta { display: none; }
  .nav-logo { gap: 10px; }
  .nav-logo img { width: 64px; height: 64px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92dvh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 62% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(2, 11, 51, 0.94) 0%, rgba(2, 11, 51, 0.8) 46%, rgba(2, 11, 51, 0.42) 100%),
    linear-gradient(to top, rgba(2, 11, 51, 0.72) 0%, rgba(2, 11, 51, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 148px;
  padding-bottom: 56px;
}
.hero-content > * { max-width: 22ch; }
.hero-content .eyebrow,
.hero-sub { max-width: 42ch; }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
}
.hero h1 .basico { font-size: 0.46em; }

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  max-width: none;
}

@media (max-width: 900px) {
  .hero { min-height: 86dvh; }
  .hero-content { padding-top: 132px; padding-bottom: 64px; }
  .hero-content > * { max-width: none; }
}

/* Entrada em cascata do hero: conduz o olho do kicker até o CTA */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-content > * {
    opacity: 0;
    animation: heroIn 0.85s var(--ease) forwards;
  }
  html.js .hero-content > *:nth-child(1) { animation-delay: 0.08s; }
  html.js .hero-content > *:nth-child(2) { animation-delay: 0.22s; }
  html.js .hero-content > *:nth-child(3) { animation-delay: 0.38s; }
  html.js .hero-content > *:nth-child(4) { animation-delay: 0.52s; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Parallax do hero via scroll-driven animation nativa (sem listener de
   scroll). Navegadores sem suporte simplesmente não animam. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-media img {
      transform-origin: center;
      animation: heroParallax linear both;
      animation-timeline: view();
      animation-range: contain 0% exit 100%;
    }
    @keyframes heroParallax {
      from { transform: scale(1.14) translateY(0); }
      to { transform: scale(1.14) translateY(6%); }
    }
  }
}

/* ---------- Ritmo das seções ---------- */
.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec--tint { background: var(--navy-2); }

/* ---------- Marquee da campanha ---------- */
.faixa {
  background: var(--blue);
  color: #fff;
  padding-block: 20px;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  animation: marquee 38s linear infinite;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline: 15px;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-lion { width: 46px; height: auto; flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Bento "o básico / é Anglo" ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  grid-auto-rows: minmax(0, auto);
  gap: 20px;
}
.bento-cell {
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 236px;
}
.bento-cell--outline {
  background: var(--navy-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.bento-cell--blue { background: var(--blue-deep); }
.bento-cell--royal { background: var(--blue); }
.bento-media {
  grid-column: 3;
  grid-row: 1 / span 2;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--navy-3);
  min-height: 300px;
}
.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}
.bento-media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 26px 24px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  background: linear-gradient(to top, rgba(2, 11, 51, 0.94), rgba(2, 11, 51, 0));
}
.bento-cell .basico-tag {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 10px;
}
/* 0.9 de opacidade é o mínimo que passa AA sobre o azul #0153FF */
.bento-cell--blue .basico-tag,
.bento-cell--royal .basico-tag { color: rgba(255, 255, 255, 0.9); }
.bento-cell h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.38rem);
  text-wrap: balance;
  margin-bottom: 12px;
}
.bento-cell--outline h3 .destaque { color: var(--highlight); }
.bento-cell p { font-size: 0.97rem; color: var(--muted); }
.bento-cell--blue p,
.bento-cell--royal p { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-media { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento-cell { padding: 28px 24px; min-height: 0; }
}

.sec-cta { margin-top: 52px; }

/* ---------- Níveis de ensino ----------
   Mesmo cartão do site institucional: leão sobre fundo claro e bloco de texto
   colorido com os cantos de cima arredondados. Aqui o bloco é sempre azul.
   A figura tem altura fixa, então as faixas azuis alinham entre os cartões. */
.niveis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  align-items: stretch;
}
.niveis li {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(2, 11, 51, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.niveis li:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(2, 11, 51, 0.28);
}
/* O leão passa por trás do bloco de texto: fica ancorado embaixo e desce
   além da caixa da figura, e o .nivel-body pinta por cima. */
.nivel-fig {
  position: relative;
  z-index: 0;
  flex: none;
  height: 206px;
  display: grid;
  place-items: end center;
  padding: 14px 18px 0;
}
.nivel-fig img {
  max-height: 218px;
  width: auto;
  margin-bottom: -32px;
}
.nivel-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 24px 26px;
}
.niveis h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.niveis p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.nivel-anos {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 980px) {
  .niveis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .niveis { grid-template-columns: 1fr; gap: 16px; }
  .nivel-fig { height: 180px; }
  .nivel-fig img { max-height: 202px; margin-bottom: -30px; }
}

/* ---------- Faixa de conquistas sobre o leão ---------- */
.conquistas {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.conquistas-media,
.conquistas-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.conquistas-media img { object-fit: cover; object-position: 76% center; }
.conquistas-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(2, 11, 51, 0.97) 8%, rgba(2, 11, 51, 0.72) 52%, rgba(2, 11, 51, 0.25) 100%);
}
.conquistas .container { position: relative; z-index: 2; }
.conquistas h2 { max-width: 680px; }
.conquistas-lista {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
}
.conquistas-lista li {
  padding: 4px 26px 4px 0;
  border-left: 1px solid var(--line-strong);
  padding-left: 26px;
}
.conquistas-lista li:first-child { border-left: 0; padding-left: 0; }
.conquistas-num {
  display: block;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--highlight);
  margin-bottom: 12px;
}
.conquistas-lista p { font-size: 0.98rem; color: var(--muted); max-width: 22ch; }

@media (max-width: 860px) {
  .conquistas-lista { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .conquistas-lista li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .conquistas-media img { object-position: 82% center; }
}
@media (max-width: 520px) {
  .conquistas-lista { grid-template-columns: 1fr; gap: 26px; }
  .conquistas-lista li { border-left: 0; padding-left: 0; }
}

/* ---------- Split texto + mídia ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
.split--media-first .split-media { order: -1; }
.split-media img { max-width: 100%; }
.split-text p { color: var(--muted); margin-top: 18px; max-width: 48ch; }

.metodo-lista {
  list-style: none;
  margin-top: 34px;
  display: grid;
  gap: 4px;
}
.metodo-lista li { padding: 22px 0; border-top: 1px solid var(--line); }
.metodo-lista li:last-child { border-bottom: 1px solid var(--line); }
.metodo-lista h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.metodo-lista p { margin-top: 0; font-size: 0.97rem; }

.plurall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
  margin-top: 34px;
  list-style: none;
}
.plurall-grid h3 { font-size: 0.98rem; line-height: 1.35; margin: 12px 0 8px; }
.plurall-grid p { font-size: 0.93rem; color: var(--muted); margin-top: 0; }

@media (max-width: 900px) {
  .split,
  .split--wide-text { grid-template-columns: 1fr; }
  .split--media-first .split-media { order: 0; }
  .plurall-grid { gap: 22px 24px; }
}
@media (max-width: 520px) {
  .plurall-grid { grid-template-columns: 1fr; }
}

/* ---------- Estrutura (faixa larga + galeria) ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
}
.galeria figure { border-radius: var(--radius); overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 820px) {
  .galeria { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .galeria { grid-template-columns: 1fr; }
}

/* ---------- Vídeo institucional ----------
   Largura limitada para o 16/9 não virar uma faixa enorme no desktop. */
.video-wrap {
  max-width: 940px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ---------- Marcador de foto pendente (verde neon) ----------
   Slots que dependem de fotos que a escola ainda precisa enviar.
   Removível: apaga o bloco .foto-pendente e coloca a <img> no lugar. */
.foto-pendente {
  position: relative;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  aspect-ratio: 4 / 3;
  padding: 22px;
  border-radius: var(--radius);
  min-height: 190px;
  border: 3px dashed var(--neon);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(57, 255, 20, 0.12) 0 12px,
      rgba(57, 255, 20, 0.04) 12px 24px
    ),
    var(--navy-3);
  color: var(--neon);
}
/* Em bloco claro o verde neon puro não é legível: a borda e a hachura
   continuam neon para o marcador saltar aos olhos, e só o texto escurece. */
.sec--light .foto-pendente {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(57, 255, 20, 0.3) 0 12px,
      rgba(57, 255, 20, 0.1) 12px 24px
    ),
    #f2f6f0;
  color: #1c5f0d;
}
.sec--light .foto-pendente .icon { fill: #1c5f0d; }
.sec--light .foto-pendente span { color: #1c5f0d; }
.foto-pendente .icon { fill: var(--neon); margin-inline: auto; }
.foto-pendente b {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foto-pendente span {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--neon);
  max-width: 24ch;
  margin-inline: auto;
}
.foto-pendente--wide { aspect-ratio: 21 / 6; }
.foto-pendente--video { aspect-ratio: 16 / 9; min-height: 260px; }
.foto-pendente--video .icon { width: 56px; height: 56px; }
@media (max-width: 720px) {
  .foto-pendente--video { aspect-ratio: 4 / 3; }
  .foto-pendente--video .icon { width: 42px; height: 42px; }
}
@media (max-width: 720px) {
  .foto-pendente--wide { aspect-ratio: 4 / 3; }
}

/* ---------- Formulário de matrícula ---------- */
.matricula { background: var(--navy-3); }
.matricula-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.matricula-copy > p { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.matricula-trust {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.matricula-trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.98rem;
}
.matricula-trust .icon-sm { color: var(--highlight); margin-top: 4px; }

/* Alunos do Anglo Fernandópolis: apoio visual da coluna de texto.
   Some abaixo de 900px para não empurrar o formulário no mobile. */
.matricula-foto { display: block; margin-top: 36px; max-width: 400px; }
@media (max-width: 900px) { .matricula-foto { display: none; } }

.form-card {
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}
@media (max-width: 640px) { .form-card { padding: 26px 22px; } }
@media (max-width: 900px) { .matricula-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 7px;
}
.req { color: var(--blue); }
.opt { color: #5b6070; font-weight: 400; font-size: 0.85rem; }

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid rgba(2, 11, 51, 0.22);
  border-radius: var(--radius-field);
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: #5b6070; }
.field input:hover,
.field select:hover { border-color: rgba(2, 11, 51, 0.45); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1, 83, 255, 0.22);
}
.field.invalid input,
.field.invalid select { border-color: #b3261e; }
.field-error { color: var(--danger-ink); font-size: 0.85rem; margin-top: 6px; }
.field-hint { color: #5b6070; font-size: 0.84rem; margin-top: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 44px; }
.select-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  pointer-events: none;
}

#submit-btn { margin-top: 8px; }
#submit-btn[disabled] { opacity: 0.75; cursor: wait; }

.lgpd { margin-top: 14px; font-size: 0.82rem; color: #5b6070; text-align: center; }

.form-fail {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  background: #fdeceb;
  color: var(--danger-ink);
  font-size: 0.92rem;
}
.form-fail a { color: inherit; font-weight: 800; }

.form-success { text-align: center; padding: 26px 8px; }
.form-success .icon-lg { margin-inline: auto; }
.form-success h3 { font-size: 1.25rem; margin: 20px 0 12px; }
.form-success p { color: #4a4f5e; max-width: 40ch; margin-inline: auto; }
.form-success .btn { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-inner .section-head,
.faq-inner .faq-list { max-width: 860px; margin-inline: auto; }
.faq-inner .section-head { text-align: center; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 24px 4px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon-sm { color: var(--highlight); transition: transform 0.25s var(--ease); }
.faq-list details[open] summary .icon-sm { transform: rotate(180deg); }
.faq-list details > p { padding: 0 4px 26px; color: var(--muted); max-width: 66ch; }
.faq-list details > p a { color: var(--highlight); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-2); padding-block: 64px 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { width: 74px; height: 74px; }
.footer-brand p { margin-top: 18px; font-size: 0.95rem; color: var(--muted); max-width: 34ch; }
.footer h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-list { list-style: none; display: grid; gap: 12px; }
.footer-list a,
.footer-list p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
}
.footer-list a:hover { color: #fff; }
.footer-list .icon-sm { margin-top: 3px; flex-shrink: 0; }
.footer-selos { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.footer-selos img { width: 56px; height: 56px; }
.footer-legal { padding-top: 22px; }
@media (max-width: 640px) { .footer-legal { padding-bottom: 96px; } }
.footer-legal p { font-size: 0.85rem; color: var(--faint); }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.whats-float:hover { transform: scale(1.05); background: var(--blue-hover); }
.whats-float:active { transform: scale(0.97); }
.whats-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 10s linear infinite;
}
.whats-ring text {
  font-family: var(--font);
  font-size: 9.4px;
  font-weight: 800;
  fill: #fff;
}
.whats-icon { position: relative; width: 34px; height: 34px; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .whats-ring { animation: none; } }
@media (max-width: 640px) {
  .whats-float { width: 88px; height: 88px; right: 14px; bottom: 14px; }
  .whats-icon { width: 30px; height: 30px; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }
  html.js [data-reveal].revealed { opacity: 1; transform: none; }
}
