/* =============================================================
   Amanda Antunes | Psicóloga e psicanalista
   1. Tokens  2. Base  3. Utilitários  4. Componentes
   5. Preloader  6. Header e menu  7. Seções  8. Rodapé
   9. Movimento
   ============================================================= */

/* ---------------------------------------------------------- 1. Tokens */
:root {
  /* Paleta oficial do manual */
  --c-offwhite: #FAF7F2;
  --c-areia: #ECE3D7;
  --c-rose: #E8D5CC;
  --c-bege: #BFA083;
  --c-taupe: #8C7A6B;
  --c-grafite: #4A403A;

  /* Derivados para acessibilidade */
  --c-taupe-texto: #6E5F53;
  --c-bronze: #8A6A4E;
  --c-cafe: #2F2824;

  --c-linha: rgba(74, 64, 58, 0.14);
  --c-linha-escura: rgba(236, 227, 215, 0.16);
  --sombra-suave: 0 1px 2px rgba(74, 64, 58, 0.05), 0 16px 40px -18px rgba(74, 64, 58, 0.22);

  --f-titulo: "Tenor Sans", "Jost", sans-serif;
  --f-texto: "Jost", system-ui, sans-serif;
  --f-serifa: "Young Serif", Georgia, serif;

  --t-h1: clamp(2.5rem, 1.3rem + 4.8vw, 5.5rem);
  --t-h2: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  --t-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --t-citacao: clamp(1.6rem, 1.15rem + 1.8vw, 2.75rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-corpo: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-pill: 999px;
  --r-sm: 6px;
  --r-arco: 999px 999px 0 0;

  --pad: clamp(20px, 5vw, 56px);
  --secao: clamp(88px, 11vw, 160px);
  --topo: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.25 0 0 0 0 0.23 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 1024px) { :root { --topo: 80px; } }

/* ---------------------------------------------------------- 2. Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--topo);
  background: var(--c-offwhite);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--f-texto);
  font-weight: 400;
  font-size: var(--t-corpo);
  line-height: 1.7;
  color: var(--c-grafite);
  background: var(--c-offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--c-bronze); outline-offset: 3px; }
.rodape :focus-visible { outline-color: var(--c-bege); }

::selection { background: var(--c-rose); color: var(--c-grafite); }

/* ---------------------------------------------------------- 3. Utilitários */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: calc(1240px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.secao { padding-block: var(--secao); position: relative; }

/* Grão de papel */
.grao { position: relative; isolation: isolate; }
.grao::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: var(--grao); opacity: 0.04; mix-blend-mode: multiply;
  pointer-events: none;
}
.grao > * { position: relative; z-index: 2; }

.h2 {
  font-family: var(--f-titulo);
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--f-texto);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.3;
}
.lead {
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.65;
  max-width: 44ch;
  color: var(--c-grafite);
}
.texto-2 { color: var(--c-taupe-texto); max-width: 64ch; }
.legenda {
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-taupe-texto);
}
.pendente { white-space: nowrap; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------- 4. Componentes */
.pular {
  position: fixed; left: 16px; top: 12px; z-index: 300;
  background: var(--c-grafite); color: var(--c-offwhite);
  padding: 12px 20px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 500;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}
.pular:focus { transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--f-texto); font-weight: 500; font-size: 0.9375rem;
  letter-spacing: 0.02em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn--primario { background: var(--c-bege); color: var(--c-cafe); }
.btn--primario:hover { background: var(--c-grafite); color: var(--c-offwhite); }
.btn--secundario { border-color: var(--c-grafite); color: var(--c-grafite); background: transparent; }
.btn--secundario:hover { background: var(--c-grafite); color: var(--c-offwhite); }
.btn--escuro { background: var(--c-grafite); color: var(--c-offwhite); }
.btn--escuro:hover { background: var(--c-bege); color: var(--c-cafe); }
.btn--compacto { min-height: 44px; padding: 0 22px; }
.btn--largo { width: 100%; }

/* Link de texto: traço fino de base e sublinhado que cresce da esquerda */
.link {
  color: var(--c-grafite);
  text-decoration: none;
  padding-bottom: 3px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--c-bege), var(--c-bege));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 350ms var(--ease);
}
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }
.link--bronze { color: var(--c-bronze); }

/* Fotos e placeholder */
.foto {
  position: relative; overflow: hidden; margin: 0;
  background: var(--c-areia);
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto__placeholder { display: none; }
.foto--vazia img { visibility: hidden; }
.foto--vazia .foto__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; padding: 32px;
  font-size: 0.8125rem; line-height: 1.5; color: var(--c-taupe-texto);
}
.foto--vazia .foto__placeholder::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px dashed rgba(140, 122, 107, 0.5);
  border-radius: inherit;
}
.foto__placeholder .ico--camera { width: 32px; height: 32px; color: var(--c-taupe); margin-bottom: 10px; }
.foto__placeholder-titulo { font-weight: 500; color: var(--c-grafite); }

