/* Barbearia de Sá · direção "Fachada": papel claro e blocos pretos, letra grossa como no logo,
   e o acento inclinado do SÁ como assinatura (cai no lugar e marca cada seção). Sem cor: preto, branco e papel. */
:root {
  --papel: #f3f1ec;
  --papel-2: #e8e5de;
  --branco: #ffffff;
  --preto: #111111;
  --preto-2: #1d1d1d;
  --cinza: #5b5852;
  --cinza-claro: #a8a49c;
  --linha: #d6d2c9;
  --wa: #1f9d55;
  --margem: clamp(16px, 5vw, 72px);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --texto: "Instrument Sans", system-ui, sans-serif;
  --inclina: -32deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--papel); color: var(--preto); font: 400 clamp(16px, 1.05vw, 18px) / 1.6 var(--texto); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0.005em; line-height: 0.95; text-transform: uppercase; }
h2 { font-size: clamp(38px, 6vw, 72px); }
p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--preto); color: var(--papel); }
:focus-visible { outline: 3px solid var(--preto); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }

.pular { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--preto); color: var(--papel); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.pular:focus { top: 12px; }

.rotulo { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinza); }
.rotulo--claro { color: var(--cinza-claro); }

/* ---------- botões: o canto direito é cortado na mesma inclinação do acento ---------- */
.btn {
  --corte: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 calc(24px + var(--corte)) 0 24px;
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: 0.01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--corte)) 100%, 0 100%);
  transition: transform 0.2s cubic-bezier(.2, .7, .2, 1), background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--preto { background: var(--preto); color: var(--papel); }
