/* Dra. Vitória Oliveira — landing page
   Brand: branco #FFFFFF, areia #C8B9AD, gradiente dourado. Fontes: Dastin (display) + Montserrat.
   Dastin is a commercial font: drop the files in /fonts and uncomment the @font-face below. */

/*
@font-face {
  font-family: "Dastin";
  src: url("../fonts/Dastin.woff2") format("woff2");
  font-display: swap;
}
*/

/* Self-hosted Google Fonts (SIL Open Font License 1.1), latin subset only:
   no extra connection to Google before the text can render.
   Montserrat is a variable font: one file covers weights 300 to 600. */
@font-face {
  font-family: "Italiana";
  src: url("../assets/fonts/italiana-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  --branco: #ffffff;
  --areia: #c8b9ad;
  --areia-clara: #ede7e1;
  --tinta: #2e2620;
  --taupe: #6f6054;
  --bronze: #8b663e;
  --preto: #000000;
  --ouro: linear-gradient(160deg, #f7ebc4 0%, #d9bd86 30%, #a9824c 62%, #e7d3a2 100%);

  --f-display: "Dastin", "Italiana", "Didot", serif;
  --f-texto: "Montserrat", system-ui, sans-serif;

  /* type scale, ratio 1.333 */
  --t-0: 0.8125rem;
  --t-1: 1rem;
  --t-2: 1.333rem;
  --t-3: 1.777rem;
  --t-4: 2.369rem;
  --t-5: clamp(2.2rem, 4.6vw, 3.157rem);
  --t-6: clamp(2.9rem, 7vw, 5.6rem);

  --borda: 1px solid rgba(46, 38, 32, 0.14);
  --gutter: clamp(20px, 5vw, 56px);
  --secao: clamp(80px, 11vw, 150px);
  --max: 1220px;
}

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

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

body {
  margin: 0;
  font-family: var(--f-texto);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: var(--t-5); }
h3 { font-weight: 500; font-size: var(--t-1); line-height: 1.4; }
p { max-width: 62ch; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: var(--branco); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Placeholder content waiting for the client's real text */
.placeholder { color: var(--taupe); outline: 1px dashed rgba(139, 102, 62, 0.45); outline-offset: 4px; }

/* ---------- buttons & links ---------- */

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-texto); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.botao svg { width: 20px; height: 20px; flex: none; }
.botao--escuro { background: var(--tinta); color: var(--branco); border: 1px solid var(--tinta); }
.botao--escuro:hover { background: var(--bronze); border-color: var(--bronze); }
.botao--contorno { border: 1px solid var(--tinta); color: var(--tinta); background: transparent; }
.botao--contorno:hover { background: var(--tinta); color: var(--branco); }

.link-sublinhado {
  font-weight: 500; font-size: 0.9375rem; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 3px; transition: background-size .25s;
}
.link-sublinhado:hover { background-size: 40% 1px; }
.link-sublinhado--claro { color: var(--areia); }

/* ---------- arch ("espelho") frame: the page's signature shape ---------- */

.arco { position: relative; isolation: isolate; }
.arco > picture > img,
.arco .comparador__janela {
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
}
.arco > picture > img { width: 100%; aspect-ratio: 4 / 5.4; object-fit: cover; }
.arco__moldura {
  position: absolute; inset: -14px -14px 28px 14px; z-index: -1;
  border-radius: 999px 999px 4px 4px;
  padding: 1px;
  background: var(--ouro);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- header ---------- */

.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topo.is-rolado { border-bottom-color: rgba(46, 38, 32, 0.1); }
.topo__inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.topo__logo img { width: auto; height: 46px; }
.topo__nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.875rem; }
.topo__nav a { text-decoration: none; padding: 6px 0; }
.topo__nav a:hover { color: var(--bronze); }
.topo__cta { min-height: 44px; padding: 10px 20px; font-size: 0.875rem; }
.topo__menu { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) var(--secao);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.hero__titulo { font-size: var(--t-6); max-width: 11ch; }
.hero__sub { margin-top: 28px; font-size: 1.0625rem; color: var(--taupe); max-width: 46ch; }
.hero__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 40px; }
.hero__nota { margin-top: 28px; font-size: var(--t-0); color: var(--taupe); }
.hero__foto { max-width: 460px; justify-self: end; width: 100%; }
.hero__monograma {
  position: absolute; z-index: -1; width: min(70vw, 820px);
  left: -12%; bottom: -18%; opacity: 0.08; pointer-events: none;
}

/* the one orchestrated motion moment: the mirror frame draws in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__foto img { animation: surgir 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero__foto .arco__moldura { animation: moldura 1.4s .35s cubic-bezier(.2,.7,.2,1) both; }
  .hero__texto > * { animation: surgir .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__texto > :nth-child(2) { animation-delay: .1s; }
  .hero__texto > :nth-child(3) { animation-delay: .2s; }
  .hero__texto > :nth-child(4) { animation-delay: .3s; }
}
@keyframes surgir { from { opacity: 0; transform: translateY(14px); } }
@keyframes moldura { from { opacity: 0; transform: translate(-14px, 14px); } }

/* ---------- espelho ---------- */

.espelho { background: var(--areia-clara); padding: var(--secao) var(--gutter); }
.espelho__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(40px, 8vw, 120px); align-items: center;
}
.espelho__foto { max-width: 380px; }
.queixas { margin: 40px 0; border-top: var(--borda); }
.queixas li {
  font-family: var(--f-display); font-size: var(--t-3); line-height: 1.25;
  padding: 18px 0; border-bottom: var(--borda);
}
.espelho__texto > p { color: var(--taupe); }

