/* ==========================================================
   Dra. Julia Trombini — Harmonização Facial
   Desenvolvido por Vertex Soluções
   Mobile-first: estilos base para celular, ajustes em 720px e 1024px
   ========================================================== */

:root {
  /* Paleta (derivada do logo) */
  --porcelain: #FCF6F3;   /* fundo principal, rosado */
  --blush: #F4E4DD;       /* painéis e seções alternadas */
  --blush-deep: #EBD3C9;  /* detalhes sobre o blush */
  --line: #E2CBC0;        /* bordas e divisórias */
  --clay: #9B5141;        /* cor do traço do logo: botões e destaques */
  --clay-dark: #7E3F31;
  --cocoa: #3D2A25;       /* textos e títulos */
  --cocoa-soft: #6E5751;  /* textos secundários */
  --gold: #B08A4F;        /* estrelas e brilhos */
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1180px;
  --section-y: clamp(72px, 11vw, 136px);
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--cocoa);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cocoa); color: var(--porcelain);
  padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* itens de grade não podem esticar além da coluna (evita rolagem lateral no celular) */
.hero-grid > *, .about-grid > *, .map > *, .chin-grid > *, .results-grid > *,
.faq-grid > *, .contact-card > *, .footer-grid > * { min-width: 0; }

.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--cocoa-soft); }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); }
/* brilho que atravessa o botão */
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--cocoa-soft); }
.btn-ghost:hover { background: var(--cocoa); color: var(--porcelain); border-color: var(--cocoa); }

