/* =========================================================
   Dr. Érick Reis | Médico clínico geral e saúde mental
   Cores, fontes e tempos de animação: variáveis em :root.
   ========================================================= */

/* ---------- Fontes (hospedadas no próprio site; subconjunto latino, fontes variáveis) ---------- */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Reserva com métricas ajustadas: reduz o salto de layout enquanto a fonte real carrega */
@font-face { font-family: "Newsreader Reserva"; src: local("Georgia"); size-adjust: 100%; }
@font-face { font-family: "Atkinson Reserva"; src: local("Arial"), local("Helvetica"); size-adjust: 98.5%; }

:root {
  /* Cores (tiradas da fachada: parede de cal, letras douradas, porta preta) */
  --ink: #0E1622;          /* nanquim azulado: fundos escuros */
  --ink-deep: #09101A;     /* rodapé */
  --ink-2: #172231;        /* superfície escura elevada */
  --gold: #C6A15B;         /* dourado do letreiro, sobre fundo escuro */
  --gold-hi: #E4CB93;      /* brilho do dourado */
  --gold-lo: #A9853F;
  --gold-deep: #7D5F27;    /* dourado para texto e linhas sobre fundo claro */
  --lime: #F3F4F1;         /* branco de cal: fundo claro */
  --stone: #E6E7E2;        /* pedra: faixa clara alternada */
  --text: #18202C;         /* texto sobre claro */
  --muted: #4A5361;        /* texto secundário sobre claro (7:1) */
  --faint: #6A7280;        /* títulos em repouso, só em tamanho grande */
  --on-ink: #EEF0F2;       /* texto sobre escuro */
  --on-ink-muted: #AEB6C2;
  --line: rgba(24, 32, 44, .15);
  --line-ink: rgba(198, 161, 91, .3);
  --gold-grad: linear-gradient(135deg, #DDBF7E 0%, #C6A15B 46%, #B08A45 100%);

  /* Tipografia */
  --serif: "Newsreader", "Newsreader Reserva", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Reserva", "Segoe UI", system-ui, sans-serif;
  --fs-body: 1.125rem;   /* 18px */
  --fs-h3: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --fs-h1: clamp(2.6rem, min(1.4rem + 4.9vw, 9vh + .75rem), 5.6rem);

  /* Medidas */
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5.5rem, 3rem + 8vw, 10rem);
  --header-h: 78px;

  /* Movimento */
  --ease: cubic-bezier(.16, 1, .3, 1);       /* saída longa, assentada */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--lime);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  hanging-punctuation: first allow-end;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; color: inherit; text-wrap: balance; font-feature-settings: "kern", "liga"; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.018em; font-variation-settings: "opsz" 72; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; letter-spacing: -.005em; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
figure { margin: 0; }
strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.services :focus-visible, .about :focus-visible, .faq :focus-visible { outline-color: var(--gold-deep); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --mx: 0px; --my: 0px; --lift: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
  transform: translate3d(var(--mx), calc(var(--my) + var(--lift)), 0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn-gold {
  background: var(--gold-grad); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .45), inset 0 -1px 0 rgba(90, 64, 20, .25), 0 1px 2px rgba(9, 16, 26, .25);
}
.btn-gold::after { /* reflexo que atravessa o botão */
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 250, 235, 0) 0%, rgba(255, 250, 235, .55) 50%, rgba(255, 250, 235, 0) 100%);
  transform: translateX(-160%) skewX(-18deg);
}
.btn-gold:hover { --lift: -2px; box-shadow: inset 0 1px 0 rgba(255, 244, 214, .5), 0 18px 34px -16px rgba(198, 161, 91, .75), 0 6px 14px -8px rgba(9, 16, 26, .5); }
.btn-gold:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform 1.1s var(--ease); }
.btn-gold:active { --lift: 0px; }
.btn-lg { padding: 1.2rem 1.9rem 1.2rem 1.6rem; font-size: 1.125rem; }
.btn-lg .ico { width: 1.4em; height: 1.4em; }
.btn-sm { padding: .72rem 1.15rem .72rem .95rem; font-size: 1rem; min-height: 44px; }

