/* Site do Dr. João Pedro Alves (médico da dor, São Paulo).
   Dia claro (papel #F6F5F2, letra #1F1A17), Fraunces nos títulos e Figtree no texto.
   Ousadia num lugar só: a foto grande dele no topo. O resto é calmo, em linhas.
   Verde-petróleo só nos botões de ação; ocre só em filete, marcador e aspas.
   Plano: site-joaopedro/plano-design.md (22/11/2026). */

:root {
  --fundo: #F6F5F2;
  --superficie: #ECE8E1;
  --texto: #1F1A17;
  --texto-2: #5E564F;
  --acao: #1E5B4F;
  --acao-escuro: #16463D;
  --sobre-acao: #FFFFFF;
  --ocre: #A9782F;
  --borda: #DAD3C8;
  --pendencia: #FFE58A;
  --f-titulo: Fraunces, Georgia, "Times New Roman", serif;
  --f-texto: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --coluna: 40em;
  --largo: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: var(--f-texto);
  font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
@media (min-width: 40em) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1, h2 { font-family: var(--f-titulo); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2rem); margin: 2.8em 0 .7em; }
h2::before { content: ""; display: block; width: 2.2rem; height: 2px; background: var(--ocre); margin-bottom: .9rem; }
h3 { font-family: var(--f-texto); font-weight: 600; font-size: 1.12rem; line-height: 1.35; }
p, ul, ol { margin: 0 0 1.1em; }
strong { font-weight: 600; }

a { color: var(--texto); text-decoration: underline; text-decoration-color: var(--ocre);
  text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acao); outline-offset: 3px; border-radius: .2em; }
main:focus { outline: none; }

.pular { position: absolute; left: .75rem; top: -6rem; z-index: 50; background: var(--acao); color: var(--sobre-acao);
  padding: .7rem 1rem; border-radius: .5rem; font-weight: 600; text-decoration: none; }
.pular:focus { top: .75rem; }

.nb { white-space: nowrap; }

/* marcas de pendência (só na prévia; a versão limpa não tem) */
.pendente { background: var(--pendencia); padding: 0 .25em; border-radius: .2em; font-size: .92em; }

/* cabeçalho */
.topo { background: var(--fundo); border-bottom: 1px solid var(--borda); }
.topo-dentro { max-width: var(--largo); margin: 0 auto; padding: .35rem 1.15rem; display: flex;
  align-items: center; justify-content: space-between; gap: .3rem 1.2rem; }
.marca { text-decoration: none; color: var(--texto); font-family: var(--f-titulo); font-size: 1.08rem; font-weight: 600; padding: .3rem 0; white-space: nowrap; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 .95rem; }
.menu li { margin: 0; }
.menu a { display: inline-block; padding: .65rem 0; min-height: 44px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.so-largo { display: none; }
.topo-dentro:has(.marca.so-largo) { justify-content: flex-start; }
@media (min-width: 40em) {
  .topo-dentro { padding: .6rem 1.15rem; gap: .3rem 2rem; }
  .marca { font-size: 1.25rem; }
  .menu ul { gap: 0 1.4rem; }
  .menu a { font-size: .98rem; }
  .so-largo { display: block; }
  .topo-dentro:has(.marca.so-largo) { justify-content: space-between; }
}
.menu a:hover { text-decoration: underline; text-decoration-color: var(--ocre); }

/* botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px;
  padding: .8rem 1.4rem; border-radius: 999px; background: var(--acao); color: var(--sobre-acao);
  font-weight: 600; font-size: 1.02rem; text-decoration: none; }
.botao:hover { background: var(--acao-escuro); color: var(--sobre-acao); }
.botao svg { width: 1.2rem; height: 1.2rem; flex: none; }
.botoes { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; align-items: center; }

/* página */
.inicio { max-width: var(--largo); margin: 0 auto; padding: 0 1.15rem 3.5rem; }
.inicio > section, .inicio > figure { max-width: var(--coluna); margin-left: auto; margin-right: auto; }

/* abertura: foto grande, sumindo no papel; nada escrito por cima */
.abertura { margin: 0 -1.15rem; }
.abertura-foto { height: min(15rem, 32vh); height: min(15rem, 32svh); overflow: hidden; }
.abertura-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); }
.abertura-texto { position: relative; padding: 0 1.15rem; margin-top: .2rem; }
.abertura h1 { font-size: clamp(2.15rem, 1.5rem + 4vw, 3.8rem); line-height: 1.03; }
.abertura .quem { font-size: 1.06rem; line-height: 1.45; margin: .6rem 0 .45rem; max-width: 30em; }
.abertura .credencial { font-size: .9rem; color: var(--texto-2); margin: 0 0 1rem; line-height: 1.45; }
@media (min-width: 40em) {
  .abertura-foto { height: min(30rem, 60vh); }
  .abertura .quem { font-size: 1.18rem; margin: .85rem 0 .55rem; }
  .abertura .credencial { font-size: .95rem; margin: 0 0 1.35rem; }
}
.abertura .nota { color: var(--texto); font-weight: 600; }