.icon { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 246, 243, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* com o menu aberto o fundo é sólido e sem desfoque: o desfoque prenderia o painel fixo dentro do header */
.site-header.is-open {
  background: var(--porcelain);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 var(--line);
}

.progress { position: absolute; inset: 0 0 auto; height: 2px; }
.progress span {
  display: block; height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

.header-inner {
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 36px; height: auto; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .brand-mark { width: 42px; } .brand { gap: 12px; } }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.brand-sub { font-size: .8rem; color: var(--cocoa-soft); letter-spacing: .04em; }

/* Menu mobile: painel em tela cheia */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px var(--gutter) 40px;
  background: var(--porcelain);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 2rem;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav .nav-cta { margin-top: 24px; }

.menu-toggle {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  margin-right: -10px;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block; width: 24px; height: 1.5px;
  background: var(--cocoa);
  transition: transform .3s var(--ease), background-color .3s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: clamp(56px, 9vw, 112px);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 28px; }
.hero-art { order: -1; }

.hero-arch {
  position: relative;
  width: min(68vw, 300px); /* no celular fica menor, para o título aparecer sem rolar */
  margin-inline: auto;
  aspect-ratio: 5 / 5.4;
  border-radius: 999px 999px 28px 28px;
  background: var(--blush);
  padding: 13% 9% 6%;
}

.face-draw { width: 100%; height: 100%; overflow: visible; }

/* Desenho do rosto: cada traço se desenha e, no fim, o traço final (igual ao logo) assume */
.face-lines path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 5; /* unidades do viewBox (~2px na tela) */
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    draw 2.2s var(--ease) forwards,
    fade-out .8s ease 2.9s forwards;
  animation-delay:
    calc(.2s + var(--i) * .12s),
    2.9s;
}
.face-ink {
  fill: var(--clay);
  opacity: 0;
  animation: fade-in .8s ease 2.7s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* Linhas tracejadas de contorno (como um planejamento) */
.face-vectors .vec {
  stroke: var(--cocoa-soft);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: .028 .02;
  opacity: 0;
  animation: fade-in .6s ease forwards, dash-move 14s linear infinite;
  animation-delay: 3.1s, 3.1s;
}
.face-vectors .vec-arrow { stroke: var(--clay); }
.face-vectors .vec-head {
  stroke: var(--clay);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: fade-in .6s ease 3.5s forwards;
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes dash-move { to { stroke-dashoffset: -.96; } }

.sparkle {
  position: absolute;
  width: 18px; height: 18px;
  color: var(--gold);
  opacity: 0;
  animation: twinkle 4.5s ease-in-out infinite;
}
.sparkle.s1 { top: 18%; right: 14%; animation-delay: 3.4s; }
.sparkle.s2 { top: 46%; right: 6%; width: 12px; height: 12px; animation-delay: 4.6s; }
.sparkle.s3 { bottom: 16%; left: 10%; width: 14px; height: 14px; animation-delay: 5.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6) rotate(0deg); }
  45%, 55% { opacity: 1; transform: scale(1) rotate(20deg); }
}

.hero-place {
  font-size: .95rem;
  color: var(--clay);
  margin-bottom: .9rem;
  letter-spacing: .02em;
}
.hero-title {
  font-size: clamp(2.5rem, 9vw, 4.7rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.hero-lead { color: var(--cocoa-soft); max-width: 34rem; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-cro { margin-top: 1.4rem; font-size: .88rem; color: var(--cocoa-soft); }

/* Entrada do texto do hero, um único momento orquestrado */
.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
}
.hero-copy > :nth-child(1) { animation-delay: .15s; }
.hero-copy > :nth-child(2) { animation-delay: .3s; }
.hero-copy > :nth-child(3) { animation-delay: .5s; }
.hero-copy > :nth-child(4) { animation-delay: .65s; }
.hero-copy > :nth-child(5) { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sobre ---------- */
.about { background: var(--white); }
.about-grid { display: grid; gap: 48px; }

.about-media { position: relative; max-width: 440px; margin-inline: auto; width: 100%; padding-bottom: 18%; }
.about-photo {
  margin: 0;
  width: 82%;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background: var(--blush);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-photo-small {
  position: absolute; right: 0; bottom: 0;
  margin: 0;
  width: 44%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--white);
  background: var(--blush);
}
.about-photo-small img { width: 100%; height: 100%; object-fit: cover; }

/* revelação da foto em arco */
[data-reveal] .about-photo { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); transition: clip-path 1.2s var(--ease); }
[data-reveal] .about-photo-small { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) .4s, transform .8s var(--ease) .4s; }
[data-reveal].is-visible .about-photo { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); }
[data-reveal].is-visible .about-photo-small { opacity: 1; transform: none; }

.about-copy p { color: var(--cocoa-soft); max-width: 36rem; }

.principles { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 14px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.principles strong { color: var(--cocoa); font-weight: 500; }
.icon-line { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: .35em; }

.credentials {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.credentials h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.credentials ul { margin: 0; padding-left: 1.1rem; color: var(--cocoa-soft); }

/* ---------- Procedimentos: mapa do rosto ---------- */
.map { display: grid; gap: 32px; }

.map-face {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
  aspect-ratio: 1148 / 1228;
}
.map-face img { width: 100%; height: 100%; opacity: .9; }

.hotspot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.hotspot span {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 1.5px solid var(--clay);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.hotspot span::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--clay);
  opacity: 0;
  animation: ping 2.8s ease-out infinite;
}
.hotspot:hover span { transform: scale(1.2); }
.hotspot.is-active span { background: var(--clay); transform: scale(1.25); }
.hotspot.is-active span::after { animation-duration: 1.8s; }
@keyframes ping {
  0% { opacity: .7; transform: scale(.5); }
  100% { opacity: 0; transform: scale(1.6); }
}

.map-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 20px;
  padding: 2px var(--gutter) 6px;
  scroll-snap-type: x proximity;
}
.map-tabs::-webkit-scrollbar { display: none; }
.map-tabs [role="tab"] {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--cocoa-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.map-tabs [role="tab"]:hover { border-color: var(--clay); color: var(--cocoa); }
.map-tabs [role="tab"][aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--porcelain); }

.map-panel {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(61, 42, 37, .28);
  animation: panel-in .5s var(--ease);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.map-panel h3 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 500; }
.map-panel .aka { font-style: italic; color: var(--cocoa-soft); font-weight: 400; }
.map-panel p { color: var(--cocoa-soft); }

.facts { margin: 1.4rem 0 1.8rem; display: grid; gap: 12px; }
.facts div { border-left: 2px solid var(--blush-deep); padding-left: 14px; }
.facts dt { font-size: .85rem; color: var(--clay); }
.facts dd { margin: 0; }

/* ---------- Educativo: papada ---------- */
.chin { background: var(--blush); }
.chin-grid { display: grid; gap: 40px; align-items: center; }
/* No celular o desenho fica entre o texto e os botões, para a mudança ser vista ao tocar */
.chin-grid { gap: 0; }
.chin-copy { display: contents; }
.chin-figure { order: 3; }
.chin-options { order: 4; }
.chin-note { order: 5; }
.chin-copy > .btn { order: 6; justify-self: start; }
.chin-copy p { color: var(--cocoa-soft); max-width: 34rem; }

.chin-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.8rem 0 1.2rem; }
.chin-options button {
  min-height: 44px;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--clay);
  background: transparent;
  color: var(--clay-dark);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chin-options button:hover { background: rgba(155, 81, 65, .08); }