/* ---------------------------------------------------------- 5. Preloader */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-offwhite) var(--grao);
  background-blend-mode: normal;
  clip-path: inset(0 0 0 0 round 0);
  animation: preloader-some 0s 4s forwards; /* rede de segurança se o JS falhar */
}
html.js .preloader::before {
  content: ""; position: absolute; inset: 0; background: var(--c-offwhite); opacity: 0.96;
}
@keyframes preloader-some { to { visibility: hidden; opacity: 0; pointer-events: none; } }

.preloader__cena { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.preloader__arco {
  position: relative;
  width: min(64vw, 340px);
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.preloader__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.preloader__svg path {
  fill: none; stroke: var(--c-bege); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.preloader__logo { position: relative; width: clamp(180px, 52vw, 210px); height: auto; margin-top: 12%; }
.preloader__progresso { width: 120px; height: 1px; background: var(--c-linha); overflow: hidden; }
.preloader__progresso span { display: block; height: 100%; background: var(--c-bege); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .preloader__lado { animation: desenha 1100ms var(--ease-io) both; }
  .preloader__lado, .preloader__travessia { stroke-dashoffset: 1; }
  .preloader__travessia { animation: desenha 1000ms 1300ms var(--ease-io) forwards; }
  .preloader__logo { animation: logo-sobe 1000ms 500ms var(--ease) both; }
  .preloader__progresso span { animation: progresso 3000ms linear both; }
  html.js .preloader.preloader--saindo {
    clip-path: inset(0 0 100% 0 round 0 0 50% 50%);
    transition: clip-path 800ms var(--ease-io);
  }
  .preloader--saindo .preloader__cena { opacity: 0; transition: opacity 600ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__cena { animation: aparece 300ms ease both; }
  html.js .preloader.preloader--saindo { opacity: 0; transition: opacity 400ms ease; }
}
@keyframes desenha { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes logo-sobe {
  from { clip-path: inset(100% 0 0 0); opacity: 0; transform: translateY(10px); }
  to { clip-path: inset(0); opacity: 1; transform: none; }
}
@keyframes progresso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------- 6. Header e menu */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--topo);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease, backdrop-filter 250ms ease;
}
.topo.is-scrolled, body.menu-aberto .topo {
  background: rgba(250, 247, 242, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--c-linha);
}
body.menu-aberto .topo { background: var(--c-offwhite); }
.topo__barra { height: 100%; display: flex; align-items: center; gap: 32px; }
.topo__logo { display: block; flex: none; margin-right: auto; }
.topo__logo img { height: 36px; width: auto; }
.nav { display: none; }
.topo__cta { display: none; }
.topo__menu-botao {
  width: 44px; height: 44px; margin-right: -10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
}
.topo__menu-botao span { width: 24px; height: 1px; background: var(--c-grafite); transition: transform 300ms var(--ease); }
.topo__menu-botao[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.topo__menu-botao[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) {
  .topo__logo img { height: 42px; }
  .nav { display: block; }
  .nav ul { display: flex; gap: 32px; }
  .nav a {
    position: relative; display: inline-block; padding-block: 10px;
    font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.02em; line-height: 1;
    text-decoration: none; color: var(--c-grafite);
  }
  .nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 12px; height: 1px;
    background: var(--c-bege); transform: translateX(-50%) scaleX(0);
    transition: transform 250ms var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: translateX(-50%) scaleX(1); }
  .topo__cta { display: inline-flex; }
  .topo__menu-botao { display: none; }
  .nav a, .topo__cta { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .topo__barra { gap: 24px; }
  .topo__logo img { height: 36px; }
  .nav ul { gap: 20px; }
  .nav a { font-size: 0.875rem; }
  .topo__cta { padding: 0 18px; }
}

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--c-offwhite);
  padding-top: calc(var(--topo) + 40px);
  overflow-y: auto;
}
.menu__arco {
  position: absolute; right: -28vw; bottom: -12vh; width: 92vw; height: auto; z-index: 1;
  fill: none; stroke: var(--c-bege); stroke-width: 1; opacity: 0.4; pointer-events: none;
}
.menu__nav { display: flex; flex-direction: column; gap: 40px; padding-bottom: 48px; }
.menu__nav ul { display: flex; flex-direction: column; gap: 6px; }
.menu__nav ul a {
  display: inline-block; padding-block: 6px;
  font-family: var(--f-titulo); font-size: 2.25rem; line-height: 1.15;
  text-decoration: none; color: var(--c-grafite);
}
.menu__insta { align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .menu.is-aberto .menu__nav > *, .menu.is-aberto .menu__nav li {
    animation: menu-entra 450ms var(--ease) both;
  }
  .menu.is-aberto li:nth-child(2) { animation-delay: 40ms; }
  .menu.is-aberto li:nth-child(3) { animation-delay: 80ms; }
  .menu.is-aberto li:nth-child(4) { animation-delay: 120ms; }
  .menu.is-aberto li:nth-child(5) { animation-delay: 160ms; }
  .menu.is-aberto .menu__nav > a:nth-of-type(1) { animation-delay: 220ms; }
  .menu.is-aberto .menu__nav > a:nth-of-type(2) { animation-delay: 260ms; }
}
@keyframes menu-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* ---------------------------------------------------------- 7. Seções */

/* ---- 7.1 Hero */
.hero {
  overflow: hidden;
  padding-top: calc(var(--topo) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(56px, 6vw, 96px);
  background:
    radial-gradient(50% 50% at 85% 15%, rgba(232, 213, 204, 0.55), transparent 70%),
    var(--c-offwhite);
}
/* O grid do Hero não cria contexto de empilhamento: arco, moldura, linha, foto e texto se intercalam */
.hero.grao > .hero__grid { z-index: auto; }
.hero.grao::after { z-index: 1; }
.hero__grid { display: grid; gap: 48px; position: relative; }
.hero__texto { position: relative; z-index: 6; }
.hero__titulo {
  font-family: var(--f-titulo);
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__titulo .linha {
  display: block; padding-bottom: 0.08em; margin-bottom: -0.08em;
  overflow: hidden;
  overflow-x: visible; overflow-y: clip; /* a máscara da animação corta só na vertical, nunca as letras */
}
.hero__titulo .linha > span { display: inline-block; }
@media (min-width: 900px) {
  /* No desktop o título fica sempre em quatro linhas */
  .hero__titulo { font-size: min(3.6vw, 3.6rem); }
  .hero__titulo .linha > span { white-space: nowrap; }
}
.hero__lead { margin-top: 28px; }
.hero__acoes { margin-top: 36px; display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
.hero__acoes .link { align-self: flex-start; }
.hero__apoio {
  margin-top: 28px; display: flex; width: fit-content; align-items: flex-start; gap: 10px;
  font-size: 0.9375rem; line-height: 1.5; color: var(--c-taupe-texto);
}
.hero__apoio .ico { width: 16px; height: 16px; margin-top: 3px; }

.hero__midia { position: relative; width: min(74vw, 420px); justify-self: center; margin-top: 8px; margin-bottom: 24px; }
.hero__arco-areia {
  position: absolute; z-index: 0;
  left: -18%; width: 150%; top: -9%; height: 300%;
  background: var(--c-areia);
  border-radius: var(--r-arco);
}
.hero__moldura {
  position: absolute; z-index: 2;
  left: -14px; top: -14px; width: 100%; height: 100%;
  overflow: visible; fill: none; stroke: var(--c-bege); stroke-width: 1;
}
.hero__moldura path, .sobre__moldura path, .etapas__arco path, .elaborar__traco path {
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
/* Sem JS os arcos ficam esticados pelo viewBox; com JS eles são redesenhados em pixels reais */
html:not(.js) [data-arco] path { vector-effect: non-scaling-stroke; }
.nb { white-space: nowrap; }
.foto--hero {
  position: relative; z-index: 4;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-arco);
  box-shadow: var(--sombra-suave);
}
.foto--hero img { object-position: 50% 24%; }
.hero__etiqueta {
  position: absolute; z-index: 5;
  left: 0; right: 0; bottom: -24px; margin-inline: auto; width: max-content; max-width: 92%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px;
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--c-linha);
}
.hero__etiqueta-nome { font-family: var(--f-titulo); font-size: 1.125rem; line-height: 1.3; }
.hero__etiqueta-crp { font-size: 0.8125rem; color: var(--c-taupe-texto); line-height: 1.4; }

/* Linha da travessia */
.travessia {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.travessia__linha { fill: none; stroke: var(--c-bege); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.travessia__ponto { fill: var(--c-bege); transform-box: fill-box; transform-origin: center; }
.hero:not(.tem-travessia) .travessia,
.hero:not(.tem-travessia) 
.hero__vertical { display: none; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px; align-items: center;
    min-height: calc(min(100svh, 960px) - var(--topo) - clamp(32px, 5vw, 72px) - clamp(56px, 6vw, 96px));
  }
  .hero__texto { grid-column: 1 / 8; grid-row: 1; }
  .hero__midia {
    grid-column: 8 / 13; grid-row: 1; justify-self: end;
    width: clamp(300px, 38vw, 400px); margin: 48px 0 40px;
  }
  .hero__acoes { flex-direction: row; align-items: center; gap: 32px; }
  .hero__acoes .link { align-self: center; }
  .hero__etiqueta { left: 16px; right: auto; bottom: -24px; margin: 0; }
  .hero__arco-areia { left: -12%; width: 165%; top: -11%; }
}
@media (min-width: 1024px) {
  .hero__midia { width: clamp(380px, 34vw, 520px); }
  .hero__texto { grid-column: 1 / 8; }
  .hero__etiqueta { left: -36px; }
  .hero__vertical {
    display: block; position: absolute; z-index: 6; right: clamp(14px, 1.6vw, 28px); top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: 0.6875rem; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--c-taupe-texto);
  }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .hero__lead { max-width: 40ch; }
}

/* ---- 7.2 Recordar, repetir, elaborar */
.elaborar { background: var(--c-areia); text-align: center; }
.elaborar__trilho { position: relative; }
.elaborar__fixo {
  padding-block: clamp(96px, 12vw, 176px);
  display: flex; flex-direction: column; align-items: center;
  padding-inline: var(--pad);
}
.elaborar__palavras {
  font-family: var(--f-serifa);
  font-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: flex; flex-direction: column; align-items: center;
}
.palavra { color: var(--c-grafite); transition: color 700ms var(--ease), opacity 700ms var(--ease); position: relative; }
.elaborar__sep { display: none; color: var(--c-bege); }
.elaborar__traco {
  position: absolute; left: 4%; right: 4%; bottom: -0.02em; width: 92%; height: 0.14em; overflow: visible;
  fill: none; stroke: var(--c-bege); stroke-width: 1;
}
.elaborar__texto { margin-top: 48px; max-width: 46ch; color: var(--c-taupe-texto); }
.elaborar .legenda { margin-top: 28px; }
.elaborar__sentinela { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }

@media (min-width: 1280px) {
  .elaborar__palavras { flex-direction: row; align-items: baseline; gap: 0.32em; font-size: clamp(4rem, 1rem + 4.2vw, 5.25rem); }
  .elaborar__sep { display: inline; }
}

/* Interação ao rolar (somente com JS e movimento permitido) */
html.motion .elaborar__trilho { height: 180vh; }
html.motion .elaborar__fixo {
  position: sticky; top: var(--topo);
  min-height: calc(100vh - var(--topo));
  justify-content: center;
  padding-block: 48px;
}
html.motion .palavra { color: rgba(140, 122, 107, 0.35); }
html.motion .palavra.is-acesa { color: var(--c-grafite); }
html.motion .elaborar__traco path { stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-io) 250ms; }
html.motion .palavra--ultima.is-acesa .elaborar__traco path { stroke-dashoffset: 0; }

/* ---- 7.3 Para quem */
.para-quem { background: var(--c-offwhite); }
.para-quem__intro { display: grid; gap: 24px; max-width: 640px; }
.frases { margin-top: clamp(48px, 6vw, 80px); display: grid; border-top: 1px solid var(--c-linha); }
.frases__lista { display: contents; }
.frase, .frases__fecho { padding: 28px 0; border-bottom: 1px solid var(--c-linha); }
.frase blockquote { margin: 0; }
.frase p {
  font-family: var(--f-serifa);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--c-grafite);
  max-width: 26ch;
}
.frases__fecho { display: grid; gap: 24px; justify-items: start; align-content: center; border-bottom: 0; padding-top: 40px; }
.frases__fecho .lead { font-size: 1.0625rem; }
.frases__fecho .btn { width: 100%; }
.lead--grafite { color: var(--c-grafite); }
@media (min-width: 600px) { .frases__fecho .btn { width: auto; } }
@media (min-width: 900px) {
  .frases { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .frase, .frases__fecho { padding: 36px 48px 36px 0; min-height: 168px; display: flex; align-items: center; }
  .frase:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--c-linha); }
  .frases__fecho { display: grid; padding-left: 48px; padding-right: 0; border-left: 1px solid var(--c-linha); border-bottom: 0; }
  .frase:nth-child(7) { border-bottom: 0; }
}

@media (min-width: 900px) {
  .para-quem__intro { grid-template-columns: repeat(12, minmax(0, 1fr)); max-width: none; column-gap: 24px; }
  .para-quem__intro .h2 { grid-column: 1 / 8; }
  .para-quem__intro p { grid-column: 1 / 6; }
}

/* ---- 7.4 Sobre */
.sobre { background: var(--c-offwhite); padding-top: calc(var(--secao) * 0.7); }
.sobre__grid { display: grid; gap: 72px; }
.sobre__visual { position: relative; padding-top: 48px; width: 100%; max-width: 440px; }
.sobre__bloco { position: absolute; z-index: 0; left: 16px; right: -16px; top: 42%; bottom: -16px; background: var(--c-rose); }
.sobre__foto-wrap { position: relative; z-index: 1; }
.sobre__moldura {
  position: absolute; z-index: 0; left: -14px; right: -14px; top: -48px;
  width: calc(100% + 28px); height: auto; aspect-ratio: 3 / 4; overflow: visible;
  fill: none; stroke: var(--c-bege); stroke-width: 1;
}
.foto--sobre { position: relative; z-index: 1; aspect-ratio: 4 / 5; }
.foto--sobre img { object-position: 50% 30%; }
.sobre__texto > div p + p { margin-top: 1.1em; }
.sobre__texto > div { margin-top: 32px; max-width: 64ch; }

.trajetoria {
  margin-top: 56px; position: relative;
  display: grid; gap: 28px; padding-left: 28px;
}
.trajetoria::before {
  content: ""; position: absolute; left: 2.5px; top: 8px; bottom: 8px; width: 1px; background: var(--c-bege);
}
.trajetoria li { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; line-height: 1.5; color: var(--c-taupe-texto); }
.trajetoria li::before {
  content: ""; position: absolute; left: -28px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-bege);
}
.trajetoria__titulo { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.4; font-family: var(--f-titulo); font-size: 1.125rem; color: var(--c-grafite); margin-bottom: 2px; }
.trajetoria__titulo .ico { width: 18px; height: 18px; color: var(--c-taupe); margin-top: 3px; }
.sobre__registro { margin-top: 40px; font-size: 0.875rem; }

