/* Home: a vitrine do Preparatório. Um resumo de quem somos e um box por curso, lado a lado, para
   a pessoa ver tudo sem rolar. Os tokens são os da marca Roberto Quintino (css/modular.css):
   azul-noite, dourado, Archivo pesada e rótulos em Geist Mono. O box do Questão de Ordem usa os
   da marca dele (css/oab.css): marinho, dourado fosco. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../_next/static/media/75affa71d1e2f6a7-s.p.17-aodiw50953.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  ascent-override: 88.96%;
  descent-override: 21.28%;
  line-gap-override: 0%;
  size-adjust: 98.7%;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../_next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Arial");
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0%;
  size-adjust: 134.59%;
}

:root {
  --font-sans: "Archivo", "Archivo Fallback", Arial, Helvetica, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", "Courier New", monospace;
  --background: #06101d;
  --card: #0f1b2a;
  --card-soft: #0a1725;
  --muted: #aab4c1;
  --foreground: #f2f5f8;
  --accent: #edae3b;
  --accent-strong: #f5b83f;
  --accent-foreground: #10100c;
  --border: rgba(243, 245, 248, 0.12);
  --border-strong: rgba(237, 174, 59, 0.42);

  /* Questão de Ordem */
  --ordem-navy: #041828;
  --ordem-navy-2: #0c2b40;
  --ordem-gold: #a69273;
  --ordem-gold-light: #c6b89e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 38% at 50% 0%, rgba(237, 174, 59, 0.1), transparent 70%),
    var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* O fundo de baixo deixa espaço para o botão flutuante do WhatsApp não cobrir o rodapé. */
.vt-pagina {
  position: relative;
  isolation: isolate;
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) 0 7rem;
}

/* A mesma grade de 42px do topo da /modular, esmaecendo a partir da logo. */
.vt-grade {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw) auto;
  height: 620px;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.vt-eyebrow,
.vt-rotulo,
.vt-categoria,
.vt-cta,
.vt-selo,
.vt-legenda {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Primeira tela: resumo, cursos e os motivos. No celular, um embaixo do outro, com os cursos logo
   depois do resumo; no computador, o resumo e os motivos à esquerda e os cursos à direita. */

.vt-resumo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* A logo grande é o reforço de marca que o cliente pediu. */
.vt-logo {
  display: block;
  width: clamp(200px, 60vw, 240px);
  height: auto;
}

.vt-fio {
  display: block;
  width: 56px;
  height: 2px;
  margin: 1.25rem 0 1rem;
  background: var(--accent);
}

.vt-eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
}

.vt-titulo {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 8.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.vt-titulo span {
  color: var(--accent);
}

.vt-lead {
  max-width: 46ch;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.vt-lead strong {
  color: var(--foreground);
}

/* Cursos */

.vt-cursos {
  margin-top: 1.75rem;
}

.vt-rotulo {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.66rem;
}

.vt-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0.75rem;
}

/* O box inteiro é o link: o alvo de toque é o bloco todo, não só a seta. */
.vt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-soft) 100%);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vt-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.vt-foto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-soft);
}

.vt-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.vt-card:hover .vt-foto img {
  transform: scale(1.04);
}

.vt-selo {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.3rem 0.45rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.56rem;
}

.vt-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.75rem 0.85rem;
}

