/* ==========================================================================
   Zelo Odontologia
   Os valores abaixo seguem o DESIGN.md na raiz do projeto.
   ========================================================================== */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* cor: tudo deriva da logo */
  --marrom: #6C482A;
  --nude: #E9D6C7;
  --porcelana: #FBF7F2;
  --papel: #F6EDE5;
  --areia: #D9C2AF;
  --argila: #A98263;
  --cafe: #4A3120;
  --espresso: #2A1B11;
  --rule: rgb(108 72 42 / .24);
  --rule-light: rgb(233 214 199 / .26);
  --nude-veu: rgb(233 214 199 / .92);
  --espresso-veu: rgb(42 27 17 / .72);

  /* tipografia */
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --fs-display: clamp(2.25rem, 1rem + 6vw, 6rem);
  --fs-h2: clamp(1.875rem, 1.1rem + 3.4vw, 4rem);
  --fs-h3: clamp(1.25rem, 1.08rem + .85vw, 1.875rem);
  --fs-lead: clamp(1rem, .93rem + .36vw, 1.25rem);
  --fs-body: clamp(1rem, .97rem + .16vw, 1.0625rem);
  --fs-small: .9375rem;

  /* espaço */
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 10vw, 152px);
  --gap: clamp(16px, 2vw, 24px);
  --header-h: 64px;
  --overlap: 0px;

  /* movimento */
  --dur-micro: 200ms;
  --dur-ui: 450ms;
  --ease-out: cubic-bezier(.25, 1, .5, 1);

  --radius: 6px;
}

@media (min-width: 900px) {
  :root {
    --header-h: 84px;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--marrom); color: var(--porcelana); }

:focus-visible {
  outline: 2px solid var(--marrom);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1280px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--marrom);
  color: var(--porcelana);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- tipografia ---------- */

.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- marca ---------- */

.logo { display: block; fill: currentColor; }
.logo--wordmark { height: 26px; width: auto; aspect-ratio: 685.5 / 236.2; }
.logo--full { width: clamp(132px, 40%, 220px); height: auto; aspect-ratio: 685.5 / 290.6; }
.arc { display: block; fill: currentColor; width: 100%; height: auto; aspect-ratio: 140.7 / 38.6; }

@media (min-width: 900px) {
  .logo--wordmark { height: 32px; }
}

/* ---------- botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) ease, color var(--dur-micro) ease, border-color var(--dur-micro) ease, transform 100ms ease;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
@media (min-width: 900px) {
  .btn { min-height: 56px; padding: 0 32px; }
  .btn--sm { min-height: 44px; padding: 0 24px; }
}

.btn--primary { background: var(--marrom); color: var(--porcelana); }
.btn--primary:hover { background: var(--cafe); }

.btn--secondary { border-color: var(--marrom); color: var(--marrom); }
.btn--secondary:hover { background: var(--marrom); color: var(--porcelana); }

.link {
  font-weight: 500;
  color: var(--marrom);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color var(--dur-micro) ease, text-decoration-color var(--dur-micro) ease;
}
.link:hover { color: var(--cafe); text-decoration-thickness: 2px; }
.link--light { color: var(--porcelana); }
.link--light:hover { color: var(--nude); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--cafe);
  text-decoration: none;
}
.stars { display: inline-flex; gap: 2px; color: var(--marrom); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.rating--light { color: var(--nude); }
.rating--light .stars { color: var(--nude); }

/* ---------- cabeçalho ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--marrom);
  transition: background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.header.is-stuck,
.header.is-open {
  background: var(--nude-veu);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}
.header.is-open { background: var(--nude); box-shadow: none; }

.header__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__logo { margin-right: auto; padding: 8px 0; }

.nav { display: none; }
.nav a {
  position: relative;
  padding: 8px 0;
  font-size: var(--fs-small);
  color: var(--espresso);
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.menu-btn {
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--marrom);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-right: clamp(20px, 2.6vw, 40px); }
  .menu-btn { display: none; }
}

/* menu de tela cheia (telas pequenas) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--nude);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; }
.menu__nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.625rem, 7vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--marrom);
  text-decoration: none;
}
.menu__foot { display: grid; gap: 16px; justify-items: start; margin-top: 40px; }
.menu__foot p { font-size: var(--fs-small); color: var(--cafe); }
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--nude);
  padding-top: calc(var(--header-h) + clamp(24px, 6vw, 56px));
  overflow-x: clip;
}
.hero__grid { display: grid; gap: clamp(40px, 8vw, 64px); }

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.018em;
  color: var(--marrom);
  max-width: 11.5em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 31em;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero .rating { margin-top: clamp(24px, 3vw, 40px); }
.hero .rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }

.hero__figure {
  position: relative;
  width: 82%;
  margin-bottom: 28px;
}
.hero__photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  background: var(--areia);
  border-radius: var(--radius);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* bloco marrom atrás da foto: sai dos dois lados e passa um pouco por baixo */
