/* André Lorran, psicólogo. Estilos da landing page. */

@font-face {
  font-family: "Krona One";
  src: url("fonts/krona-one.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --areia: #f3e1ca;
  --areia-clara: #f9efdf;
  --oliva: #55563d;
  --oliva-escuro: #35372a;
  --tinta: #2b2c21;
  --laranja: #c46928;
  --laranja-forte: #a85319;
  --laranja-claro: #eba76c;
  --linha: rgba(53, 55, 42, 0.22);
  --titulo: "Krona One", "Arial Black", sans-serif;
  --texto: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 20px;
  --borda: clamp(20px, 5vw, 72px);
  --largura: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--areia);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Textura granulada da marca */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 400; line-height: 1.18; margin: 0; color: var(--oliva-escuro); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.35rem); }
h3 { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.35; }
p { margin: 0; }

a { color: inherit; }

.caixa { width: 100%; max-width: calc(var(--largura) + 2 * var(--borda)); margin: 0 auto; padding: 0 var(--borda); }

.secao { padding: clamp(72px, 10vw, 136px) 0; position: relative; }

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--oliva-escuro); color: var(--areia-clara);
  padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.pular:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--laranja-forte); outline-offset: 3px; border-radius: 6px; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--texto); text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.botao svg { width: 22px; height: 22px; flex: none; }
.botao:hover { transform: translateY(-2px); }
.botao:active { transform: translateY(0) scale(0.98); }

.botao-principal { background: var(--laranja-forte); color: #fff8ec; box-shadow: 0 10px 24px -12px rgba(168, 83, 25, 0.8); }
.botao-principal:hover { background: #8f4513; }

.botao-claro { background: var(--areia-clara); color: var(--oliva-escuro); }
.botao-claro:hover { background: #fff; }

.botao-pequeno { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }

.link {
  font-weight: 700; color: var(--oliva-escuro); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding: 10px 0 8px; display: inline-block; transition: background-size 0.25s ease, color 0.2s ease;
}
.link:hover { color: var(--laranja-forte); background-size: 0 2px; background-position: 100% 100%; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 225, 202, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.topo .caixa { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.topo-logo { display: inline-flex; align-items: center; min-height: 44px; }
.topo-logo img { width: 150px; }
.menu { display: none; gap: 30px; align-items: center; }
.menu a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--oliva-escuro); padding: 12px 0; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.menu a:hover::after { transform: scaleX(1); }
@media (min-width: 960px) { .menu { display: flex; } .topo-logo img { width: 172px; } }

/* Primeira tela */
.inicio { padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 112px); overflow: hidden; position: relative; }
.inicio .caixa { display: grid; gap: 44px; align-items: center; }
.inicio-texto { position: relative; z-index: 2; }
.inicio-texto p.apoio { font-size: clamp(1.08rem, 1.6vw, 1.25rem); margin-top: 24px; max-width: 34em; color: var(--oliva-escuro); }
.inicio-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.fatos { list-style: none; padding: 22px 0 0; margin: 38px 0 0; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: 0.95rem; color: var(--oliva-escuro); }
.fatos li { display: flex; align-items: center; gap: 10px; }
.fatos li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); flex: none; }

.inicio-foto { position: relative; justify-self: center; width: min(100%, 440px); }
.inicio-foto .moldura { border-radius: 220px 220px var(--raio) var(--raio); overflow: hidden; aspect-ratio: 4 / 5; background: var(--oliva); position: relative; z-index: 1; }
.inicio-foto .moldura img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 0.6s ease; }
.inicio-foto:hover .moldura img { transform: scale(1.03); }
.inicio-foto .laco { position: absolute; width: 120%; left: -32%; bottom: -14%; z-index: 0; opacity: 0.95; }

