/* Assunção Odontologia
   Paleta tirada da marca: verde-sálvia do eucalipto, rosé do jaleco, papel rosado. */
:root {
  --papel: #FBF4F2;
  --branco: #FFFFFF;
  --salvia: #8FA596;
  --salvia-clara: #DDE6DF;
  --mata: #35503F;
  --tinta: #24332B;
  --rose: #B9676C;
  --rose-claro: #F0D9D5;
  --texto-suave: #55665C;

  --titulo: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --corpo: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --margem: clamp(20px, 5vw, 72px);
  --largura: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--titulo); font-weight: 400; line-height: 1.04; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7.2vw, 5.75rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-weight: 500; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--mata); color: var(--branco); padding: 10px 16px; border-radius: 8px;
}
.pular:focus { top: 12px; }

/* ---------- Botões e links ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--mata); color: var(--branco);
  border: 1.5px solid var(--mata); border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.botao:hover { background: var(--tinta); border-color: var(--tinta); }
.botao-pequeno { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.botao-contorno { background: transparent; color: var(--mata); }
.botao-contorno:hover { background: var(--mata); color: var(--branco); }
.link-quieto { text-underline-offset: 5px; text-decoration-thickness: 1px; font-weight: 500; }
.link-quieto:hover { color: var(--rose); }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--margem);
  background: color-mix(in srgb, var(--papel) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topo.rolou { border-bottom-color: color-mix(in srgb, var(--salvia) 45%, transparent); }
.marca { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.marca-nome { font-family: var(--titulo); font-size: 1.75rem; color: var(--mata); }
.marca-sub { font-size: .75rem; letter-spacing: .34em; color: var(--rose); margin-top: 3px; padding-left: 2px; }
.menu { display: none; gap: 30px; font-size: .9375rem; }
.menu a { text-decoration: none; padding: 6px 0; }
.menu a:hover { color: var(--rose); }
@media (min-width: 940px) { .menu { display: flex; } }

/* ---------- Abertura ---------- */
.abertura {
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--margem) 0;
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  grid-template-areas: "texto" "retrato" "arco";
}
.abertura-texto { grid-area: texto; align-self: center; }
.abertura h1 { color: var(--mata); max-width: 11ch; }
.abertura-apoio { margin-top: 24px; max-width: 46ch; font-size: 1.125rem; color: var(--texto-suave); }
.abertura-acoes { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.registro { margin-top: 28px; font-size: .875rem; color: var(--texto-suave); }

.retrato { grid-area: retrato; aspect-ratio: 1088 / 1344; border-radius: 10px; width: 100%; max-width: 460px; justify-self: center; }
.retrato img { object-position: center; }

.arco { grid-area: arco; padding: 8px 0 clamp(36px, 6vw, 72px); }
.arco svg { width: 100%; max-width: 760px; margin: 0 auto; overflow: visible; }

@media (min-width: 860px) {
  .abertura {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    grid-template-areas: "texto retrato" "arco arco";
    column-gap: clamp(32px, 6vw, 96px);
  }
  .retrato { justify-self: end; }
}

/* Arco ortodôntico: os dentes entram tortos e se alinham uma única vez, ao carregar */
.dente {
  transform-box: fill-box; transform-origin: center;
  transform: translate(var(--dx), var(--dy)) rotate(var(--giro));
  transition: transform 1.5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(.9s + var(--i) * 70ms);
}
.dente rect.coroa { fill: var(--branco); stroke: var(--salvia); stroke-width: 1.5; }
.dente rect.braquete { fill: var(--rose); }
.fio { fill: none; stroke: var(--rose); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-out .15s; }
.alinhado .dente { transform: none; }
.alinhado .fio { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dente, .fio { transition: none; }
  .dente { transform: none; }
  .fio { stroke-dashoffset: 0; }
}

/* ---------- Espaços de foto ---------- */
.foto { position: relative; overflow: hidden; background: var(--salvia-clara); color: var(--salvia); }
.foto img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.foto-ramo { position: absolute; inset: 12% 22% 14%; width: 56%; height: 74%; }
.foto.sem-foto img { display: none; }
.foto.sem-foto::after {
  content: attr(data-legenda);
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; font-size: .8125rem; color: var(--mata);
}

/* ---------- Faixas ---------- */
.faixa { padding: clamp(64px, 9vw, 128px) var(--margem); }
.faixa > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }
.cabeca { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.cabeca h2 { color: var(--mata); max-width: 16ch; }
.cabeca p { max-width: 52ch; color: var(--texto-suave); }
@media (min-width: 860px) {
  .cabeca { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: 64px; }
}

/* Tratamentos */
.tratamentos { background: var(--branco); }
.lista-tratamentos li {
  display: grid; gap: 12px;
  padding: 30px 0;
  border-top: 1px solid var(--salvia-clara);
}
.lista-tratamentos li:last-child { border-bottom: 1px solid var(--salvia-clara); }
.lista-tratamentos h3 { font-family: var(--titulo); font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; color: var(--tinta); }
.lista-tratamentos p { max-width: 58ch; }
.para-quem { margin-top: 10px; color: var(--texto-suave); font-size: 1rem; }
@media (min-width: 860px) {
  .lista-tratamentos li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; padding: 40px 0; align-items: start; }
}

