@property --p {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}

:root {
  --verde: #0C4A24;
  --verde-fundo: #083A1B;
  --laranja: #F47C20;
  --laranja-claro: #FFD9B8;
  --branco: #FFFFFF;
  --nevoa: #EEF4EC;
  --texto: #1D3325;

  --titulo: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --corpo: 'Instrument Sans', system-ui, sans-serif;

  --lado: clamp(1.25rem, 5vw, 4.5rem);
  --bloco: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }

h2 {
  font-family: var(--titulo);
  font-stretch: 80%;
  font-weight: 750;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--verde);
  text-wrap: balance;
}

h3 {
  font-family: var(--titulo);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--verde);
}

:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

.oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--verde); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.icone { width: 1.25em; height: 1.25em; flex: none; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.botao:hover { transform: translateY(-2px); }
.botao--verde { background: var(--verde); color: #fff; }
.botao--verde:hover { background: var(--verde-fundo); }
.botao--laranja { background: var(--laranja); color: var(--verde-fundo); }
.botao--laranja:hover { background: #FF8D36; }
.botao--linha { border-color: var(--verde); color: var(--verde); }
.botao--claro { border-color: #fff; color: #fff; }
.botao--compacto { padding: .65rem 1.1rem; font-size: .9375rem; }

.acoes { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .7rem var(--lado);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #DCE6D9;
}
.marca { margin-right: auto; }
/* A logo original tem muita margem branca: recorta só a área útil. */
.marca__recorte {
  display: block; position: relative; overflow: hidden;
  width: clamp(9.5rem, 16vw, 12.5rem);
  aspect-ratio: 760 / 262;
}
.marca__recorte img {
  position: absolute; max-width: none; height: auto;
  width: calc(900 / 760 * 100%);
  left: calc(-62 / 760 * 100%);
  top: calc(-278 / 262 * 100%);
}
.menu { display: flex; gap: 1.75rem; }
.menu a {
  text-decoration: none; font-weight: 500; font-size: .9875rem; color: var(--verde);
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.menu a:hover { border-bottom-color: var(--laranja); }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(2rem, 5vw, 4rem) var(--lado) 0;
  overflow: hidden;
  isolation: isolate;
}
/* Degradê que funde o topo com a faixa verde dos serviços */
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: var(--fusao);
  background: linear-gradient(to bottom,
    rgba(8, 58, 27, 0) 0%, rgba(8, 58, 27, .18) 30%,
    rgba(8, 58, 27, .62) 68%, var(--verde-fundo) 100%);
  pointer-events: none;
}
.hero { --fusao: clamp(5rem, 10vw, 9rem); }
.hero__conteudo {
  position: relative; z-index: 3;
  padding-bottom: calc(var(--fusao) + 1rem);
}
/* A modelo é maior que o círculo: cabeça, cabelo e ombros passam da borda */
.hero__figura {
  position: relative; z-index: 1;
  width: clamp(24rem, 52vw, 50rem);
  aspect-ratio: 1305 / 1205;
  margin: 0 calc(var(--lado) * -0.6) 0 0;
}
.hero__disco {
  position: absolute;
  left: 15%; top: 11%;
  width: 72%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--laranja);
}
.hero__figura img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* suaviza o braço, que é cortado na borda esquerda da foto */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%);
}

.foco {
  position: relative;
  width: max-content; max-width: 11ch;
  font-family: var(--titulo);
  font-stretch: 76%;
  font-weight: 800;
  font-size: clamp(4rem, 11.4vw, 11.5rem);
  line-height: .84;
  letter-spacing: -0.035em;
  color: var(--verde);
  animation: focar 1.9s cubic-bezier(.6, .05, .3, 1) .35s both;
}
.foco__nitido { display: block; clip-path: inset(-.2em calc(100% - var(--p)) -.2em -.2em); }
.foco__borrado {
  position: absolute; inset: 0;
  filter: blur(.075em);
  opacity: .8;
  clip-path: inset(-.3em -.3em -.3em var(--p));
}
.foco__lente {
  position: absolute; top: 50%; left: var(--p);
  width: .95em; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: .045em solid var(--verde);
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(1px);
  animation: lente 1.9s cubic-bezier(.6, .05, .3, 1) .35s both;
}
@keyframes focar { from { --p: 0%; } to { --p: 100%; } }
@keyframes lente {
  0% { opacity: 0; scale: .7; }
  12%, 82% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.25; }
}

