/* ---------- Fundos de seção ---------- */
.bg-branco { background: var(--branco-quente); }
.bg-areia-clara { background: var(--areia-clara); }
.bg-areia { background: var(--areia); }
.bg-ameixa { background: var(--ameixa); color: var(--papel); }
.bg-ameixa h2, .bg-ameixa h3 { color: var(--papel); }
.bg-ameixa .rotulo { color: var(--lilas-claro); }
.bg-ameixa a:not(.btn) { color: var(--lilas-claro); }
.on-dark .btn--outline { background: transparent; border-color: var(--papel); color: var(--papel); }
.on-dark .btn--outline:hover { background: var(--papel); color: var(--ameixa); }

.cabecalho-secao { max-width: 44rem; margin-bottom: var(--s-8); }
.cabecalho-secao h2 { margin-top: var(--s-4); }
.cabecalho-secao p { margin: var(--s-5) 0 0; font-size: var(--t-lead); line-height: 1.6; color: var(--texto-secundario); }
.bg-ameixa .cabecalho-secao p { color: var(--lilas-claro); }
.acao-secao { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-4); }
.acao-secao--centro { justify-content: center; }
.moldura--clara::before { border-color: var(--lilas); }
.foto { border-radius: var(--r-md); width: 100%; height: auto; background: var(--areia-clara); }

/* ---------- Demandas ---------- */
.cards { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--branco-quente); border: 1px solid var(--linha); border-radius: var(--r-md);
  padding: 28px; transition: border-color .25s ease; display: flex; flex-direction: column; gap: var(--s-5);
}
@media (min-width: 640px) { .card { padding: 40px; } }
.card:hover { border-color: rgba(129, 98, 155, .45); }
.card__icone {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--violeta);
  background: rgba(173, 147, 194, .16); border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
}
@media (min-width: 640px) { .card__icone { width: 56px; height: 56px; } }
.card__icone svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
/* Quatro etapas na mesma linha em telas largas */
@media (min-width: 1200px) {
  .cards--2 { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
  .cards--2 .card { padding: 28px; }
}
.card__texto { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--texto-secundario); }
.card__titulo { font-size: var(--t-h4); font-weight: 500; line-height: 1.25; }
.card__lista { display: grid; gap: var(--s-4); }
.card__lista li { position: relative; padding-left: 1.5em; font-size: 1rem; line-height: 1.6; color: var(--texto-secundario); }
.card__lista li::before { content: "—"; position: absolute; left: 0; color: var(--violeta); }

/* ---------- Como funciona ---------- */
.duas-colunas { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .duas-colunas { grid-template-columns: 5fr 7fr; gap: var(--s-9); } .duas-colunas--inversa { grid-template-columns: 7fr 5fr; } }
.duas-colunas--topo { align-items: start; }

/* Banner de ponta a ponta */
.banner { margin: 0; line-height: 0; }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; }
@media (min-width: 768px) { .banner img { aspect-ratio: 16 / 7; object-position: 50% 36%; max-height: 640px; } }
.lista-fios > li { padding-block: var(--s-5); border-top: 1px solid var(--linha); }
.lista-fios > li:last-child { border-bottom: 1px solid var(--linha); }
.lista-fios h3 { font-size: var(--t-h4); font-weight: 500; line-height: 1.25; }
.lista-fios p { margin: var(--s-2) 0 0; color: var(--texto-secundario); font-size: 1rem; line-height: 1.65; }

/* ---------- Psicologia junguiana ---------- */
.jung { position: relative; overflow: hidden; }
.jung__motivo { position: absolute; left: -120px; top: -90px; width: 420px; opacity: .22; pointer-events: none; }
.jung .container { position: relative; }
.jung__texto { max-width: 34rem; }
.jung__texto p { color: var(--papel); font-size: var(--t-body); line-height: 1.75; }
.jung__foto { max-width: 440px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .jung__foto { justify-self: end; max-width: 460px; } }

/* ---------- O processo ---------- */
.passos { display: grid; gap: var(--s-6); counter-reset: passo; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-8); } }
@media (min-width: 1100px) { .passos { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); } }
.passo { border-top: 1px solid var(--linha); padding-top: var(--s-5); counter-increment: passo; }
.passo::before { content: counter(passo, decimal-leading-zero); display: block; margin-bottom: var(--s-4);
  font-family: var(--f-titulo); font-weight: 300; font-size: 2.5rem; line-height: 1; color: var(--violeta-profundo); }