/* ---------- Cabeçalho ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--on-ink);
  transition: transform .6s var(--ease);
}
.top::before { /* fundo que aparece ao rolar (anima só opacidade) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(14, 22, 34, .9);
  box-shadow: 0 1px 0 rgba(198, 161, 91, .18), 0 10px 30px -18px rgba(0, 0, 0, .6);
  transition: opacity .5s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .top::before { background: rgba(14, 22, 34, .9); backdrop-filter: blur(16px) saturate(1.3); }
}
.top.solid::before { opacity: 1; }
.top.away { transform: translateY(calc(-100% - 2.5rem)); }
.top-in { height: 100%; display: flex; align-items: center; gap: 2.25rem; }
.brand { display: flex; align-items: center; gap: .8rem; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand img { width: 60px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; font-variation-settings: "opsz" 24; }
.brand-crm { font-size: .875rem; color: var(--on-ink-muted); letter-spacing: .01em; }
.nav { display: flex; gap: 2rem; }
.nav a {
  position: relative; font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--on-ink); padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.here::after { transform: scaleX(1); transform-origin: left; }
.top-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(198, 161, 91, .2), var(--gold) 60%, var(--gold-hi));
  transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .4s;
}
.top.solid .top-progress { opacity: 1; }

/* ---------- Abertura ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  min-height: min(100vh, 1000px);
  min-height: min(100svh, 1000px);
  display: flex; align-items: stretch;
}
.hero::after { /* grão fino */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .05;
  background-image: var(--grain);
}
.hero-glow { /* luz quente atrás do retrato */
  position: absolute; z-index: 0; right: 6%; top: 4%; width: 52vw; height: 52vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(198, 161, 91, .2), rgba(198, 161, 91, .06) 55%, rgba(198, 161, 91, 0));
  pointer-events: none;
}
.hero-photo {
  position: absolute; z-index: 1; top: calc(var(--header-h) * .55); bottom: 0; right: 0; width: 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 4%, #000 36%), linear-gradient(0deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 4%, #000 36%), linear-gradient(0deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mix-blend-mode: lighten; /* o preto do estúdio vira o nanquim do fundo */
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
  transform: scale(1.04);
}
.hero-in {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + clamp(2rem, 7vh, 6rem)); padding-bottom: clamp(2rem, 5vh, 4rem);
}
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; max-width: 42rem; }
.hero-title {
  font-size: var(--fs-h1); line-height: 1; letter-spacing: -.026em; font-weight: 500;
  font-variation-settings: "opsz" 72; color: #F7F5F0; margin-bottom: 1.9rem;
}
.hero-lead { font-size: clamp(1.125rem, 1rem + .35vw, 1.3125rem); line-height: 1.6; color: var(--on-ink-muted); max-width: 33rem; margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-phone { margin: 0; color: var(--on-ink-muted); font-size: 1.0625rem; }
.hero-phone a { color: var(--on-ink); font-weight: 700; text-decoration-color: var(--line-ink); text-underline-offset: .28em; transition: text-decoration-color .3s; }
.hero-phone a:hover { text-decoration-color: var(--gold); }
.hero-id {
  grid-column: 1; grid-row: 2; margin: clamp(2.25rem, 6vh, 5rem) 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.5rem;
  font-size: 1rem; color: var(--on-ink-muted); line-height: 1.4;
  padding-top: 1.25rem; position: relative;
}
.hero-id::before { content: ""; position: absolute; top: 0; left: 0; width: 5rem; height: 1.5px; background: var(--gold-grad); transform-origin: left; }
.hero-id span + span { padding-left: 1.5rem; border-left: 1px solid var(--line-ink); }
.hero-id-name { font-family: var(--serif); font-size: 1.1875rem; font-weight: 500; color: #F7F5F0; font-variation-settings: "opsz" 24; }

/* ---------- Títulos revelados linha a linha ---------- */
.ln { display: block; overflow: hidden; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
.ln-in { display: block; }

/* ---------- Atendimentos ---------- */
.services { padding: var(--section) 0; background: var(--lime); }
.services-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.5rem 4rem; align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.services-head h2 { font-size: clamp(2.75rem, 1.5rem + 3.6vw, 4.75rem); line-height: .98; letter-spacing: -.028em; }
.services-head p { color: var(--muted); font-size: 1.1875rem; max-width: 30rem; margin: 0; }

.svc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1.5rem;
  padding: clamp(2rem, 3.4vw, 2.85rem) 0; border-top: 1px solid var(--line);
}
.svc::before { /* fio dourado que se desenha no atendimento em foco */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease);
}
.svc.is-active::before { transform: scaleX(1); }
.svc-ico {
  width: 46px; height: 46px; margin-top: .35rem; fill: none; stroke: var(--gold-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 130; stroke-dashoffset: 0;
}
.svc h3 {
  font-size: clamp(1.75rem, 1.15rem + 1.7vw, 2.75rem); font-weight: 500; line-height: 1.08; letter-spacing: -.016em;
  font-variation-settings: "opsz" 60; margin-bottom: .9rem; color: var(--text);
  transition: color .6s var(--ease);
}
.svc p { color: var(--muted); max-width: 34rem; margin-bottom: 1.5rem; }
.svc-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.0625rem; color: var(--text); text-decoration: none;
  padding: .7rem 1.15rem .7rem .95rem; border-radius: 999px; border: 1px solid rgba(125, 95, 39, .45);
  position: relative; isolation: isolate; overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.svc-link::before { /* preenchimento que sobe no foco */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.svc-link .ico { color: var(--gold-deep); width: 1.2em; height: 1.2em; transition: color .45s var(--ease); }
.svc-link:hover, .svc-link:focus-visible { color: var(--on-ink); border-color: var(--ink); }
.svc-link:hover::before, .svc-link:focus-visible::before { transform: none; }
.svc-link:hover .ico, .svc-link:focus-visible .ico { color: var(--gold); }

.svc-thumb { display: none; }

@media (hover: hover) and (min-width: 1024px) {
  .js .svc:not(.is-active) h3 { color: var(--faint); }
  .svc { cursor: default; }
}

.svc-stage { position: sticky; top: calc(var(--header-h) + 4vh); }
.stage-frame {
  position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 10vh); max-height: calc(100svh - var(--header-h) - 10vh); margin-left: auto;
  overflow: hidden; border-radius: 3px; background: var(--stone);
  box-shadow: 0 50px 80px -50px rgba(14, 22, 34, .55), 0 18px 30px -24px rgba(14, 22, 34, .35);
}
.stage-frame::after { /* fio dourado fino por dentro da moldura */
  content: ""; position: absolute; inset: 14px; z-index: 5; pointer-events: none;
  border: 1px solid rgba(228, 203, 147, .55);
}
.stage-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  clip-path: inset(100% 0 0 0); z-index: 0;
}
.stage-frame img.is-prev { clip-path: inset(0); z-index: 1; }
.stage-frame img.is-on {
  clip-path: inset(0); z-index: 2; transform: scale(1);
  transition: clip-path 1.1s var(--ease-io), transform 1.6s var(--ease);
}

/* ---------- Sobre ---------- */
.about { padding: var(--section) 0; background: var(--lime); position: relative; overflow: hidden; }
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7.5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { /* moldura dourada deslocada, como o relevo da fachada */
  content: ""; position: absolute; inset: 1.75rem -1.75rem -1.75rem 1.75rem; border: 1.5px solid var(--gold-deep); z-index: 0;
}
.about-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.about-copy h2 { margin-bottom: 2rem; max-width: 14ch; }
.about-lead { font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + .75vw, 1.7rem); line-height: 1.42; font-variation-settings: "opsz" 24; }
.about-copy > p { max-width: 36rem; color: var(--muted); }
.about-copy > p.about-lead { color: var(--text); }
.values { margin: 2.75rem 0 0; max-width: 36rem; border-bottom: 1px solid var(--line); }
.values div { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: .25rem 1.5rem; align-items: baseline; padding: 1.15rem 0; }
.values div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.values dt { font-family: var(--serif); font-size: 1.4375rem; font-weight: 600; color: var(--text); font-variation-settings: "opsz" 30; }
.values dd { margin: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }

