@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #171614;
  --ink-2: #26231f;
  --paper: #f7f4ef;
  --sand: #ece5da;
  --gold: #d1ab55;
  --gold-hover: #e0bf70;
  --gold-ink: #6f5214;
  --muted: #45413b;
  --line: #d6cdbf;
  --radius: 14px;
  --wrap: 1200px;
  --gut: 48px;          /* margem lateral */
  --gutter: 24px;       /* espaço entre as 12 colunas */
  --bar: 30px;          /* faixa da prévia */
  --navh: 66px;
  --head: calc(var(--bar) + var(--navh));
  --padt: calc(var(--head) + 40px);
  --padb: 56px;
  --fab: 0px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 450; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid12 > * { min-width: 0; grid-column: 1 / -1; }

.skip { position: absolute; left: 0; top: -200px; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(var(--navh) + 8px); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
:is(.nav, .hero, .sec--ink, .foot) :focus-visible { outline-color: var(--gold); }

/* Cabeçalho fixo com a faixa da prévia */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(#0d0c0b 0 var(--bar), rgba(23, 22, 20, .96) var(--bar)); color: var(--paper); }
.preview-bar { height: var(--bar); line-height: var(--bar); text-align: center; color: #cfc8bc; font-size: .76rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; }
.nav__in { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--navh); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.05; white-space: nowrap; }
.brand__name small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #bdb5a8; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav__menu a:not(.btn) { text-decoration: none; padding: 12px 0; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav__menu a:not(.btn):hover { background-size: 100% 1px; }
.nav__toggle { display: none; min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; color: inherit; font: 500 .95rem var(--sans); cursor: pointer; }

/* Botões */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); box-shadow: 0 8px 24px rgba(209, 171, 85, .3); }
.btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); box-shadow: 0 8px 24px rgba(23, 22, 20, .2); }
.btn--line { color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.ico { width: 22px; height: 22px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Uma seção por tela */
main > section { position: relative; min-height: calc(var(--h, 1) * 100svh); padding: var(--padt) 0 calc(var(--padb) + var(--fab)); }
main > section > .wrap { position: relative; z-index: 1; }

/* Abertura */
.hero { height: 100svh; min-height: 0; padding: 0; display: flex; align-items: flex-start; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: 0; }
.hero::after { z-index: 0; }
.hero__bg img { object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 12, 11, .9) 0%, rgba(13, 12, 11, .7) 42%, rgba(13, 12, 11, .1) 75%); }
.hero__in { padding-top: calc(var(--head) + 64px); }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); max-width: 13ch; font-weight: 400; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.25rem); max-width: 40ch; margin-top: 24px; color: #ece7df; }
.hero .actions { margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); max-width: 560px; font-size: .95rem; color: #ddd6cb; }
.facts strong { color: var(--gold); font-size: 1.15rem; }