@media (min-width: 900px) {
  .sobre__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .sobre__visual {
    grid-column: 1 / 7; max-width: none;
    padding: 48px calc((100% + 24px) / 6) 0;
  }
  .sobre__bloco { left: 0; right: 0; top: 50%; bottom: -56px; }
  .sobre__texto { grid-column: 7 / 13; padding-left: 8%; }
}
@media (min-width: 1024px) {
  .sobre__texto { padding-left: 0; grid-column: 8 / 13; }
}

/* ---- 7.5 Psicanálise */
.psicanalise { background: var(--c-areia); }
.ensaio { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 36px; }
.ensaio__bloco { display: grid; gap: 20px; }
.ensaio__p { max-width: 64ch; }
.ensaio__p--primeiro::first-line { font-size: var(--t-lead); }
.termo {
  text-decoration: underline dotted var(--c-bege) 1.5px;
  text-underline-offset: 5px;
  color: inherit;
  transition: text-decoration-color 200ms ease, background-color 200ms ease;
}
.termo sup { font-family: var(--f-serifa); font-size: 0.7em; color: var(--c-bronze); margin-left: 2px; vertical-align: super; line-height: 0; }
.termo:hover, .termo.is-ativo { text-decoration-color: var(--c-bronze); }
.nota {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 20px; border-left: 1px solid var(--c-bege);
  transition: border-color 250ms ease;
}
.nota__num { font-family: var(--f-serifa); font-size: 1.25rem; line-height: 1.2; color: var(--c-bronze); }
.nota__termo { font-weight: 500; color: var(--c-grafite); }
.nota__texto { font-size: 0.9375rem; line-height: 1.6; color: var(--c-taupe-texto); }
.nota.is-ativa { border-left-color: var(--c-bronze); }