/* ---------- sobre ---------- */

.sobre { max-width: var(--max); margin: 0 auto; padding: var(--secao) var(--gutter); }
.sobre__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 8vw, 120px); align-items: center;
}
.sobre__texto h2 { margin-bottom: 32px; }
.sobre__texto p + p { margin-top: 18px; }
.sobre__texto p { color: var(--taupe); }
.sobre__foto { max-width: 420px; justify-self: end; width: 100%; }
.credenciais { margin-top: 40px; display: grid; gap: 14px; }
.credenciais div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 14px; border-top: var(--borda); }
.credenciais dt { font-size: var(--t-0); font-weight: 500; color: var(--bronze); }
.credenciais dd { font-size: 0.9375rem; }

/* about photos: one-row carousel (scroll-snap), 4 visible on desktop */
.bastidores { margin-top: var(--secao); --gap-b: clamp(12px, 2vw, 24px); --vis: 4; }
.bastidores__trilho {
  display: flex; gap: var(--gap-b);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
  /* room for the reveal rise, which would otherwise be clipped */
  padding-bottom: 26px; margin-bottom: -22px;
}
.bastidores__trilho::-webkit-scrollbar { display: none; }
.bastidores__trilho:focus-visible { outline-offset: 6px; }
.bastidores__trilho > li {
  flex: 0 0 calc((100% - (var(--vis) - 1) * var(--gap-b)) / var(--vis));
  min-width: 0; scroll-snap-align: start;
}
.bastidores img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.bastidores__trilho li > span { display: block; margin-top: 12px; font-size: var(--t-0); color: var(--taupe); }
.bastidores__controles { margin-top: 28px; display: flex; align-items: center; gap: 10px; }
.bastidores__progresso { flex: 1; height: 1px; background: rgba(46, 38, 32, 0.15); margin-right: 14px; position: relative; overflow: hidden; }
.bastidores__progresso span {
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  margin-top: 0; background: var(--ouro);
  transition: left .2s linear, width .2s linear;
}
.bastidores__seta {
  width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; color: var(--tinta); border: 1px solid rgba(46, 38, 32, 0.25);
  transition: background-color .2s, color .2s, opacity .2s;
}
.bastidores__seta svg { width: 18px; height: 18px; }
.bastidores__seta:hover:not(:disabled) { background: var(--tinta); color: var(--branco); }
.bastidores__seta:disabled { opacity: .3; cursor: default; }
.bastidores.sem-rolagem .bastidores__controles { display: none; }

/* ---------- processo ---------- */

.processo { background: var(--areia); padding: var(--secao) var(--gutter); }
.processo__inner { max-width: var(--max); margin: 0 auto; }
.processo h2 { max-width: 14ch; }
.passos {
  margin-top: 64px; counter-reset: passo;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(46, 38, 32, 0.25);
}
.passos li { counter-increment: passo; padding: 28px 28px 0 0; }
.passos li + li { padding-left: 28px; border-left: 1px solid rgba(46, 38, 32, 0.25); }
.passos li::before {
  content: counter(passo);
  display: block; font-family: var(--f-display); font-size: var(--t-5); line-height: 1;
  margin-bottom: 22px; color: var(--tinta);
}
.passos h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.passos p { font-size: 0.9375rem; }