.btn--preto:hover { background: #2b2b2b; }
.btn--branco { background: var(--papel); color: var(--preto); }
.btn--branco:hover { background: var(--branco); }
.btn--linha { background: transparent; color: var(--preto); box-shadow: inset 0 0 0 2px var(--preto); clip-path: none; padding: 0 24px; }
.btn--linha:hover { background: var(--preto); color: var(--papel); }
.btn--pequeno { min-height: 42px; font-size: 15px; --corte: 10px; padding: 0 calc(16px + var(--corte)) 0 16px; }
.btn--grande { min-height: 60px; font-size: 18px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--margem);
  background: rgba(243, 241, 236, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.topo.rolou { border-color: var(--linha); }
.topo__marca img { width: 40px; height: auto; }
.topo__nav { display: none; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; }
.topo__nav a { text-decoration: none; }
.topo__nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topo .btn { margin-left: auto; }
@media (min-width: 800px) { .topo__nav { display: flex; } .topo .btn { margin-left: 0; } }

/* ---------- abertura ---------- */
.abre {
  position: relative;
  display: grid; gap: 28px;
  padding: clamp(20px, 4vw, 48px) var(--margem) clamp(40px, 6vw, 80px) calc(var(--margem) + 34px);
}
.abre__vertical {
  position: absolute; left: var(--margem); top: clamp(24px, 4vw, 52px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0.32em; line-height: 1;
}
.abre__texto { display: grid; gap: 20px; align-content: start; }
.marca { font-size: clamp(160px, 52vw, 300px); line-height: 0.84; letter-spacing: -0.01em; margin-top: 4px; }
.marca__linha { display: block; }
.marca__a { position: relative; display: inline-block; }
/* o acento: o retângulo inclinado do logo */
.acento {
  position: absolute; left: 52%; top: -0.06em;
  width: 0.2em; height: 0.36em; background: var(--preto);
  box-shadow: 0 0 0 0.02em var(--papel);
  transform: translate(-10%, 0) rotate(var(--inclina));
  transform-origin: 50% 100%;
}
.abre__frase { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.35; max-width: 26ch; color: var(--cinza); }
.abre__frase strong { color: var(--preto); font-weight: 700; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.nota { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--cinza); }
.nota__num { font-family: var(--display); font-size: 28px; color: var(--preto); line-height: 1; }
.nota__estrelas { color: var(--preto); letter-spacing: 2px; }
.abre__foto { position: relative; background: var(--preto); overflow: hidden; aspect-ratio: 4 / 5; }
.abre__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.abre__foto::after { /* corte inclinado no canto, eco do acento */
  content: ""; position: absolute; right: -18%; bottom: -10%; width: 46%; height: 22%;
  background: var(--papel); transform: rotate(var(--inclina)); transform-origin: 0 0;
}
@media (min-width: 900px) {
  .abre { grid-template-columns: 1.15fr 0.85fr; align-items: end; padding-left: calc(var(--margem) + 56px); }
  .abre__foto { aspect-ratio: 3 / 4; max-height: 78vh; }
}

/* ---------- faixa de fatos ---------- */
.fatos {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--preto); color: var(--papel);
}
.fatos div { padding: 22px var(--margem); border-top: 1px solid #2c2c2c; display: grid; gap: 2px; }
.fatos div:nth-child(odd) { border-right: 1px solid #2c2c2c; }
.fatos b { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; }
.fatos span { font-size: 14px; color: var(--cinza-claro); }
@media (min-width: 800px) {
  .fatos { grid-template-columns: repeat(4, 1fr); }
  .fatos div { border-top: 0; border-right: 1px solid #2c2c2c; padding-block: 30px; }
  .fatos div:last-child { border-right: 0; }
}

/* ---------- cabeçalho de seção com o marcador inclinado ---------- */
.sec-cab { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 760px; }
.sec-cab p { color: var(--cinza); font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; }
.marcador { display: block; width: 14px; height: 26px; background: var(--preto); transform: rotate(var(--inclina)); transform-origin: 50% 100%; margin-left: 6px; }
.marcador--claro { background: var(--papel); }

/* ---------- serviços ---------- */
.servicos { padding: clamp(56px, 8vw, 110px) var(--margem); }
.abas { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--preto); margin-bottom: 8px; }
.abas::-webkit-scrollbar { display: none; }
.abas button {
  flex: 1 0 auto; min-height: 50px; padding: 0 clamp(10px, 2.4vw, 22px); border: 0; background: transparent; cursor: pointer;
  font: 700 clamp(13px, 3.6vw, 15px) var(--texto); letter-spacing: 0.04em; text-transform: uppercase; color: var(--cinza);
}
.abas button[aria-selected="true"] { background: var(--preto); color: var(--papel); }
.abas button:hover:not([aria-selected="true"]) { color: var(--preto); }
.tabela { max-width: 980px; }
.item {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nome preco" "tempo preco";
  gap: 2px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linha);
}
.item__nome { grid-area: nome; font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); }
.item__nome em { display: block; font-style: normal; font-weight: 400; font-size: 14px; color: var(--cinza); }
.item__tempo { grid-area: tempo; font-size: 14px; color: var(--cinza); }
.item__preco { grid-area: preco; font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); text-align: right; line-height: 1; white-space: nowrap; }
.item__preco small { display: block; font: 600 11px var(--texto); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cinza); margin-bottom: 4px; }
@media (min-width: 720px) {
  .item { grid-template-columns: 1fr 110px 150px; grid-template-areas: "nome tempo preco"; }
  .item__tempo { text-align: right; }
}
.tabela.entra .item { animation: sobe 0.45s cubic-bezier(.2, .7, .2, 1) both; }
.tabela.entra .item:nth-child(2) { animation-delay: 0.04s; }
.tabela.entra .item:nth-child(3) { animation-delay: 0.08s; }
.tabela.entra .item:nth-child(4) { animation-delay: 0.12s; }
.tabela.entra .item:nth-child(n + 5) { animation-delay: 0.16s; }
.servicos__rodape { margin-top: 24px; color: var(--cinza); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.servicos__rodape a { color: var(--preto); font-weight: 700; text-underline-offset: 5px; }

/* ---------- trabalhos (faixa que corre para o lado) ---------- */
.trabalhos { padding: 0 0 clamp(56px, 8vw, 110px); }
.trabalhos .sec-cab { padding: 0 var(--margem); }
.trabalhos__faixa {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--margem); scroll-padding: 0 var(--margem);
}
.trabalhos__faixa::-webkit-scrollbar { display: none; }
.trabalhos__faixa figure { flex: 0 0 min(72vw, 340px); aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; background: var(--papel-2); }
.trabalhos__faixa img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.trabalhos__faixa figure:hover img { transform: scale(1.04); }
@media (min-width: 1100px) { .trabalhos__faixa { gap: 16px; } .trabalhos__faixa figure { flex-basis: calc((100% - 64px) / 5); } }

/* ---------- barbeiro (bloco preto) ---------- */
.barbeiro { display: grid; background: var(--preto); color: var(--papel); }
.barbeiro__foto { aspect-ratio: 1; overflow: hidden; }
.barbeiro__foto img { width: 100%; height: 100%; object-fit: cover; }
.barbeiro__texto { display: grid; gap: 16px; align-content: center; padding: clamp(36px, 6vw, 88px) var(--margem); }
.barbeiro__texto h2 { font-size: clamp(54px, 8vw, 104px); }
.barbeiro__texto p { color: #cfcbc3; max-width: 46ch; }
.barbeiro__esp { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: var(--papel) !important; }
.barbeiro .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 860px) { .barbeiro { grid-template-columns: 1fr 1fr; } .barbeiro__foto { aspect-ratio: auto; min-height: 560px; } }

/* ---------- espaço ---------- */
.espaco { padding: clamp(56px, 8vw, 110px) var(--margem) 0; }
.espaco__fotos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: end; }
.espaco__fotos figure { overflow: hidden; background: var(--papel-2); }
.espaco__fotos figure:first-child { aspect-ratio: 4 / 5; }
.espaco__fotos figure:last-child { aspect-ratio: 3 / 4; transform: translateY(clamp(20px, 5vw, 60px)); }
.espaco__fotos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .espaco__fotos { max-width: 1100px; gap: 24px; } }

