/* =========================================================
   Heloisa Brandão · Psicóloga
   Direção "Asas": tudo se organiza em torno de um eixo
   central, como as duas asas do logo. Quatro tons apenas.
   ========================================================= */

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Os quatro tons. Variações saem só de transparência. */
  --vinho: #4A1A2C;
  --areia: #EFE4D2;
  --camelo: #D9C3A5;
  --tinta: #2A1219;

  --tinta-suave: rgb(42 18 25 / .78);
  --areia-suave: rgb(239 228 210 / .82);
  --fio-escuro: rgb(42 18 25 / .22);
  --fio-claro: rgb(239 228 210 / .24);

  --serifa: "Gloock", Georgia, "Times New Roman", serif;
  --texto: "Albert Sans", "Segoe UI", system-ui, sans-serif;

  --topo-h: 64px;
  --borda: 2px;
  --largura: 1200px;
  --respiro: clamp(5rem, 9vw, 8.5rem);
  --sai: cubic-bezier(.16, 1, .3, 1); /* ease-out exponencial */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--areia);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--vinho);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }

::selection { background: var(--vinho); color: var(--areia); }
.secao--vinho ::selection, .abertura ::selection, .fechamento ::selection, .topo ::selection { background: var(--areia); color: var(--vinho); }

:focus-visible { outline: 2px solid var(--vinho); outline-offset: 3px; border-radius: var(--borda); }
.abertura :focus-visible, .secao--vinho :focus-visible, .fechamento :focus-visible, .topo :focus-visible, .barra-celular :focus-visible { outline-color: var(--areia); }

html { scrollbar-color: var(--vinho) var(--areia); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--areia); color: var(--vinho); padding: .75rem 1rem; border-radius: var(--borda);
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .95rem 1.75rem;
  border-radius: var(--borda);
  font: 600 1.0625rem/1.2 var(--texto);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .35s var(--sai), color .35s var(--sai), box-shadow .35s var(--sai), transform .35s var(--sai);
}
.btn .ico { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--claro { background: var(--areia); color: var(--vinho); box-shadow: 0 1px 0 rgb(42 18 25 / .25); }
.btn--claro:hover { background: var(--camelo); box-shadow: 0 10px 24px -12px rgb(42 18 25 / .6); transform: translateY(-1px); }
.btn--claro:active { transform: translateY(0); box-shadow: none; }
.btn--pequeno { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .95rem; }

.link { color: var(--vinho); font-weight: 600; text-decoration: underline; }
.link:hover { text-decoration-thickness: 2px; }

.ico { display: inline-block; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 40;
  background: var(--vinho);
  color: var(--areia);
  border-bottom: 1px solid var(--fio-claro);
}
.topo__in {
  max-width: 1360px; margin: 0 auto; height: var(--topo-h);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  display: flex; align-items: center; gap: 2rem;
}
.marca { font-family: var(--serifa); font-size: 1.375rem; text-decoration: none; letter-spacing: .005em; white-space: nowrap; }
.topo__nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .95rem; }
.topo__nav a { text-decoration: none; color: var(--areia-suave); padding: .5rem 0; position: relative; }
.topo__nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: .2rem; height: 1px; background: var(--camelo);
  transition: left .4s var(--sai), right .4s var(--sai);
}
.topo__nav a:hover { color: var(--areia); }
.topo__nav a:hover::after { left: 0; right: 0; }

/* ---------- Eixo ---------- */
.eixo {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: var(--fio-claro);
  transform: translateX(-.5px);
  pointer-events: none;
}

/* ---------- 1. Abertura ---------- */
.abertura {
  --foto-w: clamp(200px, min(25vw, calc((100svh - 420px) * .8)), 360px);
  --vao: clamp(1.25rem, 3vw, 2.75rem);
  position: relative;
  background: var(--vinho);
  color: var(--areia);
  padding: clamp(3rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 7vh, 5rem);
  text-align: center;
  overflow: hidden;
}
.abertura__palco {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 1360px;
  margin: 0 auto;
}
.abertura__palco > * { grid-area: 1 / 1; }
.nome {
  display: flex; justify-content: center; align-items: center;
  gap: calc(var(--foto-w) + var(--vao) * 2);
  width: 100%;
  font-family: var(--serifa);
  font-weight: 400;
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: .95;
  letter-spacing: -.012em;
  position: relative; z-index: 2;
}
.asa { flex: 1 1 0; }
.asa--esq { text-align: right; }
.asa--dir { text-align: left; }