/* ---------- procedimentos: mapa do rosto ---------- */

.procedimentos { background: var(--areia-clara); padding: var(--secao) var(--gutter); }
.procedimentos__inner { max-width: var(--max); margin: 0 auto; }
.procedimentos__cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.procedimentos__cabeca p { color: var(--taupe); max-width: 40ch; }
.procedimentos__grid {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start;
}

/* The map is the face profile from the brand monogram, cropped to the face (340x400 of an 800px render). */
/* overflow: clip (not hidden) so focusing a hotspot never scrolls the artwork inside the frame */
.mapa { position: relative; width: 100%; max-width: 500px; aspect-ratio: 340 / 400; overflow: hidden; overflow: clip; margin: 0 auto; }
.mapa__arte { position: absolute; width: 235.3%; max-width: none; height: auto; left: -88.2%; top: -45%; pointer-events: none; }
.ponto {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--tinta);
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.ponto::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--branco); border: 1.5px solid var(--bronze);
  box-shadow: 0 0 0 5px rgba(139, 102, 62, 0.14);
  transition: background .2s, box-shadow .2s;
}
.ponto span { order: 2; background: rgba(237, 231, 225, 0.88); padding: 2px 8px; border-radius: 999px; }
.ponto--esq { flex-direction: row-reverse; transform: translate(calc(-100% + 13px), -50%); }
.ponto--dir { transform: translate(-13px, -50%); }
.ponto:hover::before { box-shadow: 0 0 0 8px rgba(139, 102, 62, 0.18); }
.ponto[aria-pressed="true"]::before { background: var(--bronze); box-shadow: 0 0 0 8px rgba(139, 102, 62, 0.22); }
.ponto[aria-pressed="true"] span { color: var(--bronze); }
@media (prefers-reduced-motion: no-preference) {
  .ponto[aria-pressed="false"]::before { animation: pulso 2.4s ease-in-out infinite; }
  .ponto:nth-of-type(2)::before { animation-delay: .4s; }
  .ponto:nth-of-type(3)::before { animation-delay: .8s; }
  .ponto:nth-of-type(4)::before { animation-delay: 1.2s; }
  .ponto:nth-of-type(5)::before { animation-delay: 1.6s; }
  .ponto:nth-of-type(6)::before { animation-delay: 2s; }
}
@keyframes pulso { 50% { box-shadow: 0 0 0 9px rgba(139, 102, 62, 0.06); } }

.mapa__extras { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mapa__extras button, .depoimentos__escolha button {
  border: 1px solid rgba(46, 38, 32, 0.25); background: var(--branco); cursor: pointer;
  border-radius: 999px; padding: 10px 20px; font-size: 0.8125rem; font-weight: 500;
}
.mapa__extras button[aria-pressed="true"],
.depoimentos__escolha button[aria-pressed="true"] { background: var(--tinta); color: var(--branco); border-color: var(--tinta); }

.painel-mapa { background: var(--branco); border-radius: 4px; padding: clamp(24px, 4vw, 40px); transition: height .4s cubic-bezier(.2, .7, .2, 1); }
.painel-mapa.is-trocando { overflow: hidden; }
.painel-mapa__conteudo { transition: opacity .2s ease, transform .25s ease; }
.painel-mapa__conteudo.is-saindo { opacity: 0; transform: translateY(8px); }
.painel-mapa__regiao { font-size: var(--t-0); color: var(--bronze); font-weight: 500; margin-bottom: 8px; }
.painel-mapa h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-4); line-height: 1.1; }
.painel-mapa__texto { margin-top: 14px; color: var(--taupe); }
.painel-mapa__procs { margin-top: 18px; display: grid; gap: 10px; }
.painel-mapa__procs li { padding-top: 10px; border-top: var(--borda); font-size: 0.9375rem; }
.painel-mapa__procs strong { font-weight: 500; display: block; }
.painel-mapa__procs span { color: var(--taupe); }
.painel-mapa__midia { margin: 22px auto 0; max-width: 360px; }
.painel-mapa .botao { display: flex; width: fit-content; margin: 26px auto 0; }

