/* Carla Kerber, Psicóloga. Estilos do site. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* Cores, fontes e medidas */
:root {
  --papel: #F6F1E9;
  --papel-2: #EFE7DB;
  --texto: #2B2825;
  --texto-suave: #625A52;
  --terracota: #8C4A31;
  --terracota-escura: #733B26;
  --linha: #DCD2C4;
  --escuro: #26221F;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --largura: 1180px;
  --margem: clamp(20px, 5vw, 48px);
  --secao: clamp(88px, 12vw, 152px);
  --topo-altura: 64px;

  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --topo-altura: 80px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topo-altura) + 16px);
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.6rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 34em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }

.pular {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--texto); color: var(--papel); padding: 10px 16px;
}
.pular:focus { left: 16px; }

.conteiner {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin: 0 auto;
  padding: 0 var(--margem);
}
.secao { padding: var(--secao) 0; }
.secao--tom { background: var(--papel-2); }
.secao--linha { border-top: 1px solid var(--linha); }

.sobretitulo {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota);
  margin: 0 0 1.25rem;
}
.suave { color: var(--texto-suave); }
.junto { white-space: nowrap; }

/* Botões e links */
.botao {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  background: var(--terracota);
  color: #FBF8F3;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 1.05rem 1.6rem;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.botao:hover { background: var(--terracota-escura); }
.botao .icone { width: 1.2em; height: 1.2em; flex: none; }
.botao--pequeno { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }

.link {
  color: var(--terracota);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.link:hover { color: var(--terracota-escura); }
.link-bloco { margin-top: 2.25rem; }

/* Topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.topo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 241, 233, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}
.topo.rolou { border-bottom-color: var(--linha); }
.topo__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topo-altura);
}
.marca { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.marca__nome { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: 0.01em; }
.marca__sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-top: 0.35rem;
}
.nav ul { display: flex; gap: 2.25rem; }
.nav a:not(.botao) {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav a:not(.botao):hover,
.nav a[aria-current='page'] { border-bottom-color: var(--terracota); }
.menu-botao { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 2.75rem; }
}
@media (max-width: 899px) {
  .menu-botao {
    display: inline-flex;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.95rem;
    color: var(--texto);
    padding: 0.75rem 0 0.75rem 1rem;
    cursor: pointer;
  }
  .nav {
    position: fixed;
    top: var(--topo-altura);
    left: 0; right: 0; bottom: 0;
    background: var(--papel);
    padding: 1.5rem var(--margem) 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .menu-aberto .nav { opacity: 1; visibility: visible; }
  .menu-aberto body { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a:not(.botao) {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--linha);
  }
  .nav a[aria-current='page'] { color: var(--terracota); border-bottom-color: var(--linha); }
  .nav .botao { align-self: flex-start; padding: 1.05rem 1.6rem; font-size: 1rem; }
}

/* Abertura (topo das páginas) */
.abertura { padding: 0 0 clamp(48px, 6vw, 80px); }
.abertura__grade { display: grid; gap: 2.5rem; }
.abertura__foto { order: -1; margin: 0 calc(-1 * var(--margem)); }
.abertura__foto img {
  width: 100%;
  height: min(54svh, 560px);
  object-fit: cover;
  object-position: 50% 20%;
}
.abertura h1 { margin-bottom: 1.5rem; }
.abertura__sub { font-size: 1.125rem; color: var(--texto-suave); margin-bottom: 2.25rem; }
@media (min-width: 900px) {
  .abertura { padding-top: clamp(16px, 3vw, 48px); }
  .abertura__grade {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: clamp(48px, 6vw, 104px);
  }
  .abertura__foto { order: 1; margin: 0; }
  .abertura__foto img {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - var(--topo-altura) - 64px);
  }
  .abertura__sub { font-size: 1.2rem; }
}

/* Topo das páginas só com texto */
.cabecalho { padding: clamp(40px, 7vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--linha); }
.cabecalho h1 { max-width: 14em; margin-bottom: 1.5rem; }
.cabecalho .abertura__sub { margin-bottom: 0; }

/* Faixa de credenciais */
.credenciais { border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.credenciais ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--texto-suave);
  text-align: center;
}
@media (min-width: 900px) {
  .credenciais ul { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 2rem 0; font-size: 0.95rem; }
  .credenciais li { padding: 0 1.5rem; }
  .credenciais li + li { border-left: 1px solid var(--linha); }
}

/* Duas colunas: título à esquerda, conteúdo à direita */
.dupla { display: grid; gap: 2.5rem; }
.dupla__titulo h2 { max-width: 11em; }
@media (min-width: 900px) {
  .dupla { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); }
  .dupla__titulo { position: sticky; top: calc(var(--topo-altura) + 48px); align-self: start; }
}

/* Lista "Talvez você esteja aqui porque..." */
.situacoes { border-top: 1px solid var(--linha); }
.situacoes li {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--linha);
}
.fecho { margin-top: 2.5rem; color: var(--texto-suave); }

/* Foto e texto lado a lado */
.foto-texto { display: grid; gap: 2.75rem; align-items: center; }
.foto-texto__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.foto-texto h2 { margin-bottom: 1.75rem; }
@media (min-width: 900px) {
  .foto-texto { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); }
  .foto-texto--larga { grid-template-columns: 7fr 5fr; }
  .foto-texto--invertida .foto-texto__foto { order: 1; }
  .foto-texto--topo { align-items: start; }
  .foto-texto--topo .foto-texto__foto { position: sticky; top: calc(var(--topo-altura) + 32px); }
}
.foto-texto--larga .foto-texto__foto img { aspect-ratio: 4 / 3; }

