/* =============================================================
   pages.css — o que só existe nas páginas internas.
   O léxico comum (container, section, btn, hero, faq, urgency,
   footer) mora em styles.css e é reaproveitado aqui sem cópia.
   ============================================================= */

/* ---------------------------------------------------------------
   Hero das internas — o mesmo céu do index, mais baixo.
   Mantém a classe .hero para o header on-sky continuar valendo:
   o main.js mede a altura de `.hero` para decidir quando a barra
   ganha vidro fosco.
   --------------------------------------------------------------- */
.hero--page {
  height: auto;
  min-height: 560px;
  padding-block: 176px 104px;
}

.hero--page .hero__inner { padding-bottom: 0; width: 680px; }

/* Menos sementes, e mais altas: aqui elas emolduram o título em vez de
   povoarem a cena inteira. Sem o palco de 867×616 da home — a camada
   ocupa o hero inteiro e cada semente se posiciona em porcentagem. */
.seeds--page {
  inset: 0;
  bottom: 0;
  left: 0;
  translate: none;
  width: 100%;
  max-width: none;
  display: block;
}

.hero--page .seed--a { left: 6%;   bottom: 14%; width: 104px; rotate: -9deg; }
.hero--page .seed--b { right: 8%;  top: 18%;    width: 76px;  rotate: 11deg; }
.hero--page .seed--c { right: 22%; bottom: 8%;  width: 58px;  rotate: -3deg; }

/* Legais e páginas de texto: hero sóbrio, sem sementes. */
.hero--flat { min-height: 420px; padding-block: 168px 72px; }
.hero--flat .hero__inner { width: 720px; gap: var(--sp-xl); }

.hero__updated {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--fg-on-dark-muted);
}

/* ---------------------------------------------------------------
   Prosa — o texto longo do "por que psicanálise", "como eu trabalho"
   --------------------------------------------------------------- */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.prose__head { position: sticky; top: 128px; }

.prose__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.5px;
  color: var(--ink);
  text-wrap: balance;
}

.prose__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xl);
  max-width: var(--maxw-text);
}

.prose__body p {
  font-size: var(--t-lead);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

/* A primeira frase puxa o olho — peso e cor, jamais inclinação. */
.prose__body p:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* ---------------------------------------------------------------
   Lista de credenciais (formação, registro)
   --------------------------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  max-width: var(--maxw-text);
}

.check-list__item {
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
  color: var(--ink);
}

.check-list__item:last-child { border-bottom: 0; padding-bottom: 0; }

.check-list__mark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--forest);
}

.check-list__note {
  margin-top: var(--sp-xl);
  font-size: var(--t-xs);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
  max-width: 62ch;
}

/* ---------------------------------------------------------------
   Tópicos do atendimento — texto longo, um por bloco, numerado
   --------------------------------------------------------------- */
.topics {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.topic {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
}

.topic__num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--ls-caps);
  color: var(--forest-mid);
  padding-top: 6px;
}

.topic__title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}

.topic__text {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
  max-width: var(--maxw-text);
}

/* ---------------------------------------------------------------
   Aviso — o que o atendimento não é, e outros blocos de limite.
   Fundo mist, barra em forest: lê-se como nota, não como alarme.
   --------------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--forest);
  background: var(--sage-mist);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: clamp(24px, 3vw, 40px);
  max-width: 78ch;
}

.notice__title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.notice__text {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

.notice__text a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------
   Canais de contato
   --------------------------------------------------------------- */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-xl);
}

.channel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease-brand),
              transform var(--dur-fast) var(--ease-brand);
}

a.channel:hover { border-color: var(--forest); transform: translateY(-3px); }

.channel__label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--forest-mid);
}

.channel__value {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  line-height: var(--lh-tight);
  color: var(--ink);
}

.channel__note {
  font-size: var(--t-xs);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

/* ---------------------------------------------------------------
   Endereços
   --------------------------------------------------------------- */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-xl);
}

.place {
  padding-top: var(--sp-lg);
  border-top: 2px solid var(--forest);
}

.place__title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.place__line {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

/* ---------------------------------------------------------------
   FAQ por categoria (página de perguntas)
   --------------------------------------------------------------- */
.faq-block + .faq-block { margin-top: clamp(48px, 6vw, 88px); }

.faq-block__title {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: var(--sp-xl);
}

/* ---------------------------------------------------------------
   Figura — foto de apoio nas internas
   --------------------------------------------------------------- */
.figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sage-mist);
}

.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* As fotos do consultório são 1376×768 (16:9). Cortar para retrato decepava
   a assinatura da parede no meio da palavra — aqui elas entram na proporção
   nativa e o enquadramento fica o do original. */
.figure--wide img { aspect-ratio: 16 / 9; }

/* Foto + texto lado a lado */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.media-split--flip .figure { order: 2; }

.media-split__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

/* ---------------------------------------------------------------
   Chamada de fim de seção
   --------------------------------------------------------------- */
.section-cta {
  margin-top: clamp(40px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xl);
}

.section-cta__note {
  font-size: var(--t-xs);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
  max-width: 44ch;
}

/* ---------------------------------------------------------------
   Páginas legais
   --------------------------------------------------------------- */
.legal {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  max-width: 74ch;
}

.legal__block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
}

.legal__block:last-child { border-bottom: 0; padding-bottom: 0; }

.legal__title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  line-height: var(--lh-tight);
  color: var(--ink);
}

.legal__text {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

.legal__text a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------
   Tablet — 700 a 1199
   --------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .prose { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .prose__head { position: static; }
  .media-split { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .media-split--flip .figure { order: 0; }
  .figure img { aspect-ratio: 16 / 10; }
  .hero--page .hero__inner { width: 100%; }
}

/* ---------------------------------------------------------------
   Mobile — até 699
   --------------------------------------------------------------- */
@media (max-width: 699.98px) {
  .hero--page { min-height: 0; padding-block: 132px 64px; }
  .hero--flat { min-height: 0; padding-block: 128px 56px; }
  .hero--page .seed--a { width: 76px; left: -2%; bottom: 6%; }
  .hero--page .seed--b { width: 56px; right: 0; top: 12%; }
  .hero--page .seed--c { display: none; }

  .topic { grid-template-columns: 1fr; gap: var(--sp-md); }
  .topic__num { padding-top: 0; }

  .notice { padding: var(--sp-xl); }
  .section-cta { flex-direction: column; align-items: stretch; }
  .section-cta .btn { justify-content: center; }
}
