/* BM Stúdio. As cores são da casa: parede preta, couro vinho das cadeiras e a luz azul do letreiro. */
@font-face { font-family: Titulo; src: url("../fonts/titulo.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Texto; src: url("../fonts/texto.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  --preto: #0c0c0d;
  --branco: #fff;
  --couro: #571c1b;
  --couro-escuro: #3b1112;
  --couro-claro: #e6cdc9;
  --piso: #eceded;
  --cinza: #b4b5ba;
  --azul: #2f48e0;
  --titulo: Titulo, "Arial Black", Arial, sans-serif;
  --texto: Texto, "Segoe UI", Arial, sans-serif;
  --lado: clamp(20px, 4.4vw, 76px);
  --espaco: clamp(80px, 10vw, 160px);
  --solta: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--preto); color: var(--branco); font: 400 1.0625rem/1.55 var(--texto); overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, fieldset { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
h1, h2 { font-family: var(--titulo); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2.125rem, 4.3vw, 4.25rem); }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--azul); color: #fff; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pular { position: absolute; left: 16px; top: -80px; z-index: 30; background: #fff; color: #000; padding: 10px 16px; }
.pular:focus { top: 12px; }

.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 26px; border: 0; border-radius: 6px; font: 600 1.0625rem/1.2 var(--texto); text-align: center; text-decoration: none; transition: background-color .18s, color .18s, box-shadow .18s; }
.cheio { background: #fff; color: var(--preto); }
.cheio:hover { background: #d5d8e6; }
.contorno { background: none; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.contorno:hover { background: #fff; color: var(--preto); box-shadow: inset 0 0 0 1.5px #fff; }
.botao[aria-pressed="true"] { background: var(--azul); color: #fff; box-shadow: none; }

/* Topo */
.topo { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--lado); }
.marca img { width: clamp(58px, 5.4vw, 80px); filter: invert(1); }
.topo nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.topo nav a { padding: 10px 0; text-decoration: none; text-shadow: 0 0 12px #000, 0 0 4px #000; }
.topo nav a:hover { text-decoration: underline; }

/* Abertura: o corte gira na parede preta */
.abertura { --alto: clamp(600px, 100svh, 1040px); position: relative; display: flex; align-items: flex-end; min-height: var(--alto); overflow: hidden; isolation: isolate; }
.palco { position: absolute; z-index: -1; top: 0; right: 0; height: 100%; width: min(58vw, calc(var(--alto) * .94)); cursor: grab; touch-action: pan-y; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.palco:active { cursor: grabbing; }
.palco::after { content: ""; position: absolute; z-index: 2; inset: 0 0 -1px; background: linear-gradient(180deg, rgb(12 12 13 / .55), transparent 18%, transparent 66%, var(--preto) 99%); pointer-events: none; }
.giro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; pointer-events: none; }
.giro.ativo { opacity: 1; z-index: 1; }
.giro.saindo { opacity: 1; transition: none; }
.abertura-texto { width: 52%; padding: 130px 0 clamp(32px, 6svh, 64px) var(--lado); }
h1 { font-size: clamp(2.5rem, min(5.5vw, 10.4svh), 6rem); font-weight: 800; }
.abertura-texto > p { margin-top: 24px; font-size: 1.1875rem; max-width: 26em; }
.abertura-texto .acoes { margin-top: 30px; }
.abertura-texto .estado { margin-top: 24px; font-size: 1rem; color: var(--cinza); }
.estado.aberto::before, .estado.fechado::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .6em; border-radius: 50%; background: #8d8f98; }
.estado.aberto { color: #fff; }
.estado.aberto::before { background: #35d06c; box-shadow: 0 0 10px 1px #35d06c; }
.controle { position: absolute; z-index: 2; right: var(--lado); bottom: clamp(32px, 6svh, 64px); width: min(38vw, 520px); }
.nomes { display: flex; justify-content: space-between; gap: 6px 18px; }
.nomes button { padding: 10px 0; border: 0; background: none; color: #c9cad0; font: 500 1rem/1.2 var(--texto); white-space: nowrap; transition: color .2s; }
.nomes button:hover, .nomes button[aria-pressed="true"] { color: #fff; }
.nomes button[aria-pressed="true"] { font-weight: 700; }
.girar { display: grid; grid-template-columns: 1fr auto; align-items: center; font-size: .9375rem; color: var(--cinza); }
.girar input { grid-column: 1 / -1; grid-row: 1; }
#pausa { padding: 8px 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: .24em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: none; cursor: grab; }
.girar input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #fff var(--p, 0%), rgb(255 255 255 / .32) var(--p, 0%)); }
.girar input::-moz-range-track { height: 2px; background: linear-gradient(90deg, #fff var(--p, 0%), rgb(255 255 255 / .32) var(--p, 0%)); }
.girar input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: #fff; }
.girar input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }

/* Valores, no couro da cadeira */
.valores { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 48px clamp(40px, 7vw, 120px); padding: var(--espaco) var(--lado); background: var(--couro); }
.valores-cabeca { position: sticky; top: 56px; align-self: start; }
.valores-cabeca p { margin-top: 22px; max-width: 30em; }
.valores-cabeca .pagamento { color: var(--couro-claro); }
.valores h3 { margin: 52px 0 12px; font: 500 1.0625rem/1.3 var(--texto); color: var(--couro-claro); }
.valores h3:first-child { margin-top: 0; }
.valores li { border-top: 1px solid rgb(255 255 255 / .2); }
.valores li:last-child { border-bottom: 1px solid rgb(255 255 255 / .2); }
.servico { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; width: 100%; min-height: 66px; padding: 10px 0; border: 0; background: none; text-align: left; transition: background-color .18s, color .18s, padding .28s var(--solta); }
.servico::before { content: ""; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); transition: box-shadow .2s; }
.servico span { font: 600 clamp(1.125rem, 1.65vw, 1.5rem)/1.15 var(--titulo); letter-spacing: -.02em; }
.servico small { font-size: 1rem; color: var(--couro-claro); white-space: nowrap; }
.servico b { min-width: 5.4rem; text-align: right; font: 600 clamp(1.125rem, 1.65vw, 1.5rem)/1.15 var(--titulo); letter-spacing: -.02em; white-space: nowrap; }
.servico i { display: block; margin-bottom: 4px; font: 400 .875rem/1 var(--texto); letter-spacing: 0; color: var(--couro-claro); }
.servico[aria-pressed="true"] { background: #fff; color: var(--couro-escuro); padding-inline: 18px; }
.servico[aria-pressed="true"]::before { box-shadow: inset 0 0 0 8px var(--couro); }
.servico[aria-pressed="true"] :is(small, i) { color: #6b3a38; }
.servico:focus-visible { position: relative; z-index: 1; }

/* Cortes */
.cortes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: clamp(28px, 5vw, 88px); background: var(--piso); color: var(--preto); padding-right: var(--lado); }
.compara { --x: 50%; position: relative; grid-row: 1 / -1; align-self: stretch; min-height: min(100vh, 900px); overflow: hidden; background: #222; }
.compara img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.antes { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.fio { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.fio::after { content: ""; position: absolute; top: 72%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none' stroke='%230c0c0d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 20l-8 8 8 8M34 20l8 8-8 8'/%3E%3C/svg%3E"); }
.compara input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compara:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: -3px; }
.rotulo { position: absolute; bottom: 22px; padding: 5px 12px; border-radius: 4px; background: rgb(12 12 13 / .78); color: #fff; font-weight: 500; }
.r-antes { left: 22px; } .r-depois { right: 22px; }
.cortes-texto { padding: var(--espaco) 0 44px; }
.cortes-texto p { margin: 20px 0 28px; max-width: 30em; }
.cortes .cheio { background: var(--preto); color: #fff; }
.cortes .cheio:hover { background: #33343a; }
.cortes .cheio[aria-pressed="true"] { background: var(--azul); }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: end; }
.galeria img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.mais { padding: 20px 0 var(--lado); }

/* Vapor */
.vapor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .72fr); align-items: end; }
.vapor video { width: 100%; height: min(100vh, 940px); object-fit: cover; }
.vapor-texto { align-self: center; padding: 64px clamp(28px, 4.4vw, 76px); }
.vapor-texto h2 { font-size: clamp(2.125rem, 3.7vw, 3.75rem); }
.vapor-texto p { margin: 24px 0 30px; max-width: 30em; }
.vapor img { width: 100%; height: min(100vh, 940px); object-fit: cover; object-position: 34% 50%; }

/* Equipe */
.equipe { padding: var(--espaco) 0 0; }
.equipe h2 { max-width: 15em; padding-inline: var(--lado); margin-bottom: clamp(36px, 4.4vw, 64px); }
.equipe ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.equipe li { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #000; }
.equipe li > img { width: 100%; aspect-ratio: .82; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .5s, transform .9s var(--solta); }
.equipe li:hover > img { filter: none; transform: scale(1.03); }
.equipe li > div { position: relative; display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px clamp(16px, 1.8vw, 30px) 34px; background: var(--preto); }
.equipe h3 { font: 600 clamp(1.125rem, 1.6vw, 1.5rem)/1.15 var(--titulo); letter-spacing: -.02em; }
.equipe a { margin-top: 8px; color: var(--cinza); overflow-wrap: anywhere; }
.equipe .botao { margin-top: auto; translate: 0 8px; min-height: 48px; padding: 8px 18px; }
.equipe h3 + .botao { margin-top: auto; }
.equipe li > div { gap: 0; min-height: 172px; }

/* Onde fica: a parede da fachada com o letreiro aceso */
.chegar { position: relative; display: flex; justify-content: flex-end; min-height: min(100vh, 1000px); overflow: hidden; isolation: isolate; background: #0f1128; }
#parede { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.disco { position: absolute; left: 27%; top: 50%; width: min(36vw, 560px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: #f4f6ff; box-shadow: 0 0 60px 14px #2f48e0, 0 0 190px 70px rgb(47 72 224 / .6); }
.disco img { width: 60%; }
.vivo .disco { opacity: 0; }
.chegar-texto { align-self: center; width: 46%; padding: clamp(64px, 7vw, 110px) var(--lado) clamp(64px, 7vw, 110px) 0; }
address { margin: 24px 0 8px; font-style: normal; font-size: 1.1875rem; }
table { width: 100%; max-width: 520px; margin: 34px 0 26px; border-collapse: collapse; }
caption { padding-bottom: 12px; text-align: left; font: 600 1.25rem/1 var(--titulo); letter-spacing: -.02em; }
th, td { padding: 11px 0; border-top: 1px solid rgb(255 255 255 / .2); text-align: left; vertical-align: top; font-weight: 400; color: #ced2e8; }
td { text-align: right; }
td span { display: inline-block; margin-left: 14px; white-space: nowrap; }
.hoje :is(th, td) { color: #fff; font-weight: 700; }
.tem { max-width: 32em; margin-bottom: 30px; }
.fone { margin-top: 18px; color: #ced2e8; }

.rodape { display: flex; flex-wrap: wrap; gap: 10px 36px; padding: 30px var(--lado); font-size: .9375rem; color: var(--cinza); }
.rodape span { margin-right: auto; }
body:has(.barra:not([hidden])) .rodape { padding-bottom: 116px; }

/* Agendamento */
.barra { position: fixed; z-index: 10; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(580px, calc(100% - 32px)); min-height: 66px; padding: 10px 24px; border: 0; border-radius: 10px; background: var(--azul); color: #fff; box-shadow: 0 10px 44px rgb(0 0 0 / .5); translate: -50% 0; text-align: left; }
.barra:hover { background: #253bc4; }
.barra strong { white-space: nowrap; font-weight: 700; text-decoration: underline; text-underline-offset: .26em; }
dialog { width: min(580px, 100%); max-width: none; max-height: 100dvh; margin: auto; padding: clamp(20px, 4vw, 36px); border: 0; background: #fff; color: var(--preto); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
dialog::backdrop { background: rgb(6 6 12 / .8); }
.agenda-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.agenda-topo h2 { font-size: 2rem; }
.texto { border: 0; background: none; padding: 10px 0; text-decoration: underline; text-underline-offset: .24em; }
#itens li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; border-top: 1px solid #d6d7db; font-weight: 600; }
#itens .texto { font-weight: 400; font-size: .9375rem; }
.total { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline; padding: 14px 0 0; border-top: 2px solid var(--preto); }
.total b { white-space: nowrap; font: 700 1.625rem/1 var(--titulo); letter-spacing: -.03em; }
fieldset { min-width: 0; margin-top: 24px; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
fieldset input { position: absolute; opacity: 0; pointer-events: none; }
fieldset label { position: relative; cursor: pointer; }
fieldset label:has(:focus-visible) { outline: 3px solid var(--azul); outline-offset: 3px; }
.barbeiros { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.barbeiros label { display: grid; justify-items: center; gap: 6px; font-size: .9375rem; white-space: nowrap; }
.barbeiros label > img, .qualquer { width: 100%; max-width: 78px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: box-shadow .15s; }
.qualquer { display: grid; place-items: center; background: #101226; }
.qualquer img { width: 56%; filter: invert(1); }
.barbeiros :checked + * { filter: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--azul); }
.barbeiros label:has(:checked) { font-weight: 700; }
.dias { display: flex; gap: 8px; margin-inline: calc(-1 * clamp(20px, 4vw, 36px)); padding: 3px clamp(20px, 4vw, 36px) 10px; overflow-x: auto; scrollbar-width: thin; }
.dias label { flex: 0 0 auto; display: grid; justify-items: center; min-width: 68px; padding: 9px 10px; border-radius: 6px; background: var(--piso); line-height: 1.25; font-size: .9375rem; }
.dias b { font: 700 1.25rem/1.25 var(--titulo); letter-spacing: -.02em; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.horas label { display: grid; place-items: center; min-height: 46px; border-radius: 6px; background: var(--piso); }
:is(.dias, .horas) label:hover { background: #dadbe0; }
:is(.dias, .horas) label:has(:checked) { background: var(--azul); color: #fff; }
.campo { display: grid; gap: 8px; margin: 24px 0 20px; font-weight: 700; }
.campo input { width: 100%; min-height: 52px; padding: 8px 14px; border: 1px solid #75767d; border-radius: 6px; background: #fff; font-weight: 400; }
dialog .botao { width: 100%; }
dialog .cheio { background: var(--preto); color: #fff; }
dialog .cheio:hover { background: #33343a; }
dialog .contorno { margin-top: 10px; }
dialog .contorno:hover { background: var(--piso); box-shadow: inset 0 0 0 1.5px var(--preto); }
.nota { margin-top: 16px; font-size: .9375rem; color: #55565d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; }
}

@media (max-width: 1100px) {
  .equipe ul { grid-template-columns: 1fr 1fr; }
  .vapor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vapor > img { display: none; }
}
@media (max-width: 820px) {
  .abertura { display: block; min-height: 0; }
  .palco { position: relative; width: 100%; height: clamp(290px, 45svh, 520px); -webkit-mask-image: none; mask-image: none; }
  .giro { object-position: 50% 42%; }
  .palco::after { background: linear-gradient(180deg, rgb(12 12 13 / .6), transparent 26%, transparent 70%, var(--preto) 98%); }
  .controle { position: relative; right: auto; bottom: auto; width: auto; padding: 0 var(--lado); margin-top: -8px; }
  .nomes button { font-size: .9375rem; }
  .abertura-texto { width: auto; padding: 6px var(--lado) 52px; }
  h1 { font-size: clamp(2.125rem, 10vw, 4rem); }
  .abertura-texto > p { margin-top: 16px; font-size: 1.0625rem; }
  .abertura-texto .acoes { margin-top: 22px; }
  .topo { padding-block: 14px; }
  .topo nav a:not(.sempre) { display: none; }
  .valores { grid-template-columns: minmax(0, 1fr); }
  .valores-cabeca { position: static; }
  .cortes { display: block; padding: 0; }
  .compara { min-height: 0; aspect-ratio: 4 / 5; }
  .cortes-texto { padding: 52px var(--lado) 36px; }
  .galeria { gap: 4px; }
  .mais { padding: 20px var(--lado) 56px; }
  .vapor { display: block; }
  .vapor video { height: auto; aspect-ratio: 4 / 5; }
  .vapor-texto { padding: 52px var(--lado) 56px; }
  .vapor > img { display: block; height: auto; aspect-ratio: 4 / 5; }
  .chegar { display: block; }
  .disco { left: 50%; top: 250px; width: min(62vw, 330px); }
  .chegar-texto { width: auto; padding: 500px var(--lado) 64px; }
}
@media (max-width: 560px) {
  .acoes .botao { flex: 1 1 100%; }
  .servico { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 14px; padding-block: 12px; }
  .servico::before { grid-row: span 2; }
  .servico small { grid-area: 2 / 2; font-size: .9375rem; }
  .servico b { grid-area: 1 / 3 / span 2; min-width: 0; }
  .servico span { align-self: end; }
  .equipe li > div { padding-inline: 12px; }
  .equipe .botao { width: 100%; padding-inline: 4px; font-size: .9375rem; }
  .equipe a { font-size: .8125rem; line-height: 1.9; }
  .barra { gap: 12px; padding-inline: 18px; font-size: 1rem; line-height: 1.3; }
  dialog { margin: auto 0 0; }
  .barbeiros { gap: 6px; }
  .barbeiros label { font-size: .875rem; }
}