.par { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.par figure { position: relative; }
.par img, .foto-unica { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.par figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: var(--branco); font-size: 0.6875rem; font-weight: 500;
}

/* ---------- resultados (black) ---------- */

.resultados { background: var(--preto); color: var(--branco); padding: var(--secao) var(--gutter); }
.resultados__inner { max-width: var(--max); margin: 0 auto; }
.resultados__cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.resultados__cabeca p { color: var(--areia); max-width: 38ch; }
.resultados__grid {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(48px, 8vw, 120px); align-items: center;
}

.comparador { max-width: 480px; width: 100%; justify-self: center; }
.comparador .arco__moldura { inset: -16px -16px 32px 16px; }
.comparador__janela { position: relative; aspect-ratio: 4 / 5; background: #1a1a1a; }
.comparador__janela img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--obj, 50% 50%);
  user-select: none; -webkit-user-drag: none;
}
.comparador__antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparador__linha {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; margin-left: -0.5px;
  background: var(--branco); pointer-events: none;
}
.comparador__linha::after {
  content: "\2039\2003\203A";
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--branco);
  background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px);
  color: var(--branco); font-size: 1.25rem; line-height: 1; letter-spacing: -0.1em;
}
.comparador__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.comparador__range:focus-visible + .comparador__linha,
.comparador:has(.comparador__range:focus-visible) .comparador__janela { outline: 2px solid var(--areia); outline-offset: 4px; }
.rotulo {
  position: absolute; bottom: 16px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.55); color: var(--branco); backdrop-filter: blur(4px);
}
.rotulo--antes { left: 16px; }
.rotulo--depois { right: 16px; }

.casos__titulo { font-size: var(--t-0); color: var(--areia); margin-bottom: 14px; }
.casos__lista { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.casos__lista button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62); cursor: pointer; text-align: left;
  font-family: var(--f-display); font-size: var(--t-3); line-height: 1.2; padding: 14px 0;
  transition: color .2s;
}
.casos__lista button::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid currentColor; transition: background .2s;
}
.casos__lista button:hover { color: var(--branco); }
.casos__lista button[aria-pressed="true"] { color: var(--branco); }
.casos__lista button[aria-pressed="true"]::after { background: var(--ouro); border-color: #d9bd86; }
.resultados__aviso { margin: 28px 0 22px; font-size: var(--t-0); color: rgba(255, 255, 255, 0.6); }

/* ---------- depoimentos ---------- */

.depoimentos { background: var(--areia-clara); padding: var(--secao) var(--gutter); overflow-x: clip; }
.depoimentos__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(40px, 8vw, 120px); align-items: center;
}
/* deck of video cards, as in the client's sketch: same size, no tilt, the card behind sits up
   and to the right. Both share one grid cell and the offsets are transforms, so they animate.
   On a swap the front card slides out to the left and settles behind while the other comes
   forward. The card behind replaces the gold frame here. */