/* Sobre */
.sobre { background: var(--mata); color: #F3ECE8; }
.faixa.sobre > * { max-width: none; margin: 0; }
.sobre-foto { aspect-ratio: 1088 / 1344; border-radius: 6px; background: #47634F; color: #6E8A76; max-width: 460px; width: 100%; }
.sobre-foto.sem-foto::after { color: #DDE6DF; }
.sobre-texto { max-width: 680px; }
.sobre h2 { color: var(--rose-claro); }
.sobre-texto p { margin-top: 22px; }
.sobre blockquote { margin: 34px 0 10px; padding-left: 22px; border-left: 2px solid var(--rose); }
.sobre blockquote p { margin: 0; font-family: var(--titulo); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--branco); }
.link-claro { display: inline-block; margin-top: 30px; color: var(--rose-claro); text-underline-offset: 5px; }
.link-claro:hover { color: var(--branco); }
@media (min-width: 860px) {
  .faixa.sobre { padding-left: max(var(--margem), calc((100vw - var(--largura)) / 2)); padding-right: max(var(--margem), calc((100vw - var(--largura)) / 2)); }
}

/* Passos da primeira consulta (sequência real, por isso numerada) */
.lista-passos { counter-reset: passo; display: grid; gap: 34px; }
.lista-passos li { counter-increment: passo; padding-top: 18px; border-top: 1px solid var(--salvia); }
.lista-passos li::before {
  content: counter(passo);
  display: block; font-family: var(--titulo); font-size: 2.75rem; line-height: 1; color: var(--rose); margin-bottom: 14px;
}
.lista-passos h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 6px; }
.lista-passos p { color: var(--texto-suave); font-size: 1rem; }
@media (min-width: 620px) { .lista-passos { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .lista-passos { grid-template-columns: repeat(4, 1fr); } }

/* Guia "por onde começar" */
.comecar { background: var(--rose-claro); }
.comecar .cabeca h2 { color: var(--tinta); }
.comecar .cabeca p { color: var(--tinta); }
.guia { display: grid; gap: 34px; }
.guia legend { font-weight: 600; margin-bottom: 14px; padding: 0; }
.opcoes { display: flex; flex-wrap: wrap; gap: 10px; }
.opcoes label { position: relative; cursor: pointer; }
.opcoes input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcoes span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  background: color-mix(in srgb, var(--branco) 60%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--rose) 45%, transparent);
  border-radius: 999px; font-size: 1rem;
  transition: background-color .15s, color .15s, border-color .15s;
}
.opcoes label:hover span { border-color: var(--rose); }
.opcoes input:checked + span { background: var(--mata); border-color: var(--mata); color: var(--branco); }
.opcoes input:focus-visible + span { outline: 2px solid var(--mata); outline-offset: 3px; }
.guia-saida {
  background: var(--branco); border-radius: 18px 18px 18px 4px;
  padding: clamp(22px, 3vw, 32px); max-width: 620px;
}
.guia-rotulo { font-size: .875rem; color: var(--texto-suave); margin-bottom: 8px; }
.guia-mensagem { font-size: 1.125rem; margin-bottom: 22px; }