.hero__base {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.hero__texto { max-width: 34rem; }
.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem .6rem .85rem;
  border-radius: 999px;
  background: var(--branco);
  border: 1px solid #DCE6D9;
  font-weight: 500; font-size: .9875rem;
}
.status[hidden] { display: none; }
.status__ponto { width: .65rem; height: .65rem; border-radius: 50%; background: #9AA89C; }
.status--aberto .status__ponto { background: #1FA84F; box-shadow: 0 0 0 4px rgba(31, 168, 79, .2); }

/* Tabela de optotipos: serviços em linhas que diminuem, como no consultório */
.tabela {
  background: var(--verde-fundo);
  color: #fff;
  padding: var(--bloco) var(--lado);
}
.tabela__linhas { max-width: 68rem; margin-inline: auto; }
.tabela__linhas li {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem 2.5rem;
  padding: clamp(.9rem, 1.8vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.tabela__nome {
  font-family: var(--titulo);
  font-stretch: 78%;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.02em;
}
.tabela__desc { color: #C9DBCB; max-width: 26rem; }
.tabela__linhas li:nth-child(1) .tabela__nome { font-size: clamp(2.75rem, 8.6vw, 7.5rem); color: var(--laranja); }
.tabela__linhas li:nth-child(2) .tabela__nome { font-size: clamp(2.25rem, 6.4vw, 5.25rem); }
.tabela__linhas li:nth-child(3) .tabela__nome { font-size: clamp(1.875rem, 4.6vw, 3.75rem); }
.tabela__linhas li:nth-child(4) .tabela__nome { font-size: clamp(1.5rem, 3.2vw, 2.5rem); }
.tabela__linhas li:nth-child(5) .tabela__nome { font-size: clamp(1.25rem, 2.3vw, 1.75rem); }
.tabela__linhas li:nth-child(6) .tabela__nome { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.tabela__nota {
  max-width: 68rem; margin: 2rem auto 0;
  font-size: .9375rem; color: #C9DBCB;
}

/* Galeria da loja: uma foto principal ao lado do texto e quatro miniaturas iguais */
.galeria { padding: var(--bloco) var(--lado) 0; max-width: 78rem; margin-inline: auto; }
.galeria__topo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.galeria__texto p { margin-top: 1.25rem; max-width: 26rem; }
.galeria__miniaturas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.foto { margin: 0; }
.foto button {
  display: block; width: 100%; padding: 0; border: 0;
  border-radius: 1rem; overflow: hidden;
  background: var(--nevoa); cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.foto--principal button { aspect-ratio: 3 / 2; border-radius: 1.25rem; }
.foto img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.foto button:hover img { transform: scale(1.04); }
.foto p { margin-top: .6rem; font-weight: 600; font-size: .9375rem; color: var(--verde); }

.ampliada {
  padding: 0; border: 0; background: transparent;
  max-width: min(92vw, 76rem); max-height: 92vh;
}
.ampliada::backdrop { background: rgba(8, 58, 27, .88); }
.ampliada img { max-width: 100%; max-height: 82vh; border-radius: 1rem; margin-inline: auto; }
.ampliada__fechar {
  display: block; margin: .9rem auto 0;
  padding: .6rem 1.4rem; border: 0; border-radius: 999px;
  background: #fff; color: var(--verde);
  font: 600 1rem var(--corpo); cursor: pointer;
}

/* Exame */
.exame { padding: var(--bloco) var(--lado); }
.exame__cabeca {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem 4rem; align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.exame__cabeca p { max-width: 30rem; }
.passos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: passo;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.passos li {
  counter-increment: passo;
  padding-top: 1.25rem;
  border-top: 3px solid var(--verde);
}
.passos li::before {
  content: counter(passo);
  display: block;
  font-family: var(--titulo);
  font-stretch: 76%;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--laranja);
  margin-bottom: .75rem;
}
.passos h3 { margin-bottom: .4rem; }

/* Formatos */
.formatos { background: var(--nevoa); padding: var(--bloco) var(--lado); }
.formatos__cabeca { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.formatos__cabeca p { margin-top: 1rem; }
.formatos__grade {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.formatos__grade svg { width: 100%; max-width: 15rem; margin-bottom: 1.25rem; }
.tr { fill: none; stroke: var(--verde); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; transition: stroke .2s ease; }
.formatos__grade li:hover .tr { stroke: var(--laranja); }
.formatos__grade h3 { margin-bottom: .3rem; }
.formatos__insta { margin-top: clamp(2.5rem, 5vw, 4rem); }
.formatos__insta a { font-weight: 600; color: var(--verde); text-underline-offset: 3px; }

/* Depoimentos */
.depoimentos { padding: var(--bloco) var(--lado); }
.depoimentos__grade {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.depoimento {
  position: relative;
  display: flex; flex-direction: column;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--nevoa);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
/* Aspas grandes no canto, como marca d'água */
.depoimento::before {
  content: '”';
  position: absolute; right: 1.25rem; top: -1.25rem;
  font-family: var(--titulo); font-weight: 800; font-size: 9rem; line-height: 1;
  color: var(--laranja); opacity: .22;
  transition: opacity .25s ease, transform .25s ease;
}
.depoimento:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 18px 40px rgba(12, 74, 36, .16), 0 0 0 2px var(--laranja);
}
.depoimento:hover::before { opacity: .5; transform: scale(1.08) rotate(-4deg); }
.estrelas { width: 7.5rem; height: 1.5rem; color: var(--laranja); margin-bottom: 1.25rem; }
.depoimento blockquote { margin: 0 0 1.75rem; }
.depoimento blockquote p {
  font-family: var(--titulo);
  font-stretch: 88%;
  font-weight: 600;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--verde);
  text-wrap: pretty;
}
.depoimento figcaption {
  display: flex; align-items: center; gap: .85rem;
  margin-top: auto;
  font-size: .9375rem; color: #4A6152;
}
.depoimento figcaption strong { display: block; font-size: 1.0625rem; color: var(--texto); }
.depoimento__inicial {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--verde); color: #fff;
  font-family: var(--titulo); font-weight: 700; font-size: 1.25rem;
}
.depoimentos__convite { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.depoimentos__convite a { font-weight: 600; color: var(--verde); text-underline-offset: 3px; }

/* Entrada dos cartões: chegam desfocados e entram em foco, um depois do outro.
   Só vale quando o script marcou a página com .anima, então sem JS tudo aparece normal. */
.anima .depoimento {
  opacity: 0; filter: blur(10px);
  transform: translateY(2.5rem) scale(.96);
}
.anima .depoimento .estrelas { clip-path: inset(0 100% 0 0); }
.anima .depoimento.visivel {
  opacity: 1; filter: none; transform: none;
  transition: opacity .7s ease var(--atraso, 0s), filter .7s ease var(--atraso, 0s),
              transform .7s cubic-bezier(.2, .8, .2, 1) var(--atraso, 0s);
}
.anima .depoimento.visivel .estrelas {
  clip-path: inset(0 0 0 0);
  transition: clip-path .8s steps(5, end) calc(var(--atraso, 0s) + .45s);
}
.anima .depoimento.pronto { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.anima .depoimento.pronto:hover { transform: translateY(-6px); }

/* Loja */
.loja {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--verde);
  color: #fff;
}
.loja__info { padding: var(--bloco) var(--lado); }
.loja h2 { color: #fff; margin-bottom: 1.75rem; }
.loja address { font-style: normal; font-size: 1.125rem; }
.loja__ref { margin-top: .5rem; color: var(--laranja-claro); }
.horarios {
  width: 100%; max-width: 24rem;
  margin: 2rem 0 2.25rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.horarios caption {
  text-align: left; padding-bottom: .5rem;
  font-family: var(--titulo); font-stretch: 85%; font-weight: 700; font-size: 1.25rem;
}
.horarios th, .horarios td {
  padding: .6rem .75rem; text-align: left; font-weight: 400;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.horarios td { text-align: right; }
.horarios .hoje th, .horarios .hoje td { background: rgba(255, 255, 255, .1); font-weight: 600; }
.horarios .hoje th::after { content: ' (hoje)'; font-weight: 400; color: var(--laranja-claro); }
.loja__mapa { min-height: 26rem; }
.loja__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Rodapé */
.rodape {
  background: var(--verde-fundo); color: #C9DBCB;
  padding: 2.5rem var(--lado) 5.5rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem;
  font-size: .9375rem;
}
.rodape__nome { font-family: var(--titulo); font-stretch: 85%; font-weight: 700; font-size: 1.125rem; color: #fff; }
.rodape__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.rodape__links a { text-underline-offset: 3px; }

/* WhatsApp flutuante */
.flutuante {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 3.75rem; height: 3.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #1FA84F; color: #fff;
  box-shadow: 0 6px 18px rgba(8, 58, 27, .35);
  font-size: 1.6rem;
  transition: transform .15s ease;
}
.flutuante:hover { transform: scale(1.07); }

/* Telas menores */
@media (max-width: 60rem) {
  .menu { display: none; }
  .exame__cabeca, .galeria__topo { grid-template-columns: 1fr; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__conteudo { padding-bottom: 0; }
  .foco { width: auto; max-width: 11ch; }
  .hero__figura { width: min(112%, 40rem); margin: 1rem 0 0 auto; margin-right: calc(var(--lado) * -1); }
  .passos, .formatos__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loja { grid-template-columns: 1fr; }
  .loja__mapa { min-height: 20rem; height: 20rem; }
}

@media (max-width: 40rem) {
  .foco { font-size: clamp(3.9rem, 21vw, 6.5rem); }
  .galeria__miniaturas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabela__linhas li { grid-template-columns: 1fr; gap: .4rem; }
  .passos { grid-template-columns: 1fr; gap: 1.5rem; }
  .passos li { display: grid; grid-template-columns: 3rem 1fr; column-gap: .5rem; }
  .passos li::before { grid-row: span 2; font-size: 2.75rem; margin: 0; }
  .acoes .botao { width: 100%; }
  .rodape__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .foco { animation: none; --p: 100%; }
  .foco__lente { display: none; }
  .foto img { transition: none; }
  .botao, .flutuante, .depoimento, .depoimento::before { transition: none; }
}

/* Textos que surgem ao rolar. Só valem com .anima (JS ativo e movimento permitido). */
.anima .surge {
  opacity: 0; filter: blur(8px);
  transform: translateY(1.75rem);
}
.anima .surge.visivel {
  opacity: 1; filter: none; transform: none;
  transition: opacity .75s ease var(--atraso, 0s), filter .75s ease var(--atraso, 0s),
              transform .75s cubic-bezier(.2, .8, .2, 1) var(--atraso, 0s);
}