/* ---------- Cortina: seções escuras que se abrem ao entrar ---------- */
.curtain-host--stone { background: var(--stone); }
.curtain-host--lime { background: var(--lime); }

/* ---------- Como agendar ---------- */
.book { padding: var(--section) 0; background: var(--ink); color: var(--on-ink); position: relative; isolation: isolate; overflow: hidden; }
.book::before, .closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .045; background-image: var(--grain);
}
.book-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.book-copy h2 { color: #F7F5F0; margin-bottom: 1.1rem; max-width: 12ch; }
.book-intro { color: var(--on-ink-muted); font-size: 1.1875rem; max-width: 30rem; margin-bottom: 2.75rem; }

.steps { list-style: none; margin: 0 0 3rem; padding: 0; position: relative; }
.steps li:not(:last-child)::before, .steps li:not(:last-child)::after { /* trilho e progresso entre um passo e o próximo */
  content: ""; position: absolute; left: calc(1.375rem - .5px); top: 2.75rem; bottom: 0; width: 1px;
}
.steps li:not(:last-child)::before { background: var(--line-ink); }
.steps li:not(:last-child)::after { background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 1.1s var(--ease); }
.steps li.is-on:has(+ li.is-on)::after { transform: none; }
.steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1.25rem; padding: 0 0 1.75rem; }
.steps li:last-child { padding-bottom: 0; }
.step-n {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1; color: var(--gold);
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink);
  font-variant-numeric: lining-nums;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease), box-shadow .6s var(--ease);
}
.step-n::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); border-radius: 50%; transform: scale(0); transition: transform .7s var(--ease); }
.steps li.is-on .step-n { color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 6px rgba(198, 161, 91, .12); }
.steps li.is-on .step-n::before { transform: scale(1); }
.steps h3 { font-size: 1.375rem; color: #F7F5F0; margin: .45rem 0 .35rem; font-weight: 600; }
.steps p { color: var(--on-ink-muted); margin: 0; font-size: 1.0625rem; }

/* Só o cartão de conversa, centrado numa moldura dourada fina com luz quente por trás */
.book-visual {
  position: relative; isolation: isolate; justify-self: center; width: min(100%, 31rem);
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3.5vw, 3rem);
}
.book-visual::before { /* moldura dourada, como o relevo da fachada */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1px solid var(--line-ink); border-radius: 30px;
}
.book-visual::after { /* luz quente atrás do cartão */
  content: ""; position: absolute; z-index: -2; inset: -12% -18%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(198, 161, 91, .16), rgba(198, 161, 91, .05) 55%, rgba(198, 161, 91, 0));
}