.vt-categoria {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.vt-nome {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vt-nome span {
  color: var(--accent);
}

/* No celular o box fica só com nome e chamada; a frase aparece a partir do tablet. */
.vt-texto {
  display: none;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.vt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.vt-seta {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.vt-card:hover .vt-seta {
  transform: translateX(4px);
}

/* Questão de Ordem: a logo e as cores da marca dele, como nas páginas /oab. */
.vt-card-oab {
  border-color: rgba(198, 184, 158, 0.18);
  border-top-color: var(--ordem-gold);
  background: linear-gradient(180deg, var(--ordem-navy-2) 0%, var(--ordem-navy) 100%);
}

.vt-card-oab:hover {
  border-color: rgba(198, 184, 158, 0.42);
}

.vt-card-oab .vt-foto {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(198, 184, 158, 0.14), transparent 70%), var(--ordem-navy);
}

.vt-card-oab .vt-foto img {
  width: 76%;
  height: auto;
  object-fit: contain;
}

.vt-card-oab:hover .vt-foto img {
  transform: none;
}

.vt-card-oab .vt-categoria,
.vt-card-oab .vt-cta {
  color: var(--ordem-gold-light);
}

.vt-card-oab .vt-texto {
  color: rgba(247, 245, 240, 0.78);
}

.vt-card-oab:focus-visible {
  outline-color: var(--ordem-gold-light);
}

/* Por que escolher o RQ */

.vt-porque {
  margin-top: 2.5rem;
}

.vt-porque h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.vt-motivos {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.vt-motivos li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.vt-motivos li::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310100c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.vt-motivos strong {
  color: var(--foreground);
}

/* Fotos da sala: a turma de verdade, para quem chega conhecer o lugar. */

.vt-sala {
  margin-top: clamp(3rem, 9vw, 5rem);
  padding-top: clamp(2rem, 6vw, 3rem);
  border-top: 1px solid var(--border);
}

.vt-sala h2 {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(1.6rem, 6.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.vt-sala h2 span {
  color: var(--accent);
}

.vt-fotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.75rem;
}

.vt-fotos figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card-soft);
}

/* A terceira foto ocupa a largura toda no celular, recortada no rosto dos professores. */
.vt-fotos figure:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.vt-fotos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vt-fotos figure:last-child img {
  object-position: 50% 22%;
}

.vt-legenda {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

/* WhatsApp e rodapé */

.vt-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 460px);
  min-height: 54px;
  margin: 2rem auto 0;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

.vt-whatsapp svg {
  width: 20px;
  height: 20px;
  color: #25d366;
}

.vt-whatsapp:hover {
  border-color: #25d366;
}

.vt-rodape {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

.vt-rodape strong {
  color: var(--foreground);
}

/* Tablet: os boxes ganham a frase de cada curso. */
@media (min-width: 640px) {
  .vt-lista {
    gap: 14px;
  }

  .vt-corpo {
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.1rem;
  }

  .vt-categoria {
    font-size: 0.6rem;
  }

  .vt-nome {
    font-size: 1.3rem;
  }

  .vt-texto {
    display: block;
  }

  .vt-cta {
    font-size: 0.66rem;
  }

  .vt-motivos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.75rem;
  }

  .vt-fotos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .vt-fotos figure:last-child {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }

  .vt-fotos figure:last-child img {
    object-position: 50% 50%;
  }
}

/* Computador: resumo e motivos à esquerda, os quatro boxes à direita, tudo na primeira tela. */
@media (min-width: 1024px) {
  .vt-topo {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
      "resumo cursos"
      "porque cursos";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }

  .vt-resumo {
    grid-area: resumo;
    align-items: flex-start;
    text-align: left;
  }

  .vt-logo {
    width: 300px;
  }

  .vt-fio {
    margin: 1.5rem 0 1.1rem;
  }

  .vt-titulo {
    font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  }

  .vt-lead {
    font-size: 1.02rem;
  }

  .vt-cursos {
    grid-area: cursos;
    margin-top: 0.5rem;
  }

  .vt-foto {
    aspect-ratio: 2 / 1;
  }

  .vt-porque {
    grid-area: porque;
    margin-top: 1.75rem;
  }

  .vt-porque h2 {
    font-size: 1.15rem;
    text-align: left;
  }

  .vt-motivos {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.85rem;
  }

  .vt-motivos li {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vt-card,
  .vt-foto img,
  .vt-seta,
  .vt-whatsapp {
    transition: none;
  }

  .vt-card:hover,
  .vt-card:hover .vt-foto img,
  .vt-card:hover .vt-seta {
    transform: none;
  }
}