.hero__panel {
  position: absolute;
  left: calc(-1 * var(--gutter));
  right: -100vw;
  top: 44%;
  bottom: -28px;
  background: var(--marrom);
  transform-origin: bottom;
}
.hero__caption {
  position: absolute;
  z-index: 1;
  left: calc(100% + 10px);
  bottom: 12px;
  writing-mode: vertical-rl;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--nude);
  white-space: nowrap;
}
.hero__caption span { display: block; }

@media (min-width: 900px) {
  .hero { padding-top: var(--header-h); }
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    min-height: min(100svh - var(--header-h), 860px);
    align-items: end;
  }
  .hero__text {
    grid-column: 1 / span 6;
    align-self: center;
    padding-block: 40px 72px;
  }
  .hero__figure {
    grid-column: 7 / span 6;
    justify-self: end;
    width: min(100% - 48px, calc(min(72svh, 660px) * .9));
    margin: 32px 48px 32px 0;
    z-index: 2;
  }
  .hero__panel { left: clamp(-64px, -4vw, -32px); top: 44%; bottom: -32px; }
  .hero__caption { left: calc(100% + 20px); bottom: 20px; font-size: .8125rem; }
}
@media (min-width: 1200px) {
  .hero__caption span { display: inline; }
}

/* ---------- sobre ---------- */

.sobre {
  background: var(--papel);
  padding-block: calc(var(--section) + var(--overlap)) var(--section);
}

.verbete { display: grid; gap: clamp(28px, 5vw, 48px); }
.verbete__word { color: var(--marrom); }
.verbete__head {
  font-family: var(--serif);
  font-size: clamp(4.75rem, 1rem + 22vw, 27rem);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.035em;
  margin-left: -.045em;
  padding-bottom: .12em;
}
.verbete__arc { width: clamp(120px, 34%, 260px); margin-top: clamp(12px, 2vw, 24px); }

.verbete__meta { font-size: var(--fs-small); color: var(--cafe); }
.verbete__meta span {
  margin-right: .4em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  font-weight: 500;
  color: var(--marrom);
}
.verbete__defs {
  counter-reset: def;
  margin-top: 12px;
  display: grid;
  gap: 16px;
}
.verbete__defs li {
  counter-increment: def;
  display: grid;
  grid-template-columns: 1.6em 1fr;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: pretty;
}
.verbete__defs li::before {
  content: counter(def) ".";
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 2.1;
  color: var(--cafe);
}

.equipe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--gap);
  margin-top: clamp(64px, 10vw, 136px);
}
.equipe__text { grid-column: 1 / -1; display: grid; gap: 1em; max-width: 34em; font-size: var(--fs-lead); line-height: 1.55; text-wrap: pretty; }
.doutor--b { margin-top: 40px; }
.doutor__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--areia); }
.doutor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doutor figcaption { display: grid; margin-top: 16px; }
.doutor__name { font-family: var(--serif); font-size: clamp(1.1875rem, .98rem + 1vw, 1.75rem); font-weight: 500; line-height: 1.15; }
.doutor__role { font-size: var(--fs-small); color: var(--cafe); }

