/* Barbearia Du'Mário: tudo em preto e branco, como a logo. Só o poste de barbeiro tem cor. */
@font-face { font-family: Letreiro; src: url("../fonts/letreiro.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: Texto; src: url("../fonts/texto.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --preto: #0b0b0c;
  --branco: #fff;
  --cinza: #b9b9bb;
  --cinza-papel: #58585c;
  --linha: #2c2c2f;
  --vermelho: #c81f30;
  --azul: #1437ac;
  --letreiro: Letreiro, "Arial Narrow", Impact, sans-serif;
  --texto: Texto, Georgia, serif;
  --lado: clamp(20px, 4.4vw, 72px);
  --espaco: clamp(72px, 9vw, 136px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -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 { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-family: var(--letreiro); font-weight: 900; text-transform: uppercase; line-height: .94; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2.75rem, 5.6vw, 5.5rem); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { 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; }

/* Botões. O principal tem um pedaço do poste na borda, girando devagar */
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.botao { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 8px 28px 10px; overflow: hidden; font: 800 1.375rem/1 var(--letreiro); letter-spacing: .01em; text-decoration: none; transition: background-color .15s, color .15s; }
.claro { background: #fff; color: var(--preto); padding-bottom: 18px; }
.escuro { background: var(--preto); color: #fff; padding-bottom: 18px; }
.claro::after, .escuro::after { content: ""; position: absolute; left: -48px; right: -48px; bottom: 0; height: 9px; background: url("../img/listras.svg") 0 0 / 36px 100% repeat-x; }
.linha { box-shadow: inset 0 0 0 2px #fff; }
.linha:hover { background: #fff; color: var(--preto); }

/* Topo */
.topo { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--lado); }
.marca { font: 900 1.75rem/1 var(--letreiro); text-transform: uppercase; text-decoration: none; }
.topo nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.topo nav a { padding: 10px 0; text-decoration: none; }
.topo nav a:hover { text-decoration: underline; }

/* Abertura: a parede de tijolos à noite, iluminada pelo poste */
.abertura { --alto: clamp(600px, 100svh, 1080px); --poste: calc(var(--alto) * .86); position: relative; min-height: var(--alto); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.cena { position: absolute; inset: 0; z-index: -1; }
.poste-lugar { position: absolute; left: 58%; top: calc(var(--alto) * .085); width: 0; height: var(--poste); }
.parede { position: absolute; left: 50%; top: 50%; width: calc(var(--poste) * 2.1818); max-width: none; height: auto; transform: translate(-50%, -50%); }
.poste { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 2 / 5; transform: translateX(-50%); cursor: grab; touch-action: pan-y; user-select: none; }
.poste:active { cursor: grabbing; }
.poste::before { content: ""; position: absolute; left: 50%; top: 10.8%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgb(255 255 255 / .42), rgb(255 255 255 / .13) 42%, transparent); pointer-events: none; }
.poste img, .poste canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.poste:not(.vivo) canvas { visibility: hidden; }
.vivo img { visibility: hidden; }
.adesivo { position: absolute; right: var(--lado); bottom: calc(var(--alto) * .1); width: min(28.5vw, calc(var(--alto) * .6)); filter: drop-shadow(14px 12px 12px rgb(0 0 0 / .8)); }
.abertura-texto { width: 50%; padding: 110px 0 clamp(36px, 6svh, 72px) var(--lado); }
h1 { font-size: min(6.15vw, calc(var(--alto) * .15)); margin-left: -.03em; text-wrap: nowrap; }
.abertura-texto > p { margin-top: 22px; font-size: 1.1875rem; max-width: 30em; }
.abertura-texto .acoes { margin-top: 28px; }
.abertura-texto .estado { --luz: #ff3340; margin-top: 24px; font-size: 1rem; color: var(--cinza); }
.estado.aberto { --luz: #2bd660; color: #fff; }
.estado.aberto::before, .estado.fechado::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .6em; border-radius: 50%; background: var(--luz); box-shadow: 0 0 10px 2px var(--luz); }

/* O poste deitado, girando entre as partes do site */
.faixa { position: relative; height: clamp(36px, 4.4vw, 60px); overflow: hidden; background: #fff; }
.faixa::before { animation: deitado 18s linear infinite; content: ""; position: absolute; inset: 0 -240px 0 0; background: url("../img/listras.svg") 0 0 / 240px 100% repeat-x; }
.faixa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .78), rgb(0 0 0 / .18) 20%, rgb(255 255 255 / .5) 27%, rgb(255 255 255 / 0) 37%, transparent 56%, rgb(0 0 0 / .42) 82%, rgb(0 0 0 / .86)); }

/* Valores */
.valores { display: grid; grid-template-columns: 40% minmax(0, 1fr); background: #fff; color: var(--preto); }
.valores-foto img { position: sticky; top: 0; width: 100%; height: min(100vh, 1100px); object-fit: cover; object-position: 60% 50%; }
.valores-lista { padding: var(--espaco) var(--lado) var(--espaco) clamp(28px, 5vw, 88px); }
.valores-lista > p { margin-top: 20px; max-width: 34em; color: var(--cinza-papel); }
.valores h3 { margin: 44px 0 10px; font: 600 1.0625rem/1.3 var(--texto); }
.valores li { border-top: 1px solid #d4d4d6; }
.valores ul { border-bottom: 1px solid #d4d4d6; }
.servico { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 4.2em; align-items: baseline; gap: 16px; width: 100%; padding: 13px 0 15px; border: 0; background: none; text-align: left; font: 800 clamp(1.5rem, 2.3vw, 2.125rem)/1.05 var(--letreiro); transition: padding .2s ease-out, background-color .12s, color .12s; }
.servico small { font: 400 .9375rem/1 var(--texto); color: var(--cinza-papel); white-space: nowrap; }
.servico b { font-weight: 900; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.servico::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: url("../img/listras-v.svg") 0 0 / 100% 56px repeat-y; transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out; }
.servico[aria-pressed="true"] { background: var(--preto); color: #fff; padding-inline: 32px 18px; }
.servico[aria-pressed="true"]::before { transform: none; }
.servico[aria-pressed="true"] small { color: var(--cinza); }
.servico:focus-visible { z-index: 1; }
.nota { margin-top: 24px; font-size: .9375rem; color: var(--cinza-papel); }

/* Cortes */
.cortes { padding: var(--espaco) var(--lado); }
.cabeca { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.cabeca p { max-width: 30em; }
.galeria { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.galeria img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.galeria .grande { grid-row: span 2; aspect-ratio: auto; min-height: 100%; height: 0; object-position: 50% 35%; }

/* A casa */
.casa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(28px, 5vw, 88px); background: #fff; color: var(--preto); padding-right: var(--lado); }
.casa-salao { grid-row: span 2; width: 100%; height: 100%; object-fit: cover; }
.casa-texto { align-self: center; padding-block: clamp(56px, 6vw, 96px); }
.casa-texto p { margin-top: 24px; font-size: 1.1875rem; max-width: 32em; }
.casa-texto ul { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 8px 40px; margin-top: 28px; font: 800 1.5rem/1.15 var(--letreiro); }
.casa-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: var(--lado); }

/* Avaliações */
.notas { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 88px); align-items: end; padding: var(--espaco) var(--lado); }
.notas h2 { font-size: inherit; }
.notas strong { display: block; font-size: clamp(8rem, 17vw, 17rem); line-height: .74; letter-spacing: -.03em; margin: .06em 0 .21em -.03em; }
.notas h2 span { font: 400 1.0625rem/1.4 var(--texto); text-transform: none; letter-spacing: 0; }
.notas blockquote p { font: 800 clamp(1.75rem, 2.7vw, 2.625rem)/1.06 var(--letreiro); text-wrap: balance; }
.notas blockquote footer { margin-top: 16px; color: var(--cinza); }

/* Como chegar */
.chegar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--linha); }
.chegar > img { width: 100%; height: 100%; max-height: 1000px; object-fit: cover; object-position: 50% 80%; }
.chegar-texto { align-self: center; padding: clamp(56px, 6vw, 96px) var(--lado) clamp(56px, 6vw, 96px) clamp(28px, 5vw, 88px); }
address { margin: 24px 0 10px; font-style: normal; font-size: 1.1875rem; }
table { width: 100%; max-width: 480px; margin: 36px 0; border-collapse: collapse; }
caption { padding-bottom: 10px; text-align: left; font: 800 1.5rem/1 var(--letreiro); }
th, td { padding: 11px 0; border-top: 1px solid var(--linha); text-align: left; vertical-align: top; font-weight: 400; color: var(--cinza); }
td { text-align: right; }
td span { white-space: nowrap; }
.hoje th, .hoje td { color: #fff; font-weight: 600; }
.fone { margin-top: 18px; color: var(--cinza); }

.rodape { display: flex; flex-wrap: wrap; gap: 10px 36px; padding: 28px var(--lado); font-size: .9375rem; color: var(--cinza); }
.rodape span { margin-right: auto; }

/* 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: 28px; width: min(560px, calc(100% - 32px)); min-height: 66px; padding: 8px 24px 17px; overflow: hidden; border: 0; background: #fff; color: var(--preto); box-shadow: 0 0 0 2px var(--preto), 0 14px 40px rgb(0 0 0 / .45); transform: translateX(-50%); }
.barra::after { content: ""; position: absolute; left: 0; right: -48px; bottom: 0; height: 9px; background: url("../img/listras.svg") 0 0 / 36px 100% repeat-x; }
.barra strong { font: 900 1.5rem/1 var(--letreiro); white-space: nowrap; }
body:has(.barra:not([hidden])) .rodape { padding-bottom: 110px; }
dialog { width: min(540px, 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; }
dialog::backdrop { background: rgb(0 0 0 / .78); }
.agenda-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.agenda-topo h2 { font-size: 2.75rem; }
.agenda-topo button, .tirar { border: 0; background: none; padding: 10px 0; text-decoration: underline; text-underline-offset: .22em; }
#itens li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: baseline; border-top: 1px solid #d4d4d6; font: 800 1.375rem/1.1 var(--letreiro); }
.tirar { font: 400 .9375rem/1.4 var(--texto); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 2px solid var(--preto); }
.total b { font: 900 2.25rem/1 var(--letreiro); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 22px; }
.campos label { display: grid; gap: 6px; min-width: 0; font-size: .9375rem; }
.campos input, .campos select { width: 100%; min-height: 50px; padding: 8px 12px; border: 1px solid #77777b; border-radius: 0; background: #fff; font-size: 1.0625rem; }
dialog .botao { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .faixa::before { animation-duration: 9s; }
  .claro::after, .escuro::after, .barra::after { animation: borda 2s linear infinite; }
  .poste::before { animation: acender 1.1s linear; }
  .parede { animation: acender 1.1s linear; }
}
@keyframes deitado { to { transform: translate3d(-240px, 0, 0); } }
@keyframes borda { to { transform: translate3d(36px, 0, 0); } }
@keyframes acender { 0% { opacity: .25; } 12% { opacity: .9; } 18% { opacity: .35; } 38% { opacity: .4; } 44% { opacity: 1; } 52% { opacity: .7; } 60%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; }
}

@media (max-width: 900px) {
  .valores, .casa, .chegar { grid-template-columns: minmax(0, 1fr); }
  .valores-foto img { position: static; height: auto; aspect-ratio: 1.15; }
  .valores-lista { padding: 56px var(--lado) 72px; }
  .casa { padding: 0; grid-template-rows: none; }
  .casa-salao { grid-row: auto; aspect-ratio: 1; object-position: 50% 30%; }
  .casa-texto { padding: 48px var(--lado); }
  .casa-par { padding: 0 var(--lado) var(--lado); }
  .notas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .notas h2 { grid-column: 1 / -1; }
  .chegar > img { aspect-ratio: 1; }
  .chegar-texto { padding: 48px var(--lado) 64px; }
}
/* No celular a cena fica em cima e o texto embaixo */
@media (max-width: 820px) {
  .abertura { --poste: clamp(320px, 51svh, 520px); display: block; min-height: 0; }
  .cena { position: relative; height: calc(var(--poste) + 82px); }
  .poste-lugar { left: 80%; top: 74px; }
  .adesivo { left: var(--lado); right: auto; bottom: 14px; width: min(56vw, calc(var(--poste) * .72)); }
  .abertura-texto { position: relative; width: auto; padding: 18px var(--lado) 40px; }
  h1 { font-size: min(12vw, 6rem); }
  .abertura-texto > p { margin-top: 14px; font-size: 1.0625rem; }
  .abertura-texto .acoes { margin-top: 20px; }
  .topo nav a:not(.sempre) { display: none; }
  .cabeca { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .galeria { grid-template-columns: 1fr 1fr; gap: 6px; }
  .galeria .grande { grid-column: 1 / -1; grid-row: auto; height: auto; min-height: 0; aspect-ratio: 1 / 1.12; }
  .cortes { padding-inline: 0; }
  .cabeca { padding-inline: var(--lado); }
  .acoes .botao { flex: 1 1 100%; }
  .servico { grid-template-columns: minmax(0, 1fr) auto 3.4em; gap: 10px; }
  .servico[aria-pressed="true"] { padding-inline: 26px 12px; }
  .notas { grid-template-columns: minmax(0, 1fr); }
  .barra { gap: 14px; padding-inline: 18px; font-size: 1rem; }
  dialog { margin: auto 0 0; }
}