.chin-options button[aria-checked="true"] { background: var(--clay); color: var(--white); }

.chin-copy .chin-note {
  min-height: 5.2em;
  color: var(--cocoa);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  font-style: italic;
}

.chin-figure { margin: 0 auto 8px; width: min(72%, 280px); }
.chin-svg { width: 100%; height: auto; overflow: hidden; }
.chin-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chin-svg .chin-fill { fill: url(#chin-grad-x); stroke: none; }
.chin-ref { stroke: var(--cocoa); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .6; }
.chin-line { stroke: var(--clay); stroke-width: 2; }
.chin-jaw, .chin-ear { stroke: var(--clay); stroke-width: 1.3; opacity: .7; }
.chin-figure figcaption {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  font-size: .9rem; color: var(--cocoa-soft);
  margin-top: 12px;
}
.legend-line { width: 28px; border-top: 1.5px dashed var(--cocoa-soft); }

/* ---------- Resultados ---------- */
.results-grid { display: grid; gap: 32px; align-items: center; }
.results-copy p { color: var(--cocoa-soft); max-width: 30rem; }

.cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 1.6rem 0 1rem;
  max-width: 420px;
}
.cases button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  font-size: .85rem;
  color: var(--cocoa-soft);
}
.cases img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 6px;
  opacity: .55;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity .3s var(--ease), outline-color .3s var(--ease);
}
.cases button:hover img { opacity: .85; }
.cases button[aria-selected="true"] img { opacity: 1; outline-color: var(--clay); }
.cases button[aria-selected="true"] { color: var(--cocoa); }

.disclaimer { font-size: .85rem; color: var(--cocoa-soft); margin-top: 1rem; }

.compare {
  position: relative;
  width: min(100%, 520px, calc((100svh - 140px) * .75));
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: var(--blush);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute; top: 16px;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(252, 246, 243, .9);
  font-size: .82rem;
  pointer-events: none;
}
.compare-label-before { left: 16px; }
.compare-label-after { right: 16px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(61, 42, 37, .25);
}
.compare-knob svg { width: 22px; height: 22px; fill: none; stroke: var(--clay); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-dragging .compare-knob { transform: translate(-50%, -50%) scale(1.08); }
.compare-range {
  position: absolute; inset: auto 0 0; width: 100%;
  opacity: 0; height: 1px; pointer-events: none;
}
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Depoimentos ---------- */
.testimonials { background: var(--white); }
.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  scroll-padding-inline: var(--gutter);
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  margin: 0;
  scroll-snap-align: start;
  background: var(--porcelain);
  border-radius: 24px;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute; top: 4px; right: 22px;
  font-family: var(--font-display);
  font-size: 6rem; line-height: 1;
  color: var(--blush-deep);
}
.stars { width: 96px; color: var(--gold); margin-bottom: 18px; }
.quote blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.3;
  font-style: italic;
  flex: 1;
}
.quote figcaption { font-size: .9rem; color: var(--cocoa-soft); }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 999px; border: 0;
  background: var(--line);
  cursor: pointer;
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.dots button.is-active { width: 24px; background: var(--clay); }

/* ---------- Como funciona ---------- */
.steps-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 36px;
  position: relative;
}
/* linha que liga os passos (vertical no celular) */
.steps-list::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 1px;
  background: var(--clay);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.6s var(--ease);
}
.steps-list.is-visible::before { transform: scaleY(1); }
.steps-list li { position: relative; padding-left: 72px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--clay);
  background: var(--porcelain);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--clay);
}
.steps-list h3 { font-size: 1.5rem; margin-bottom: .3rem; padding-top: 6px; }
.steps-list p { color: var(--cocoa-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--blush); }
.faq-grid { display: grid; gap: 32px; }
.faq-head p { color: var(--cocoa-soft); }

.faq-list details { border-bottom: 1px solid var(--blush-deep); }
.faq-list details:first-child { border-top: 1px solid var(--blush-deep); }
.faq-list summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--clay);
  background:
    linear-gradient(var(--clay), var(--clay)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--clay), var(--clay)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease), background-color .35s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--cocoa-soft); padding-bottom: 22px; margin: 0; max-width: 40rem; }

