:root {
  --preto: #0e0c0b;
  --preto-2: #1a1715;
  --ouro: #c9a46a;
  --ouro-claro: #e2c896;
  --creme: #f6f0e6;
  --creme-2: #ece3d5;
  --tinta: #221d1a;
  --texto: #3d342e;
  --texto-claro: #e9e1d5;
  --linha: rgba(34, 29, 26, .16);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Albert Sans', system-ui, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --suave: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--creme); color: var(--texto); font: 400 18px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Barra de progresso e topo */
.progresso { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--ouro); transform-origin: left; transform: scaleX(var(--p, 0)); }
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gut); color: var(--creme); transition: transform .45s var(--suave), background .3s, padding .3s;
}
.topo.solido { background: rgba(14, 12, 11, .94); backdrop-filter: blur(10px); padding-block: 12px; }
.topo.some { transform: translateY(-100%); }
.marca { font: 400 26px/1 var(--serif); }
.menu { display: flex; gap: 30px; margin-left: auto; font-size: 16px; }
.menu a { position: relative; color: rgba(246, 240, 230, .85); transition: color .2s; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ouro); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--suave); }
.menu a:hover { color: var(--creme); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Botões: preenchem de baixo pra cima */
.botao {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font: 600 16px/1 var(--sans);
  overflow: hidden; isolation: isolate; cursor: pointer; border: 1px solid transparent; transition: color .35s, border-color .35s;
}
.botao::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .45s var(--suave); }
.botao:hover::before, .botao:focus-visible::before { transform: translateY(0); }
.botao-ouro { background: var(--ouro); color: var(--preto); }
.botao-ouro::before { background: var(--creme); }
.botao-linha { border-color: rgba(246, 240, 230, .6); color: var(--creme); }
.botao-linha::before { background: var(--creme); }
.botao-linha:hover { color: var(--preto); border-color: var(--creme); }
.botao-escuro { background: var(--tinta); color: var(--creme); }
.botao-escuro::before { background: var(--ouro); }
.botao-escuro:hover { color: var(--preto); }
.botao-contorno { border-color: var(--tinta); color: var(--tinta); }
.botao-contorno::before { background: var(--tinta); }
.botao-contorno:hover { color: var(--creme); }
.botao-topo { padding: 12px 22px; }

/* Hero: fundo gerado, fios de cabelo dourados */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; background: var(--preto); color: var(--creme); overflow: hidden; }
.fios { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.fios.pronto { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,11,.7), rgba(14,12,11,0) 18%, rgba(14,12,11,.05) 30%, rgba(14,12,11,.85) 85%); pointer-events: none; }
.hero-conteudo { position: relative; z-index: 2; padding: 140px var(--gut) clamp(60px, 10vh, 120px); max-width: 980px; }
.hero-titulo { font: 400 clamp(56px, 11vw, 150px)/1 var(--serif); letter-spacing: -.01em; }
.linha { display: block; overflow: hidden; padding: .12em 0 .06em; margin: -.12em 0 -.06em; }
.linha > span { display: inline-block; }
.hero-texto { max-width: 560px; margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--texto-claro); }
.hero-botoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Aviso da agenda de dezembro */
.aviso {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 22px var(--gut); background: var(--ouro); color: var(--preto); font-size: 17px; font-weight: 500;
}
.aviso-link { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.aviso:hover .aviso-link { border-color: transparent; }

/* Seções */
.secao { padding: clamp(80px, 11vw, 140px) var(--gut); }
.cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
h2 { font: 400 clamp(40px, 5.2vw, 68px)/1.05 var(--serif); color: var(--tinta); }
h3 { font: 400 clamp(28px, 2.8vw, 36px)/1.15 var(--serif); color: var(--tinta); }
.h2-palavras .p { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .08em; margin: -.12em 0 -.08em; }
.h2-palavras .p > span { display: inline-block; }
.cab-link { font-weight: 600; border-bottom: 1px solid var(--ouro); padding-bottom: 2px; }

/* Serviços: a foto ao lado troca conforme o serviço */
.servicos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.serv-moldura { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--creme-2); }
.serv-moldura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s var(--suave); }
.serv-moldura img.ativa { opacity: 1; transform: none; }
.serv { list-style: none; margin: 40px 0 44px; border-top: 1px solid var(--linha); }
.serv li { display: flex; gap: 20px; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid var(--linha); }
.serv li p { margin-top: 8px; max-width: 460px; }
.serv li h3 { transition: color .3s; }
.serv li.ativo h3 { color: #9a7337; }
.serv-mini { display: none; }

/* Mural de trabalhos, com reflexo de brilho passando no cabelo */
.trabalhos { background: var(--preto); }
.trabalhos h2 { color: var(--creme); }
.trabalhos .cab-link { color: var(--creme); }
.mural { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 320px); grid-auto-flow: dense; gap: 12px; }
.mural figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--preto-2); }
.mural .m-alto { grid-row: span 2; }
.mural .m-largo { grid-column: span 2; }
.mural img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--suave); }
.mural figure:hover img { transform: scale(1.05); }
.brilho::after {
  content: ''; position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 200, .4) 50%, transparent 58%);
  transform: translateX(-70%); mix-blend-mode: soft-light;
}
.anima .brilho.visivel::after { animation: reflexo 2.4s var(--suave) calc(var(--i, 0) * .18s + .3s) both; }
.brilho:hover::after { animation: reflexo 1.6s var(--suave) both; }
@keyframes reflexo { to { transform: translateX(70%); } }
.ampliavel { cursor: zoom-in; }