/* Bloco em destaque (conversa inicial) */
.destaque {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--papel-2);
}
.destaque h3 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.15; max-width: 12em; }
@media (min-width: 900px) {
  .destaque { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
}

/* Passos */
.passos { display: grid; gap: 2.25rem; margin: 3.5rem 0; counter-reset: passo; }
.passos li { counter-increment: passo; border-top: 1px solid var(--linha); padding-top: 1.5rem; }
.passos li::before {
  content: counter(passo);
  display: block;
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--terracota);
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .passos { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 1000px) { .passos { grid-template-columns: repeat(4, 1fr); } }

/* Blocos de cuidado */
.cuidados { margin-top: 2.5rem; border-top: 1px solid var(--linha); }
.cuidados li { padding: 1.5rem 0; border-bottom: 1px solid var(--linha); }
.cuidados h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.6rem;
}

/* Formação */
.formacao { border-top: 1px solid var(--linha); }
.formacao li { padding: 1.35rem 0; border-bottom: 1px solid var(--linha); }
.formacao strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}
.formacao span { font-size: 0.95rem; color: var(--texto-suave); }

/* Fatos curtos (como atendo) */
.fatos { display: grid; gap: 0; border-top: 1px solid var(--linha); margin-top: 2.5rem; }
.fatos li { padding: 1.25rem 0; border-bottom: 1px solid var(--linha); }
.fatos strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.35rem;
}
@media (min-width: 700px) {
  .fatos { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}
@media (min-width: 1000px) {
  .fatos { grid-template-columns: repeat(3, 1fr); }
}

/* Texto longo (política de privacidade) */
.texto-longo { max-width: 740px; }
.texto-longo h2 { font-size: clamp(1.7rem, 2.8vw, 2.1rem); margin: 3.25rem 0 1.1rem; }
.texto-longo h2:first-child { margin-top: 0; }
.texto-longo ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.texto-longo li { margin-bottom: 0.5rem; max-width: 34em; }
.texto-longo li::marker { color: var(--terracota); }
.atualizacao { font-size: 0.9rem; color: var(--texto-suave); margin-top: 3.5rem; }

/* Passo a passo dentro de uma resposta */
.passo-a-passo { list-style: decimal; padding-left: 1.3em; margin: 0 0 1em; }
.passo-a-passo li { margin-bottom: 0.5rem; }
.passo-a-passo li::marker { color: var(--terracota); }

/* Dúvidas */
.duvidas { border-top: 1px solid var(--linha); max-width: 820px; }
.duvidas details { border-bottom: 1px solid var(--linha); }
.duvidas summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.3;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: '+';
  flex: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--terracota);
  transition: transform 0.3s ease;
}
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas .resposta { padding: 0 0 1.75rem; color: var(--texto-suave); }
.titulo-duvidas { margin-bottom: 2.5rem; }

/* Chamada final */
.chamada { text-align: center; }
.chamada h2 { max-width: 14em; margin: 0 auto 1.5rem; }
.chamada p { margin: 0 auto 2.5rem; color: var(--texto-suave); }

/* Rodapé */
.rodape {
  background: var(--escuro);
  color: #D9D1C5;
  padding: clamp(64px, 9vw, 104px) 0 2.5rem;
  font-size: 0.95rem;
}
.rodape a { color: #F1EBE2; text-decoration: none; border-bottom: 1px solid rgba(241, 235, 226, 0.3); transition: border-color 0.3s ease; }
.rodape a:hover { border-bottom-color: #F1EBE2; }
.rodape__grade { display: grid; gap: 2.75rem; }
.rodape__nome { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: #F6F1E9; margin-bottom: 0.35rem; }
.rodape__titulo {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A99F92;
  margin-bottom: 1rem;
}
.rodape li + li { margin-top: 0.55rem; }
.rodape__registro { margin-top: 1.25rem; }
.rodape__legal {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 235, 226, 0.14);
  font-size: 0.8125rem;
  color: #A99F92;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}
.rodape__legal p { max-width: none; margin: 0; }
@media (min-width: 900px) {
  .rodape__grade { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Botão de WhatsApp fixo no celular */
.flutuante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(43, 40, 37, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.3s ease;
}
.flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .flutuante { display: none; } }

/* Aviso de cookies */
.aviso-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  background: var(--papel);
  border: 1px solid var(--linha);
  box-shadow: 0 12px 32px rgba(43, 40, 37, 0.14);
  padding: 1.25rem 1.25rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { margin: 0 0 1rem; }
.aviso-cookies__botoes { display: flex; gap: 0.75rem; }
.aviso-cookies .botao { flex: 1; justify-content: center; padding: 0.7rem 1rem; font-size: 0.9375rem; }
@media (min-width: 700px) {
  .aviso-cookies { left: 24px; right: auto; bottom: 24px; max-width: 400px; }
}
.botao--contorno { background: transparent; color: var(--texto); border: 1px solid var(--texto); cursor: pointer; }
.botao--contorno:hover { background: var(--texto); color: var(--papel); }
.aviso-aberto .flutuante { display: none; }
.link-rodape {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(241, 235, 226, 0.3);
  padding: 0;
  font: inherit;
  color: #F1EBE2;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.link-rodape:hover { border-bottom-color: #F1EBE2; }

/* Fade suave ao rolar */
.js .revela { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .revela.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .revela { opacity: 1; transform: none; transition: none; }
  .flutuante, .nav, .duvidas summary::after { transition: none; }
}