/* ---------- avaliações ---------- */
.prova { padding: clamp(90px, 12vw, 160px) var(--margem) clamp(56px, 8vw, 110px); }
.prova__lista { display: grid; gap: 14px; }
.prova blockquote { margin: 0; padding: 26px 24px 22px; background: var(--branco); border: 1px solid var(--linha); display: grid; gap: 14px; position: relative; }
.prova blockquote::before { content: ""; position: absolute; top: -1px; left: 24px; width: 10px; height: 18px; background: var(--preto); transform: rotate(var(--inclina)); transform-origin: 50% 0; }
.prova blockquote p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; }
.prova cite { font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cinza); }
@media (min-width: 900px) { .prova__lista { grid-template-columns: repeat(3, 1fr); } }

/* ---------- onde ---------- */
.onde { display: grid; border-top: 2px solid var(--preto); }
.onde__info { padding: clamp(48px, 7vw, 96px) var(--margem); display: grid; gap: 22px; align-content: start; }
.onde address { font-style: normal; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 600; }
.horarios { border-collapse: collapse; width: 100%; max-width: 420px; }
.horarios caption { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinza); padding-bottom: 6px; }
.horarios th, .horarios td { padding: 10px 0; border-bottom: 1px solid var(--linha); text-align: left; font-weight: 500; }
.horarios td { text-align: right; font-weight: 700; }
.onde__contato { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.onde__contato a { text-underline-offset: 5px; }
.onde .btn { justify-self: start; }
.onde__mapa { width: 100%; min-height: 340px; border: 0; filter: grayscale(1) contrast(1.05); }
@media (min-width: 900px) { .onde { grid-template-columns: 1fr 1.1fr; } .onde__mapa { min-height: 100%; } }

/* ---------- fechamento ---------- */
.fecha { background: var(--preto); color: var(--papel); padding: clamp(64px, 10vw, 140px) var(--margem); display: grid; gap: 20px; justify-items: start; position: relative; overflow: hidden; }
.fecha h2 { font-size: clamp(48px, 9vw, 120px); }
.fecha p { color: #cfcbc3; }
.fecha::after { content: ""; position: absolute; right: 6%; top: -12%; width: clamp(60px, 9vw, 120px); height: clamp(110px, 17vw, 220px); background: var(--papel); transform: rotate(var(--inclina)); opacity: 0.08; }

/* ---------- rodapé ---------- */
.rodape { padding: 40px var(--margem) calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: start; color: var(--cinza); font-size: 14px; }
.rodape img { width: 48px; }
.rodape__credito a { color: var(--preto); font-weight: 700; }
@media (min-width: 800px) { .rodape { padding-bottom: 40px; } }

/* ---------- barra fixa no celular ---------- */
.fixo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 241, 236, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--linha);
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.fixo.mostra { transform: none; }
.fixo__agendar { flex: 1; display: grid; place-items: center; min-height: 52px; background: var(--preto); color: var(--papel); font-weight: 700; text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.fixo__wa { width: 56px; display: grid; place-items: center; background: var(--wa); color: #fff; }
@media (min-width: 800px) { .fixo { display: none; } }

/* ---------- movimento ---------- */
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cai {
  0% { opacity: 0; transform: translate(-10%, -120%) rotate(8deg); }
  60% { opacity: 1; transform: translate(-10%, 6%) rotate(calc(var(--inclina) - 6deg)); }
  100% { transform: translate(-10%, 0) rotate(var(--inclina)); }
}
@keyframes inclina { from { transform: rotate(0deg) scaleY(0.2); } to { transform: rotate(var(--inclina)) scaleY(1); } }

.js .marca__linha { animation: sobe 0.7s cubic-bezier(.2, .7, .2, 1) both; }
.js .marca__linha + .marca__linha { animation-delay: 0.08s; }
.js .acento { animation: cai 0.9s cubic-bezier(.3, .8, .25, 1) 0.45s both; }
.js .abre__frase, .js .acoes, .js .nota { animation: sobe 0.6s cubic-bezier(.2, .7, .2, 1) 0.3s both; }
.js .abre__foto { animation: sobe 0.8s cubic-bezier(.2, .7, .2, 1) 0.15s both; }
.js .revela { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .revela.visto { opacity: 1; transform: none; }
.js .marcador { transform: rotate(0deg) scaleY(0.2); }
.js .visto .marcador, .js .marcador.visto { animation: inclina 0.6s cubic-bezier(.3, .8, .25, 1) 0.15s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revela { opacity: 1; transform: none; }
  .js .marcador { transform: rotate(var(--inclina)); }
  html { scroll-behavior: auto; }
}
