/* Ofício Barbearia · base compartilhada (Essencial, agenda, minhas marcações, offline). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* Paleta Ofício: carvão 50%, marfim 40%, vermelhão 10%. Os nomes antigos ficaram para não quebrar as páginas. */
  --creme: #ECE7DD;        /* marfim mineral */
  --creme-2: #DED8CC;
  --cafe: #1C1B1D;         /* carvão */
  --cafe-2: #262427;
  --petroleo: #F2482A;     /* vermelhão: só ação principal, selecionado e a linha do comparador */
  --petroleo-escuro: #D93A1E;
  --tinta-suave: #5E574F;  /* texto secundário sobre marfim (5,8:1) */
  --creme-suave: #B5AEA2;  /* texto secundário sobre carvão (7,8:1) */
  --linha: #1C1B1D26;
  --linha-escura: #ECE7DD24;

  --titulo: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --corpo: system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: min(1240px, 100% - 2 * clamp(20px, 5vw, 56px));
  --gap: clamp(20px, 4vw, 48px);
  --raio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--creme); color: var(--cafe); font: 400 1rem/1.55 var(--corpo); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; line-height: .95; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 3px; }
.no-cafe :focus-visible, .no-cafe:focus-visible { outline-color: var(--creme); }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--cafe); color: var(--creme); }
.pular:focus { top: 12px; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 20; background: var(--creme); border-bottom: 1px solid var(--linha); }
.topo .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marca { font: 760 1.5rem/1 var(--titulo); font-stretch: 80%; letter-spacing: -.03em; text-decoration: none; }
.marca small { font: 600 .68rem/1 var(--corpo); letter-spacing: .22em; text-transform: uppercase; margin-left: 6px; color: var(--tinta-suave); }
.topo nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-size: .92rem; }
.topo nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.topo nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) { .topo nav .opcional { display: none; } }

/* Botões: o azul petróleo fica reservado à ação principal */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--raio); background: var(--petroleo); color: var(--cafe); font: 700 1rem/1.1 var(--corpo); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--petroleo-escuro); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-compacto { min-height: 44px; padding: 10px 16px; font-size: .92rem; }
.link-seta { font-weight: 600; text-underline-offset: 5px; }

/* Rótulo pequeno de seção, estilo etiqueta de bancada */
.etiqueta { display: inline-block; font: 650 .74rem/1 var(--corpo); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); }
.no-cafe .etiqueta { color: var(--creme-suave); }

/* Superfície escura (40% café) */
.no-cafe { background: var(--cafe); color: var(--creme); }
.no-cafe .suave { color: var(--creme-suave); }
.suave { color: var(--tinta-suave); }

/* Assinatura: a régua do degradê, alturas da máquina ao lado da foto lateral */
.regua { display: grid; grid-template-rows: repeat(5, 1fr); height: 100%; font: 600 .72rem/1 var(--corpo); font-variant-numeric: tabular-nums; color: var(--creme); }
.regua li { list-style: none; display: flex; align-items: center; gap: 8px; border-top: 1px solid currentColor; padding-top: 6px; align-self: start; }
.regua li::before { content: ""; width: 14px; height: 2px; background: var(--petroleo); }
.regua { margin: 0; padding: 0; }

/* Tabela de preços */
.tabela { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.tabela li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.no-cafe .tabela li { border-color: var(--linha-escura); }
.tabela .nome { font: 700 1.25rem/1.1 var(--titulo); }
.tabela .preco { font: 700 1.25rem/1.1 var(--titulo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela .detalhe { grid-column: 1 / -1; font-size: .9rem; }

/* Horários */
.horas { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.horas dt { font-weight: 600; }
.horas dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Rodapé */
.rodape { padding: 28px 0 96px; font-size: .86rem; border-top: 1px solid var(--linha-escura); }
.rodape .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Botão fixo de WhatsApp no celular */
.wa-fixo { position: fixed; right: 16px; bottom: 16px; z-index: 30; box-shadow: 0 6px 18px #241B1640; }
.wa-fixo:focus-visible { outline: 3px solid var(--cafe); outline-offset: 0; box-shadow: 0 0 0 6px var(--creme); }
@media (min-width: 900px) { .wa-fixo { display: none; } .rodape { padding-bottom: 28px; } }

.aviso-demo { font-size: .8rem; }