@media (min-width: 900px) {
  .inicio .caixa { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .inicio-foto { justify-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
  .inicio-texto > * { animation: subir 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .inicio-texto > *:nth-child(2) { animation-delay: 0.08s; }
  .inicio-texto > *:nth-child(3) { animation-delay: 0.16s; }
  .inicio-texto > *:nth-child(4) { animation-delay: 0.24s; }
  .inicio-foto .moldura { animation: surgir 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .inicio-foto .laco { animation: laco 1.1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes surgir { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes laco { from { opacity: 0; transform: translateX(-30px) rotate(-6deg); } }

/* Temas */
.temas { background: var(--areia-clara); }
.cabecalho { max-width: 44em; margin-bottom: clamp(36px, 5vw, 64px); }
.cabecalho p { margin-top: 18px; font-size: 1.1rem; color: var(--oliva-escuro); }
.temas-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; }
.tema { border-top: 1px solid var(--linha); padding: 28px 0 32px; display: grid; grid-template-columns: 54px 1fr; gap: 6px 14px; scroll-margin-top: 96px; }
.tema .num { font-family: var(--titulo); font-size: 0.95rem; color: var(--laranja-forte); padding-top: 3px; }
.tema p { grid-column: 2; color: var(--tinta); margin-top: 6px; }
.tema:target h3 { color: var(--laranja-forte); }
@media (min-width: 820px) { .temas-lista { grid-template-columns: 1fr 1fr; } }

/* Terapia comigo */
.terapia { background: var(--oliva-escuro); color: var(--areia-clara); overflow: hidden; }
.terapia h2, .terapia h3 { color: var(--areia-clara); }
.terapia .marca-fundo { position: absolute; right: -12%; top: -8%; width: min(72vw, 820px); opacity: 0.06; pointer-events: none; }
.terapia .caixa { position: relative; display: grid; gap: 48px; }
.terapia .abertura { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; margin-top: 22px; max-width: 30em; color: #fff; }
.terapia-foto { border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.terapia-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.terapia-foto:hover img { transform: scale(1.03); }
.principios { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.principios li { border-top: 1px solid rgba(249, 239, 223, 0.22); padding: 24px 0; }
.principios p { margin-top: 8px; color: rgba(249, 239, 223, 0.88); }
.citacao { margin: 0; padding: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid rgba(249, 239, 223, 0.22); grid-column: 1 / -1; }
.citacao p { font-family: var(--titulo); font-size: clamp(1.15rem, 2.5vw, 1.9rem); line-height: 1.4; color: var(--laranja-claro); max-width: 26em; }
.citacao footer { margin-top: 20px; font-size: 0.95rem; color: rgba(249, 239, 223, 0.8); }
@media (min-width: 900px) {
  .terapia .caixa { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
  .terapia-foto { position: sticky; top: 112px; }
}

/* Como funciona */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: passo; }
.passos li { counter-increment: passo; border-top: 2px solid var(--oliva-escuro); padding-top: 22px; }
.passos li::before { content: "0" counter(passo); display: block; font-family: var(--titulo); font-size: 2.2rem; color: var(--laranja); line-height: 1; margin-bottom: 18px; }
.passos p { margin-top: 10px; }
.aviso-leve { margin-top: clamp(36px, 5vw, 56px); padding: 22px 26px; border-radius: var(--raio); background: var(--areia-clara); border: 1px solid var(--linha); max-width: 52em; }
@media (min-width: 820px) { .passos { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* Sobre */
.sobre { background: var(--areia-clara); }
.sobre .caixa { display: grid; gap: 48px; align-items: center; }
.sobre-texto p { margin-top: 20px; max-width: 34em; }
.sobre-foto { border-radius: var(--raio) var(--raio) 200px 200px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; width: 100%; }
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sobre-foto:hover img { transform: scale(1.03); }
.formacao { margin-top: 36px; }
.formacao h3 { margin-bottom: 8px; }
.formacao ul { list-style: none; margin: 0; padding: 0; }
.formacao li { border-bottom: 1px solid var(--linha); padding: 13px 0; display: flex; gap: 14px; align-items: baseline; }
.formacao li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); flex: none; transform: translateY(-2px); }
@media (min-width: 900px) { .sobre .caixa { grid-template-columns: 1.15fr 0.85fr; gap: 72px; } .sobre-foto { justify-self: end; } }

/* Perguntas */
.perguntas .caixa { display: grid; gap: 36px; }
.perguntas details { border-top: 1px solid var(--linha); }
.perguntas details:last-child { border-bottom: 1px solid var(--linha); }
.perguntas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 700; font-size: 1.1rem; color: var(--oliva-escuro); transition: color 0.2s ease; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary:hover { color: var(--laranja-forte); }
.perguntas summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 0.25s ease; }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas details p { padding: 0 40px 26px 0; max-width: 46em; }
@media (min-width: 900px) { .perguntas .caixa { grid-template-columns: 0.7fr 1.3fr; gap: 72px; align-items: start; } }

/* Contato */
.contato { background: var(--laranja-forte); color: #fff8ec; overflow: hidden; }
.contato h2 { color: #fff8ec; font-size: clamp(1.9rem, 5vw, 3.4rem); }
.contato .marca-fundo { position: absolute; left: -8%; bottom: -30%; width: min(80vw, 760px); opacity: 0.1; pointer-events: none; }
.contato .caixa { position: relative; }
.contato p.apoio { margin-top: 22px; font-size: 1.15rem; max-width: 32em; }
.contato .botao { margin-top: 34px; }
.emergencia { margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 248, 236, 0.35); font-size: 0.98rem; max-width: 50em; }
.emergencia strong { font-weight: 700; }

/* Rodapé */
.rodape { background: var(--oliva-escuro); color: rgba(249, 239, 223, 0.88); padding: 56px 0 96px; font-size: 0.95rem; }
.rodape .caixa { display: grid; gap: 28px; }
.rodape img { width: 190px; }
.rodape a { color: var(--areia-clara); display: inline-block; padding: 10px 0; }
.rodape a:hover { color: var(--laranja-claro); }
.rodape-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
@media (min-width: 820px) { .rodape { padding-bottom: 56px; } .rodape .caixa { grid-template-columns: 1fr auto; align-items: end; } }

/* Botão flutuante */
.flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.18s ease;
  box-shadow: 0 14px 30px -10px rgba(43, 44, 33, 0.55);
}
.flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
.flutuante.visivel:hover { transform: translateY(-2px); }
/* No celular o botão do topo já fica sempre à vista */
@media (max-width: 819px) { .flutuante { display: none; } }

/* Aviso de cookies */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; background: var(--areia-clara); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px 22px; box-shadow: 0 20px 44px -16px rgba(43, 44, 33, 0.5); font-size: 0.95rem; }
.cookies[hidden] { display: none; }
.cookies-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.botao-contorno { background: transparent; border-color: var(--oliva-escuro); color: var(--oliva-escuro); }
.botao-contorno:hover { background: var(--oliva-escuro); color: var(--areia-clara); }

/* Página de privacidade */
.documento { padding: clamp(48px, 7vw, 96px) 0; }
.documento .caixa { max-width: calc(760px + 2 * var(--borda)); }
.documento h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.documento h2 { font-size: 1.15rem; margin-top: 40px; }
.documento p, .documento ul { margin-top: 14px; }
.documento ul { padding-left: 20px; }

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