/* Direção: editorial marfim e ouro. Fundo marfim quente, cacau como tinta, ouro da logo só em fios, números e detalhes.
   Cormorant Garamond (a mesma família de traço fino da logo) nos títulos; fonte do sistema no texto corrido.
   Assinatura: o fio dourado afilado, eco do traço da assinatura "AJ", separa as seções. */
@font-face { font-family: Cormorant; src: url(/fonts/cormorant.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-italic.woff2) format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
:root {
  --marfim: #fbf6f1; --creme: #f4e7de; --tinta: #2e211c; --suave: #6b5a52; --ouro: #b98b3f; --ouro-esc: #85601f; --linha: rgba(46,33,28,.14);
  --serif: Cormorant, "Cormorant Garamond", Georgia, serif;
  --larg: 1120px; --lado: clamp(1.25rem, 5vw, 2.5rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--marfim); color: var(--tinta); font: 400 1.0625rem/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ouro-esc); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--ouro-esc); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8.5vw, 5rem); line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.06; letter-spacing: -.015em; }
h3 { font-size: 1.55rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--ouro-esc); }
p { margin: 0 0 1em; }
.sub { font-size: 1.15rem; color: var(--suave); }
.eyebrow { margin: 0 0 1.1rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ouro-esc); }

/* Cabeçalho: sólido, sem blur (blur em camada fixa pesa no Safari do iPhone). */
.topo { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; background: var(--marfim); border-bottom: 1px solid var(--linha);
  padding: .35rem max(var(--lado), env(safe-area-inset-right)) .35rem max(var(--lado), env(safe-area-inset-left)); padding-top: calc(.35rem + env(safe-area-inset-top)); }
.marca { display: block; padding: .15rem 0; }
.marca img { width: 88px; }
.topo nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.topo nav a:not(.btn) { color: var(--tinta); text-decoration: none; font-size: .95rem; padding: .7rem .85rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.topo nav a:not(.btn):active { background: var(--creme); }
@media (hover: hover) and (pointer: fine) { .topo nav a:not(.btn):hover { background: var(--creme); } }
.topo nav a[aria-current] { color: var(--ouro-esc); font-weight: 600; }
.topo nav .btn { margin-left: .5rem; }
.menu-btn { display: none; font: 600 .9rem system-ui, sans-serif; color: var(--tinta); background: transparent; border: 1px solid var(--linha); border-radius: 999px; padding: .55rem 1.25rem; min-height: 44px; cursor: pointer; touch-action: manipulation; }
.menu-btn:active { background: var(--creme); }
@media (max-width: 760px) {
  .js .menu-btn { display: block; }
  .js .topo nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .25rem 0 1rem; }
  .js .topo.aberto nav { display: flex; }
  .topo nav a:not(.btn) { font-size: 1.1rem; border-radius: 0; border-top: 1px solid var(--linha); padding: .9rem .25rem; }
  .topo nav .btn { margin: 1rem 0 0; }
}