/* ---------- Contato ---------- */
.contact-card {
  display: grid; gap: 40px;
}
.contact-copy p { color: var(--cocoa-soft); max-width: 30rem; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 1.8rem; }

.hours {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(61, 42, 37, .28);
}
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hours-head h3 { margin: 0; font-size: 1.5rem; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  background: var(--blush);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cocoa-soft); }
.status.is-open { background: #E6EFE3; color: #2F5130; }
.status.is-open::before { background: #4C8A4E; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--blush); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; color: var(--cocoa-soft); font-variant-numeric: tabular-nums; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--clay-dark); font-weight: 500; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--cocoa);
  color: #E9DAD3;
  /* espaço extra embaixo para o botão flutuante do WhatsApp não cobrir o rodapé */
  padding: 64px 0 calc(100px + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(233, 218, 211, .16); }
.footer-name { font-family: var(--font-display); font-size: 1.8rem; color: var(--porcelain); margin-bottom: .3rem; }
.footer-brand p { margin-bottom: .2rem; }
.footer-cro { font-size: .9rem; opacity: .8; margin-top: .6rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; font-size: .85rem; opacity: .85; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--porcelain); text-underline-offset: 3px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
}
.wa-button {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -6px rgba(37, 120, 70, .5);
  transition: transform .3s var(--ease);
}
.wa-button:hover { transform: scale(1.06); }
.wa-button svg { width: 30px; height: 30px; }
.wa-button::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: ring 3s ease-out infinite;
}
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45); } }

.wa-bubble {
  display: flex; align-items: center; gap: 4px;
  background: var(--white);
  color: var(--cocoa);
  padding: 8px 6px 8px 16px;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 10px 28px -10px rgba(61, 42, 37, .35);
  animation: bubble-in .5s var(--ease);
}
.wa-bubble[hidden] { display: none; }
@keyframes bubble-in { from { opacity: 0; transform: translateX(10px); } }
.wa-bubble-close {
  width: 32px; height: 32px;
  border: 0; background: none;
  border-radius: 50%;
  font-size: 1.2rem; line-height: 1;
  color: var(--cocoa-soft);
  cursor: pointer;
}

/* ==========================================================
   Tablet (720px+)
   ========================================================== */
@media (min-width: 720px) {
  .hero-arch { width: min(100%, 400px); }
  .hero-actions .btn { flex: 0 0 auto; }
  .quotes { grid-auto-columns: calc(50% - 8px); }
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .steps-list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .steps-list::before { display: none; }
}

/* ==========================================================
   Desktop (1024px+)
   ========================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 80px; }

  /* menu horizontal */
  .menu-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav a:not(.btn) {
    font-family: var(--font-body);
    font-size: .95rem;
    padding: 6px 0;
    border: 0;
    position: relative;
  }
  .nav a:not(.btn)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--clay);
    transform: scaleX(0); transform-origin: right;
    transition: transform .35s var(--ease);
  }
  .nav a:not(.btn):hover::after,
  .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
  .nav .nav-cta { margin: 0 0 0 8px; min-height: 46px; padding: .6rem 1.3rem; font-size: .95rem; }

  .hero { padding-top: calc(var(--header-h) + 40px); min-height: min(100vh, 900px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
  .hero-art { order: 0; }
  .hero-arch { width: 100%; max-width: 500px; margin-right: 0; }

  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
  .about-media { margin: 0; }

  .map { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
  .map-face { width: 100%; max-width: 440px; }
  .map-tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 24px; padding: 0; }

  .chin-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; }
  .chin-copy { display: block; }
  .chin-figure { width: 100%; max-width: 400px; margin-bottom: 0; }

  .results-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .compare { margin-right: 0; }

  .quotes {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0; padding: 0;
  }
  .quote:nth-child(2) { transform: translateY(32px); }
  .dots { display: none; }

  /* passos na horizontal, com a linha correndo da esquerda para a direita */
  .steps-list { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .steps-list::before {
    display: block;
    left: 24px; right: 24px; top: 24px; bottom: auto;
    width: auto; height: 1px;
    transform-origin: left;
    transform: scaleX(0);
  }
  .steps-list.is-visible::before { transform: scaleX(1); }
  .steps-list li { padding-left: 0; padding-top: 76px; }
  .steps-list h3 { padding-top: 0; }

  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }

  .contact-card { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
}

/* ==========================================================
   Movimento reduzido: tudo aparece direto
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .sparkle { opacity: 1; }
}
