/* Site do Dr. Thiago Bifano (19/11/2026). Cores das artes do Instagram dele (briefing.md):
   azul-marinho #21215a, azul #2478d8, verde-azulado do bordado #3c7f86. Feito primeiro pro celular. */
:root {
  --marinho: #21215a;
  --marinho-2: #2c2c72;
  --azul: #2478d8;
  --verde: #3c7f86;
  --verde-claro: #e3f0f1;
  --fundo: #f5f6fa;
  --papel: #ffffff;
  --tinta: #1b1d33;
  --cinza: #555a70;
  --borda: #e0e3ee;
  --whats: #1f9d55;
  --erro: #c2362b;
  --raio: 18px;
  --sombra: 0 18px 40px -22px rgba(33, 33, 90, .35);
  --serifa: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font: 400 16px/1.6 var(--texto); color: var(--tinta); background: var(--fundo); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.some { position: absolute; width: 0; height: 0; overflow: hidden; }
.junto { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--marinho); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.pular:focus { left: 8px; }

.caixa { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serifa); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--marinho); }
h1 em, h2 em { font-style: italic; color: var(--verde); }
.tag { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); margin-bottom: 12px; }
.tag-clara { color: #9fd3d8; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--marinho);
  background: var(--marinho); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--marinho-2); border-color: var(--marinho-2); transform: translateY(-1px); }