.baralho {
  --atras: translate(28%, -11%);
  container-type: inline-size;
  display: grid; width: calc(100% + 32px); max-width: 440px;
}
.baralho__carta {
  grid-area: 1 / 1; width: 78%;
  margin-top: 15.5cqw; /* room for the card behind: 11% of a 9:16 card that is 78% of the deck */
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
.baralho__carta.is-frente { z-index: 2; }
.baralho__carta.is-atras { z-index: 1; transform: var(--atras); filter: brightness(.9) saturate(.75); cursor: pointer; }
/* hover only brightens: moving the card would slide it out from under the cursor */
.baralho__carta.is-atras:hover { filter: brightness(.97) saturate(.9); }
.baralho__carta video { box-shadow: 0 14px 32px -14px rgba(46, 38, 32, 0.45); }
.baralho__carta.is-saindo { animation: baralho-sai .8s both; }
@keyframes baralho-sai {
  0%   { transform: none; z-index: 3; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  40%  { transform: translate(-42%, 3%); z-index: 3; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  50%  { z-index: 0; }
  100% { transform: var(--atras); z-index: 0; filter: brightness(.9) saturate(.75); }
}
/* height: auto lets the 9:16 ratio win over the height attribute, so the clip is never stretched or cropped */
.depoimentos__video video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 999px 999px 4px 4px; background: var(--areia);
}
.depoimentos__escolha { margin-top: 24px; max-width: 380px; display: flex; flex-wrap: wrap; gap: 8px; }
.depoimentos__texto h2 { margin-bottom: 36px; }
.depoimentos blockquote { padding: 24px 0; border-top: var(--borda); }
.depoimentos blockquote p { font-family: var(--f-display); font-size: var(--t-2); line-height: 1.4; }
/* darker than --bronze: small text on the light band needs 4.5:1 */
.depoimentos blockquote footer { margin-top: 10px; font-size: var(--t-0); color: #7d5b36; font-weight: 500; }

/* ---------- dúvidas ---------- */

.duvidas { padding: var(--secao) var(--gutter); }
.duvidas__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 7vw, 100px); align-items: start;
}
.duvidas__lado { position: sticky; top: 110px; }
.duvidas h2 { max-width: 9ch; }
.duvidas__foto { margin-top: 40px; max-width: 320px; }
.duvidas__mais { margin-top: 28px; font-size: 0.9375rem; color: var(--taupe); }
.duvidas__mais .link-sublinhado { color: var(--tinta); }
.faq { border-top: var(--borda); }
.faq details { border-bottom: var(--borda); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 500; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--tinta), var(--tinta)) center / 14px 1px no-repeat,
    linear-gradient(var(--tinta), var(--tinta)) center / 1px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--taupe); }

/* ---------- agendar ---------- */

.agendar { background: var(--tinta); color: var(--areia-clara); padding: var(--secao) var(--gutter); }
.agendar__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start;
}
.agendar h2 { font-size: var(--t-5); max-width: 14ch; color: var(--branco); }
.agendar__texto > p { margin-top: 24px; font-size: 1.0625rem; max-width: 40ch; color: rgba(237, 231, 225, 0.8); }
/* live preview of the message: a chat bubble in the brand's colours */
.previa { margin-top: 44px; max-width: 400px; }
/* room for the bubble to grow (long name, long concern) without changing the section's height */
@media (min-width: 921px) { .previa { min-height: 262px; } }
.previa__rotulo { font-size: var(--t-0); color: var(--areia); margin-bottom: 10px; }
.previa__balao {
  position: relative; padding: 16px 18px; border-radius: 18px 18px 4px 18px;
  background: var(--areia-clara); color: var(--tinta);
  font-size: 0.9375rem; line-height: 1.55;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.previa__balao p { margin-bottom: 10px; }
.previa__linha { display: block; }
.previa__balao strong { font-weight: 600; }
.agenda {
  color: var(--tinta);
  width: 100%; max-width: 460px; justify-self: end;
  padding: clamp(24px, 4vw, 36px);
  background: var(--branco); border-radius: 28px;
  display: grid; gap: 20px;
}
.agenda__campo { display: grid; gap: 8px; }
.agenda label { font-size: 0.875rem; font-weight: 500; }
.agenda label span { font-weight: 400; color: var(--taupe); }
.agenda input:not([type="radio"]), .agenda select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--tinta); /* 16px: iOS does not zoom in on focus */
  background: var(--areia-clara); border: 1px solid rgba(46, 38, 32, 0.2); border-radius: 14px;
  transition: border-color .2s, background-color .2s;
}
.agenda input::placeholder { color: #85776b; opacity: 1; }
.agenda select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6054' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.agenda input:not([type="radio"]):hover, .agenda select:hover { border-color: rgba(46, 38, 32, 0.4); }
.agenda input:not([type="radio"]):focus, .agenda select:focus { background-color: var(--branco); border-color: var(--bronze); }
/* error shown only after a submit attempt (the class), not while the visitor is still typing */
.agenda.is-validando input:invalid { border-color: #9b3b2f; }
.agenda .botao { width: 100%; margin-top: 4px; }
.agenda__enviado:empty { display: none; }
.agenda__enviado {
  padding: 14px 18px; border-radius: 14px; text-align: center;
  font-size: 0.875rem; line-height: 1.55;
  background: var(--areia-clara); border: 1px solid rgba(139, 102, 62, 0.45);
}
.agenda__enviado .link-sublinhado { font-size: inherit; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .agenda__enviado.is-visivel { animation: agenda-aparece .35s var(--ease) both; }
}
@keyframes agenda-aparece { from { opacity: 0; transform: translateY(-4px); } }
.agenda__nota { font-size: var(--t-0); color: var(--taupe); text-align: center; line-height: 1.5; }
.agenda__formato { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.agenda__formato legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; }
.agenda__formato legend span { font-weight: 400; color: var(--taupe); }
.agenda__formato label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 1px solid rgba(46, 38, 32, 0.25); border-radius: 999px; cursor: pointer;
  font-weight: 400; font-size: 0.9375rem;
}
.agenda__formato label:has(input:checked) { background: var(--tinta); color: var(--branco); border-color: var(--tinta); }
.agenda__formato input { accent-color: var(--bronze); width: 16px; height: 16px; margin: 0; }

/* ---------- contato ---------- */

.contato {
  background-color: var(--areia);
  background-image: url("../assets/brand/monograma.svg");
  background-size: 120px auto; background-repeat: space;
  position: relative; padding: var(--secao) var(--gutter);
}
.contato::before { content: ""; position: absolute; inset: 0; background: rgba(200, 185, 173, 0.9); }
.contato__grid {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 8vw, 120px); align-items: center;
}
.contato h2 { font-size: var(--t-6); max-width: 12ch; }
.contato__texto > p { margin-top: 24px; font-size: 1.0625rem; max-width: 40ch; }
.contato__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.endereco {
  font-style: normal; margin-top: 44px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem;
}
.endereco svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--bronze); }
.endereco .link-sublinhado { display: inline-block; margin-top: 6px; }
.endereco__online { display: block; margin-top: 14px; font-weight: 500; }
.contato__foto { max-width: 400px; justify-self: end; width: 100%; }