.chat {
  position: relative; width: 100%; z-index: 2;
  border-radius: 22px; overflow: hidden; color: var(--text);
  background: #ECE7DE;
  box-shadow:
    0 0 0 1px rgba(228, 203, 147, .35),
    0 2px 3px rgba(0, 0, 0, .18),
    0 24px 40px -18px rgba(0, 0, 0, .55),
    0 60px 90px -40px rgba(0, 0, 0, .6);
}
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--ink-2); color: var(--on-ink); border-bottom: 1px solid rgba(198, 161, 91, .25); }
.chat-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-ink); flex: none; }
.chat-avatar img { width: 1.85rem; }
.chat-who { display: flex; flex-direction: column; line-height: 1.25; }
.chat-name { font-weight: 700; font-size: 1rem; }
.chat-note { font-size: .875rem; color: var(--on-ink-muted); }
.chat-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem .9rem 1.1rem; }
.msg {
  position: relative; margin: 0; font-size: 1rem; line-height: 1.42; padding: .62rem .85rem; border-radius: 14px; max-width: 88%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.msg.out { align-self: flex-end; background: #D7F0C6; border-bottom-right-radius: 4px; padding-right: 2.1rem; }
.msg.in { background: #fff; border-bottom-left-radius: 4px; }
.tick { position: absolute; right: .6rem; bottom: .55rem; width: 1.05rem; height: .7rem; color: #4F9BD3; }
.slot { position: relative; display: flex; flex-direction: column; }
.typing {
  position: absolute; left: 0; top: 0; display: inline-flex; gap: .3rem; align-items: center;
  padding: .8rem .95rem; border-radius: 14px; border-bottom-left-radius: 4px; background: #fff; opacity: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.typing i { width: .45rem; height: .45rem; border-radius: 50%; background: #8A929D; }

.steps p a { color: var(--on-ink); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: color .3s; }
.steps p a:hover { color: var(--gold-hi); }

/* ---------- Localização ----------
   Grade: à esquerda, a fachada com o cartão do endereço logo abaixo (um único bloco);
   à direita, o mapa com a mesma altura. Mesma borda, mesma sombra, mesmo espaçamento. */
.place { padding: var(--section) 0; background: var(--stone); position: relative; }
.place :focus-visible { outline-color: var(--gold-deep); }
.place-card :focus-visible { outline-color: var(--gold); }
.place-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.5rem 4rem; align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.place-head h2 { font-size: clamp(2.75rem, 1.3rem + 4.2vw, 5.25rem); line-height: .98; letter-spacing: -.03em; max-width: 13ch; }
.place-head p { color: var(--muted); font-size: 1.1875rem; max-width: 30rem; margin: 0; }

.place-grid {
  --place-gap: clamp(1rem, 1.8vw, 1.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--place-gap);
}
.place-panel, .place-map {
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(125, 95, 39, .28), 0 50px 80px -50px rgba(14, 22, 34, .5), 0 18px 30px -24px rgba(14, 22, 34, .32);
}

/* Bloco principal: fachada e cartão escuro (lado a lado no computador, empilhados nas telas menores); mapa embaixo */
.place-panel { display: flex; flex-direction: column; background: var(--ink); color: var(--on-ink); isolation: isolate; }
/* Fachada sempre inteira: proporção igual à do arquivo, nada cortado nem sobreposto */
.place-photo { position: relative; flex: none; overflow: hidden; background: var(--stone); }
.place-photo img { width: 100%; height: auto; aspect-ratio: 945 / 740; object-fit: contain; }

.place-card {
  position: relative; flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  border-top: 1.5px solid var(--gold);
}
.place-card::before { /* grão fino, como nas seções escuras */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .045; background-image: var(--grain);
}
.place-addr { font-style: normal; display: flex; flex-direction: column; gap: .1rem; color: var(--on-ink-muted); font-size: 1.0625rem; line-height: 1.5; }
.place-street {
  font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); font-weight: 500; line-height: 1.1;
  letter-spacing: -.012em; color: #F7F5F0; font-variation-settings: "opsz" 48; margin-bottom: .4rem;
  font-variant-numeric: lining-nums;
}

/* Botões numa linha só: Google Maps (principal), Waze e Apple Maps */
.place-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.place-go { white-space: nowrap; padding-top: 1.05rem; padding-bottom: 1.05rem; }
.place-alt { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.place-alt-lbl { /* lido por leitores de tela; visível só no celular */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  color: var(--on-ink-muted); font-size: 1rem; margin-right: .2rem;
}
.place-alt a {
  justify-content: center;
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .95rem 0 1.1rem;
  border-radius: 999px; border: 1px solid var(--line-ink); color: var(--on-ink); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.place-alt a .ico { width: 1.1em; height: 1.1em; color: var(--gold); transition: transform .5s var(--ease); }
.place-alt a:hover, .place-alt a:focus-visible { border-color: var(--gold); background-color: rgba(198, 161, 91, .1); }
.place-alt a:hover .ico, .place-alt a:focus-visible .ico { transform: translate(2px, -2px); }

.place-wa {
  margin-top: auto;
  display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(198, 161, 91, .2);
  color: var(--on-ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
}
.place-wa .ico { color: var(--gold); width: 1.3em; height: 1.3em; }
.place-wa span { text-decoration: underline; text-decoration-color: var(--line-ink); text-decoration-thickness: 1.5px; text-underline-offset: .28em; transition: text-decoration-color .3s; }
.place-wa:hover span, .place-wa:focus-visible span { text-decoration-color: var(--gold); }

@media (width >= 1180px) {
  .place-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .place-photo { align-self: start; }
  .place-card { border-top: 0; border-left: 1.5px solid var(--gold); padding: clamp(2rem, 3vw, 3rem); gap: 2.25rem; }
  .place-street { font-size: clamp(2rem, 1.2rem + 1.2vw, 2.5rem); }
  .place-actions { flex-direction: column; align-items: stretch; }
  .place-alt { flex-wrap: nowrap; }
  .place-alt a { flex: 1 1 0; }
}

/* Mapa: largura total, abaixo do bloco */
.place-map { height: clamp(22rem, 30vw, 28rem); background: #DDDED8; }
.place-map-in { position: absolute; inset: 0; }
.place-map iframe, .map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.place-map iframe { z-index: 2; background: transparent; }
/* Aparece enquanto o mapa carrega, ou se ele não puder ser exibido */
.map-fallback {
  z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: 2rem; text-align: center; color: var(--muted);
  background-color: #DDDED8;
  background-image:
    linear-gradient(rgba(24, 32, 44, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 44, .06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map-fallback-pin { width: 2.75rem; height: 2.75rem; flex: none; color: var(--gold-deep); }
.map-fallback p { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--text); }
.map-fallback p.map-fallback-note { font-family: var(--sans); font-size: .9375rem; line-height: 1.45; color: var(--muted); max-width: 26rem; margin-bottom: .4rem; }
.map-load { padding: .85rem 1.4rem .85rem 1.2rem; min-height: 44px; }
.map-load[hidden] { display: none; }
.map-fallback a { position: relative; z-index: 4; display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-decoration-color: var(--gold-deep); text-underline-offset: .22em; }

/* Trava do mapa: enquanto ativa, a rolagem da página passa por cima do mapa
   (sem o aviso "use Ctrl + rolagem"). Um clique ou toque libera o mapa. */
.place-map.is-locked iframe { pointer-events: none; }
.map-lock {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0 0 1.75rem;
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent; border: 0; border-radius: 0; cursor: pointer; font: inherit; color: inherit;
}
.map-lock[hidden] { display: none; }
.map-lock-tip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .55rem 1.05rem .55rem .85rem;
  border-radius: 999px; background: rgba(14, 22, 34, .88); color: var(--on-ink);
  font-size: .9375rem; font-weight: 700; line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(198, 161, 91, .35), 0 12px 24px -12px rgba(9, 16, 26, .6);
  transition: transform .5s var(--ease), background-color .3s;
}
.map-lock-tip .ico { width: 1.15em; height: 1.15em; color: var(--gold); }
.map-lock:hover .map-lock-tip { transform: translateY(-2px); background: var(--ink); }
.map-lock:focus-visible { outline: 0; }
.map-lock:focus-visible .map-lock-tip { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--gold-hi), 0 12px 24px -12px rgba(9, 16, 26, .6); }
.map-lock-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .map-lock-fine { display: none; }
  .map-lock-touch { display: inline; }
}

/* Atalho "Como chegar" na abertura e no rodapé */
.hero-id .hero-id-where { flex-basis: 100%; padding-left: 0; border-left: 0; margin: -.35rem 0 -.6rem; }
.hero-where { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--line-ink); text-underline-offset: .28em; transition: text-decoration-color .3s; }
.hero-where .ico { width: 1.05em; height: 1.05em; color: var(--gold); }
.hero-where:hover { text-decoration-color: var(--gold); }



/* ---------- Dúvidas ---------- */
.faq { padding: var(--section) 0; background: var(--lime); }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-head h2 { margin-bottom: 1.25rem; }
.faq-head p { color: var(--muted); max-width: 22rem; }
.faq-head a { color: var(--text); font-weight: 700; text-decoration-color: var(--gold-deep); text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: color .3s; }
.faq-head a:hover { color: var(--gold-deep); }
.faq-list { border-top: 1px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5625rem); font-weight: 500; line-height: 1.3;
  font-variation-settings: "opsz" 30; transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-deep); }
.faq-list summary > span { transition: transform .5s var(--ease); }
.faq-list summary:hover > span { transform: translateX(.35rem); }
.faq-ico {
  width: 2.5rem; height: 2.5rem; flex: none; padding: .65rem; border-radius: 50%; border: 1px solid var(--line);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: transform .6s var(--ease), background-color .35s, border-color .35s, color .35s;
}
.faq-ico .v { transform-origin: center; transition: transform .6s var(--ease); }
details[open] .faq-ico { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); color: var(--gold); }
details[open] .faq-ico .v { transform: scaleY(0); }
.faq-a { padding: 0 3.5rem 1.85rem 0; color: var(--muted); max-width: 44rem; }
.alert { color: var(--text); background: var(--stone); border-left: 3px solid var(--gold-deep); padding: 1rem 1.15rem; }

/* ---------- Chamada final ---------- */
.closing { padding: 0 0 var(--section); background: var(--ink); color: var(--on-ink); position: relative; isolation: isolate; overflow: hidden; }
/* Faixa com as frases da fachada.
   Dois grupos idênticos; cada grupo termina com o mesmo espaço que separa os itens,
   então deslocar exatamente um grupo fecha o ciclo sem salto. As bordas esmaecem. */
.marquee {
  --mq-gap: clamp(1.75rem, 1rem + 2.2vw, 3.25rem);
  position: relative; margin-bottom: var(--section);
  padding: clamp(1.35rem, 1rem + 1.1vw, 2.1rem) 0;
}
.marquee::after { /* fio fino de fechamento, recuado como as margens do conteúdo */
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: calc(min(100%, var(--wrap)) - 2 * var(--gutter)); height: 1px;
  background: linear-gradient(90deg, rgba(198, 161, 91, 0), rgba(198, 161, 91, .38) 18%, rgba(198, 161, 91, .38) 82%, rgba(198, 161, 91, 0));
}
.marquee-view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(3rem, 12vw, 11rem), #000 calc(100% - clamp(3rem, 12vw, 11rem)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(3rem, 12vw, 11rem), #000 calc(100% - clamp(3rem, 12vw, 11rem)), transparent 100%);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; align-items: center; gap: var(--mq-gap); padding-right: var(--mq-gap); }
.marquee-group span {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.05rem + 1.45vw, 2.375rem); font-weight: 400; line-height: 1.25; white-space: nowrap;
  color: var(--gold); font-variation-settings: "opsz" 48; letter-spacing: -.008em;
}
.marquee-orn { /* losango duplo dourado: vetor, nítido em qualquer tela */
  flex: none; width: clamp(.95rem, .72rem + .55vw, 1.35rem); height: clamp(.95rem, .72rem + .55vw, 1.35rem);
  color: var(--gold); opacity: .85; transform: translateY(.08em);
}
.closing-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem clamp(3rem, 6vw, 6rem); align-items: end; }
.closing h2 { color: #F7F5F0; font-size: clamp(3rem, 1.4rem + 5vw, 6.25rem); line-height: .96; letter-spacing: -.034em; }
.closing-side > p { color: var(--on-ink-muted); font-size: 1.1875rem; max-width: 24rem; margin-bottom: 2rem; }
.closing-side > p.closing-phone { margin: 1.25rem 0 0; font-weight: 700; color: var(--on-ink-muted); font-size: 1.0625rem; }
.closing-phone .num { color: var(--on-ink); letter-spacing: .01em; }

/* ---------- Rodapé ---------- */
.foot { background: var(--ink-deep); color: var(--on-ink-muted); padding: 3.5rem 0 3.75rem; font-size: 1rem; line-height: 1.6; border-top: 1px solid rgba(198, 161, 91, .16); }
.foot-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem 4rem; align-items: start; }
.foot p { margin: 0 0 .5rem; }
.foot-logo { width: 220px; margin-bottom: 1.5rem; opacity: .92; }
.foot-name { font-family: var(--serif); font-size: 1.25rem; color: var(--on-ink); font-weight: 500; }
.foot strong { color: var(--on-ink); }
.foot-note { padding-top: .25rem; max-width: 34rem; }
.foot .foot-addr { margin-top: .75rem; }
.foot-addr a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--on-ink); font-weight: 700; text-decoration-color: var(--line-ink); text-underline-offset: .25em; transition: text-decoration-color .3s; }
.foot-addr a .ico { width: 1.1em; height: 1.1em; color: var(--gold); }
.foot-addr a:hover { text-decoration-color: var(--gold); }