.passo h3 { font-size: var(--t-h4); font-weight: 500; line-height: 1.25; }
.passo p { margin: var(--s-3) 0 0; color: var(--texto-secundario); font-size: 1rem; line-height: 1.65; }

/* ---------- Sobre mim ---------- */
/* Foto de ponta a ponta ao lado do texto (sangra até a borda esquerda) */
.sobre__grid { display: grid; grid-template-columns: 1fr; }
.sobre__foto { margin: 0; line-height: 0; background: var(--areia); }
.sobre__foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; object-position: 50% 25%; }
.sobre__texto { padding: var(--s-8) var(--gutter) var(--s-8); }
/* Celular e tablet: texto primeiro, foto de ponta a ponta abaixo */
.sobre__texto { order: 1; }
.sobre__foto { order: 2; }
@media (min-width: 900px) {
  .sobre__texto, .sobre__foto { order: 0; }
  .sobre__grid { grid-template-columns: 5fr 7fr; }
  .sobre__foto { position: relative; min-height: 600px; }
  .sobre__foto img { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
  .sobre__texto { padding: var(--secao) var(--alinha-container) var(--secao) var(--s-9); }
}
.sobre__texto h2 em { color: var(--violeta-profundo); }
.sobre__crp { margin: var(--s-4) 0 var(--s-5); }
.sobre__texto > p { max-width: 38rem; color: var(--texto-secundario); }
.formacoes { margin-top: var(--s-6); max-width: 38rem; }
.formacoes li { padding-block: var(--s-3); border-top: 1px solid var(--linha); font-weight: 500; font-size: 1rem; line-height: 1.5; }
.formacoes li:last-child { border-bottom: 1px solid var(--linha); }

/* ---------- Dúvidas ---------- */
.faq-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: var(--s-9); } .faq-grid .cabecalho-secao { position: sticky; top: calc(var(--header-h) + var(--s-6)); margin-bottom: 0; } }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); cursor: pointer; list-style: none;
  padding-block: var(--s-5); font-weight: 500; font-size: 1.0625rem; line-height: 1.4; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.75rem/1 var(--f-titulo); color: var(--violeta-profundo); transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq .resposta { padding: 0 var(--s-7) var(--s-5) 0; color: var(--texto-secundario); font-size: 1rem; line-height: 1.7; }
.faq .resposta p { margin: 0; }
.faq__fim { margin-top: var(--s-7); }

/* ---------- Instagram ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); max-width: 900px; margin-inline: auto; }
@media (min-width: 640px) { .posts { gap: var(--s-5); } }
.posts a { display: block; border-radius: var(--r-md); overflow: hidden; }
.posts img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .25s ease; }
.posts a:hover img { opacity: .9; }

/* ---------- Contato final ---------- */
.contato { text-align: center; }
.contato__corpo { max-width: 40rem; margin-inline: auto; }
.contato h2 { margin-top: var(--s-4); }
.contato p { margin: var(--s-5) 0 0; font-size: var(--t-lead); line-height: 1.6; color: var(--lilas-claro); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--areia); padding-block: var(--s-9) var(--s-6); font-size: var(--t-small); line-height: 1.7; color: var(--texto-secundario); }
.rodape__grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rodape__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .rodape__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: var(--s-7); } }
@media (min-width: 1024px) { .rodape__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s-8); } }
.rodape img { width: 150px; height: auto; margin-bottom: var(--s-4); }
.rodape p { margin: 0 0 var(--s-2); }
.rodape__titulo { font: 500 var(--t-label)/1.3 var(--f-texto); letter-spacing: .18em; text-transform: uppercase; color: var(--ameixa); margin: 0 0 var(--s-4); }
.rodape ul li { padding-block: var(--s-1); }
.rodape a { color: var(--ameixa); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(54, 42, 62, .35); }
.rodape a:hover { text-decoration-color: var(--ameixa); }
.rodape__col p { margin-top: var(--s-3); }
.rodape__fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--linha); }
.rodape__fim { padding-right: 72px; } /* espaço para o botão flutuante de WhatsApp */
.rodape__fim p { margin: 0; }
.rodape__fim strong { color: var(--ameixa); font-weight: 500; letter-spacing: .08em; }

/* ---------- Toque artístico: pintura desfocada ao fundo das seções claras ----------
   A imagem é minúscula e é ampliada e desfocada no navegador; fica atrás do texto, em baixa opacidade. */