.btn-pequeno { min-height: 42px; padding: 8px 18px; font-size: .93rem; }
.btn-linha { background: transparent; color: var(--marinho); }
.btn-linha:hover { background: var(--marinho); color: #fff; }
.btn-cheio { width: 100%; }
.btn-whats { background: var(--whats); border-color: var(--whats); }
.btn-whats:hover { background: #17824a; border-color: #17824a; }
.btn-claro { background: #fff; border-color: #fff; color: var(--marinho); }
.btn-claro:hover { background: var(--verde-claro); border-color: var(--verde-claro); }
.btn-linha-clara { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-linha-clara:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Faixa e topo ---------- */
.faixa { background: var(--marinho); color: #dfe1f5; font-size: .84rem; }
.faixa-dentro { display: flex; gap: 8px 22px; align-items: center; justify-content: space-between; padding: 8px 0; flex-wrap: wrap; }
.faixa-item { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.faixa-proximo { color: #fff; font-weight: 600; }
.faixa-proximo span { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .faixa-dentro { justify-content: center; }
  .faixa-crm, .faixa-item:first-child { display: none; }
}

.topo { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 250, .92); backdrop-filter: blur(10px); transition: box-shadow .25s; }
.topo.rolou { box-shadow: 0 6px 22px -14px rgba(33, 33, 90, .45); }
.topo-dentro { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo-marca {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--marinho); color: #fff; font: 500 1.05rem/1 var(--serifa); letter-spacing: .04em;
  box-shadow: inset 0 0 0 3px var(--marinho), inset 0 0 0 4.5px #9fd3d8;
}
.logo-texto { display: flex; flex-direction: column; line-height: 1.15; }
.logo-nome { font: 500 1.14rem/1.1 var(--serifa); color: var(--marinho); }
.logo-sub { font-size: .74rem; color: var(--cinza); font-weight: 600; letter-spacing: .02em; }
.menu { display: none; gap: 26px; font-weight: 600; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--cinza); }
.menu a:hover { color: var(--marinho); }
@media (min-width: 900px) { .menu { display: flex; } }

/* ---------- Capa ---------- */
.capa { padding: 26px 0 56px; }
.capa-dentro { display: grid; gap: 34px; align-items: center; }
.capa h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); margin-bottom: 18px; }
.capa h1 em { display: block; }
.capa-frase { color: var(--cinza); font-size: 1.06rem; max-width: 540px; margin-bottom: 26px; }
.capa-botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.capa-botoes .btn { flex: 1 1 210px; }
.capa-provas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.capa-provas li { display: flex; flex-direction: column; padding: 12px 10px; border-left: 3px solid var(--verde); background: var(--papel); border-radius: 0 12px 12px 0; }
.capa-provas strong { font-family: var(--serifa); font-weight: 600; color: var(--marinho); font-size: 1rem; line-height: 1.2; }
.capa-provas span { font-size: .76rem; color: var(--cinza); line-height: 1.3; margin-top: 3px; }
.capa-foto { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.capa-moldura { border-radius: 200px 200px var(--raio) var(--raio); overflow: hidden; box-shadow: var(--sombra); background: var(--verde-claro); }
.capa-moldura img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.capa-selo {
  position: absolute; left: -6px; bottom: 22px; display: flex; gap: 12px; align-items: center;
  background: var(--papel); border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: var(--sombra); max-width: 280px;
}
.capa-selo-icone { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--verde-claro); color: var(--verde); flex: none; }
.capa-selo-topo { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.capa-selo-quando { display: block; font-weight: 700; color: var(--marinho); line-height: 1.3; }
@media (min-width: 900px) {
  .capa { padding: 48px 0 80px; }
  .capa-dentro { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .capa-botoes .btn { flex: 0 0 auto; }
  .capa-selo { left: -40px; }
}

/* ---------- Seções ---------- */
.secao { padding: 72px 0; }
.secao h2 { font-size: clamp(1.85rem, 5.6vw, 2.7rem); }
.secao-topo { max-width: 640px; margin-bottom: 36px; }
.secao-topo p:not(.tag) { color: var(--cinza); margin-top: 12px; }

/* aparecer ao descer (só com JS ligado) */
.js .surge { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .surge.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .surge { opacity: 1; transform: none; transition: none; } }

/* ---------- Agenda ---------- */
.agendar { background: var(--marinho); color: #e7e8f7; position: relative; overflow: hidden; }
.agendar::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 127, 134, .55), transparent 65%); pointer-events: none;
}
.agendar h2 { color: #fff; }
.agendar h2 em { color: #9fd3d8; }
.agendar-grade { display: grid; gap: 34px; position: relative; }
/* item de grade não cresce além da tela por causa da fila de dias (que rola pro lado dentro dela) */
.agendar-grade > *, .capa-dentro > *, .sobre-grade > *, .onde-grade > * { min-width: 0; }
.passos { margin: 26px 0; display: grid; gap: 16px; counter-reset: p; }
.passos li { display: flex; gap: 14px; align-items: flex-start; }
.passos span {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(159, 211, 216, .16); color: #9fd3d8; font-weight: 700;
}
.agendar-alt { color: #c3c6e6; }
.agendar-alt a { color: #fff; font-weight: 700; }
@media (min-width: 900px) { .agendar-grade { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } .agendar-texto { position: sticky; top: 110px; } }

.agenda { background: var(--papel); color: var(--tinta); border-radius: 24px; padding: 22px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
@media (min-width: 560px) { .agenda { padding: 30px; } }
.agenda-carregando { color: var(--cinza); padding: 40px 0; text-align: center; }
.campo { border: 0; margin-bottom: 18px; min-width: 0; }
.campo > label, .campo legend { display: block; font-weight: 700; font-size: .92rem; color: var(--marinho); margin-bottom: 8px; }
.legenda-dica { font-weight: 500; color: var(--cinza); }
.campo input[type="text"], .campo input[type="tel"], .campo select {
  width: 100%; min-height: 50px; border: 1.5px solid var(--borda); border-radius: 12px; padding: 10px 14px; background: #fbfbfe;
  font-size: 1rem;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--marinho) 50%), linear-gradient(135deg, var(--marinho) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(36, 120, 216, .18); }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.campo-dupla { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .campo-dupla { grid-template-columns: 1fr 1fr; } }
.piscou { animation: piscar 1s ease; }
@keyframes piscar { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(60, 127, 134, .35); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px;
  border: 1.5px solid var(--borda); border-radius: 12px; background: #fbfbfe; font-weight: 600; font-size: .93rem; line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s;
}
.chip input:hover + span { border-color: var(--verde); }
.chip input:checked + span { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.chip small { font-size: .74rem; font-weight: 500; opacity: .8; }
.chips-dias { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.chips-dias .chip { flex: none; scroll-snap-align: start; }
.chips-dias .chip span { min-width: 68px; padding: 8px 10px; }
.chips-dias b { text-transform: capitalize; }
.chips-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.chips-horas .chip span { font-variant-numeric: tabular-nums; }
.horas-vazio { color: var(--cinza); font-size: .92rem; }

.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; margin: 2px 0 8px; }
.aceite input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marinho); flex: none; }
.privacidade { font-size: .86rem; color: var(--cinza); margin-bottom: 16px; padding-left: 30px; }
.privacidade summary { cursor: pointer; color: var(--azul); font-weight: 600; }
.privacidade p { margin-top: 6px; }
.agenda-erro { background: #fdeeed; color: var(--erro); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.agenda-aviso { text-align: center; font-size: .84rem; color: var(--cinza); margin-top: 10px; }

.agenda-ok { text-align: center; padding: 8px 0; outline: none; }
.ok-icone { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e3f5ea; color: var(--whats); margin-bottom: 12px; }
.agenda-ok h3 { font-size: 1.7rem; }
.ok-sub { color: var(--cinza); margin: 6px auto 18px; max-width: 380px; }
.ok-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.ok-resumo div { background: var(--fundo); border-radius: 12px; padding: 10px 6px; }
.ok-resumo dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cinza); }
.ok-resumo dd { font-weight: 700; color: var(--marinho); line-height: 1.3; }
.ok-codigo { font: 600 1.25rem/1.3 var(--serifa) !important; letter-spacing: .12em; }
.link-botao { background: none; border: 0; color: var(--azul); font-weight: 600; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.agenda-fora { text-align: center; padding: 10px 0; }
.agenda-fora h3 { font-size: 1.4rem; margin-bottom: 8px; }
.agenda-fora p { color: var(--cinza); margin-bottom: 18px; }

/* ---------- Atendimentos ---------- */
.atend-grade { display: grid; gap: 16px; }
@media (min-width: 640px) { .atend-grade { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .atend-grade { grid-template-columns: repeat(4, 1fr); } }
.atend { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px 22px; display: flex; flex-direction: column; }
.atend-icone { width: 48px; height: 48px; color: var(--verde); margin-bottom: 14px; }
.atend h3 { font-size: 1.28rem; margin-bottom: 8px; }
.atend p { color: var(--cinza); font-size: .95rem; margin-bottom: 18px; }
.atend-agendar {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0;
  color: var(--marinho); font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 2px solid var(--verde);
}
.atend-agendar:hover { color: var(--verde); }
.atend-casa { background: var(--verde-claro); border-color: transparent; }

/* ---------- Sobre ---------- */
.sobre { background: var(--papel); }
.sobre-grade { display: grid; gap: 36px; align-items: start; }
.sobre-foto { max-width: 440px; justify-self: center; width: 100%; }
.sobre-foto img { border-radius: var(--raio); box-shadow: var(--sombra); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre-registro { font-weight: 700; color: var(--verde); margin: 8px 0 16px; font-size: .95rem; }
.sobre-texto > p { color: var(--cinza); }
.sobre-lista { display: grid; gap: 11px; margin: 22px 0; }
.sobre-lista li { display: flex; gap: 10px; align-items: flex-start; }
.sobre-lista svg { flex: none; color: var(--verde); margin-top: 4px; }
.sobre-lista strong { color: var(--marinho); }
.sobre-palestras { font-size: .95rem; }
.insta-cartao {
  margin-top: 22px; display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--fundo);
  border-radius: 16px; padding: 10px 16px 10px 10px; max-width: 380px; transition: background .2s;
}
.insta-cartao:hover { background: var(--verde-claro); }
.insta-cartao img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.insta-texto { display: flex; flex-direction: column; font-size: .9rem; color: var(--cinza); }
.insta-topo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--marinho); font-size: 1rem; }
@media (min-width: 900px) { .sobre-grade { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Onde atende ---------- */
.onde-grade { display: grid; gap: 22px; }
.onde-card { background: var(--papel); border-radius: var(--raio); padding: 24px 20px; border: 1px solid var(--borda); }
.onde-foto { border-radius: 14px; margin: 20px 0 16px; width: 100%; aspect-ratio: 1040 / 355; object-fit: cover; }
.onde-end { display: flex; gap: 10px; font-style: normal; color: var(--cinza); margin-bottom: 14px; }
.onde-end svg { flex: none; color: var(--verde); margin-top: 3px; }
.onde-tabela { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .95rem; }
.onde-tabela th, .onde-tabela td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--borda); vertical-align: top; }
.onde-tabela th { font-weight: 700; color: var(--marinho); text-transform: capitalize; width: 40%; }
.onde-tabela td span { display: block; }
.onde-tabela caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--cinza); padding-top: 8px; }
.onde-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.onde-botoes .btn { flex: 1 1 180px; }
.mapa { border-radius: var(--raio); overflow: hidden; min-height: 320px; background: var(--verde-claro); }
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (min-width: 900px) { .onde-grade { grid-template-columns: 1fr 1fr; } .onde-card { padding: 34px; } }

/* ---------- Chamada final ---------- */
.cta-final { background: linear-gradient(135deg, var(--marinho), #1a4f6a 70%, var(--verde)); color: #fff; padding: 70px 0; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 5.6vw, 2.8rem); max-width: 720px; margin: 0 auto 12px; }
.cta-final h2 em { color: #bfe6ea; }
.cta-final p { color: #d8dbf3; margin-bottom: 26px; }
.cta-botoes { justify-content: center; max-width: 520px; margin: 0 auto; }

/* ---------- Rodapé ---------- */
.rodape { background: #15153d; color: #c6c8e4; padding: 54px 0 24px; font-size: .92rem; }
.rodape .logo-nome { color: #fff; }
.rodape .logo-sub { color: #a9acd0; }
.rodape-grade { display: grid; gap: 28px; }
.rodape h3 { color: #fff; font-family: var(--texto); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.rodape p { line-height: 1.7; }
.rodape-marca p { margin-top: 16px; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .82rem; color: #9598c2; }
@media (min-width: 760px) { .rodape-grade { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whats); color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45);
  transition: transform .25s, opacity .25s;
}
.whats-flutuante.escondido { transform: scale(.6); opacity: 0; pointer-events: none; }