/* Equipe */
.equipe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; background: var(--creme-2); }
.equipe-foto { border-radius: 4px; overflow: hidden; max-width: 440px; aspect-ratio: 34 / 52; background: var(--preto); }
.equipe-foto img { width: 100%; height: 100%; object-fit: cover; }
.equipe-texto p { margin-top: 24px; max-width: 520px; font-size: 19px; }

/* Avaliações */
.nota { font-size: 17px; }
.nota strong { font: 400 30px/1 var(--serif); color: var(--tinta); margin-right: 4px; }
.aval-grande { max-width: 1000px; }
.aval-grande blockquote { font: 400 clamp(28px, 3.4vw, 44px)/1.3 var(--serif); color: var(--tinta); }
figcaption { margin-top: 18px; font-weight: 600; font-size: 16px; color: #8a6a3a; }
.aval-menores { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: clamp(56px, 7vw, 90px); padding-top: 44px; border-top: 1px solid var(--linha); }
.aval-menores blockquote { font-size: 20px; line-height: 1.6; color: var(--tinta); }

/* Agendar */
.agendar { background: var(--preto); color: var(--texto-claro); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.agendar h2 { color: var(--creme); }
.agendar-cab { position: sticky; top: 110px; }
.agendar-cab p { margin-top: 20px; max-width: 420px; }
.agendar-form { display: grid; gap: 32px; }
fieldset { border: 0; }
legend, .campo-nome > span { display: block; margin-bottom: 14px; font-weight: 600; font-size: 17px; color: var(--creme); }
.fichas { display: flex; flex-wrap: wrap; gap: 10px; }
.fichas label { position: relative; cursor: pointer; }
.fichas input { position: absolute; opacity: 0; pointer-events: none; }
.fichas span {
  display: inline-block; padding: 12px 20px; border: 1px solid rgba(246, 240, 230, .32); border-radius: 999px;
  font-size: 16px; color: var(--texto-claro); transition: background .25s, color .25s, border-color .25s;
}
.fichas label:hover span { border-color: var(--ouro); }
.fichas input:checked + span { background: var(--ouro); border-color: var(--ouro); color: var(--preto); font-weight: 600; }
.fichas input:focus-visible + span { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }
.fichas-dias span { min-width: 76px; text-align: center; line-height: 1.25; }
.fichas-dias small { display: block; font-size: 13px; opacity: .8; }
.campo-nome input {
  width: 100%; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 240, 230, .35);
  color: var(--creme); font: 400 18px var(--sans); outline: none; transition: border-color .25s;
}
.campo-nome input:focus { border-color: var(--ouro); }
.campo-nome input::placeholder { color: rgba(246, 240, 230, .45); }
/* Horários: livres clicáveis, ocupados riscados */
.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.horarios label { position: relative; cursor: pointer; }
.horarios input { position: absolute; opacity: 0; pointer-events: none; }
.horarios span {
  display: block; padding: 12px 0; text-align: center; border-radius: 10px; font-size: 16px; font-weight: 500;
  background: rgba(246, 240, 230, .08); border: 1px solid rgba(246, 240, 230, .22); color: var(--creme); transition: background .25s, border-color .25s, color .25s;
}
.horarios label:hover span { border-color: var(--ouro); }
.horarios input:checked + span { background: var(--ouro); border-color: var(--ouro); color: var(--preto); font-weight: 600; }
.horarios input:focus-visible + span { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }
.horarios .ocupado { cursor: not-allowed; }
.horarios .ocupado span { background: transparent; border-color: rgba(246, 240, 230, .08); color: rgba(246, 240, 230, .32); text-decoration: line-through; }
.horarios .ocupado:hover span { border-color: rgba(246, 240, 230, .08); }
.horarios-legenda { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: rgba(246, 240, 230, .7); }
.horarios-legenda i { width: 14px; height: 14px; border-radius: 4px; background: rgba(246, 240, 230, .08); border: 1px solid rgba(246, 240, 230, .3); }
.horarios-legenda i.ocupado { margin-left: 14px; background: transparent; border-color: rgba(246, 240, 230, .12); }
.falta [data-campo="servicos"]:not(:has(input:checked)) span, .falta .horarios:not(:has(input:checked)) label:not(.ocupado) span { border-color: #e08a6e; }

/* Balão de conversa com a mensagem que vai pro WhatsApp */
.previa-msg { justify-self: start; max-width: 100%; padding: 16px 20px; background: #1f2c25; color: #eef3ef; border-radius: 4px 18px 18px 18px; font-size: 17px; }
.botao-cheio { width: 100%; padding-block: 19px; font-size: 17px; }

/* Como chegar */
.onde { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
address { font-style: normal; margin-top: 24px; font-size: 21px; line-height: 1.6; color: var(--tinta); }
.onde-botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.onde-mapa { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--creme-2); }
.onde-mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.7) sepia(.15); }

.rodape { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 40px var(--gut) 90px; background: var(--preto); color: rgba(246, 240, 230, .75); font-size: 15px; }
.rodape .marca { color: var(--creme); font-size: 24px; }
.rodape-glass { margin-left: auto; }

.whats-flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ouro); color: var(--preto); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .35s var(--suave), opacity .3s;
}
.whats-flutuante .ic { width: 27px; height: 27px; }
.no-topo .whats-flutuante { transform: scale(0); opacity: 0; }