/* ---------- Botão flutuante ---------- */
.float-wa {
  position: fixed; z-index: 60; right: clamp(1rem, 2.5vw, 2rem); bottom: max(clamp(1rem, 2.5vw, 2rem), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 3.75rem; height: 3.75rem; border-radius: 999px;
  background: var(--gold-grad); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .45), 0 16px 36px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(14, 22, 34, .12);
  transform: translateY(170%); opacity: 0;
}
/* Fora de .on o botão sai da ordem de tabulação e dos leitores de tela (visibility só muda depois da saída) */
.float-wa:not(.on) { visibility: hidden; transition: transform .7s var(--ease), opacity .4s, visibility 0s .7s; }
.float-wa.on { visibility: visible; transform: none; opacity: 1; transition: transform .7s var(--ease), opacity .4s, visibility 0s; }
.float-wa .ico { width: 1.6em; height: 1.6em; }
/* Foco: anel de tinta (contraste sobre fundo claro) e halo dourado (contraste sobre fundo escuro) */
.float-wa:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .45), 0 0 0 3px var(--gold-hi), 0 16px 36px -14px rgba(0, 0, 0, .6);
}
.float-label { /* no computador, rótulo aparece ao lado */
  position: absolute; right: calc(100% + .75rem); top: 50%; white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--on-ink); font-size: 1rem; padding: .6rem .9rem; border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line-ink), 0 10px 24px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(8px, -50%); transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.float-wa:hover .float-label, .float-wa:focus-visible .float-label { opacity: 1; transform: translate(0, -50%); }

