/* Giovana Dambrós Bergamin · site one-page · mobile primeiro (390×844) */
:root {
  --creme: #F6EFEA;
  --branco: #FDFBF9;
  --rose: #AC857E;
  --rose-claro: #E6CFC7;
  --rose-texto: #855E57;
  --cinza: #58595B;
  --salvia: #688C6E;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lado: 20px;
  --max: 1180px;
  --raio: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--cinza);
  font: 400 17px/1.6 var(--sans);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; color: var(--rose-texto); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 9vw, 60px); }
h3 { font-size: 25px; }
p { margin: 0 0 1em; }
em { font-style: italic; font-family: var(--serif); }
a { color: inherit; }
figure { margin: 0; }
address { font-style: normal; }

.pular { position: absolute; left: -999px; top: 8px; background: var(--rose-texto); color: #fff; padding: 10px 16px; border-radius: 99px; z-index: 100; }
.pular:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose-texto); outline-offset: 3px; border-radius: 4px; }

.secao { padding: 96px var(--lado); max-width: var(--max); margin: 0 auto; }
.rotulo {
  position: relative;
  font: 600 13px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-texto);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.rotulo::before { content: ""; width: 28px; height: 1px; background: var(--rose); }
.falta { display: inline-block; font-size: 14px; color: var(--rose-texto); border: 1px dashed var(--rose); border-radius: 6px; padding: 2px 8px; }

/* botões (toque ≥ 48 px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.btn-wa { background: var(--rose-texto); color: #fff; box-shadow: 0 10px 30px -12px rgba(133, 94, 87, .7); }
.btn-wa:hover { background: #6f4c46; transform: translateY(-2px); }
.btn-linha { border: 1.5px solid var(--rose-texto); color: var(--rose-texto); }
.btn-linha:hover { background: var(--rose-texto); color: #fff; }
.btn-grande { min-height: 60px; padding: 18px 34px; font-size: 18px; }
.ic-wa { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; flex: none; }

/* ---------- loader: o G se desenha ---------- */
.loader { display: none; }
.com-loader .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 90;
  background: var(--creme);
  animation: loader-fora 0s 2.5s forwards; /* rede de segurança se o JS não vier */
}
@keyframes loader-fora { to { visibility: hidden; } }
.loader .logo-marca { width: min(46vw, 210px); height: auto; fill: var(--rose); stroke: var(--rose); stroke-width: .8; }

/* ---------- borboleta (fio condutor) ---------- */
.borboleta {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 30px; height: 26px;
  margin: -13px 0 0 -15px;
  pointer-events: none;
  color: var(--rose);
  opacity: 0;
  transition: color .5s ease;
  will-change: transform;
}
.borboleta.clara { color: #fff; }
.borboleta svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.borboleta .asa path:not(.veio) { fill: currentColor; fill-opacity: .1; }
.borboleta .veio { stroke-width: 1; opacity: .7; }
.anim .borboleta { opacity: 1; }
.pouso { position: absolute; width: 1px; height: 1px; pointer-events: none; }

/* ---------- 1 · hero ---------- */
.hero {
  --p: min(64vw, 300px);
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--lado) 40px;
  text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, var(--branco) 0%, var(--creme) 70%);
}
.hero-foto { position: relative; width: var(--p); margin-bottom: 30px; }
.hero-moldura {
  width: var(--p); aspect-ratio: 3 / 3.9;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background: var(--rose-claro);
  box-shadow: 0 30px 60px -30px rgba(133, 94, 87, .55);
}
.hero-moldura img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.arco {
  position: absolute; left: 50%; z-index: 2;
  width: calc(var(--p) * 1.14 * 236 / 228);
  top: calc(var(--p) * -0.07 - var(--p) * 1.14 * 41 / 228);
  transform: translateX(-50%);
  pointer-events: none;
}
.arco .logo-marca { width: 100%; height: auto; fill: var(--rose); stroke: var(--rose); stroke-width: .6; overflow: visible; }
.anim .arco .logo-marca path { stroke-width: 1.4; }
.arco [data-p="g"], .arco [data-p="ponto"] { display: none; }
.pouso-hero { left: 60%; top: 3%; }