/* fala dele */
.fala { margin: 2.6rem auto 0; padding: 1.6rem 0 0; border-top: 1px solid var(--borda); }
.fala blockquote { margin: 0; position: relative; padding-left: 2.2rem; }
.fala blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.55rem; font-family: var(--f-titulo);
  font-size: 3.6rem; line-height: 1; color: var(--ocre); }
.fala p { font-family: var(--f-titulo); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem);
  line-height: 1.42; margin: 0; }
.fala figcaption { margin: .8rem 0 0 2.2rem; font-size: .93rem; color: var(--texto-2); }

/* listas em linhas (onde dói, como trata) */
.linhas { list-style: none; padding: 0; margin: 0; }
.linhas li { padding: 1.05rem 0; border-bottom: 1px solid var(--borda); margin: 0; }
.linhas li:first-child { border-top: 1px solid var(--borda); }
.linhas h3 { margin: 0 0 .25rem; }
.linhas p { margin: 0; }
.linhas .dele { margin-top: .45rem; font-size: .98rem; color: var(--texto-2); }
.linhas .dele-texto { margin-top: .35rem; }
.linhas .dele q { font-style: italic; color: var(--texto); quotes: "\201C" "\201D"; }

/* etapas da consulta */
.etapas { padding-left: 1.5em; }
.etapas li { margin-bottom: 1rem; padding-left: .3rem; }
.etapas li::marker { font-family: var(--f-titulo); font-weight: 600; color: var(--ocre); }
.etapas b { display: block; }

/* retrato com fala */
.retrato-fala { display: grid; gap: 1.2rem; align-items: center; }
.retrato-fala img { border-radius: 1rem; max-height: 24rem; width: 100%; object-fit: cover; object-position: 50% 20%; }

/* perguntas */
.perguntas details { border-bottom: 1px solid var(--borda); padding: .95rem 0; }
.perguntas details:first-of-type { border-top: 1px solid var(--borda); }
.perguntas summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 2.2rem; position: relative; min-height: 28px; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; position: absolute; right: .25rem; top: -.15rem; font-size: 1.4rem; color: var(--ocre); }
.perguntas details[open] summary::after { content: "\2013"; }
.perguntas details p { margin: .6rem 0 0; }

/* onde atende */
.endereco address { font-style: normal; margin-bottom: .6rem; }
.endereco .horario { color: var(--texto-2); margin-bottom: 1.2rem; }

/* rodapé */
.rodape { background: var(--superficie); border-top: 1px solid var(--borda); font-size: .95rem; }
.rodape-dentro { max-width: var(--largo); margin: 0 auto; padding: 2.2rem 1.15rem 1rem; display: grid; gap: 1.6rem; }
.rodape h2 { font-family: var(--f-texto); font-size: 1rem; font-weight: 600; margin: 0 0 .4rem; }
.rodape h2::before { display: none; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin: 0 0 .35rem; }
.rodape address { font-style: normal; }
.rodape-nome { font-family: var(--f-titulo); font-size: 1.2rem; font-weight: 600; margin: 0 0 .3rem; }
.identificacao { color: var(--texto-2); margin: 0; }
.rodape-nota { max-width: var(--largo); margin: 0 auto; padding: 1rem 1.15rem 2rem; color: var(--texto-2); font-size: .9rem; border-top: 1px solid var(--borda); }

/* texto corrido (privacidade, 404) */
.texto { max-width: var(--coluna); margin: 0 auto; padding: 2rem 1.15rem 3rem; }
.texto h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.8rem); margin-bottom: .8rem; }

@media (min-width: 64em) {
  .abertura { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; margin: 2.2rem 0 0; }
  .abertura-foto { height: 37rem; border-radius: 1rem; }
  .abertura-foto img { -webkit-mask-image: none; mask-image: none; }
  .abertura-texto { margin-top: 0; padding: 0; }
  .retrato-fala { grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; }
  .rodape-dentro { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