@media (min-width: 900px) {
  .verbete {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .verbete__word { grid-column: 1 / span 7; }
  .verbete__body { grid-column: 8 / span 5; padding-bottom: 8px; }

  .equipe {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .equipe__text { grid-column: 1 / span 4; align-self: end; padding-bottom: 72px; }
  .doutor--a { grid-column: 6 / span 3; }
  .doutor--b { grid-column: 10 / span 3; margin-top: 112px; }
}

/* ---------- tratamentos ---------- */

.tratamentos { background: var(--nude); padding-block: var(--section); }
.tratamentos__grid { display: grid; gap: 8px; }
.tratamentos__aside .lead { margin-top: clamp(16px, 2vw, 24px); }

.preview { display: none; }

.grupo { margin-top: clamp(40px, 5vw, 56px); }
.grupo__title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--marrom);
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--marrom);
}
.trat {
  display: grid;
  gap: 2px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: opacity var(--dur-micro) ease;
}
.trat__name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.12rem + .55vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  transition: transform var(--dur-ui) var(--ease-out), color var(--dur-micro) ease;
}
.trat__desc { font-size: var(--fs-small); line-height: 1.5; color: var(--cafe); text-wrap: pretty; }

@media (min-width: 640px) {
  .trat { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; }
}

@media (hover: hover) {
  .trat:hover .trat__name,
  .trat:focus-visible .trat__name { color: var(--marrom); transform: translateX(10px); }
  .tratamentos__list:has(.trat:hover) .trat:not(:hover) { opacity: .5; }
}

@media (min-width: 900px) {
  .tratamentos__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .tratamentos__aside {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
  .tratamentos__list { grid-column: 7 / span 6; }
  .tratamentos__list .grupo:first-child { margin-top: 12px; }
}

@media (min-width: 900px) and (hover: hover) {
  .preview {
    display: block;
    position: relative;
    margin-top: 40px;
    aspect-ratio: 4 / 3;
    max-height: calc(100svh - var(--header-h) - 300px);
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--marrom);
  }
  .preview__img,
  .preview__plain {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--dur-ui) ease;
  }
  .preview__img img { width: 100%; height: 100%; object-fit: cover; }
  /* foto mostrada inteira, sem corte */
  .preview__img--inteira { background: var(--espresso); }
  .preview__img--inteira img { object-fit: contain; }
  .preview__plain {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3vw, 40px);
    color: var(--nude);
  }
  .preview__name {
    font-family: var(--serif);
    font-size: clamp(2rem, 1rem + 2.4vw, 3rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.01em;
    max-width: 9em;
  }
  .preview__arc { width: 34%; align-self: flex-end; }
  .preview .is-active { opacity: 1; }
}

/* ---------- resultados (antes e depois) ---------- */

.resultados { background: var(--espresso); color: var(--nude); padding-block: var(--section); }
.resultados :focus-visible { outline-color: var(--nude); }

.resultados__top { display: grid; gap: 32px; }
.resultados__intro { order: -1; }
.resultados__intro .lead { margin-top: clamp(16px, 2vw, 24px); color: var(--nude); }
.note { margin-top: 16px; font-size: var(--fs-small); line-height: 1.55; color: var(--areia); max-width: 30em; text-wrap: pretty; }

.resultados__more {
  display: grid;
  gap: 32px var(--gap);
  margin-top: 32px;
}

.ba { --pos: 50%; }
.ba__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cafe);
  user-select: none;
  -webkit-user-select: none;
}
.ba__stage picture, .ba__img { width: 100%; height: 100%; }
.ba__img { object-fit: cover; pointer-events: none; }
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--porcelana);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--porcelana);
  color: var(--marrom);
  transition: transform var(--dur-micro) var(--ease-out);
}
.ba__knob .arc { width: 26px; }
.ba__stage:hover .ba__knob,
.ba__stage:has(.ba__range:focus-visible) .ba__knob { transform: scale(1.1); }
.ba__stage:has(.ba__range:focus-visible) { outline: 2px solid var(--nude); outline-offset: 3px; }

.ba__tag {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--espresso-veu);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--nude);
  pointer-events: none;
}
.ba__tag--a { left: 12px; }
.ba__tag--d { right: 12px; }

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range:focus { outline: none; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 48px; height: 400px; }
.ba__range::-moz-range-thumb { width: 48px; height: 400px; border: 0; }