.hero-cargo { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose-texto); margin-bottom: 14px; }
.hero-nome { font-size: clamp(40px, 11.5vw, 84px); font-weight: 320; line-height: 1.02; margin-bottom: 16px; }
.hero-nome .linha { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-nome .linha > span { display: inline-block; }
.hero-nome .linha + .linha > span { font-style: normal; font-weight: inherit; }
.hero-frase { font-size: 18px; max-width: 30ch; margin: 0 auto 26px; }
.hero-local { font-size: 14px; margin: 16px 0 0; color: var(--cinza); }

/* ---------- 2 · a virada ---------- */
.virada { background: var(--cinza); color: #fff; }
.virada-palco {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 80px var(--lado);
}
.virada-frase {
  grid-area: 1 / 1;
  margin: 0; max-width: 15ch;
  font: 320 clamp(36px, 10vw, 76px)/1.08 var(--serif);
  text-align: center;
  letter-spacing: -0.015em;
}
.virada-frase em { color: inherit; }
.virada-pontos { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.virada-pontos i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .35; }
.virada-pontos i.on { opacity: 1; }
.pouso-virada { right: 32px; top: 22%; }
/* sem animação: as 3 frases em pilha */
html:not(.anim) .virada-palco { display: flex; flex-direction: column; justify-content: center; gap: 40px; }
html:not(.anim) .virada-pontos { display: none; }

/* ---------- 3 · sobre ---------- */
.sobre { display: grid; gap: 44px; }
.sobre-foto { position: relative; border-radius: var(--raio); overflow: hidden; aspect-ratio: 3 / 4; max-width: 460px; }
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }
.sobre-pb { position: absolute; inset: 0; filter: grayscale(1) contrast(1.05); }
html:not(.anim) .sobre-pb { display: none; }
.pouso-sobre { right: 0; top: 50%; }
.sobre h2 { margin-bottom: 22px; }
.corrido p { max-width: 46ch; }
.assinatura { font: italic 300 26px/1.2 var(--serif); color: var(--rose-texto); margin: 26px 0 30px; }
.fatos { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; border-top: 1px solid var(--rose-claro); padding-top: 22px; }
.fatos strong { display: block; font: 400 21px/1.1 var(--serif); color: var(--rose-texto); }
.fatos span { font-size: 13px; line-height: 1.3; display: block; margin-top: 4px; }

/* ---------- 4 · como funciona ---------- */
.como { padding-top: 40px; }
.como-topo { margin-bottom: 30px; }
.pouso-como { right: 0; top: 50%; }
.como-foto { border-radius: var(--raio); overflow: hidden; margin-bottom: 40px; aspect-ratio: 4 / 3; }
.como-foto img { width: 100%; height: 100%; object-fit: cover; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.passo {
  position: relative;
  background: var(--branco);
  border-radius: var(--raio);
  padding: 28px 24px 22px;
  box-shadow: 0 1px 0 var(--rose-claro), 0 20px 40px -32px rgba(88, 89, 91, .5);
}
.passo .ic { width: 52px; height: 52px; fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.passo .ic path, .passo .ic circle { stroke-dasharray: 1 1; }
.passo-n { position: absolute; top: 20px; right: 22px; overflow: hidden; font: italic 200 44px/1 var(--serif); color: var(--rose-texto); letter-spacing: -0.02em; }
.passo-n > span { display: inline-block; }
.passo h3 { margin-bottom: 8px; }
.passo p { margin: 0; }

/* ---------- 5 · para quem ---------- */
.praquem { background: var(--branco); }
.pq-trilho { padding: 96px var(--lado); max-width: var(--max); margin: 0 auto; display: grid; gap: 16px; }
.pq-intro { margin-bottom: 20px; }
.pq-intro h2 { margin-bottom: 16px; }
.pouso-pq { right: 0; top: 50%; }
.pq-foto { border-radius: var(--raio); overflow: hidden; margin-top: 28px; aspect-ratio: 1; max-width: 420px; }
.pq-foto img { width: 100%; height: 100%; object-fit: cover; }
.frente {
  border: 1px solid var(--rose-claro);
  border-radius: var(--raio);
  padding: 26px 24px;
  background: var(--creme);
}
.frente-n { display: block; font: italic 200 44px/1 var(--serif); color: var(--rose-texto); letter-spacing: -0.02em; margin-bottom: 22px; }
.frente h3::after { content: ""; display: block; width: 0; height: 1px; background: var(--rose); margin-top: 12px; transition: width 1s .25s cubic-bezier(.16, 1, .3, 1); }
.frente.visto h3::after, html:not(.anim) .frente h3::after { width: 44px; }
.frente h3 { font-size: 30px; margin-bottom: 10px; }
.frente p { margin: 0; }

/* ---------- 6 · o que você leva ---------- */
.leva { overflow: hidden; }
.leva-palco {
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr; align-items: center;
  padding: 80px var(--lado) 40px;
  max-width: var(--max); margin: 0 auto;
}
.leva-texto h2 { margin-bottom: 14px; }
.leva-texto p:last-child { max-width: 40ch; }
.pouso-leva { right: 0; top: 50%; }
.leque {
  --w: min(46vw, 220px);
  --ang: 4.5deg;
  position: relative;
  height: calc(var(--w) * 1.414 + 50px);
  margin-top: 28px;
  align-self: start;
}
.pagina {
  position: absolute; left: 50%; bottom: 20px;
  width: var(--w); aspect-ratio: 720 / 1018;
  margin-left: calc(var(--w) / -2);
  border-radius: 6px; overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(88, 89, 91, .55), 0 0 0 1px rgba(172, 133, 126, .25);
  transform-origin: 50% 160%;
}
.pagina img { width: 100%; height: 100%; object-fit: cover; }
.pagina:nth-child(1) { z-index: 4; } .pagina:nth-child(2) { z-index: 3; } .pagina:nth-child(3) { z-index: 2; } .pagina:nth-child(4) { z-index: 1; }
/* estado final (sem animação ou reduzido) */
.pagina:nth-child(1) { transform: rotate(calc(var(--ang) * -3)); }
.pagina:nth-child(2) { transform: rotate(calc(var(--ang) * -1)); }
.pagina:nth-child(3) { transform: rotate(calc(var(--ang) * 1)); }
.pagina:nth-child(4) { transform: rotate(calc(var(--ang) * 3)); }

/* ---------- 8 · consultório ---------- */
.consultorio { display: grid; gap: 40px; }
.cons-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cons-principal { grid-column: 1 / -1; border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 3; }
.cons-principal img { width: 100%; height: 118%; object-fit: cover; }
.cons-mini { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.cons-mini img { width: 100%; height: 100%; object-fit: cover; }
.cons-info h2 { margin-bottom: 18px; }
.pouso-cons { right: 0; top: 50%; }
.cons-info address { font: 400 22px/1.4 var(--serif); color: var(--rose-texto); margin: 8px 0 14px; }
.horario { margin-bottom: 26px; }

/* ---------- 9 · fechamento ---------- */
.fim {
  display: grid; gap: 36px; justify-items: center; text-align: center;
  padding: 96px var(--lado) 110px;
  background: linear-gradient(180deg, var(--creme) 0%, var(--rose-claro) 100%);
}
.fim-foto { width: min(70vw, 340px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(133, 94, 87, .6); }
.fim-foto img { width: 100%; height: 100%; object-fit: cover; }
.fim h2 { font-size: clamp(42px, 12vw, 88px); margin-bottom: 14px; }
.fim-texto > p { max-width: 30ch; margin-left: auto; margin-right: auto; }
.fim-acao { position: relative; display: inline-block; margin-top: 10px; }
.pouso-fim { right: 14px; top: -6px; }
.fim-tel { margin: 18px 0 0; font-size: 15px; }

.rodape { padding: 56px var(--lado) 110px; text-align: center; font-size: 14px; background: var(--branco); }
.rodape-logo { width: min(80vw, 380px); margin: 0 auto 22px; }
.rodape p { margin: 0 0 6px; }
.rodape-pe { color: var(--cinza); opacity: .9; }

/* ---------- WhatsApp flutuante ---------- */
.wa-flutuante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose-texto); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(88, 89, 91, .6);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.wa-flutuante.on { opacity: 1; transform: none; pointer-events: auto; }
html:not(.anim) .wa-flutuante { opacity: 1; transform: none; pointer-events: auto; }
.wa-flutuante .ic-wa { width: 28px; height: 28px; }

/* ---------- estados iniciais da animação (só com .anim) ---------- */
.anim [data-revelar] { opacity: 0; transform: translateY(28px); }
.anim .hero-nome .linha > span { transform: translateY(110%); }
.anim .r-hero { opacity: 0; transform: translateY(16px); }
.anim .hero-moldura img { transform: scale(1.12); filter: blur(12px); }
.anim .hero-moldura { clip-path: inset(9% 7% 0% 7% round 999px 999px 18px 18px); }
.anim .arco .logo-marca path { fill-opacity: 0; }
.anim .virada-frase { opacity: 0; }
.anim .virada-frase:first-of-type { opacity: 1; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 760px) {
  :root { --lado: 40px; }
  body { font-size: 18px; }
  .secao { padding: 140px var(--lado); }
  .borboleta { width: 46px; height: 40px; margin: -20px 0 0 -23px; }
  .borboleta svg { stroke-width: 1.4; }
  .hero {
    --p: min(32vw, 440px);
    flex-direction: row-reverse; justify-content: center; gap: clamp(40px, 7vw, 110px);
    text-align: left; padding: 100px var(--lado) 70px;
  }
  .hero-foto { margin: 0; }
  .hero-frase { margin-left: 0; }
  .hero-texto { flex: 0 1 640px; }
  .hero-nome { font-size: clamp(56px, 5.4vw, 82px); }
  .hero-frase { font-size: 20px; max-width: 32ch; }
  .sobre { grid-template-columns: 5fr 6fr; align-items: center; gap: 80px; }
  .como { padding-top: 60px; }
  .como-topo { text-align: left; }
  .como-foto { aspect-ratio: 16 / 8; }
  .como-foto img { object-position: 50% 30%; }
  .passos { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .consultorio { grid-template-columns: 7fr 5fr; align-items: center; gap: 70px; }
  .leque { --w: min(22vw, 280px); --ang: 7deg; height: calc(var(--w) * 1.414 + 120px); }
  .leva-palco { grid-template-rows: none; grid-template-columns: 4fr 6fr; gap: 40px; padding-top: 60px; }
  .fim { grid-template-columns: auto auto; justify-content: center; align-items: center; text-align: left; gap: 80px; }
  .fim-texto > p { margin-left: 0; }
  .wa-flutuante { right: 28px; bottom: 28px; width: 62px; height: 62px; }
}

/* horizontal preso só no desktop */
@media (min-width: 1024px) {
  .fatos { grid-template-columns: repeat(4, 1fr); }
  .praquem { overflow: hidden; }
  .anim .pq-trilho {
    display: flex; align-items: center; gap: 28px;
    width: max-content; max-width: none;
    min-height: 100svh;
    padding: 80px 8vw;
  }
  .anim .pq-intro { width: 440px; margin: 0 40px 0 0; flex: none; }
  .anim .pq-foto { max-width: 300px; }
  .anim .frente { width: 360px; min-height: 420px; flex: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; }
  .anim .frente-n { margin-bottom: auto; font-size: 64px; }
  .anim .frente h3 { font-size: 40px; }
  html:not(.anim) .pq-trilho { grid-template-columns: repeat(4, 1fr); }
  html:not(.anim) .pq-intro { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .borboleta { display: none; }
}

/* virada sem pin (31/10, pedido do Felipe: o dedo travava) */
.virada-palco { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 56px); min-height: 70vh; padding: 18vh 24px; }
.virada-pontos { display: none; }
.anim .virada-frase, .anim .virada-frase:first-of-type { opacity: 0; }

/* ---------- polimento 31/10: toque e hover ---------- */
.passo, .frente, .pagina, .cons-mini {
  transition: translate .6s cubic-bezier(.16, 1, .3, 1), scale .3s ease, box-shadow .6s ease, border-color .6s ease, background-color .6s ease;
}
.passo:active, .frente:active { scale: .985; }
.passo .ic { transition: stroke .6s ease; }
@media (hover: hover) {
  .passo:hover { translate: 0 -6px; box-shadow: 0 1px 0 var(--rose-claro), 0 30px 50px -30px rgba(133, 94, 87, .45); }
  .passo:hover .ic { stroke: var(--rose-texto); }
  .frente:hover { translate: 0 -6px; background: var(--branco); border-color: var(--rose); }
  .frente:hover h3::after { width: 80px; }
  .pagina:hover { translate: 0 -16px; }
  .cons-mini:hover { translate: 0 -4px; }
}
@media (min-width: 1024px) {
  .fatos { grid-template-columns: repeat(4, 1fr); }
  .corrido p, .cons-info > p { max-width: 44ch; }
  .sobre h2, .cons-info h2 { margin-bottom: 26px; }
}

/* ---------- perguntas frequentes (01/11: bloco de SEO local) ---------- */
.faq h2 { margin-bottom: 30px; }
.faq-lista { border-top: 1px solid var(--rose-claro); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rose-claro); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; min-height: 52px;
  font: 400 21px/1.3 var(--serif); color: var(--rose-texto);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--rose); border-bottom: 1.5px solid var(--rose);
  transform: rotate(45deg); transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.faq details p { margin: 0 0 22px; max-width: 60ch; }
@media (min-width: 760px) { .faq summary { font-size: 24px; } }