/* Seções e fio dourado */
section { padding: clamp(3.5rem, 9vw, 6.5rem) var(--lado); }
.caixa { max-width: var(--larg); margin: 0 auto; }
.estreita { max-width: 720px; margin: 0 auto; }
.creme { background: rgba(244,231,222,.78); }
.escura { background: rgba(46,33,28,.9); color: var(--marfim); }
.escura .eyebrow { color: #d7b06a; }
.escura .sub, .escura p { color: #e6d9d0; }
.escura h2 em { color: #d7b06a; }
.fio { display: block; width: 7.5rem; height: 2px; margin: 0 0 1.5rem; background: linear-gradient(90deg, var(--ouro), transparent); }
.centro { text-align: center; }
.centro .fio { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--ouro), transparent); }
.centro .acoes { justify-content: center; }

/* Fundo da página toda (como na Cartaxo): foto do atendimento fixa atrás de tudo, com véu marfim; as seções ficam translúcidas por cima. */
body::before, body::after { content: ""; position: fixed; pointer-events: none; }
body::before { inset: 0; z-index: -2; background: url(/img/fundo-m.webp) center 30% / cover; }
body::after { inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(251,246,241,.8) 0%, rgba(251,246,241,.72) 40%, rgba(251,246,241,.84) 100%); }
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) {
  body::before { inset: -6% 0; background-image: url(/img/fundo.webp); }
  body::after { background: linear-gradient(90deg, rgba(251,246,241,.9) 0%, rgba(251,246,241,.74) 50%, rgba(251,246,241,.5) 100%); }
}
/* Profundidade: só transform/opacity guiados pela rolagem, e a camada fixa só se mexe no computador (no iPhone, animação em camada fixa derruba o Safari). */
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 900px) and (pointer: fine) {
    body::before { animation: fundo-entra 1.4s cubic-bezier(.2,.7,.2,1) both; }
    @supports (animation-timeline: scroll()) {
      body::before { animation: fundo-entra 1.4s cubic-bezier(.2,.7,.2,1) both, fundo-desce linear both; animation-timeline: auto, scroll(root); animation-composition: replace, add; }
    }
  }
  @supports (animation-timeline: scroll()) {
    .hero .arco { animation: arco-sobe linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes fundo-entra { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes fundo-desce { to { transform: translate3d(0, 5%, 0); } }
@keyframes arco-sobe { to { transform: translate3d(0, -7%, 0); } }
.hero .dois { align-items: center; }
.hero .sub { max-width: 34rem; }
.dois { display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.dois.centrado { align-items: center; }
.acoes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Fotos: arco (hero) e cantos suaves */
.arco { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--ouro), 0 0 0 10px var(--marfim), 0 0 0 11px rgba(185,139,63,.5); max-width: 440px; margin-inline: auto; width: 100%; }
.arco img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.foto { border-radius: 16px; width: 100%; object-fit: cover; }
.retrato { aspect-ratio: 4 / 5; }

/* Lista editorial (procedimentos na home) */
ol.lista, ul.lista { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: i; }
.lista li { counter-increment: i; border-top: 1px solid var(--linha); }
.lista li:last-child { border-bottom: 1px solid var(--linha); }
.lista a { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: .25rem 1rem; align-items: baseline; padding: 1.15rem 0; min-height: 44px; text-decoration: none; color: var(--tinta); }
.lista a::before { content: "0" counter(i); font-family: var(--serif); font-size: 1.25rem; color: var(--ouro-esc); }
.lista strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.lista a::after { content: "→"; color: var(--ouro-esc); }
.lista small { grid-column: 2; font-size: .95rem; color: var(--suave); }
.lista a:active { background: rgba(185,139,63,.1); }
@media (hover: hover) and (pointer: fine) { .lista a:hover strong { color: var(--ouro-esc); } }

/* Passos */
ol.etapas { list-style: none; counter-reset: e; padding: 0; margin: 1.5rem 0 0; }
ol.etapas li { counter-increment: e; display: flex; gap: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--linha); }
ol.etapas li:last-child { border-bottom: 1px solid var(--linha); }
ol.etapas li::before { content: counter(e); flex: none; width: 2.25rem; height: 2.25rem; border: 1px solid var(--ouro); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--ouro-esc); }
ol.etapas li p { margin: 0; }

ul.pontos { list-style: none; padding: 0; margin: 0 0 1.5rem; }
ul.pontos li { position: relative; padding: .35rem 0 .35rem 1.5rem; }
ul.pontos li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .6rem; height: 1px; background: var(--ouro); }
.escura ul.pontos li::before { background: #d7b06a; }

/* Galeria */
.galeria { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 2rem; }
.galeria img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; width: 100%; }
.galeria figure { margin: 0; }
.galeria figcaption { font-size: .9rem; color: var(--suave); margin-top: .5rem; }
.feedbacks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2rem; }
.feedbacks img { border-radius: 16px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.citacoes { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2.5rem; }
blockquote { margin: 0; padding-left: 1.25rem; border-left: 1px solid var(--ouro); font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
blockquote footer, blockquote cite { display: block; margin-top: .5rem; font: .8rem system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); font-style: normal; }

/* Procedimentos */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: 0 var(--lado) .5rem; margin: 0 calc(var(--lado) * -1); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--lado); }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; scroll-snap-align: start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1.1rem; border: 1px solid var(--linha); border-radius: 999px; text-decoration: none; color: var(--tinta); font-size: .95rem; white-space: nowrap; touch-action: manipulation; }
.chips a:active { background: var(--creme); }
@media (hover: hover) and (pointer: fine) { .chips a:hover { background: var(--creme); } }
.proc { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--linha); }
.proc:first-of-type { border-top: 0; }
.proc .dois { align-items: start; gap: 1.5rem clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.fatos { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 0 0 1.5rem; padding: 1.1rem 0; border-block: 1px solid var(--linha); }
.fatos dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro-esc); }
.fatos dd { margin: .2rem 0 0; font-size: .98rem; }
@media (max-width: 480px) { .fatos { grid-template-columns: 1fr; } }
.proc h3.mini { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
details { border-top: 1px solid var(--linha); padding: .25rem 0; }
details:last-of-type { border-bottom: 1px solid var(--linha); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; touch-action: manipulation; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ouro-esc); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { color: var(--suave); }
details ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.nota { font-size: .9rem; color: var(--suave); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--tinta); cursor: pointer; font: 600 1rem system-ui, sans-serif; text-decoration: none; text-align: center; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  color: var(--marfim); background: var(--tinta); padding: .85rem 1.6rem; min-height: 48px; border-radius: 999px; transition: transform .1s ease-out, background-color .15s; }
.btn:active { transform: scale(.97); }
.btn-sec { background: transparent; color: var(--tinta); border-color: var(--linha); }
.btn-sec:active { background: var(--creme); }
.btn-sm { font-size: .9rem; padding: .55rem 1.2rem; min-height: 44px; }
.escura .btn { background: #d7b06a; border-color: #d7b06a; color: var(--tinta); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #4a3730; } .btn-sec:hover { background: var(--creme); } .escura .btn:hover { background: #e6c88f; } }

/* CTA fixo no celular: sólido, sem blur */
.wa-fixo { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .wa-fixo { display: flex; align-items: center; justify-content: center; gap: .6rem; position: fixed; z-index: 9; left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); bottom: calc(.75rem + env(safe-area-inset-bottom));
    min-height: 52px; border-radius: 999px; background: var(--tinta); border: 1px solid #d7b06a; color: var(--marfim); text-decoration: none; font: 600 1rem system-ui, sans-serif; box-shadow: 0 6px 20px rgba(46,33,28,.28); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
  .wa-fixo svg { color: #d7b06a; }
  .wa-fixo:active { transform: scale(.98); }
}

.rodape { background: rgba(244,231,222,.86); padding: 3.5rem var(--lado) 2rem; font-size: .95rem; color: var(--suave); }
.rodape .cols { max-width: var(--larg); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rodape img { width: 110px; margin-bottom: 1rem; }
.rodape h2 { font: 600 .75rem system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ouro-esc); margin-bottom: 1rem; }
.rodape a { display: inline-block; padding: .2rem 0; }
.rodape p { margin-bottom: .6rem; }
.rodape .copy { max-width: var(--larg); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--linha); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .wa-fixo { transition: none; } }

/* Aviso de cookies (só aparece quando há medição configurada no site.js) */
button.link { background: none; border: 0; padding: 0; color: var(--ouro-esc); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cookies { position: fixed; z-index: 20; left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); max-width: 440px; padding: 1.25rem; background: var(--tinta); color: var(--marfim); border: 1px solid var(--ouro); border-radius: 18px; box-shadow: 0 12px 40px rgba(46,33,28,.25); font-size: .92rem; }
.cookies p { margin: 0 0 .75rem; }
.cookies a { color: #d7b06a; }
.cookies .acoes { display: flex; gap: .5rem; margin: 0; }
.cookies .btn-sec { color: var(--marfim); border-color: rgba(251,246,241,.5); }