.ba figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--areia); }

@media (min-width: 640px) {
  .resultados__more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .resultados__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .ba--main { grid-column: 1 / span 8; }
  .resultados__intro { order: 0; grid-column: 9 / span 4; padding: 0 0 36px clamp(8px, 2vw, 32px); }
  .resultados__more { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); }
  .ba--main .ba__knob { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .ba--main .ba__knob .arc { width: 30px; }
  .ba--main .ba__tag { bottom: 16px; font-size: var(--fs-small); }
  .ba--main .ba__tag--a { left: 16px; }
  .ba--main .ba__tag--d { right: 16px; }
}

/* ---------- primeira consulta ---------- */

.consulta { background: var(--papel); padding-block: var(--section); }
.consulta__grid { display: grid; gap: 48px; }
.consulta__photo { order: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--areia); }
.consulta__photo img { width: 100%; height: 100%; object-fit: cover; }

.passos { counter-reset: passo; margin-block: clamp(28px, 4vw, 48px) clamp(32px, 4vw, 48px); }
.passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: clamp(48px, 7vw, 88px) 1fr;
  gap: 4px 0;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--rule);
}
.passos li:last-child { border-bottom: 1px solid var(--rule); }
.passos li::before {
  content: counter(passo);
  grid-row: span 2;
  font-family: var(--serif);
  font-size: clamp(2.125rem, 1.5rem + 2.8vw, 4rem);
  font-weight: 400;
  line-height: .9;
  color: var(--marrom);
}
.passos h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.passos p { grid-column: 2; max-width: 32em; color: var(--cafe); text-wrap: pretty; }

@media (min-width: 900px) {
  .consulta__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
  }
  .consulta__photo { order: 0; grid-column: 1 / span 5; }
  .consulta__body { grid-column: 7 / span 6; }
}

/* ---------- depoimentos ---------- */

.depoimentos { background: var(--marrom); color: var(--porcelana); padding-block: var(--section); }
.depoimentos :focus-visible { outline-color: var(--porcelana); }
.depoimentos__grid { display: grid; gap: 48px; }
.depoimentos__aside { display: grid; gap: 20px; justify-items: start; }

.quote--lead blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3125rem, .75rem + 2.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.quote figcaption { margin-top: 16px; font-size: var(--fs-small); color: var(--nude); }
.quote--lead figcaption { margin-top: clamp(20px, 2vw, 28px); }

.quotes { display: grid; gap: 0 clamp(32px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.quotes .quote { padding: 24px 0; border-top: 1px solid var(--rule-light); }
.quotes blockquote { font-size: var(--fs-body); line-height: 1.6; text-wrap: pretty; }

@media (min-width: 640px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .depoimentos__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .depoimentos__aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
  .depoimentos__body { grid-column: 6 / span 7; }
}

/* ---------- contato ---------- */

.contato { background: var(--papel); padding-block: var(--section); }
.contato__grid { display: grid; gap: 48px; }
.contato__address {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
}
.contato__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  gap: 16px clamp(32px, 5vw, 64px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.contato__list dt { font-size: var(--fs-small); color: var(--cafe); }
.contato__list dd { font-size: var(--fs-lead); }
.contato__list a { text-decoration: none; }
.contato__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contato__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.contato__map {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--areia);
}
.contato__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) sepia(.35) contrast(.96);
  transition: filter var(--dur-ui) ease;
}
.contato__map:hover iframe { filter: none; }

@media (min-width: 640px) { .contato__map { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) {
  .contato__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
  }
  .contato__body { grid-column: 1 / span 5; }
  .contato__map { grid-column: 7 / span 6; }
}

/* ---------- chamada final ---------- */

.final { background: var(--nude); padding-block: var(--section); overflow-x: clip; }
.final__grid { display: grid; gap: 48px; }
.final__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1rem + 5.4vw, 6.25rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.022em;
  color: var(--marrom);
  max-width: 7.5em;
  text-wrap: balance;
}
.final__body .lead { margin-block: clamp(24px, 3vw, 36px) clamp(28px, 3vw, 40px); max-width: 28em; }
.final__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--areia); }
.final__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .final__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
  }
  .final__body { grid-column: 1 / span 6; }
  .final__photo { grid-column: 7 / span 6; }
}