/* =========================================================
   Movimento (só quando a pessoa não pediu menos movimento)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Abertura orquestrada */
  .js .hero-photo { animation: emerge 2.6s .1s var(--ease) both; }
  .js .hero-glow { animation: glow-in 2.4s .5s var(--ease) both, breathe 9s 3s ease-in-out infinite alternate; }
  .js .hero-title:not(.is-split) { opacity: 0; }
  .js .hero-lead { animation: rise 1.1s 1.05s var(--ease) both; }
  .js .hero-actions { animation: rise 1.1s 1.2s var(--ease) both; }
  .js .hero-actions .btn-gold::after { animation: sheen 1.6s 2.2s var(--ease) both; }
  .js .hero-id::before { animation: draw 1.4s 1.4s var(--ease) both; }
  .js .hero-id span { animation: fade 1.2s 1.7s var(--ease) both; }
  .js .top-in { animation: drop 1.2s .9s var(--ease) both; }

  /* Linhas dos títulos: sobem de trás de uma máscara */
  .js .ln-in { transform: translate3d(0, 135%, 0); transition: transform 1.15s var(--ease); transition-delay: calc(var(--li, 0) * 95ms + var(--d, 0ms)); }
  .js .in > .ln > .ln-in, .js .in.ln > .ln-in { transform: none; }
  .js .hero-title { --d: 280ms; }

  /* Textos de apoio: aparecem logo depois do título */
  .js .reveal-fade { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 250ms); }
  .js .reveal-fade.in { opacity: 1; transform: none; }

  /* Imagens: abrem de baixo para cima, com leve recuo de zoom */
  .js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
  .js .reveal-img img { transform: scale(1.18); transition: transform 2s var(--ease); }
  .js .reveal-img.in { clip-path: inset(0 0 0 0); }
  .js .reveal-img.in img { transform: none; }
  .js .about-photo.reveal-img { clip-path: inset(calc(100% + 3rem) -3rem -3rem 0); }
  .js .about-photo.reveal-img.in { clip-path: inset(0 -3rem -3rem 0); }
  .js .about-photo::before { opacity: 0; transform: translate(-1.75rem, -1.75rem); transition: opacity 1s .9s, transform 1.4s .9s var(--ease); }
  .js .about-photo.in::before { opacity: 1; transform: none; }

  /* Localização: fachada e mapa se abrem juntos; o endereço aparece em seguida */
  .js .place-map-in.reveal-img { transition-delay: .15s; }
  .js .place-photo.reveal-img img { transform: none; } /* a fachada aparece sempre inteira, sem zoom */

  /* Fios que se desenham */
  .js .reveal-rule::before { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal-rule.in::before { transform: none; }
  .js .reveal-rule dt, .js .reveal-rule dd { opacity: 0; transition: opacity .9s var(--ease); transition-delay: calc(var(--d, 0ms) + 250ms); }
  .js .reveal-rule.in dt, .js .reveal-rule.in dd { opacity: 1; }

  /* Atendimentos: ícone se redesenha quando o item ganha foco */
  .js .svc.is-active .svc-ico { animation: redraw 1.8s var(--ease) both; }
  .js .svc h3 { transition: color .6s var(--ease), transform .8s var(--ease); }
  .js .svc.is-active h3 { transform: translateX(.35rem); }
  .js .svc-stage .stage-frame img.is-on { transform: scale(1); }
  .js .svc-stage .stage-frame img:not(.is-on):not(.is-prev) { transform: scale(1.12); }
  .js .svc-stage { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
  .js .svc-stage.in { opacity: 1; transform: none; }

  /* Conversa animada */
  .js .chat.anim .msg { opacity: 0; transform: translate3d(0, 12px, 0) scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease); }
  .js .chat.anim .msg.out { transform-origin: 100% 100%; }
  .js .chat.anim .msg.in { transform-origin: 0 100%; }
  .js .chat.anim .show > .msg, .js .chat.anim .msg.show { opacity: 1; transform: none; }
  .js .chat.anim .slot.typing-on .typing { opacity: 1; transition: opacity .3s; }
  .js .chat.anim .slot .typing { transition: opacity .25s; }
  .typing i { animation: dot 1.1s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  .js .chat { opacity: 0; transform: translate3d(-24px, 40px, 0); transition: opacity 1s .3s var(--ease), transform 1.4s .3s var(--ease); }
  .js .chat.in { opacity: 1; transform: none; }

  /* Faixa com as frases da fachada */
  .marquee-track { animation: marquee var(--mq-dur, 90s) linear infinite; will-change: transform; }
  .marquee.paused .marquee-track { animation-play-state: paused; }

  /* Respostas das dúvidas */
  details[open] .faq-a { animation: open .6s var(--ease); }

  /* Cortina: a seção escura se abre enquanto entra na tela */
  @supports (animation-timeline: view()) {
    .curtain { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  }

  /* Celular e telas de toque: sem clip-path animado (repinta a cada quadro); só opacidade e transform */
  @media (width < 769px), (hover: none) {
    .js .reveal-img, .js .reveal-img.in, .js .about-photo.reveal-img, .js .about-photo.reveal-img.in { clip-path: none; }
    .js .reveal-img { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
    .js .reveal-img.in { opacity: 1; transform: none; }
    .js .reveal-img img { transform: none; }
    .stage-frame img { clip-path: none; opacity: 0; }
    .stage-frame img.is-prev, .stage-frame img.is-on { clip-path: none; opacity: 1; }
    .stage-frame img.is-on { transition: transform 1.6s var(--ease); }
    @supports (animation-timeline: view()) {
      .curtain { animation-name: curtain-m; }
    }
  }
}

@keyframes emerge {
  from { opacity: 0; transform: scale(1.12); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes glow-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { opacity: 1; } to { opacity: .7; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sheen { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(330%) skewX(-18deg); } }
@keyframes redraw { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--mq-shift, -50%), 0, 0); } }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes curtain {
  from { clip-path: inset(0 4.5vw round 36px); }
  to { clip-path: inset(0 0 round 0); }
}
@keyframes curtain-m {
  from { opacity: .4; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}


/* Celular e telas de toque: cabeçalho com fundo sólido (desfocar o que passa por baixo pesa na GPU) */
@media (width < 769px), (hover: none) {
  .top::before { background: rgba(14, 22, 34, .95); backdrop-filter: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (width < 1101px) {
  .nav { display: none; }
}

/* Localização empilhada: fachada, cartão (endereço | botões) e mapa, todos na largura total */
@media (width < 1180px) {
  .place-map { height: clamp(20rem, 48vw, 28rem); }
}
@media (width >= 901px) and (width < 1180px) {
  /* Cartão largo: endereço à esquerda, botões à direita, WhatsApp embaixo */
  .place-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2.5rem; }
  .place-actions { flex-direction: column; align-items: stretch; }
  .place-alt { flex-wrap: nowrap; }
  .place-alt a { flex: 1 1 auto; }
  .place-wa { grid-column: 1 / -1; }
}

@media (width < 1024px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  /* No celular e no tablet, cada atendimento traz o próprio retrato */
  .svc-thumb {
    display: block; float: right; width: clamp(5.75rem, 24vw, 9rem); margin: .25rem 0 .9rem 1.1rem;
    overflow: hidden; border-radius: 3px; position: relative;
    box-shadow: 0 18px 30px -20px rgba(14, 22, 34, .5);
  }
  .svc-thumb::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(228, 203, 147, .6); pointer-events: none; }
  .svc-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .svc-link { display: flex; width: fit-content; clear: both; }
}

@media (width < 901px) {
  :root { --header-h: 66px; }
  .brand img { width: 50px; }
  .brand-name { font-size: 1.15rem; }

  .hero { min-height: min(100vh, 860px); min-height: min(100svh, 860px); }
  .hero-photo { width: 58%; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-copy { max-width: 58%; }
  .hero-id { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: .2rem; }
  .hero-id span + span { padding-left: 0; border-left: 0; }
  .hero-id .hero-id-where { flex-basis: auto; max-width: 100%; }

  .services-head { grid-template-columns: 1fr; }

  .about-in { grid-template-columns: 1fr; }
  .about-photo { max-width: 30rem; margin-right: 1.75rem; margin-bottom: 1.75rem; }

  .book-in { grid-template-columns: 1fr; }
  .book-visual { justify-self: center; width: min(100%, 30rem); }

  .place-head { grid-template-columns: 1fr; }

  .faq-in { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-a { padding-right: 0; }

  .closing-in { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot { padding-bottom: 7.5rem; }

  /* Botão flutuante vira pílula com texto no celular */
  .float-wa { width: auto; height: auto; padding: .95rem 1.35rem .95rem 1.1rem; }
  .float-wa .ico { width: 1.45em; height: 1.45em; }
  .float-label { position: static; opacity: 1; transform: none; background: none; color: inherit; padding: 0; box-shadow: none; font-size: inherit; }
  .float-wa:hover .float-label, .float-wa:focus-visible .float-label { transform: none; }
}

@media (width < 641px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero-photo { position: relative; top: auto; width: 100%; height: min(100vw, 560px); margin-top: calc(var(--header-h) * .5);
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-photo img { object-position: 50% 6%; }
  .hero-glow { right: -30%; top: 0; width: 130vw; height: 130vw; }
  .hero-in { grid-template-rows: auto auto; padding-top: 0; margin-top: -3.75rem; padding-bottom: 3rem; }
  .hero-copy { max-width: none; }
  .hero-title { margin-bottom: 1.25rem; }
  .hero-lead { margin-bottom: 2rem; }
  .hero-id { margin-top: 2.75rem; }

  .svc { grid-template-columns: 1fr; padding: 2.1rem 0 2.25rem; }
  .svc-ico { width: 40px; height: 40px; margin: 0 0 1rem; }


  .book-visual { padding: 1.25rem; }
  .book-visual::before { border-radius: 28px; }
}

@media (width < 721px) {
  /* Celular: botão principal na largura toda, "Ou abra no" visível e Waze/Apple Maps lado a lado */
  .place-actions { flex-direction: column; align-items: stretch; }
  .place-alt-lbl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; flex-basis: 100%; }
  .place-alt a { flex: 1 1 0; }
}

@media (width < 561px) {
  :root { --fs-body: 1.0625rem; } /* 17px */
  .brand-txt { display: none; }
  .hero-title { font-size: clamp(2.5rem, 10.6vw, 3.25rem); line-height: 1.02; }
  .btn-lg { width: 100%; }
  .hero-actions { gap: 1rem; }
  .services-head h2 { font-size: 2.875rem; }
  .faq-list summary { padding: 1.35rem 0; }
  .values div { grid-template-columns: 1fr; }
  .steps li { column-gap: 1rem; }
  .place-head h2 { font-size: 2.875rem; }
  .place-card { padding: 1.6rem 1.25rem 1.4rem; gap: 1.5rem; }
  .place-go { padding-left: 1.1rem; padding-right: 1.25rem; }
  .place-map { height: clamp(19rem, 92vw, 24rem); }
  .map-lock { padding-bottom: 4rem; } /* acima do botão de tela cheia do Google */
  .map-fallback { padding: 1rem; gap: .4rem; }
  .map-fallback-pin { width: 2.25rem; height: 2.25rem; }
}

/* Movimento reduzido: tudo estático, nada some */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .stage-frame img.is-on { clip-path: inset(0); }
  /* Faixa parada: as três frases centralizadas, sem cortes nas bordas */
  .marquee-view { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee-group { flex: 1 1 auto; min-width: 0; flex-direction: column; gap: .55rem; padding-right: 0; }
  .marquee-group + .marquee-group, .marquee-group .marquee-orn:last-child { display: none; }
  .marquee-group span { white-space: normal; text-align: center; font-size: clamp(1.375rem, 1.05rem + 1vw, 1.875rem); }
  .marquee-orn { transform: none; width: .9rem; height: .9rem; }
}