/* ---------- rodapé ---------- */

.rodape { background: var(--preto); color: rgba(255, 255, 255, 0.72); padding: 64px var(--gutter) 96px; font-size: var(--t-0); }
.rodape__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; justify-items: center; gap: 28px; text-align: center;
}
.rodape__selo { width: 120px; }
.rodape__info p + p { margin-top: 4px; }
.rodape__info .placeholder { color: rgba(255, 255, 255, 0.55); outline-color: rgba(200, 185, 173, 0.4); }
.rodape__redes { display: flex; justify-content: center; gap: 24px; }
.rodape__redes a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--branco); }
.rodape__redes a:hover { color: var(--areia); }
.rodape__redes svg { width: 18px; height: 18px; }

/* ---------- floating WhatsApp ---------- */

.flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tinta); color: var(--branco);
  box-shadow: 0 10px 30px -10px rgba(46, 38, 32, 0.6);
  border: 1px solid rgba(217, 189, 134, 0.6);
  transition: opacity .3s, transform .3s, background-color .2s, visibility 0s;
}
.flutuante svg { width: 28px; height: 28px; }
.flutuante:hover { background: var(--bronze); }
/* hidden also from Tab: an invisible link must not take keyboard focus (visibility waits for the fade) */
.flutuante.is-oculto { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }

/* ---------- motion ----------
   One vocabulary everywhere: a soft fade with a short rise, staggered per batch
   (main.js sets --atraso), and the gold arch frames sliding into place a beat
   later. Hidden states exist only under html.anima, which is added in <head>
   when the browser supports it and the visitor has not asked for less motion. */

:root { --ease: cubic-bezier(.2, .7, .2, 1); }

html.anima [data-revela] {
  transition: opacity .8s var(--ease) var(--atraso, 0ms), translate 1s var(--ease) var(--atraso, 0ms);
}
html.anima [data-revela]:not(.is-visivel) { opacity: 0; translate: 0 22px; }

/* the panel also animates its height when the region changes */
html.anima .procedimentos .painel-mapa {
  transition: height .4s var(--ease), opacity .8s var(--ease) var(--atraso, 0ms), translate 1s var(--ease) var(--atraso, 0ms);
}

/* arch photos settle in while their gold frame slides into place */
html.anima .arco[data-revela] > picture > img { transition: scale 1.4s var(--ease) var(--atraso, 0ms); }
html.anima .arco[data-revela]:not(.is-visivel) > picture > img { scale: 1.04; }
html.anima .arco[data-revela] .arco__moldura {
  transition: opacity 1s var(--ease) calc(var(--atraso, 0ms) + 250ms), translate 1.3s var(--ease) calc(var(--atraso, 0ms) + 250ms);
}
html.anima .arco[data-revela]:not(.is-visivel) .arco__moldura { opacity: 0; translate: -16px 16px; }