/* Consultório */
.galeria { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.galeria .foto { border-radius: 6px; aspect-ratio: 4 / 5; }
.galeria .foto-larga { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
@media (min-width: 860px) {
  .galeria { grid-template-columns: 2fr 1fr 1fr; }
  .galeria .foto, .galeria .foto-larga { grid-column: auto; aspect-ratio: auto; height: 440px; }
}
.onde { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 28px; }
.onde address { font-style: normal; font-size: 1.125rem; line-height: 1.7; }
.onde address strong { font-family: var(--titulo); font-weight: 400; font-size: 1.75rem; color: var(--mata); }
.onde-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.mapa { width: 100%; height: 340px; border: 0; border-radius: 6px; background: var(--salvia-clara); }
@media (min-width: 860px) { .onde { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: center; } }

/* Dúvidas */
.duvidas { background: var(--branco); }
.lista-duvidas { max-width: 820px; margin-left: 0; }
@media (min-width: 860px) { .faixa.duvidas > .lista-duvidas { margin-left: max(0px, calc((100% - var(--largura)) / 2)); } }
.lista-duvidas details { border-top: 1px solid var(--salvia-clara); }
.lista-duvidas details:last-child { border-bottom: 1px solid var(--salvia-clara); }
.lista-duvidas summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.1875rem; font-weight: 500;
}
.lista-duvidas summary::-webkit-details-marker { display: none; }
.lista-duvidas summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--rose), var(--rose)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--rose), var(--rose)) center / 1.5px 100% no-repeat;
  transition: transform .2s;
}
.lista-duvidas details[open] summary::after { transform: rotate(45deg); }
.lista-duvidas details p { padding: 0 0 26px; max-width: 62ch; color: var(--texto-suave); }

/* Chamada final */
.chamada { padding: clamp(72px, 10vw, 140px) var(--margem); text-align: center; }
.chamada h2 { color: var(--mata); margin: 0 auto; max-width: 14ch; }
.chamada p { margin: 20px auto 32px; color: var(--texto-suave); }

/* Rodapé */
.rodape {
  background: var(--tinta); color: #D9E0DA;
  padding: 56px var(--margem) 110px;
  display: grid; gap: 28px; font-size: .9375rem;
}
.rodape .marca-nome { color: var(--branco); }
.rodape .marca-sub { color: var(--rose-claro); }
.rodape .marca { margin-bottom: 16px; }
.rodape a { text-underline-offset: 4px; }
.rodape a:hover { color: var(--branco); }
@media (min-width: 760px) {
  .rodape { grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 56px; padding-left: max(var(--margem), calc((100vw - var(--largura)) / 2)); padding-right: max(var(--margem), calc((100vw - var(--largura)) / 2)); align-items: end; }
}

/* Barra fixa no celular */
.barra-whats {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  background: var(--mata); color: var(--branco); border-radius: 999px;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(36, 51, 43, .28);
  transform: translateY(140%); transition: transform .3s ease;
}
.barra-whats.visivel { transform: none; }
@media (min-width: 760px) { .barra-whats { display: none; } }
@media (prefers-reduced-motion: reduce) { .barra-whats { transition: none; } }

/* Áreas de toque confortáveis no celular */
.link-quieto, .link-claro, .rodape a { display: inline-block; padding: 11px 0; }
.rodape p { line-height: 1.5; }