.citacao { margin: 112px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.citacao__traco { width: 48px; height: 1px; background: var(--c-bege); margin-bottom: 36px; }
.citacao blockquote { margin: 0; }
.citacao p {
  font-family: var(--f-serifa); font-size: var(--t-citacao); line-height: 1.2; letter-spacing: -0.01em;
  max-width: 20ch; text-wrap: balance;
}
.citacao .legenda { margin-top: 28px; }

.valores { margin-top: 112px; }
.valores__lista { display: grid; }
.valores__lista li { padding-block: 32px; border-top: 1px solid var(--c-linha); }
.valores__lista li:last-child { border-bottom: 1px solid var(--c-linha); }
.valores__topo { display: flex; align-items: center; gap: 18px; }
.ico--valor { width: 36px; height: 36px; color: var(--c-taupe); padding-left: 18px; border-left: 1px solid var(--c-linha); box-sizing: content-box; }
.valores__num { display: block; font-family: var(--f-serifa); font-size: 2rem; line-height: 1; color: var(--c-bronze); }
.valores__palavra { display: block; font-family: var(--f-titulo); font-size: 1.5rem; margin: 16px 0 10px; }
.valores__lista p { color: var(--c-taupe-texto); max-width: 34ch; }

@media (min-width: 900px) {
  .psicanalise__titulo { max-width: 14ch; }
  .ensaio__bloco { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .ensaio__p { grid-column: 3 / 9; }
  .nota { grid-column: 10 / 13; margin-top: 4px; }
  .valores__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .valores__lista li, .valores__lista li:last-child { border: 0; padding: 8px 40px 8px; }
  .valores__lista li + li { border-left: 1px solid var(--c-linha); }
  .valores__lista li:first-child { padding-left: 0; }
}

/* ---- 7.6 Como começar */
.atendimento { background: var(--c-offwhite); }
.atendimento__intro { display: grid; gap: 20px; }
.etapas { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.etapas__arco { display: none; }
.etapas__lista { position: relative; display: grid; gap: 40px; padding-left: 76px; }
.etapas__lista::before {
  content: ""; position: absolute; left: 26px; top: 26px; bottom: 40px; width: 1px; background: var(--c-bege);
}
.etapa { position: relative; }
.etapa__ponto {
  position: absolute; left: -76px; top: -4px;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-offwhite); border: 1px solid var(--c-bege);
  font-family: var(--f-serifa); font-size: 1.25rem; line-height: 1; color: var(--c-bronze);
}
.etapa__titulo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-titulo); font-size: 1.375rem; line-height: 1.25; margin-bottom: 8px; }
.etapa__titulo .ico { width: 20px; height: 20px; color: var(--c-taupe); }
.etapa p { color: var(--c-taupe-texto); max-width: 30ch; }