/* Foto ampliada */
dialog { margin: auto; max-width: 92vw; max-height: 92vh; border: 0; background: transparent; color: var(--creme); overflow: visible; }
dialog::backdrop { background: rgba(10, 8, 7, .93); }
dialog img { max-width: 86vw; max-height: 80vh; border-radius: 4px; }
dialog figcaption { color: var(--creme); font: 400 24px var(--serif); }
dialog button { position: fixed; background: none; border: 0; color: var(--creme); font-size: 44px; cursor: pointer; line-height: 1; padding: 12px; }
.fg-fechar { top: 14px; right: 18px; }
.fg-ant { left: 10px; top: 50%; transform: translateY(-50%); }
.fg-prox { right: 10px; top: 50%; transform: translateY(-50%); }
.fg-conta { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 15px; }

/* Animações de entrada (só com a classe anima) */
.anima .hero-titulo .linha > span { transform: translateY(110%); animation: subir 1.2s var(--suave) .1s forwards; }
.anima .hero .sobe { opacity: 0; transform: translateY(24px); animation: aparecer 1s var(--suave) .5s forwards; }
.anima .hero .hero-botoes { animation-delay: .65s; }
@keyframes subir { to { transform: none; } }
@keyframes aparecer { to { opacity: 1; transform: none; } }
.anima .h2-palavras .p > span { transform: translateY(110%); transition: transform 1s var(--suave) calc(var(--i) * .07s); }
.anima .h2-palavras.visivel .p > span { transform: none; }
.anima .secao .sobe { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--suave) calc(var(--i, 0) * .1s), transform .9s var(--suave) calc(var(--i, 0) * .1s); }
.anima .secao .sobe.visivel { opacity: 1; transform: none; }
.anima .porta { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--suave); }
.anima .porta.visivel { clip-path: inset(0 0 0 0); }
.anima .porta img { transform: scale(1.15); transition: transform 1.6s var(--suave); }
.anima .porta.visivel img { transform: none; }
.anima .mural figure { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--suave) calc(var(--i) * .08s), transform .9s var(--suave) calc(var(--i) * .08s); }
.anima .mural figure.visivel { opacity: 1; transform: none; }

/* Celular */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .menu { display: none; }
  .botao-topo { margin-left: auto; }
  .servicos, .equipe, .agendar, .onde { grid-template-columns: 1fr; }
  .serv-moldura { display: none; }
  .serv-mini { display: block; width: 76px; height: 92px; object-fit: cover; border-radius: 4px; flex: none; }
  .serv li { padding: 22px 0; }
  .mural { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; gap: 8px; }
  .equipe-foto { max-width: 360px; }
  .agendar-cab { position: static; }
  .aval-menores { grid-template-columns: 1fr; }
  .rodape-glass { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
