/* Box 3 Oficina — site de demonstração
   Ideia: a lona preta da oficina (fundo de foto das motos) como objeto; o resto é a parede clara. */

:root {
  --lona: #000000;
  --tinta: #F4F3EF;
  --parede: #FFFFFF;
  --parede-2: #F2F3F3;
  --meia-parede: #8C9195;
  --graxa: #1E2124;
  --graxa-2: #4A4F54;
  --chama: #F2A81D;
  --aberto: #3DBE6E;
  --fechado: #E0533A;

  --f-titulo: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --f-texto: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --topo-h: 60px;

  /* trama da lona: fios cruzados bem fracos sobre o preto */
  --trama:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + 12px); }
body {
  margin: 0;
  background: var(--parede);
  color: var(--graxa);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 400; line-height: .95; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
figcaption { font-size: .8125rem; color: var(--graxa-2); margin-top: .5rem; line-height: 1.4; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--graxa); outline-offset: 3px; }
.lona :focus-visible, .topo :focus-visible, .zap-fixo:focus-visible { outline-color: var(--tinta); }

/* ---------- lona ---------- */
.lona {
  position: relative;
  background-color: var(--lona);
  background-image: var(--trama);
  color: var(--tinta);
}
.ilhos {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--lona) 0 4px, #9a9a96 4.5px 6px, #d8d8d2 6.5px 7.5px, #6c6c68 8px 9px);
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.ilhos-1 { top: 12px; left: 12px; }
.ilhos-2 { top: 12px; right: 12px; }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em;
  font: 600 1rem/1.1 var(--f-texto);
  text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  cursor: pointer; transition: transform .12s ease, background-color .15s ease;
}
.botao:active { transform: translateY(1px); }
.botao-tinta { background: var(--tinta); color: var(--lona); }
.botao-tinta:hover { background: #fff; }
.botao-linha { border-color: rgba(244,243,239,.55); color: var(--tinta); }
.botao-linha:hover { border-color: var(--tinta); }
.botao-graxa { background: var(--graxa); color: var(--tinta); }
.botao-graxa:hover { background: #000; }
.botao-contorno { border-color: var(--graxa); color: var(--graxa); }
.link { font-weight: 600; text-underline-offset: 3px; }

/* ---------- barra demo + topo ---------- */
.demo-barra {
  background: var(--chama); color: var(--lona);
  font-size: .8125rem; font-weight: 600; text-align: center; padding: .45em var(--gutter);
}
.topo {
  position: sticky; top: 0; z-index: 50;
  height: var(--topo-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--gutter);
  background-color: var(--lona); background-image: var(--trama);
  color: var(--tinta);
}
.topo-marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.topo-emblema { width: 36px; height: 41px; color: var(--tinta); fill: var(--tinta); }
.topo-nome { font-family: var(--f-titulo); font-size: 1.75rem; line-height: 1; letter-spacing: .02em; }
.topo-nav, .topo-tel, .topo-zap { display: none; }
.topo-chegar, .topo-zap { min-height: 40px; padding: .45em .9em; font-size: .9375rem; }

@media (min-width: 960px) {
  .topo { gap: 1.75rem; }
  .topo-nav { display: flex; gap: 1.5rem; }
  .topo-nav a, .topo-tel { text-decoration: none; font-size: .9375rem; font-weight: 500; color: #d6d6d0; }
  .topo-nav a:hover, .topo-tel:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
  .topo-tel { display: inline; }
  .topo-zap { display: inline-flex; }
  .topo-chegar { display: none; }
}

/* ---------- topo da página: a lona de ponta a ponta ---------- */
.abre-lona { padding: 46px var(--gutter) 0; display: grid; }
/* fila de ilhós na borda de cima, como a lona pendurada na parede */
.ilhos-fila {
  position: absolute; left: 0; right: 0; top: 10px; height: 18px;
  background: radial-gradient(circle at 50% 50%, var(--lona) 0 3.5px, #9a9a96 4px 5.5px, #d8d8d2 6px 7px, #6c6c68 7.5px 8.5px, transparent 9px) 24px 0 / 112px 18px repeat-x;
}
.lona-impresso {
  font-family: "Zilla Slab", Rockwell, Georgia, serif; font-weight: 700;
  font-size: clamp(1.15rem, 4.4vw, 1.6rem); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tinta); margin: 0 0 1.4rem; line-height: 1.1;
}
.lona-impresso-pe { margin: 1.6rem 0 0; font-size: clamp(1rem, 3.8vw, 1.3rem); letter-spacing: .22em; color: #cfcfc9; }
.abre-endereco { font-size: .9375rem; color: #c9c9c3; margin-bottom: .7rem; }
.abre h1 {
  font-size: clamp(3.2rem, 13.5vw, 5.6rem);
  line-height: .9;
  max-width: 12ch;
  margin-bottom: 1.1rem;
}
.abre-texto { max-width: 34em; color: #e4e3dd; font-size: 1.0625rem; }
.abre-botoes { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1.1rem; }
.abre-botoes .botao { flex: 1 1 auto; }
.abre-nota { font-size: .9375rem; color: #c9c9c3; margin: 0; }
.abre-nota strong { font-family: var(--f-titulo); font-weight: 400; font-size: 1.6rem; color: var(--tinta); vertical-align: -2px; margin-right: .15em; }

.status { display: flex; align-items: center; gap: .55em; font-size: .9375rem; font-weight: 600; margin: 0 0 .6rem; }
.status-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--meia-parede); flex: none; }
.status.aberto .status-ponto { background: var(--aberto); box-shadow: 0 0 0 4px rgba(61,190,110,.22); }
.status.fechado .status-ponto { background: var(--fechado); }

/* no celular a foto vem primeiro, logo abaixo do "Oficina de motos" impresso */
.abre-conteudo { display: flex; flex-direction: column; }
.abre-foto { order: -1; margin: 0 calc(-1 * var(--gutter)) 28px; }
.abre-lona { grid-template-areas: "foto" "texto"; }
.abre-foto { grid-area: foto; }
.abre-conteudo { grid-area: texto; padding-bottom: 44px; }
.abre-foto img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 30% 55%; }

@media (min-width: 900px) {
  .abre-lona {
    grid-template-areas: "texto foto"; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 56px; align-items: stretch;
    padding: 56px max(var(--gutter), calc((100% - var(--max)) / 2)) 0;
  }
  .abre-conteudo { padding-bottom: 56px; }
  .abre-foto { margin: 0; align-self: stretch; }
  .abre-foto img { height: 100%; aspect-ratio: auto; min-height: 520px; object-position: 35% 50%; }
}

/* ---------- seções ---------- */
section { position: relative; }
.orcamento, .custom, .servicos, .avaliacoes, .oficina, .visita {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 88px var(--gutter);
}
h2 { font-size: clamp(2.8rem, 10vw, 5.2rem); margin-bottom: 1.1rem; max-width: 14ch; }
.lead { font-size: 1.1875rem; max-width: 32em; }

/* orçamento */
.orcamento { display: grid; gap: 48px; padding-top: 112px; }
.passos { list-style: none; counter-reset: passo; padding: 0; margin: 2rem 0; max-width: 34em; }
.passos li { counter-increment: passo; position: relative; padding: 0 0 1.1rem 3.2rem; }
.passos li::before {
  content: counter(passo);
  position: absolute; left: 0; top: -.15rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  font: 1.6rem/1 var(--f-titulo); color: var(--tinta); background: var(--graxa); border-radius: 50%;
}
.passos li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: .1rem; width: 2px; background: #d3d5d6; }
.passos strong { display: block; }

.citacao { margin: 0; padding-left: 1rem; border-left: 4px solid var(--graxa); max-width: 34em; }
.citacao p { font-size: 1.125rem; font-weight: 500; margin-bottom: .35rem; }
.citacao cite { font-style: normal; font-size: .8125rem; color: var(--graxa-2); }

.celular { justify-self: center; width: min(100%, 340px); }
.celular-tela { background: #ECE5DD; border: 10px solid var(--graxa); border-radius: 30px; overflow: hidden; }
.celular-topo { display: flex; align-items: center; gap: .6rem; background: #1F2C33; color: #fff; padding: .7rem .9rem; }
.celular-topo svg { width: 30px; height: 34px; color: #fff; fill: #fff; background: #000; border-radius: 50%; padding: 4px; box-sizing: content-box; }
.celular-topo span { display: flex; flex-direction: column; line-height: 1.2; font-size: .9375rem; }
.celular-topo small { font-size: .75rem; color: #c3ccd1; }
.conversa { display: flex; flex-direction: column; gap: .5rem; padding: .9rem .7rem 1.1rem; font-size: .875rem; line-height: 1.4; }
.bolha { margin: 0; max-width: 82%; padding: .5rem .65rem; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.bolha-eu { align-self: flex-end; background: #D9FDD3; }
.bolha-box { align-self: flex-start; background: #fff; }
.bolha-foto { padding: 4px; width: 62%; }
.bolha-foto img { border-radius: 5px; aspect-ratio: 1; object-fit: cover; }
.bolha-foto span { display: block; padding: .3rem .3rem .1rem; font-size: .8125rem; }

@media (min-width: 900px) {
  .orcamento { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 72px; padding-top: 160px; }
  .celular { position: sticky; top: calc(var(--topo-h) + 32px); }
}

/* custom: grade assimétrica, fotos sem moldura */
.custom { padding-top: 40px; }
.custom-cabeca { max-width: 40em; margin-bottom: 40px; }
.citacao-curta { margin-top: 1.25rem; }
.custom-grade { display: grid; gap: 28px; }
.custom-grade img { width: 100%; object-fit: cover; }
.cg-a img { aspect-ratio: 1; }
.cg-b img, .cg-c img { aspect-ratio: 4 / 5; }
.cg-d img { aspect-ratio: 1; }
@media (min-width: 640px) {
  .custom-grade { grid-template-columns: 1fr 1fr; }
  .cg-a { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .custom { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .custom-cabeca { position: sticky; top: calc(var(--topo-h) + 40px); margin: 0; }
  .custom-grade { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .cg-a { grid-column: 1 / 5; }
  .cg-b { grid-column: 5 / 7; align-self: end; }
  .cg-c { grid-column: 1 / 3; }
  .cg-d { grid-column: 3 / 7; }
}

/* ---------- trilho de etiquetas (momento de scroll) ---------- */
.trilho {
  background: var(--meia-parede);
  color: var(--lona);
  padding: 72px 0 56px;
  overflow: hidden;
}
.trilho-cabeca { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto 28px; padding: 0 var(--gutter); }
.trilho-cabeca h2 { max-width: none; }
.trilho-cabeca p { max-width: 36em; color: #111; font-weight: 500; }
.trilho-janela {
  position: relative;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 40px 0 28px;
  scrollbar-width: thin;
}
/* o arame de onde as etiquetas pendem */
.trilho-janela::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 3px;
  background: linear-gradient(#5b5f62, #2c2f31);
}
.trilho-faixa { display: flex; align-items: flex-start; gap: 22px; list-style: none; margin: 0; padding: 0 var(--gutter); width: max-content; }
.trilho-janela { padding-top: 22px; }
.trilho-janela::before { top: 20px; }
.etiqueta { position: relative; flex: none; width: 232px; scroll-snap-align: start; padding-top: 18px; transform-origin: 50% 0; }
.etiqueta::before { /* fio do arame até o furo */
  content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 50px; margin-left: -1px; background: var(--chama); z-index: 1;
}
.etiqueta-papel {
  position: relative; background: var(--tinta); color: var(--lona);
  padding: 44px 18px 18px;
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
}
.etiqueta-furo {
  position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--meia-parede); box-shadow: 0 0 0 3px #d9d7cf;
}
.etiqueta h3 { font-size: 2.3rem; line-height: .92; text-transform: uppercase; margin-bottom: .55rem; letter-spacing: .01em; }
.etiqueta p { font-size: .9375rem; line-height: 1.4; margin-bottom: .7rem; }
.etiqueta p:last-child, .etiqueta small { margin-bottom: 0; }
.etiqueta small { font-size: .8125rem; color: #5c6064; font-weight: 600; }
.etiqueta img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .9rem; }

/* com JS + GSAP o trilho é pinado e anda na horizontal */
.trilho.pinado .trilho-janela { overflow: visible; scroll-snap-type: none; }
.trilho.pinado { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }

/* ---------- serviços ---------- */
.servicos-colunas { display: grid; gap: 32px; }
.servicos h3 { font-size: 2rem; margin: 0 0 .6rem; }
.servicos ul { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.servicos li { padding: .45rem 0; border-bottom: 1px solid #dfe1e2; }
.servicos-motos { max-width: 22em; }
.servicos-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .servicos-colunas { grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
}

/* ---------- avaliações ---------- */
.avaliacoes { background: var(--parede-2); max-width: none; }
.avaliacoes > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.avaliacoes-nota { margin-bottom: 32px; }
.avaliacoes h2 { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .3em; }
.nota-grande { font-size: clamp(6rem, 26vw, 12rem); line-height: .8; }
.nota-texto { font-size: clamp(2rem, 7vw, 3.4rem); }
.frases { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.frases li {
  font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 500; line-height: 1.35;
  padding: 1.1rem 0; border-top: 2px solid var(--graxa); max-width: 34em;
}
.frases-fonte { font-size: .8125rem; color: var(--graxa-2); margin-top: 1rem; }
@media (min-width: 900px) {
  .frases { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- a oficina ---------- */
.oficina { display: grid; gap: 32px; }
.oficina-texto { max-width: 36em; }
.oficina-equipe img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.oficina-camiseta img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .oficina { grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: start; }
  .oficina-texto { grid-column: 1 / 6; }
  .oficina-equipe { grid-column: 6 / 13; grid-row: 1 / 3; }
  .oficina-camiseta { grid-column: 2 / 6; }
}

/* ---------- visita ---------- */
.visita { display: grid; gap: 44px; border-top: 1px solid #e3e5e6; padding-bottom: 110px; }
.visita address { font-style: normal; font-size: 1.125rem; margin: 1rem 0 1.4rem; }
.status-claro { color: var(--graxa); }
.horario { border-collapse: collapse; width: 100%; max-width: 26em; margin-bottom: 1.4rem; }
.horario th, .horario td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid #e3e5e6; font-weight: 400; }
.horario td { text-align: right; }
.horario tr.hoje { background: #fdf0d3; box-shadow: inset 4px 0 0 var(--chama); }
.horario tr.hoje th { font-weight: 700; }
.horario tr.hoje th::after { content: " (hoje)"; font-weight: 400; color: var(--graxa-2); }
.visita-fatos { padding-left: 1.1rem; margin: 0 0 1.6rem; }
.visita-botoes { display: flex; flex-wrap: wrap; gap: .75rem; }

.pedido { background: var(--parede-2); padding: 28px 22px; display: flex; flex-direction: column; }
.pedido h3 { font-size: 2.3rem; margin-bottom: .4rem; }
.pedido-dica { font-size: .9375rem; color: var(--graxa-2); }
.pedido label { font-weight: 600; font-size: .9375rem; margin: .9rem 0 .3rem; }
.opcional { font-weight: 400; color: var(--graxa-2); }
.pedido input, .pedido select, .pedido textarea {
  font: inherit; font-size: 1rem; color: var(--graxa);
  background: #fff; border: 2px solid #b9bdc0; border-radius: 3px; padding: .65rem .7rem; width: 100%;
}
.pedido input:focus, .pedido select:focus, .pedido textarea:focus { border-color: var(--graxa); outline: none; box-shadow: 0 0 0 3px rgba(30,33,36,.2); }
.pedido [aria-invalid="true"] { border-color: #B3261E; }
.erro { color: #B3261E; font-size: .875rem; font-weight: 600; margin: .3rem 0 0; }
.pedido .botao { margin-top: 1.3rem; align-self: flex-start; }
.pedido-ok { margin: .8rem 0 0; font-size: .9375rem; font-weight: 600; }

.mapa iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.6); }

@media (min-width: 900px) {
  .visita { grid-template-columns: 1fr 1fr; gap: 56px; }
  .mapa { grid-column: 1 / -1; }
}

/* ---------- rodapé ---------- */
.rodape { padding: 64px var(--gutter) 110px; display: grid; gap: 24px; justify-items: start; }
.rodape-emblema { width: 96px; height: 110px; color: var(--tinta); fill: var(--tinta); filter: url(#tinta); }
.rodape-nome { font-family: var(--f-titulo); font-size: 2.4rem; line-height: 1; margin-bottom: .6rem; }
.rodape-texto p { color: #d6d6d0; }
.rodape a { color: var(--tinta); text-underline-offset: 3px; }
.rodape-demo { font-size: .8125rem; color: #9a9a95; margin: 0; }
@media (min-width: 900px) {
  .rodape { grid-template-columns: auto 1fr; column-gap: 40px; padding: 72px max(var(--gutter), calc((100% - var(--max)) / 2)) 72px; }
  .rodape-demo { grid-column: 1 / -1; }
}

/* ---------- botão fixo do WhatsApp (celular) ---------- */
.zap-fixo {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40; display: flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; border-radius: 3px;
  background-color: var(--lona); background-image: var(--trama); color: var(--tinta);
  font-weight: 600; text-decoration: none; border: 2px solid var(--tinta);
  transform: translateY(150%); transition: transform .25s ease;
}
.zap-fixo.visivel { transform: none; }
.zap-fixo .status-ponto { background: var(--aberto); }
.zap-fixo.fechado .status-ponto { background: var(--fechado); }
@media (min-width: 900px) { .zap-fixo { display: none; } }

/* ---------- abertura ---------- */
.abertura { display: none; }
.js:not(.sem-abertura) .abertura {
  display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer;
  /* trava de segurança: se o JS falhar, some sozinha */
  animation: abertura-some 0s linear 4s forwards;
}
.abertura-lona { position: absolute; inset: 0; background-color: var(--lona); background-image: var(--trama); }
.abertura-emblema {
  position: absolute; left: 50%; top: 50%;
  width: min(46vw, 220px); height: auto; aspect-ratio: 200 / 228;
  transform: translate(-50%, -50%);
  color: var(--tinta); fill: var(--tinta);
  overflow: visible;
}
.ab-hex { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ab-letra, .ab-chave { opacity: 0; }
.abertura-pular {
  position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center;
  font-size: .8125rem; color: #8f8f8a;
}
.abertura-rodando .topo-emblema { visibility: hidden; }
.js.sem-abertura .abertura { display: none !important; }
@keyframes abertura-some { to { visibility: hidden; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .abertura { display: none !important; }
}