.arte { position: relative; isolation: isolate; overflow: hidden; }
.arte::before {
  content: ""; position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background: var(--arte) center / cover no-repeat; filter: blur(22px) saturate(1.05); opacity: .34;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.arte--a { --arte: url("../img/arte-a.jpg"); }
.arte--b { --arte: url("../img/arte-b.jpg"); }
.arte--b::before { transform: scaleX(-1); opacity: .3; }
.arte--c { --arte: url("../img/arte-c.jpg"); }
.arte--livro { --arte: url("../img/arte-livro.jpg"); }
.arte--livro::before { opacity: .28; filter: blur(26px) saturate(1.1); mix-blend-mode: screen; }
.arte .card { background: rgba(251, 249, 247, .82); }

/* ---------- Aviso de emergência, links do rodapé e botão de texto ---------- */
.rodape .rodape__aviso { margin: var(--s-9) 0 0; padding: var(--s-5) var(--s-6); border: 1px solid var(--linha); border-radius: var(--r-md); background: rgba(251, 249, 247, .5); max-width: 52rem; }
.rodape__aviso strong { color: var(--ameixa); font-weight: 500; }
.rodape__aviso + .rodape__fim { margin-top: var(--s-8); }
@media (max-width: 639.98px) { .rodape .rodape__aviso { margin-top: var(--s-8); padding: var(--s-4) var(--s-5); } .rodape__aviso + .rodape__fim { margin-top: var(--s-7); } }
.rodape__links { margin: 0; }

/* Rodapé centralizado em uma coluna (opção B, aprovada por Mariana em 23/11/2026) */
.rodape__centro { text-align: center; display: grid; justify-items: center; gap: var(--s-5); }
.rodape .rodape__centro img { width: 210px; margin: 0; }
.rodape__nav, .rodape__contato { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6); list-style: none; margin: 0; padding: 0; }
.rodape .rodape__nav li { padding: 0; }
.rodape__contato { padding-top: var(--s-5); border-top: 1px solid var(--linha); width: 100%; max-width: 46rem; }
.rodape .rodape__nota { margin: 0; }
.rodape .rodape__aviso { margin-inline: auto; text-align: center; }
.rodape__fim { justify-content: center; text-align: center; padding-right: 0; }
@media (max-width: 1023.98px) { .rodape { padding-bottom: 88px; } } /* o botão flutuante do WhatsApp não cobre os links finais */
@media (max-width: 639.98px) {
  .rodape__nav { flex-direction: column; gap: var(--s-1); }
  .rodape__contato { flex-direction: column; gap: var(--s-1); }
}
.link-botao { background: none; border: 0; padding: 0; font: inherit; color: var(--ameixa); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(54, 42, 62, .35); }
.link-botao:hover { text-decoration-color: var(--ameixa); }

/* ---------- Aviso de cookies ---------- */
/* Faixa fina e delicada, centralizada na parte de baixo da tela */
.cookie {
  position: fixed; z-index: 70; left: 50%; bottom: var(--s-4); transform: translateX(-50%);
  width: min(46rem, calc(100% - 2 * var(--s-4)));
  display: grid; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  background: rgba(251, 249, 247, .96); color: var(--ameixa);
  border: 1px solid var(--linha); border-radius: var(--r-sm);
  box-shadow: 0 10px 30px -18px rgba(54, 42, 62, .28); font-size: .875rem; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--violeta-profundo); text-underline-offset: 3px; }
.cookie__acoes { display: flex; gap: var(--s-2); }
.cookie__acoes .btn { flex: 1 1 0; min-height: 36px; padding: 0 var(--s-4); font-size: .6875rem; letter-spacing: .12em;
  color: var(--ameixa); border-color: rgba(54, 42, 62, .35); }
.cookie__acoes .btn:hover { color: var(--papel); border-color: var(--ameixa); }
@media (min-width: 640px) {
  .cookie { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-5); bottom: var(--s-5); }
  .cookie__acoes .btn { flex: none; min-width: 6.5rem; }
}
/* botão com aparência de link (rodapé: "Preferências de cookies") */
.rodape .link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ameixa); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(54, 42, 62, .35); }
.rodape .link-btn:hover { text-decoration-color: var(--ameixa); }