@media (min-width: 900px) {
  .etapas { padding-top: 0; }
  .etapas__arco {
    display: block; position: absolute; left: 26px; right: 26px; top: 26px; height: 260px;
    width: calc(100% - 52px); overflow: visible; fill: none; stroke: var(--c-bege); stroke-width: 1;
  }
  .etapas__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-left: 0; }
  .etapas__lista::before { display: none; }
  .etapa { display: flex; flex-direction: column; }
  .etapa__ponto { position: relative; left: auto; top: auto; margin-bottom: 22px; }
  .etapa--1 { padding-top: 260px; align-items: flex-start; text-align: left; }
  .etapa--2 { padding-top: 0; align-items: center; text-align: center; }
  .etapa--3 { padding-top: 260px; align-items: flex-end; text-align: right; }
  .etapa p { margin-inline: 0; }
}

.formatos { margin-top: 112px; display: grid; gap: 24px; }
.formato { padding: 40px; }
.formato--online { background: var(--c-areia); }
.formato--presencial { border: 1px solid var(--c-linha); }
.formato .ico--formato { width: 28px; height: 28px; color: var(--c-taupe); margin-bottom: 20px; }
.formato .h3 { margin-bottom: 12px; }
.formato p + p { margin-top: 12px; }
.formato p { color: var(--c-grafite); max-width: 52ch; }
.formato__nota { font-size: 0.875rem; color: var(--c-taupe-texto) !important; }
.formato address { margin: 12px 0 16px; }
.info { display: grid; gap: 14px; align-content: center; font-size: 0.9375rem; line-height: 1.6; color: var(--c-taupe-texto); }
.info li { position: relative; padding-left: 32px; max-width: 46ch; }
.info li .ico { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; color: var(--c-taupe); }