.retrato {
  position: relative; z-index: 1;
  width: var(--foto-w);
  aspect-ratio: 4 / 5;
}
.retrato::after {
  content: ""; position: absolute; inset: -10px;
  border: 1px solid var(--fio-claro);
  pointer-events: none;
}
.retrato img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.abertura__texto { position: relative; z-index: 2; max-width: 40rem; margin: clamp(1.25rem, 3vh, 2rem) auto 0; padding: .5rem 1rem; background: var(--vinho); }
.credencial {
  font-size: .9375rem; letter-spacing: .16em; text-transform: uppercase; color: var(--camelo); font-weight: 500;
}
.abertura__lede {
  font-family: var(--serifa);
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  line-height: 1.32;
  margin: .9rem auto 1.75rem;
  max-width: 34ch;
  text-wrap: balance;
}
.abertura__nota { margin-top: 1.1rem; font-size: .9375rem; color: var(--areia-suave); text-wrap: balance; }

/* Abrir das asas: o nome se revela a partir do eixo, para fora.
   Sem JS ou com movimento reduzido, tudo já aparece parado. */
@media (prefers-reduced-motion: no-preference) {
  .asa--esq { animation: asa-esq 1.4s var(--sai) .15s both; }
  .asa--dir { animation: asa-dir 1.4s var(--sai) .15s both; }
  .retrato::after { animation: moldura 1.6s var(--sai) .1s both; }
  .abertura__texto { animation: sobe 1s var(--sai) .1s both; }
}
@keyframes asa-esq { from { clip-path: inset(0 0 0 100%); transform: translateX(2.5rem); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes asa-dir { from { clip-path: inset(0 100% 0 0); transform: translateX(-2.5rem); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes moldura { from { inset: 0; opacity: 0; } to { inset: -10px; opacity: 1; } }
@keyframes sobe { from { opacity: .45; filter: blur(3px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .barra-celular { transition: none !important; }
  .btn--claro:hover { transform: none; }
}

/* ---------- Seções ---------- */
.secao { position: relative; padding: var(--respiro) clamp(1.25rem, 4vw, 3.5rem); }
.secao--areia { background: var(--areia); color: var(--tinta); }
.secao--vinho { background: var(--vinho); color: var(--areia); }
.secao--areia + .secao--areia { padding-top: 0; }

.titulo {
  font-family: var(--serifa);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.titulo--centro { text-align: center; max-width: 18ch; margin-left: auto; margin-right: auto; }

/* Foto com legenda costurada por um fio */
.foto { position: relative; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto figcaption {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .85rem;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave);
}
.foto figcaption { text-wrap: balance; }
.foto figcaption::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; flex: none; }

/* ---------- 2. Para quem é ---------- */
.asas-lista {
  max-width: var(--largura); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr clamp(220px, 24vw, 320px) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.asas-lista__corpo img { aspect-ratio: 3 / 4; }
.asas-lista__corpo img { object-position: 30% 30%; }
.asas-lista__lado { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.asas-lista__lado li {
  font-family: var(--serifa);
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.3;
  position: relative;
  padding-bottom: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--fio-escuro);
  text-wrap: balance;
}
.asas-lista__lado--esq li { text-align: right; }
.asas-lista__lado li:last-child { border-bottom: 0; padding-bottom: 0; }
.para-quem__temas {
  max-width: 44rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: center; color: var(--tinta-suave); font-size: 1rem;
}

/* ---------- 3. Como é ---------- */
.par {
  max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding-top: var(--respiro);
  border-top: 1px solid var(--fio-escuro);
}
.par--inverso .par__foto { order: -1; }
.par__texto p + p { margin-top: 1rem; }
.par__texto > p { max-width: 36rem; }
.fios { display: grid; gap: 0; }
.fios li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--fio-escuro);
  font-size: 1.125rem;
  max-width: 34rem;
}
.fios li:last-child { border-bottom: 1px solid var(--fio-escuro); }
.par__abordagem { margin-top: 1.75rem; font-weight: 600; }
.par__foto img { aspect-ratio: 930 / 585; }
.par__foto--alta { max-width: 420px; justify-self: end; }
.par__foto--alta img { aspect-ratio: 532 / 760; object-position: 50% 15%; }


/* ---------- 4. Como começa ---------- */
.comeco .titulo { color: var(--areia); }
.passos {
  position: relative;
  max-width: 980px; margin: 0 auto;
  display: grid; gap: clamp(2rem, 4vw, 3rem);
}
.passos::before {
  content: ""; position: absolute; top: .4rem; bottom: .4rem; left: 50%; width: 1px; background: var(--fio-claro);
}
.passo {
  position: relative;
  width: calc(50% - clamp(2.5rem, 5vw, 4rem));
}
.passo--esq { justify-self: start; text-align: right; }
.passo--dir { justify-self: end; }
.passo__n {
  position: absolute; top: -.1rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 1px solid var(--camelo); background: var(--vinho);
  font-family: var(--serifa); font-size: 1.125rem; color: var(--camelo);
}
.passo--esq .passo__n { right: calc(-1 * clamp(2.5rem, 5vw, 4rem) - 1.125rem); }
.passo--dir .passo__n { left: calc(-1 * clamp(2.5rem, 5vw, 4rem) - 1.125rem); }
.passo h3 { font-family: var(--serifa); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin-bottom: .5rem; }
.passo p { color: var(--areia-suave); }
.centro { text-align: center; margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- 5. Online e presencial ---------- */
.duas-asas {
  position: relative;
  max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
}
.duas-asas::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--fio-escuro); }
.modo { padding: 0 clamp(1.5rem, 5vw, 4.5rem); display: grid; gap: .9rem; align-content: start; }
.modo--online { text-align: right; justify-items: end; }
.modo h3 { font-family: var(--serifa); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; color: var(--vinho); margin-bottom: .25rem; }
.modo p, .modo address { max-width: 26rem; }
.atendimento__foto { max-width: 520px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.atendimento__foto img { aspect-ratio: 16 / 11; object-position: 50% 60%; }
.atendimento__foto figcaption { justify-content: center; }
.horario { text-align: center; margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 40rem; }

/* ---------- 6. Sobre ---------- */
.sobre__crenca {
  font-family: var(--serifa); font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; color: var(--vinho);
  margin-top: 1.75rem !important; padding-top: 1.5rem; border-top: 1px solid var(--fio-escuro);
}

/* ---------- 7. Fechamento ---------- */
.fechamento {
  position: relative;
  background: var(--vinho); color: var(--areia);
  text-align: center;
  padding: var(--respiro) clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}
.fechamento__titulo {
  position: relative;
  font-family: var(--serifa); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.01em;
  max-width: 16ch; margin: 0 auto 2.25rem;
  text-wrap: balance;
}
.fechamento__titulo span { color: var(--camelo); }
.fechamento .btn { position: relative; }
.contatos {
  position: relative;
  max-width: 980px; margin: clamp(3.5rem, 7vw, 5rem) auto 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--fio-claro);
  padding-top: 2.25rem;
}
.contatos::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--fio-claro); }
.contatos__lado { display: grid; gap: 1.25rem; padding: 0 clamp(1.5rem, 4vw, 3.5rem); }
.contatos__lado:first-child { text-align: right; }
.contatos__lado:last-child { text-align: left; }
.contatos a { text-decoration: none; border-bottom: 1px solid var(--fio-claro); }
.contatos a:hover { border-bottom-color: var(--areia); }
.rotulo { display: block; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--camelo); margin-bottom: .15rem; }

.rodape {
  background: var(--tinta); color: var(--areia-suave);
  text-align: center; padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
  font-size: .9rem; display: grid; gap: .5rem;
}
.rodape__id { color: var(--areia); }

/* ---------- Barra do celular ---------- */
.barra-celular { display: none; }

/* ---------- Revelação suave ao rolar (só com JS e sem movimento reduzido) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revela { opacity: 0; transition: opacity 1s var(--sai), transform 1.1s var(--sai); }
  .js .revela--esq { transform: translateX(1.75rem); }
  .js .revela--dir { transform: translateX(-1.75rem); }
  .js .revela--centro { transform: scale(.985); }
  .js .revela.visivel { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 960px) {
  .topo__nav { display: none; }
  .topo__cta { margin-left: auto; }
  .par { grid-template-columns: 1fr; }
  .par--inverso .par__foto { order: 0; }
  .par__foto--alta { justify-self: center; max-width: 380px; }
  .asas-lista { grid-template-columns: 1fr 1fr; }
  .asas-lista__corpo { grid-column: 1 / -1; order: -1; justify-self: center; width: min(46vw, 300px); }
  .par__foto--alta { justify-self: start; }
}

/* =========================================================
   Celular: um elemento dominante por tela
   ========================================================= */
@media (max-width: 720px) {
  :root { --topo-h: 56px; --respiro: 4.5rem; }
  body { font-size: 1rem; padding-bottom: 5rem; }
  .topo__cta { display: none; }
  .marca { font-size: 1.25rem; }
  .topo__in { justify-content: center; }

  .abertura { --foto-w: min(52vw, 230px); padding-top: 1.75rem; padding-bottom: 2.75rem; }
  .abertura .eixo { display: none; }
  .abertura__palco { display: block; }
  .nome { display: block; font-size: clamp(2.75rem, 15vw, 4rem); line-height: .92; }
  .asa { display: block; }
  .asa--esq { text-align: left; }
  .asa--dir { text-align: right; margin-top: -.08em; }
  .retrato { margin: -.6rem auto 0; position: relative; z-index: 1; }
  .nome { position: relative; z-index: 2; }
  .abertura__palco { display: flex; flex-direction: column; }
  .abertura__palco .nome { order: 0; }
  .abertura__palco .retrato { order: 1; margin-top: 1.25rem; }
  .abertura__texto { margin-top: 1.5rem; }
  .credencial { font-size: .8125rem; }
  .abertura__lede { font-size: 1.25rem; margin: .65rem auto 1.25rem; }
  .abertura__texto .btn { width: 100%; max-width: 22rem; }
  .abertura__nota { font-size: .875rem; }

  .titulo { font-size: clamp(2rem, 9vw, 2.5rem); }

  .asas-lista { grid-template-columns: 1fr; gap: 0; }
  .asas-lista__corpo { order: -1; width: min(70vw, 280px); margin: 0 auto 2.5rem; }
  .asas-lista__lado { gap: 0; }
  .asas-lista__lado li, .asas-lista__lado--esq li { text-align: left; padding: 1.1rem 0; border-bottom: 1px solid var(--fio-escuro); }
  .asas-lista__lado--esq li:last-child { border-bottom: 1px solid var(--fio-escuro); padding-bottom: 1.1rem; }
  .asas-lista__lado li { font-size: 1.25rem; }

  .passos::before { left: 1.125rem; }
  .passo, .passo--esq, .passo--dir { width: auto; justify-self: stretch; text-align: left; padding-left: 3.5rem; }
  .passo--esq .passo__n, .passo--dir .passo__n { left: 0; right: auto; }

  .duas-asas { grid-template-columns: 1fr; gap: 2.5rem; }
  .duas-asas::before { display: none; }
  .modo, .modo--online { padding: 0; text-align: left; justify-items: start; }
  .modo--presencial { padding-top: 2.5rem; border-top: 1px solid var(--fio-escuro); }

  .contatos { grid-template-columns: 1fr; gap: 1.25rem; }
  .contatos__lado, .contatos__lado:first-child, .contatos__lado:last-child { text-align: center; padding: 0; }
  .contatos::before { display: none; }

  .barra-celular {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: var(--vinho);
    border-top: 1px solid var(--fio-claro);
  }
  .barra-celular .btn { width: 100%; }
  .js .barra-celular { transform: translateY(110%); transition: transform .5s var(--sai); }
  .js .barra-celular.mostrar { transform: none; }
  .par__foto--alta { max-width: 100%; }
  .par__foto--alta img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
}

@media print {
  .topo, .barra-celular { display: none; }
}