.enter { opacity: 0; transform: translateY(18px); animation: enter .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 120ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Fundos */
.sec--paper { background: var(--paper); }
.sec--sand { background: var(--sand); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.sec__head p { color: var(--muted); max-width: 46ch; margin-top: 20px; }

.frame { overflow: hidden; border-radius: var(--radius); background: var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.frame:hover img { transform: scale(1.025); }

/* Tratamentos */
.trat { row-gap: 32px; }
.trat .sec__head { grid-column: 1 / span 6; }
.trat__photo { grid-column: 7 / span 6; height: 236px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 22, 20, .08); border-color: #c8b48a; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .97rem; line-height: 1.55; }

/* A clínica */
.clin { align-items: start; }
.clin__text { grid-column: 1 / span 5; }
.clin__text p { color: var(--muted); margin-top: 20px; max-width: 46ch; }
.clin__text h2 { max-width: 15ch; }
.rt { margin: 28px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.rt dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.rt dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.rt dd span { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.clin__photo { grid-column: 6 / span 7; height: calc(100svh - var(--padt) - var(--padb)); max-height: 708px; }

/* Avaliações */
.rating__in { align-items: stretch; }
.rating__text { grid-column: 1 / span 5; }
.rating__text h2 { max-width: 14ch; }
.rating__big { font-family: var(--serif); font-weight: 350; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; margin-top: 40px; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.stars { font-size: 1.6rem; letter-spacing: .16em; color: var(--gold); }
.rating__sub { margin: 20px 0 36px; max-width: 34ch; font-size: 1.1rem; color: #d9d2c6; }
.rating__sub strong { color: #fff; }
.rating__photo { grid-column: 6 / span 7; min-height: 480px; }

/* Localização */
.loc { align-items: stretch; }
.loc__text { grid-column: 1 / span 5; }
.loc address { font-style: normal; font-size: 1.15rem; margin-top: 24px; line-height: 1.6; }
.loc h3 { font-size: 1.3rem; margin-top: 32px; }
.hours { border-collapse: collapse; width: 100%; margin: 12px 0 32px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.map { grid-column: 6 / span 7; position: relative; min-height: 460px; }
.map img { position: absolute; inset: 0; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(13, 12, 11, .35); z-index: 1; pointer-events: none; }
.map__load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.map__load:hover { transform: translate(-50%, calc(-50% - 2px)); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* Dúvidas */
.faq { align-items: start; }
.faq__head { grid-column: 1 / span 5; }
.faq__photo { margin-top: 32px; height: 240px; }
.faq__photo img { object-position: 50% 35%; }
.faq__head p { color: var(--muted); margin: 20px 0 28px; }
.faq__list { grid-column: 6 / span 7; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.3; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; color: var(--gold-ink); transition: transform .25s var(--ease); flex: none; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--gold-ink); }
.faq__list details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 62ch; }

/* Fechamento e rodapé (uma tela) */
.closing { background: var(--ink); color: #d9d2c6; min-height: 100svh; padding: var(--padt) 0 calc(28px + var(--fab)); display: flex; }
.closing > .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.close { row-gap: 32px; align-items: start; }
.close__text { grid-column: 1 / span 7; }
.close__text h2 { color: var(--paper); font-size: clamp(2.2rem, 4.2vw, 3.6rem); max-width: 16ch; }
.close__text p { margin: 16px 0 24px; font-size: 1.1rem; max-width: 44ch; }
.close__logo { grid-column: 8 / span 5; }
.close__logo img { width: 100%; max-width: 200px; border-radius: 12px; }
.foot__in { row-gap: 32px; padding-bottom: 40px; }
.foot__col:nth-child(1) { grid-column: 1 / span 5; }
.foot__col:nth-child(2) { grid-column: 6 / span 4; }
.foot__col:nth-child(3) { grid-column: 10 / span 3; }
.foot__h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.foot li { margin-bottom: 4px; }
.foot a:not(.btn) { display: inline-block; padding: 10px 0; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left 80% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.foot a:not(.btn):hover { background-size: 100% 1px; color: #fff; }
.foot__base { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #a9a196; row-gap: 8px; }
.foot__base p:first-child { grid-column: 1 / span 6; }
.foot__base p:last-child { grid-column: 7 / span 6; text-align: right; }

/* WhatsApp fixo (celular) */
.wa-fab { display: none; }

/* Tablet: as colunas empilham e a seção cresce com o conteúdo */
@media (max-width: 1023px) {
  .trat .sec__head, .trat__photo, .clin__text, .mosaic, .loc__text, .map, .clin__photo, .faq__head, .faq__list, .rating__text, .rating__photo, .close__text, .close__logo, .foot__col:nth-child(n) { grid-column: 1 / -1; }
  .rating__in { row-gap: 32px; }
  .rating__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .close__logo img { max-width: 140px; }
  .faq__photo { height: auto; aspect-ratio: 16 / 9; }
  .trat__photo { height: auto; aspect-ratio: 16 / 7; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clin, .loc, .faq { row-gap: 40px; }
  .clin__photo { height: auto; max-height: none; aspect-ratio: 16 / 10; }
  .map { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu { position: fixed; top: var(--head); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gut); background: var(--ink); font-size: 1.3rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav__menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); background: none; }
  .nav__menu .btn { margin-top: 24px; min-height: 52px; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
}

/* Celular */
@media (max-width: 639px) {
  :root { --gut: 24px; --gutter: 12px; --bar: 26px; --navh: 58px; --padt: calc(var(--head) + 28px); --padb: 40px; --fab: 78px; }
  main > section { min-height: calc(var(--hm, var(--h, 1)) * 100svh); }
  .preview-bar { font-size: .68rem; }
  .brand__name { font-size: 1.15rem; }
  .hero__in { padding-top: calc(var(--head) + 32px); }
  .hero__bg img { object-position: 50% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(13, 12, 11, .92) 0%, rgba(13, 12, 11, .8) 55%, rgba(13, 12, 11, .35) 100%); }
  .hero .actions .btn { width: 100%; }
  .hero .actions .btn--ghost { display: none; }
  .facts { gap: 6px 20px; font-size: .9rem; margin-top: 24px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { padding: 16px 18px 18px; }
  .card h3 { font-size: 1.18rem; margin-bottom: 4px; }
  .card h3::before { margin-bottom: 10px; }
  .card p { font-size: .94rem; }
  .trat { row-gap: 24px; }
  #tratamentos, #clinica, #localizacao { --hm: 2; }
  .closing { min-height: 100svh; }
  .hero__bg { top: var(--head); height: calc(100% - var(--head)); }
  .trat__photo { aspect-ratio: 4 / 3; }
  .clin__photo { aspect-ratio: 4 / 5; }
  .rating__big { font-size: 2.2rem; }
  .map { aspect-ratio: 3 / 4; }
  .actions .btn { width: 100%; }
  .faq__list details p { padding-right: 0; }
  .faq__list summary { font-size: 1.15rem; min-height: 56px; padding: 12px 0; }
  .faq__head p { margin: 14px 0 20px; }
  .foot__base p:first-child, .foot__base p:last-child { grid-column: 1 / -1; text-align: left; }
  .wa-fab { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
  .wa-fab:active { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .enter { opacity: 1; transform: none; }
}

@media (max-width: 380px) { .brand__sub { display: none; } }
