:root {
  color-scheme: light;
  --paper: #fbf7f2;
  --blush: #f4e6df;
  --line: #e3d4cc;
  --ink: #261a1f;
  --muted: #65555b;
  --berry: #8c2b4b;
  --berry-deep: #6f1f3a;
  --wine: #351420;
  --on-wine: #f8ebe5;
  --on-wine-muted: #d3b8b6;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --wide: 84rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--on-wine); }

.wrap { width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.012em; }
em { font-style: italic; }

.measure { max-width: 34em; text-wrap: pretty; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3.25rem;
  padding: .75rem 1.6rem;
  border-radius: 99px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-primary { background: var(--on-wine); color: var(--wine); }
.dark .btn-primary:hover { background: #fff; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a {
  display: inline-block;
  padding-block: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--berry); color: var(--berry); }
.header-cta { min-height: 2.75rem; padding: .4rem 1.2rem; font-size: .9375rem; }

/* Abertura */
.hero { padding-block: clamp(2rem, 4.5vw, 4rem) clamp(3.5rem, 7vw, 6rem); overflow: clip; }
h1 {
  font-size: clamp(3.25rem, min(7.4vw, 15vh), 6rem);
  line-height: .96;
  letter-spacing: -.035em;
}
h1 em { color: var(--berry); }
.smile {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(.5rem, 1.5vw, 1.25rem);
}
.smile path {
  fill: none;
  stroke: var(--berry);
  stroke-width: 2px;
  stroke-linecap: round;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(74vh, 44rem);
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 12rem 12rem 4px 4px;
  background: var(--blush);
}
.lead { margin-top: clamp(1rem, 2vw, 1.5rem); font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Tratamentos */
section { scroll-margin-top: 5rem; }
.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head p:last-child { margin-top: 1.25rem; color: var(--muted); }

.treatments { border-top: 1px solid var(--ink); }
.treatment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.treatment p + p { margin-top: .85rem; color: var(--muted); }

/* Comparação */
.compare-band { background: var(--blush); }
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.compare-note { margin-top: 1.25rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; }
thead th {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  border-bottom: 1px solid var(--ink);
}
tbody th {
  width: 22%;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
}
tbody tr + tr > * { border-top: 1px solid #dcc7bd; }
td:last-child, thead th:last-child { padding-right: 0; }

/* Hora marcada */
.dark { background: var(--wine); color: var(--on-wine); }
.dark .big {
  font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  max-width: 17em;
  margin-top: 1rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--on-wine-muted);
  padding-top: 1.1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--on-wine-muted);
}
.steps h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-block: .5rem .6rem; }
.steps p { color: var(--on-wine-muted); }

/* Perguntas */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--berry);
}
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--berry); }
details p { padding-bottom: 1.4rem; color: var(--muted); max-width: 38em; text-wrap: pretty; }

/* Consultório */
.place-band { padding-block: 0 var(--section); }
.place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.place p { margin-top: 1.25rem; color: var(--muted); }
.place img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--blush); }
figcaption { margin-top: .6rem; font-size: .9375rem; color: var(--muted); }

/* Contato */
.contact-band { padding-block: 0 var(--section); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.contact-info { margin-top: 1.75rem; font-size: 1.125rem; font-style: normal; }
.contact-info p + p { margin-top: .35rem; }
.contact .actions { margin-top: 2rem; }
.map {
  width: 100%;
  min-height: 24rem;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--blush);
}

/* Rodapé */
footer { background: var(--wine); color: var(--on-wine-muted); padding-block: 2.5rem; font-size: .9375rem; }
footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem 3rem;
}
footer strong { color: var(--on-wine); font-weight: 500; }
footer a { color: var(--on-wine); text-underline-offset: .2em; }

/* Barra de agendamento no celular */
.mobile-bar { display: none; }

/* Movimento: só enriquece, e só para quem não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .smile { animation: draw 1.8s .2s cubic-bezier(.16, 1, .3, 1) backwards; }
  @keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

@media (max-width: 62rem) {
  .hero-grid, .compare-grid, .faq-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .place { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place > div { grid-column: 1 / -1; }
  .portrait img { max-height: 34rem; }
  .treatment { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 20rem; height: 20rem; }
}

@media (max-width: 44rem) {
  .smile path { stroke-width: 4.5px; }
  .place { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
  .header-cta { display: none; }
  .site-header .wrap { min-height: 3.75rem; }
  .site-header { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }

  thead th { font-size: 1.25rem; }
  tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  tbody th { grid-column: 1 / -1; width: auto; padding: 1rem 0 .15rem; }
  tbody td { padding: 0 0 1rem; border: 0 !important; font-size: 1rem; line-height: 1.45; }
  thead th:first-child { display: none; }
  thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  thead th { padding-right: 0; }

  .mobile-bar {
    display: block;
    position: fixed; inset: auto 0 0; z-index: 10;
    padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { width: 100%; }
  footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

/* Blog */
.site-nav a[aria-current="page"] { color: var(--berry); border-bottom-color: var(--berry); }
.page-head { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-title {
  margin-top: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  max-width: 14em;
}
.page-head .lead { margin-top: 1.25rem; }
.page-body { padding-bottom: var(--section); }

.posts { border-top: 1px solid var(--ink); }
.post-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.post-cat { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--berry); padding-top: .55rem; }
.post-title { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.012em; }
.post-title a { text-decoration: none; }
.post-title a:hover { color: var(--berry); }
.post-row div > p { margin-top: .6rem; color: var(--muted); max-width: 42em; text-wrap: pretty; }