/* header gets a little more compact once the page scrolls */
.topo__inner { transition: padding .35s var(--ease); }
.topo__logo img { transition: height .35s var(--ease); }
.topo.is-rolado .topo__inner { padding-block: 8px; }
.topo.is-rolado .topo__logo img { height: 38px; }

/* before/after: crossfade when switching cases */
.comparador__janela img { transition: opacity .25s ease; }
.comparador__janela.is-trocando img { opacity: 0; }

/* FAQ answers open smoothly where the browser can animate to "auto" */
.faq details[open] p { animation: surgir .5s var(--ease) both; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* floating WhatsApp: one soft ring the first time it appears */
.flutuante::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(217, 189, 134, 0.9); opacity: 0; pointer-events: none;
}
.flutuante.is-chamando::after { animation: chamar 1.8s var(--ease) 2; }
@keyframes chamar { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .topo__nav { gap: 20px; }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .passos li:nth-child(3) { padding-left: 0; border-left: 0; }
  .passos li:nth-child(n+3) { margin-top: 32px; border-top: 1px solid rgba(46, 38, 32, 0.25); }
}

@media (max-width: 920px) {
  .topo__inner { gap: 16px; }
  .topo__logo img { height: 40px; }
  .topo__cta { margin-left: auto; }
  .topo__menu {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .topo__menu i { display: block; width: 22px; height: 1.5px; background: var(--tinta); transition: transform .25s; }
  .topo__menu[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .topo__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .topo__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--branco); border-bottom: var(--borda);
  }
  .topo__nav a { padding: 14px 0; font-size: 1rem; border-bottom: var(--borda); }
  .topo__nav.is-aberto { display: flex; }

  .hero, .espelho__grid, .sobre__grid, .procedimentos__grid, .resultados__grid,
  .depoimentos__grid, .duvidas__inner, .contato__grid, .agendar__grid { grid-template-columns: 1fr; }
  /* one column: the preview goes below the form, so a growing bubble never pushes the fields */
  .agendar__grid { row-gap: 0; }
  .agendar__texto { display: contents; }
  .agenda { justify-self: stretch; max-width: 520px; margin-top: 36px; }
  .previa { order: 1; margin-top: 32px; }

  .hero { padding-top: 32px; }
  .hero__foto { justify-self: center; max-width: 360px; order: -1; margin: 10px 14px 0 0; }
  .hero__titulo { max-width: 12ch; }

  .espelho__foto { justify-self: center; max-width: 320px; margin-top: 14px; }
  .sobre__foto, .contato__foto { justify-self: center; max-width: 340px; margin-left: 14px; }
  .hero__foto, .espelho__foto, .sobre__foto, .contato__foto { width: calc(100% - 28px); }
  .bastidores { --vis: 2.4; }
  /* on narrower screens the strip bleeds to the screen edges */
  .bastidores__trilho { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

  .comparador { max-width: 400px; }
  .baralho { width: 100%; max-width: 400px; margin-inline: auto; }
  .depoimentos__escolha { justify-content: center; margin-inline: auto; }
  .duvidas__lado { position: static; }
  .duvidas h2 { max-width: none; }
  .duvidas__foto { max-width: 260px; margin: 32px auto 0; }
  .duvidas__mais { display: none; }
}

@media (max-width: 600px) {
  /* icon only, but the text stays for screen readers (it is the link's name) */
  .topo__cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topo__cta { width: 44px; padding: 0; }
  .passos { grid-template-columns: 1fr; }
  .passos li, .passos li + li { padding: 24px 0 0; border-left: 0; }
  .passos li + li { margin-top: 24px; border-top: 1px solid rgba(46, 38, 32, 0.25); }
  .ponto { font-size: 0.75rem; }
  .queixas li { font-size: var(--t-2); }
  .hero__acoes .botao, .contato__acoes .botao { width: 100%; }
  .credenciais div { grid-template-columns: 1fr; gap: 2px; }
  .bastidores { --vis: 1.45; }
  .contato__foto { display: none; }
}

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