/* Rafaela Alcoba · Psicóloga · CRP 04/60464 — site
   Marca: manual 1.0. Papel, nanquim e batom; Bodoni Moda diz, Jost informa, a itálica é a letra dela.
   O desenho da página é a margem do caderno: uma linha batom a um quinto da largura,
   com o sinal de pontuação de cada parte pendurado nela. */

@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-italico.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --papel: #F8F5EE;
  --nevoa: #E4DFD3;
  --grafite: #4B5063;
  --nanquim: #10152B;
  --batom: #CE1730;

  --serifa: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sem-serifa: "Jost", Arial, Helvetica, sans-serif;

  --largura: 1200px;
  --margem: 44px;            /* coluna da margem no celular */
  --respiro: 22px;           /* do conteúdo até a borda */
  --texto: 38rem;            /* linha de leitura */
  --secao: clamp(4rem, 8vw, 6.5rem);
}
@media (min-width: 760px) {
  :root { --margem: 20%; --respiro: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--nanquim);
  font-family: var(--sem-serifa);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--batom); }
:focus-visible { outline: 2px solid var(--batom); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }

.pular { position: absolute; left: -999px; top: 0; background: var(--nanquim); color: var(--papel); padding: 0.6rem 1rem; z-index: 50; }
.pular:focus { left: 1rem; top: 1rem; }

/* ---------- Letras ---------- */
h1, h2, h3 { font-family: var(--serifa); font-weight: 500; color: var(--nanquim); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.012em; font-variation-settings: "opsz" 36; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.008em; font-variation-settings: "opsz" 28; margin-bottom: 1.4rem; }
h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 600; font-variation-settings: "opsz" 18; margin-bottom: 0.6rem; }
.dela { font-family: var(--serifa); font-style: italic; font-variation-settings: "opsz" 20; }
.apoio { color: var(--grafite); }
.pequeno { font-size: 0.9375rem; }

/* ---------- A página e a margem ---------- */
.pagina { position: relative; max-width: var(--largura); margin: 0 auto; }
.pagina::before {
  /* a margem do caderno: corre do topo ao rodapé */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--margem);
  width: 1.5px; background: var(--batom); transform-origin: top; z-index: 1; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .pagina::before { animation: tracar 1.1s cubic-bezier(.6, 0, .2, 1) both; }
  .abertura .sinal { animation: surgir .6s .55s ease-out both; }
}
@keyframes tracar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes surgir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.secao {
  display: grid;
  grid-template-columns: var(--margem) minmax(0, 1fr);
  padding-block: var(--secao);
}
.secao > .corpo { grid-column: 2; padding-inline: var(--respiro); min-width: 0; }
.sinal {
  grid-column: 1; grid-row: 1;
  justify-self: end; align-self: start;
  padding-right: 10px;
  font-family: var(--serifa); font-weight: 900; font-variation-settings: "opsz" 6;
  color: var(--batom); line-height: 1; font-size: 2rem; margin-top: -0.1em;
  user-select: none;
}
@media (min-width: 760px) { .sinal { font-size: 4.5rem; padding-right: 22px; margin-top: -0.18em; } }

/* faixa escura: o fundo vai de borda a borda, a margem continua */
.escuro { position: relative; color: var(--papel); }
.escuro::after { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--nanquim); z-index: -1; }
.escuro h2, .escuro h3 { color: var(--papel); }
.escuro .apoio { color: var(--nevoa); }
.escuro a { color: var(--papel); }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--papel) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--nevoa); }
.topo__barra { max-width: var(--largura); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem var(--respiro); min-height: 4.25rem; }
.topo__marca img { width: 168px; }
.menu { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.menu a { text-decoration: none; font-size: 1rem; }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--batom); }
.topo .topo__whats { display: none; }
.menu-botao { display: inline-flex; align-items: center; gap: .5rem; font: 500 1rem var(--sem-serifa); color: var(--nanquim); background: none; border: 1px solid var(--nanquim); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
@media (min-width: 1000px) {
  .topo__barra { padding-inline: 2.5rem; }
  .menu { display: block; }
  .topo .topo__whats { display: inline-flex; }
  .menu-botao { display: none; }
}

/* gaveta do celular */
.gaveta { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--papel); color: var(--nanquim); }
.gaveta::backdrop { background: rgba(16, 21, 43, .4); }
.gaveta__topo { display: flex; justify-content: space-between; align-items: center; padding: .7rem var(--respiro); min-height: 4.25rem; border-bottom: 1px solid var(--nevoa); }
.gaveta__lista { list-style: none; margin: 0; padding: 2rem var(--respiro); display: grid; gap: 1.1rem; }
.gaveta__lista a { font-family: var(--serifa); font-size: 2rem; text-decoration: none; font-variation-settings: "opsz" 28; }
.gaveta__rodape { padding: 0 var(--respiro) 2rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--batom); color: var(--papel); text-decoration: none;
  font: 600 1.0625rem/1.2 var(--sem-serifa); letter-spacing: .01em;
  padding: 1rem 1.6rem; border-radius: 999px; border: 0; min-height: 3.25rem;
}
.botao:hover { background: #B3122A; color: var(--papel); }
.botao--pequeno { padding: .55rem 1.1rem; min-height: 0; font-size: .9375rem; }
.botao svg { width: 1.15em; height: 1.15em; flex: none; }
.escuro .botao { color: var(--papel); }

/* ---------- Abertura ---------- */
.abertura { padding-top: clamp(3rem, 7vw, 6rem); }
.abertura .corpo { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .abertura .corpo { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 3.5rem; } }
.abertura__rotulo { font-weight: 500; color: var(--grafite); margin-bottom: 1.4rem; }
.abertura h1 { margin-bottom: 1.6rem; }
.abertura__linha { font-size: 1.25rem; line-height: 1.5; max-width: 30em; margin-bottom: 2.2rem; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.acoes__nota { flex-basis: 100%; margin: 0; font-size: .9375rem; color: var(--grafite); }
.retrato { margin: 0; position: relative; max-width: 26rem; }
.retrato img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--nevoa); }