.article { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.article-wrap { max-width: 46rem; }
.crumbs { font-size: .9375rem; color: var(--muted); }
.crumbs a { text-underline-offset: .2em; }
.article-title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.article-meta { margin-top: 1.1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); font-size: .9375rem; color: var(--muted); }
.prose { margin-top: 2rem; font-size: 1.125rem; line-height: 1.7; }
.prose p, .prose ul, .prose ol { margin-top: 1.1rem; max-width: 36em; text-wrap: pretty; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.12; letter-spacing: -.012em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--berry); }
.prose a { color: var(--berry); text-underline-offset: .2em; }
.disclaimer { margin-top: 2.5rem; font-size: .9375rem; color: var(--muted); }
.article-cta { margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--blush); border-radius: 4px; }
.article-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.1; }
.article-cta p { margin-top: .5rem; color: var(--muted); }
.article-cta .btn { margin-top: 1.25rem; }
.related-title { margin-top: 3rem; font-size: 1.5rem; }
.related { margin-top: .75rem; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding-block: .85rem; text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--berry); }

/* Antes e depois */
.casos { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--ink); padding-top: clamp(2rem, 4vw, 3rem); }
.casos-vazio { color: var(--muted); }
.caso h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.12; }
.caso-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1.5vw, 1rem); margin-top: 1rem; }
.caso-fotos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--blush); }
.caso-assinatura { margin-top: .9rem; font-size: .9375rem; color: var(--muted); }
.page-body .article-cta { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 46rem; }

@media (max-width: 44rem) {
  .site-nav { display: block; }
  .site-nav .m-hide { display: none; }
  .site-nav ul { gap: .9rem; }
  .site-nav a { font-size: .875rem; padding-block: .75rem; }
  .brand { font-size: 1.1875rem; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .post-cat { padding-top: 0; }
  .article-cta .btn { width: 100%; }
}

.prose h3 { margin-top: 1.75rem; font-size: clamp(1.3125rem, 2.4vw, 1.5rem); font-weight: 400; line-height: 1.2; }
.prose h3 + p { margin-top: .5rem; }

/* Unidades */
.units { margin-top: clamp(1rem, 1.6vw, 1.25rem); scroll-margin-top: 6rem; }
.units-label { font-weight: 600; }
.units ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.unit {
  display: block;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.unit:hover { background: var(--berry); border-color: var(--berry); color: #fff; }
.unit-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
}
.unit span:not(.unit-name) { display: block; margin-top: .2rem; font-size: .9375rem; }
.unit:not(:hover) span:not(.unit-name) { color: var(--muted); }
.unit-heading { font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.1; }
.unit-note { margin-top: 1rem; color: var(--muted); }
.unit-more { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.unit-more .related { margin-top: 1rem; max-width: 46rem; }
.unit-other { margin-top: 1.5rem; }
.unit-other a { color: var(--berry); text-underline-offset: .2em; }

@media (max-width: 26rem) {
  .units ul { grid-template-columns: minmax(0, 1fr); }
}
.page-head .crumbs + .page-title { margin-top: .75rem; }

/* Acabamento */
::selection { background: var(--berry); color: #fff; }
html { scrollbar-color: var(--berry) var(--blush); }
a { text-underline-offset: .2em; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.place-section { padding-top: var(--section); }
.home-posts-link { margin-top: 2rem; }
.btn-primary:active { background: var(--berry-deep); }
.btn-ghost:active, .unit:active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.unit:active span { color: var(--paper) !important; }
.dark .btn-primary:active { background: var(--on-wine-muted); }

@media (max-width: 44rem) {
  .brand, .contact-info a, .treatment a, .unit-other a, .crumbs a, footer a, .home-posts-link > a:not(.btn) {
    display: inline-block;
    padding-block: .7rem;
  }
  .contact-info p + p { margin-top: 0; }
  .crumbs { margin-block: -.7rem; }
  footer .wrap { gap: .25rem 3rem; }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      @keyframes bar-in { from { translate: 0 100%; } }
      .mobile-bar-late {
        animation: bar-in linear both;
        animation-timeline: scroll();
        animation-range: 90vh 120vh;
      }
    }
  }
}

.site-nav a { white-space: nowrap; }
@media (max-width: 62rem) {
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: .875rem; }
}
@media (max-width: 44rem) {
  .brand { padding-block: .8rem; }
}

/* Chat */
.woot-widget-bubble { background: var(--berry) !important; }
@media (max-width: 44rem) {
  .woot-widget-bubble { bottom: calc(5.25rem + env(safe-area-inset-bottom)) !important; }
}

/* Fade-in: a abertura entra ao carregar; os blocos da home, ao rolar. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-in {
    from { opacity: 0; translate: 0 .75rem; }
  }
  .hero-copy > :not(.smile),
  .portrait,
  .page-head .wrap > *,
  .crumbs,
  .article-title,
  .article-meta,
  .prose {
    animation: fade-in .7s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .hero-copy > :nth-child(2), .portrait, .page-head .wrap > :nth-child(2), .article-title { animation-delay: .08s; }
  .hero-copy > :nth-child(4), .page-head .wrap > :nth-child(3), .article-meta { animation-delay: .16s; }
  .hero-copy > :nth-child(5), .prose { animation-delay: .24s; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .section-head,
    .treatment,
    .compare-grid > *,
    .big,
    .steps li,
    .place > *,
    .faq-grid > *,
    .post-row,
    #contato .units,
    .unit-more > * {
      animation: fade-in auto cubic-bezier(.16, 1, .3, 1) backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