@media (min-width: 900px) {
  .formatos { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .formato--online { grid-column: 1 / 9; }
  .info { grid-column: 9 / 13; padding-left: 16px; }
  .formatos.tem-presencial .formato--online { grid-column: 1 / 7; }
  .formatos.tem-presencial .formato--presencial { grid-column: 7 / 13; }
  .formatos.tem-presencial .info { grid-column: 1 / 9; padding-left: 0; }
}

/* ---- 7.7 Comunidade */
.comunidade { background: var(--c-rose); padding-block: clamp(64px, 8vw, 104px); }
.comunidade__grid { display: grid; gap: 24px; }
.comunidade .lead { margin-bottom: 28px; }
@media (min-width: 900px) {
  .comunidade__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .comunidade__grid > :first-child { grid-column: 1 / 6; }
  .comunidade__grid > :last-child { grid-column: 7 / 13; }
}

/* ---- 7.8 Dúvidas */
.duvidas { background: var(--c-offwhite); }
.duvidas__grid { display: grid; gap: 48px; }
.duvidas__lateral { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.acordeao details { border-bottom: 1px solid var(--c-linha); }
.acordeao details:first-child { border-top: 1px solid var(--c-linha); }
.acordeao summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--f-titulo); font-size: 1.25rem; line-height: 1.35;
}
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary::marker { content: ""; }
.acordeao summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--c-bronze), var(--c-bronze)) center / 14px 1.25px no-repeat,
    linear-gradient(var(--c-bronze), var(--c-bronze)) center / 1.25px 14px no-repeat;
  transition: transform 300ms var(--ease);
}
.acordeao details[open] summary::after { transform: rotate(45deg); }
.acordeao summary:focus-visible { outline-offset: 6px; }
.acordeao__resposta { overflow: hidden; }
.acordeao__resposta p { color: var(--c-taupe-texto); max-width: 60ch; padding-bottom: 26px; }