/* ---------- rodapé ---------- */

.footer { background: var(--espresso); color: var(--areia); padding-top: clamp(56px, 8vw, 112px); font-size: var(--fs-small); }
.footer :focus-visible { outline-color: var(--nude); }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.footer__brand { grid-column: 1 / -1; color: var(--nude); }
.footer__col h2 { margin-bottom: 12px; font-family: var(--sans); font-size: var(--fs-small); font-weight: 500; color: var(--nude); }
.footer__col p { line-height: 1.8; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--nude); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-light);
  font-size: .8125rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 5fr 2.6fr 2fr 1.6fr; }
  .footer__brand { grid-column: auto; }
}

/* ---------- estado inicial das animações ----------
   Só vale quando o JavaScript está ativo e a pessoa não pediu menos movimento. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-hero-title],
  .js [data-hero-fade],
  .js [data-hero-photo],
  .js [data-hero-panel] { visibility: hidden; }
}

@media print {
  .header, .menu { display: none; }
}

/* máscaras de linha do SplitText: folga para não cortar cedilha e descendentes */
.hero__title [class*="-mask"],
.final__title [class*="-mask"] { padding-bottom: .16em; margin-bottom: -.16em; }

/* ---------- tratamentos no celular e tablet: um carrossel por categoria ----------
   O cartão seguinte aparece cortado para mostrar que há mais; só passa pelos botões ou pelo dedo. */
.trat__media, .grupo__nav { display: none; }

@media (max-width: 899px) {
  /* sem isto a lista horizontal alarga a coluna inteira */
  .tratamentos__grid { grid-template-columns: minmax(0, 1fr); }
  .tratamentos__grid > * { min-width: 0; }
  .grupo__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--marrom);
  }
  .grupo__head .grupo__title { padding: 0; border: 0; }
  .grupo__nav { display: flex; gap: 8px; }
  .grupo__btn {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--marrom); color: var(--porcelana);
    cursor: pointer;
    transition: background-color var(--dur-micro) ease, opacity var(--dur-micro) ease;
  }
  .grupo__btn svg { width: 20px; height: 20px; }
  .grupo__btn:active { background: var(--cafe); }
  .grupo__btn[aria-disabled="true"] { opacity: .35; }

  .grupo ul {
    display: flex; gap: 12px;
    margin: 16px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .grupo ul::-webkit-scrollbar { display: none; }
  .grupo li { flex: 0 0 min(76%, 340px); scroll-snap-align: start; display: flex; }

  .trat {
    display: flex; flex-direction: column; gap: 6px;
    width: 100%; padding: 0 0 20px;
    border: 0; border-radius: var(--radius);
    background: var(--porcelana);
    overflow: hidden;
  }
  .trat__media {
    display: grid; place-items: center;
    aspect-ratio: 4 / 3; margin-bottom: 10px;
    background: var(--espresso);
    overflow: hidden;
  }
  .trat__media img { width: 100%; height: 100%; object-fit: cover; }
  .trat__media--inteira img { object-fit: contain; }
  .trat__media--plain { background: var(--marrom); color: var(--nude); }
  .trat__media--plain .arc { width: 36%; }
  .trat__name, .trat__desc { padding-inline: 16px; }
}

/* ---------- imagens dentro de quadros com proporção fixa ----------
   Posição absoluta em vez de height: 100%: no Safari do iPhone a altura em porcentagem
   pode não ser calculada dentro de um quadro com aspect-ratio, e a foto aparece cortada. */
.hero__photo, .doutor__photo, .consulta__photo, .final__photo, .ba__stage, .trat__media { position: relative; }
.hero__photo img, .doutor__photo img, .consulta__photo img, .final__photo img,
.ba__stage .ba__img, .trat__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
/* nos cartões do carrossel a foto aparece sempre inteira */
.trat__media img { object-fit: contain; }