/* ---------- Para quem é ---------- */
.intro { max-width: var(--texto); font-size: 1.25rem; line-height: 1.55; margin-bottom: 3rem; }
.temas { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.75rem 3.5rem; }
@media (min-width: 760px) { .temas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tema a { text-decoration: none; display: block; }
.tema h3 { font-size: 1.75rem; font-weight: 500; font-variation-settings: "opsz" 24; margin-bottom: .55rem; text-decoration: underline; text-decoration-color: var(--nevoa); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-decoration-color .2s; }
.tema a:hover h3, .tema a:focus-visible h3 { text-decoration-color: var(--batom); }
.tema p { color: var(--grafite); margin: 0; max-width: 28em; }
.temas__mais { margin: 3rem 0 0; }

/* ---------- Como funciona ---------- */
.passos { list-style: none; margin: 0 0 4rem; padding: 0; counter-reset: passo; max-width: var(--texto); }
.passos li { position: relative; counter-increment: passo; padding-bottom: 2.25rem; }
.passos li::before {
  /* o número mora na margem */
  content: counter(passo);
  position: absolute; top: -.12em;
  right: calc(100% + var(--respiro) + 10px);
  font-family: var(--serifa); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 24;
  font-size: 1.75rem; line-height: 1; color: var(--nanquim);
}
@media (min-width: 760px) { .passos li::before { right: calc(100% + var(--respiro) + 22px); font-size: 2.6rem; } }
.passos h3 { margin-bottom: .35rem; }
.passos p { margin: 0; color: var(--grafite); }

.onde { display: grid; gap: 1.75rem 3rem; margin: 0 0 4rem; max-width: 52rem; }
@media (min-width: 760px) { .onde { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.onde dt { font-family: var(--serifa); font-weight: 600; font-size: 1.25rem; font-variation-settings: "opsz" 18; margin-bottom: .3rem; }
.onde dd { margin: 0; color: var(--grafite); }

.sigilo { max-width: var(--texto); border-top: 1px solid var(--nevoa); padding-top: 2.5rem; }

/* ---------- Sobre ---------- */
.manifesto { max-width: 34rem; font-family: var(--serifa); font-style: italic; font-variation-settings: "opsz" 22; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.5; margin-bottom: 3.5rem; }
.manifesto p { margin-bottom: 1.1em; }
.formacao { display: grid; gap: 2.5rem 3.5rem; max-width: 56rem; }
@media (min-width: 900px) { .formacao { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }
.formacao ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.formacao li { padding-left: 1.1rem; position: relative; }
.formacao li::before { content: ""; position: absolute; left: 0; top: .78em; width: .45rem; height: 1px; background: var(--nevoa); }
.aparte { font-family: var(--serifa); font-style: italic; font-variation-settings: "opsz" 18; font-size: 1.1875rem; line-height: 1.55; color: var(--nevoa); margin: 0; }
.crp { margin-top: 3rem; font-weight: 500; letter-spacing: .01em; }

/* ---------- Perguntas ---------- */
.perguntas { max-width: 44rem; border-top: 1px solid var(--nevoa); }
.perguntas details { border-bottom: 1px solid var(--nevoa); }
.perguntas summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--serifa); font-size: 1.375rem; font-weight: 500; font-variation-settings: "opsz" 20; line-height: 1.3; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-family: var(--sem-serifa); font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas details p { margin: 0 0 1.5rem; color: var(--grafite); max-width: 36em; }

/* ---------- Contato ---------- */
.contato h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-variation-settings: "opsz" 32; }
.contato .intro { margin-bottom: 2rem; }
.dados { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.risco { margin: 2.5rem 0 0; max-width: 40rem; font-size: .9375rem; color: var(--grafite); }

/* ---------- Rodapé ---------- */
.rodape { padding-block: 4rem 6rem; }
.rodape .corpo { display: grid; gap: 1.6rem; }
.rodape img { width: 280px; }
.rodape p { margin: 0; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.rodape .pequeno { color: var(--nevoa); }

/* ---------- Barra do WhatsApp no celular ---------- */
.barra-whats { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: .6rem var(--respiro) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--papel) 96%, transparent); border-top: 1px solid var(--nevoa); transform: translateY(110%); transition: transform .25s ease-out; }
.barra-whats .botao { width: 100%; }
.barra-whats.visivel { transform: none; }
@media (min-width: 1000px) { .barra-whats { display: none; } }
@media (prefers-reduced-motion: reduce) { .barra-whats { transition: none; } }

/* ---------- Páginas simples (privacidade, 404) ---------- */
.simples h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 2rem; }
.simples .texto { max-width: var(--texto); }
.simples h2 { font-size: 1.6rem; margin: 2.5rem 0 .8rem; font-variation-settings: "opsz" 20; }