@media (min-width: 900px) {
  .duvidas__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .duvidas__lateral { grid-column: 1 / 5; position: sticky; top: calc(var(--topo) + 40px); }
  .acordeao { grid-column: 6 / 13; }
}

/* ---- 7.9 Contato */
.contato { background: var(--c-rose); overflow: hidden; }
.contato__arco {
  position: absolute; z-index: 0; left: 50%; bottom: -30%;
  width: min(1100px, 130vw); aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  background: var(--c-areia); opacity: 0.6;
  border-radius: var(--r-arco);
  pointer-events: none;
}
.contato.grao > .contato__arco { position: absolute; z-index: 0; }
.contato__grid { display: grid; gap: 48px; }
.contato__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contato__texto .btn { width: 100%; }
.contato__texto > div { width: 100%; }
.contato__email { font-size: 0.9375rem; }
.contato__form {
  background: var(--c-offwhite); padding: clamp(28px, 3vw, 48px);
  box-shadow: var(--sombra-suave);
  display: grid; gap: 24px; align-content: start;
}
.campo { display: grid; gap: 8px; }
.campo label { font-weight: 500; font-size: 0.9375rem; line-height: 1.4; }
.campo input, .campo textarea {
  width: 100%; padding: 14px 16px; min-height: 48px;
  background: var(--c-offwhite); border: 1px solid var(--c-linha); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.5;
  transition: border-color 200ms ease;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--c-bronze); outline: 2px solid var(--c-bronze); outline-offset: 1px; }
.campo input[aria-invalid="true"] { border-color: var(--c-bronze); }
.campo__ajuda, .contato__privacidade { font-size: 0.8125rem; line-height: 1.5; color: var(--c-taupe-texto); }
.contato__privacidade .ico { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.campo__erro { font-size: 0.8125rem; color: var(--c-grafite); font-weight: 500; }
.campo__erro::before { content: "Atenção: "; }

@media (min-width: 600px) {
  .contato__texto .btn, .contato__texto > div { width: auto; }
}
@media (min-width: 900px) {
  .contato__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .contato__texto { grid-column: 1 / 6; }
  .contato__form { grid-column: 7 / 13; }
  .contato--sem-form .contato__texto { grid-column: 1 / 8; }
  .contato__arco { left: auto; right: -6%; transform: none; width: min(760px, 58vw); bottom: -36%; }
}

/* ---------------------------------------------------------- 8. Rodapé */
.rodape { background: var(--c-cafe); color: var(--c-areia); padding-top: clamp(72px, 8vw, 112px); padding-bottom: 40px; }
.rodape a { color: var(--c-areia); text-decoration: none; transition: color 200ms ease; }
.rodape a:hover { color: var(--c-bege); }
.rodape__grid { display: grid; gap: 48px; }
.rodape__marca img { width: 200px; height: auto; }
.rodape__frase { font-family: var(--f-serifa); font-size: 1.125rem; line-height: 1.4; margin-top: 28px; max-width: 24ch; }
.rodape__crp { font-size: 0.875rem; margin-top: 12px; }
.rodape__titulo { font-family: var(--f-texto); font-weight: 500; font-size: 0.9375rem; color: var(--c-offwhite); margin-bottom: 16px; }
.rodape__col ul { display: grid; gap: 4px; }
.rodape__col a { display: inline-block; padding-block: 8px; min-height: 44px; line-height: 28px; }
.rodape__icone { display: inline-flex !important; align-items: center; gap: 10px; }
.rodape__icone .ico { width: 18px; height: 18px; color: var(--c-bege); }
.rodape__base {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--c-linha-escura);
  display: grid; gap: 10px; font-size: 0.8125rem; line-height: 1.6;
}
.rodape__base p { max-width: 96ch; }
.rodape__base a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .rodape__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
}