/* ---------- Página de política de privacidade ---------- */
.texto-legal { max-width: 46rem; }
.texto-legal h1 { margin: var(--s-4) 0 var(--s-3); font-size: var(--t-h2); }
.texto-legal h2 { margin: var(--s-7) 0 var(--s-3); font-size: var(--t-h4); font-weight: 500; }
.texto-legal p { color: var(--texto-secundario); line-height: 1.75; }
.texto-legal__data { font-size: var(--t-small); }

/* ---------- Entrada suave dos blocos (acrescentada por main.js) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .95s var(--ease), transform .95s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Transição natural entre as seções ----------
   Cada seção termina num degradê curto até a cor da seguinte (sem linha reta). As fotos de
   largura total (hero, banner, "Sobre mim") dissolvem nas bordas. Exceção aprovada por Mariana à
   regra "sem degradê" de design.md: só nas junções, sempre na faixa de respiro, longe do texto. */
:root { --trans: clamp(36px, 4.5vw, 72px); }
#etapas, #como-funciona, #abordagem-junguiana, #sobre-mim, #duvidas, #instagram { position: relative; }
#etapas { --para: var(--areia-clara); }
#como-funciona { --para: var(--ameixa); }
#abordagem-junguiana { --para: var(--areia-clara); }
#sobre-mim { --para: var(--papel); }
#duvidas { --para: var(--ameixa); }
#instagram { --para: var(--areia); }
/* Junção em ondas: três camadas translúcidas da cor da próxima seção, em curvas suaves que derivam
   devagar (movimento quase imperceptível). Sem faixa de degradê: a transparência das camadas faz o papel dele. */
:root {
  --onda: clamp(44px, 5vw, 80px);
  --onda-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 40C150 0 450 0 600 40C750 80 1050 80 1200 40V100H0Z' fill-opacity='.22'/%3E%3C/svg%3E");
  --onda-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62C200 92 400 92 600 62C800 32 1000 32 1200 62V100H0Z' fill-opacity='.45'/%3E%3C/svg%3E");
  --onda-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 80C150 60 450 60 600 80C750 100 1050 100 1200 80V100H0Z'/%3E%3C/svg%3E");
}
#etapas::after, #como-funciona::after, #abordagem-junguiana::after,
#sobre-mim::after, #duvidas::after, #instagram::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--onda);
  z-index: 2; pointer-events: none; background: var(--para);
  -webkit-mask-image: var(--onda-a), var(--onda-b), var(--onda-c); mask-image: var(--onda-a), var(--onda-b), var(--onda-c);
  -webkit-mask-size: 1100px 100%, 760px 100%, 520px 100%; mask-size: 1100px 100%, 760px 100%, 520px 100%;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-position: 0 0, 0 0, 0 0; mask-position: 0 0, 0 0, 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  #etapas::after, #como-funciona::after, #abordagem-junguiana::after,
  #sobre-mim::after, #duvidas::after, #instagram::after { animation: onda-deriva 70s linear infinite; }
}
@keyframes onda-deriva {
  to { -webkit-mask-position: 1100px 0, -760px 0, 520px 0; mask-position: 1100px 0, -760px 0, 520px 0; }
}
/* Etapas → banner: sem transição (corte reto, a pedido de Mariana) */
#etapas::after { content: none; }
/* Celular e tablet: a foto abaixo de "Sobre mim" termina só com degradê suave (sem ondas) */
@media (max-width: 899.98px) {
  #sobre-mim::after {
    animation: none; -webkit-mask-image: none; mask-image: none; height: calc(var(--trans) * 2.2);
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--papel) 8%, transparent) 30%, color-mix(in srgb, var(--papel) 35%, transparent) 60%, color-mix(in srgb, var(--papel) 75%, transparent) 85%, var(--papel));
  }
}
/* foto do início: dissolve de leve na seção seguinte */
.hero__foto::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--trans);
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--branco-quente) 12%, transparent) 40%, color-mix(in srgb, var(--branco-quente) 55%, transparent) 75%, var(--branco-quente));
}
.hero__foto { position: relative; }
/* as artes desfocadas entram aos poucos no topo, sem emenda com a seção anterior */
.arte::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 60px, #000 calc(60px + var(--trans) * 2.5), #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 60px, #000 calc(60px + var(--trans) * 2.5), #000 78%, transparent 100%);
}
.sobre__foto img {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--trans));
  mask-image: linear-gradient(to bottom, transparent, #000 var(--trans));
}
/* banner e foto de "Sobre mim": bordas suaves */
.banner img {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--trans)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--trans)), transparent);
}