/* Botão flutuante */
.flutuante {
  position: fixed; z-index: 80;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  opacity: 0; transform: scale(0.92); pointer-events: none; visibility: hidden;
  transition: opacity 250ms ease, transform 250ms var(--ease), visibility 0s 250ms;
}
.flutuante.is-visivel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 250ms ease, transform 250ms var(--ease), visibility 0s; }
html:not(.js) .flutuante { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.flutuante__circulo {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bege); color: var(--c-cafe); box-shadow: var(--sombra-suave);
  transition: background-color 220ms ease, color 220ms ease;
}
.flutuante__circulo .ico { width: 26px; height: 26px; }
.flutuante__rotulo {
  display: none;
  background: var(--c-offwhite); color: var(--c-grafite); border: 1px solid var(--c-linha);
  border-radius: var(--r-pill); padding: 10px 18px; font-weight: 500; font-size: 0.875rem; line-height: 1;
  box-shadow: var(--sombra-suave);
  opacity: 0; transform: translateX(6px); transition: opacity 220ms ease, transform 220ms var(--ease);
}
.flutuante:hover .flutuante__circulo, .flutuante:focus-visible .flutuante__circulo { background: var(--c-grafite); color: var(--c-offwhite); }
@media (min-width: 1024px) and (hover: hover) {
  .flutuante__rotulo { display: block; }
  .flutuante:hover .flutuante__rotulo, .flutuante:focus-visible .flutuante__rotulo { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 9. Movimento
   Os estados iniciais só valem quando o JS confirmou que há movimento (html.motion). */
html.motion .revela { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html.motion .revela.is-visivel { opacity: 1; transform: none; }
html.motion .desenha path { stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-io); }
html.motion .desenha.is-desenhada path { stroke-dashoffset: 0; }

/* Entrada do Hero: começa quando o preloader sai (body.hero-play) */
html.motion body.hero-espera .foto--hero { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
html.motion body.hero-espera .hero__arco-areia { opacity: 0; transform: translateY(24px); }
html.motion body.hero-espera .hero__titulo .linha > span { transform: translateY(105%); }
html.motion body.hero-espera .hero__texto .entra { opacity: 0; transform: translateY(14px); }
html.motion body.hero-espera .hero__moldura path { stroke-dashoffset: 1; }
html.motion body.hero-espera .travessia__linha { stroke-dashoffset: 1; }
html.motion body.hero-espera .travessia__ponto { transform: scale(0); }
html.motion body.hero-espera html.motion body.hero-espera .hero__etiqueta { opacity: 0; transform: translateY(10px); }
html.motion body.hero-espera .hero__vertical { opacity: 0; }

html.motion body.hero-play .foto--hero { clip-path: inset(0 0 0 0 round 999px 999px 0 0); transition: clip-path 900ms var(--ease-io); }
html.motion body.hero-play .hero__arco-areia { opacity: 1; transform: none; transition: opacity 900ms ease, transform 900ms var(--ease-io); }
html.motion body.hero-play .hero__titulo .linha > span { transform: none; transition: transform 700ms var(--ease) 100ms; }
html.motion body.hero-play .hero__titulo .linha:nth-child(2) > span { transition-delay: 180ms; }
html.motion body.hero-play .hero__titulo .linha:nth-child(3) > span { transition-delay: 260ms; }
html.motion body.hero-play .hero__titulo .linha:nth-child(4) > span { transition-delay: 340ms; }
html.motion body.hero-play .hero__texto .entra { opacity: 1; transform: none; transition: opacity 700ms var(--ease) 400ms, transform 700ms var(--ease) 400ms; }
html.motion body.hero-play .hero__acoes.entra { transition-delay: 480ms; }
html.motion body.hero-play .hero__apoio.entra { transition-delay: 560ms; }
html.motion body.hero-play .travessia__linha { stroke-dashoffset: 0; transition: stroke-dashoffset 1300ms var(--ease-io) 700ms; }
html.motion body.hero-play .travessia__ponto { transform: none; transition: transform 400ms var(--ease) 700ms; }
html.motion body.hero-play .travessia__ponto--fim { transition-delay: 1850ms; }
html.motion body.hero-play html.motion body.hero-play .hero__moldura path { stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease-io) 900ms; }
html.motion body.hero-play .hero__etiqueta { opacity: 1; transform: none; transition: opacity 500ms ease 1300ms, transform 500ms var(--ease) 1300ms; }
html.motion body.hero-play .hero__vertical { opacity: 1; transition: opacity 800ms ease 1400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media print {
  .preloader, .topo, .flutuante, .menu { display: none !important; }
}
