/* Garagem 41 — estética automotiva, Curitiba */

@font-face {
  font-family: "Bricolage";
  src: url("fontes/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fontes/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* asfalto da rua, o cinza da garagem, o aço das prateleiras,
     a luz âmbar das lâmpadas e o cromado da lataria */
  --asfalto: #0c0e11;
  --garagem: #14181d;
  --painel: #191f25;
  --aco: #2c343d;
  --luz: #f3b14a;
  --luz-clara: #ffd48a;
  --cromado: #e9edf1;
  --cromado-fraco: #97a2ae;

  --largura: 1140px;
  --titulo: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --texto: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--asfalto);
  color: var(--cromado);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--titulo);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.2rem + 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

a { color: var(--luz-clara); }

:focus-visible {
  outline: 3px solid var(--luz-clara);
  outline-offset: 3px;
  border-radius: 2px;
}

.envelope {
  width: min(100% - 2.5rem, var(--largura));
  margin-inline: auto;
}

/* ---------- barra de cima ---------- */

.barra {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 14, 17, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 52, 61, 0.7);
}

.barra__dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.marca {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--cromado);
  text-decoration: none;
  white-space: nowrap;
}

/* a fita de LED da parede da garagem, do lado do número */
.marca b {
  color: var(--luz);
  box-shadow: 0 0.42em 0 -0.24em var(--luz), 0 0.55em 12px -2px rgba(243, 177, 74, 0.55);
}

/* ---------- botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--texto);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}

.botao:active { transform: scale(0.97); }

.botao--pequeno { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

.botao--zap {
  background: var(--luz);
  color: #201603;
}

.botao--zap:hover { background: var(--luz-clara); }

.botao--vazio {
  color: var(--cromado);
  border-color: rgba(233, 237, 241, 0.35);
  background: rgba(12, 14, 17, 0.4);
}

.botao--vazio:hover { border-color: var(--cromado); }

.botao--largo { width: 100%; padding: 1.1rem 1.5rem; font-size: 1.08rem; }

.zapico {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c-5.2 0-9.4 4.2-9.4 9.4 0 1.7.4 3.2 1.2 4.6L2.6 21.4l5-1.3c1.3.7 2.8 1.1 4.4 1.1 5.2 0 9.4-4.2 9.4-9.4S17.2 2.6 12 2.6zm0 17.1c-1.4 0-2.7-.4-3.9-1.1l-.3-.2-2.9.8.8-2.9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.2.5 1.7.6 2.3.5.4-.1 1.1-.5 1.3-1 .2-.5.2-.9.1-1 0-.1-.1-.1-.2-.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- topo ---------- */

.topo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 780px);
  padding-block: clamp(4rem, 12vh, 8rem) clamp(1.6rem, 4vh, 2.6rem);
  overflow: hidden;
}

.topo__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  z-index: -3;
  animation: acomoda 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.topo__veu {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(92deg, rgba(12, 14, 17, 0.95) 0%, rgba(12, 14, 17, 0.86) 34%, rgba(12, 14, 17, 0.35) 64%, rgba(12, 14, 17, 0.5) 100%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.75) 0%, rgba(12, 14, 17, 0) 28%, rgba(12, 14, 17, 0.9) 100%);
}

/* o momento da página: a luz correndo na lataria, uma vez, no carregamento */
.topo__brilho {
  position: absolute;
  top: -28%;
  bottom: -28%;
  left: 0;
  width: clamp(90px, 11vw, 170px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 240, 215, 0) 0%,
    rgba(255, 238, 205, 0.4) 42%,
    rgba(255, 255, 255, 0.68) 50%,
    rgba(255, 222, 170, 0.38) 58%,
    rgba(255, 240, 215, 0) 100%);
  filter: blur(12px);
  mix-blend-mode: screen;
  transform: translate3d(-40vw, 0, 0) rotate(16deg);
  animation: varredura 1400ms 360ms cubic-bezier(0.42, 0.03, 0.4, 1) both;
  -webkit-mask-image: linear-gradient(180deg, transparent 16%, #000 40%, #000 74%, transparent 98%);
  mask-image: linear-gradient(180deg, transparent 16%, #000 40%, #000 74%, transparent 98%);
}

/* a fita de LED no teto da garagem */
.topo::before {
  content: "";
  position: absolute;
  inset-inline: 8%;
  top: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--luz) 30%, var(--luz-clara) 50%, var(--luz) 70%, transparent);
  box-shadow: 0 0 22px 2px rgba(243, 177, 74, 0.5);
}

.topo__texto { position: relative; }

.topo__endereco {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--luz);
  margin-bottom: 1rem;
}

.topo__texto h1 { max-width: 16ch; }

.topo__sub {
  max-width: 48ch;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  color: #cfd6de;
}

.topo__botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.topo__ficha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2.6rem;
  margin: clamp(2.2rem, 6vh, 3.6rem) 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(233, 237, 241, 0.18);
}

.topo__ficha dt {
  font-size: 0.82rem;
  color: var(--cromado-fraco);
  margin-bottom: 0.15rem;
}

.topo__ficha dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pino {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(233, 237, 241, 0.1);
  color: var(--cromado);
  transition: color 200ms ease, background-color 200ms ease;
}

.pino--aberto::before,
.pino--fechado::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.05em;
}

.pino--aberto {
  background: rgba(243, 177, 74, 0.16);
  color: var(--luz-clara);
}

.pino--fechado {
  background: rgba(233, 237, 241, 0.1);
  color: var(--cromado-fraco);
}

/* ---------- seções ---------- */

.secao {
  padding-block: clamp(3.8rem, 9vw, 7.5rem);
  border-top: 1px solid rgba(44, 52, 61, 0.75);
}

.secao--prova { background: var(--garagem); }
.secao--agendar { background: linear-gradient(180deg, var(--asfalto), var(--garagem)); }

.cabeca { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

.cabeca__linha {
  margin-top: 1rem;
  color: #c2cad3;
}

/* ---------- tabela de serviços ---------- */

.tabela {
  border-top: 1px solid var(--aco);
}

.tabela__linha {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) 1fr auto;
  gap: 0.5rem 2.2rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--aco);
}

.tabela__desc {
  color: #b9c2cc;
  font-size: 1rem;
  max-width: 58ch;
}

.tabela__preco {
  font-family: var(--texto);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--cromado);
}

.tabela__preco span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--cromado-fraco);
}

.tabela__linha--combo .tabela__nome { color: var(--luz-clara); }

/* ---------- prova de capricho ---------- */

.faixa img {
  width: 100%;
  height: clamp(260px, 42vw, 470px);
  object-fit: cover;
}

.faixa figcaption,
.galeria figcaption,
.onde__foto figcaption {
  max-width: 46ch;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--cromado-fraco);
}

.faixa figcaption { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }

.secao--prova .envelope + .faixa { margin-top: clamp(2rem, 5vw, 3.2rem); }
.faixa + .envelope { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.galeria img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.galeria figure:first-child img { aspect-ratio: 4 / 3; }

/* ---------- como agendar ---------- */

.agendar {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.passos { counter-reset: passo; margin-top: clamp(1.6rem, 4vw, 2.6rem); }

.passos li {
  counter-increment: passo;
  position: relative;
  padding-left: 3.4rem;
  padding-bottom: 1.9rem;
  max-width: 52ch;
}

.passos li:last-child { padding-bottom: 0; }

.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 177, 74, 0.55);
  color: var(--luz);
  font-family: var(--texto);
  font-weight: 800;
  font-size: 1rem;
}

.passos li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.09rem;
  top: 2.4rem;
  bottom: 0.2rem;
  width: 1px;
  background: rgba(44, 52, 61, 0.9);
}

.passos p { margin-top: 0.5rem; color: #b9c2cc; }

.cartao-zap {
  background: var(--painel);
  border: 1px solid var(--aco);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: sticky;
  top: 5.5rem;
}

.cartao-zap__chamada { color: #cbd3dc; margin-bottom: 1.3rem; }

.cartao-zap__numero {
  margin-top: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-size: 1.05rem;
}

.cartao-zap__nota {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--cromado-fraco);
  text-align: center;
}

/* ---------- onde fica ---------- */

.onde {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.onde__endereco {
  margin-top: 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.onde__nota { margin-top: 0.5rem; font-size: 0.88rem; color: var(--cromado-fraco); }

.horario {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
}

.horario caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--titulo);
  font-size: 1.05rem;
  padding-bottom: 0.6rem;
}

.horario th,
.horario td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--aco);
  font-weight: 500;
}

.horario td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.onde__mapa { margin-top: 1.6rem; }

.ligacao {
  font-weight: 700;
  color: var(--luz-clara);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.onde__foto img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- pé ---------- */

.pe {
  background: var(--garagem);
  border-top: 1px solid var(--aco);
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
}

.pe__dentro { display: grid; gap: 0.7rem; }

.marca--pe { font-size: 1.6rem; }

.pe__texto { max-width: 58ch; color: #c2cad3; }
.pe__texto--fraco { font-size: 0.88rem; color: var(--cromado-fraco); }

/* ---------- movimento ---------- */

@keyframes acomoda {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@keyframes varredura {
  from { transform: translate3d(-32vw, 0, 0) rotate(16deg); }
  to { transform: translate3d(124vw, 0, 0) rotate(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topo__foto { animation: none; }
  .topo__brilho { display: none; }
  .botao { transition: background-color 160ms ease, border-color 160ms ease; }
  .botao:active { transform: none; }
}

/* ---------- telas menores ---------- */

@media (max-width: 900px) {
  .tabela__linha {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1.2rem;
  }
  .tabela__nome { grid-column: 1; }
  .tabela__preco { grid-column: 2; grid-row: 1; text-align: right; font-size: 1.3rem; }
  .tabela__desc { grid-column: 1 / -1; }

  .agendar,
  .onde { grid-template-columns: 1fr; }
  .cartao-zap { position: static; }
  .galeria { grid-template-columns: 1fr 1fr; }
  .galeria figure:first-child { grid-column: 1 / -1; }
  .galeria figure:first-child img { aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }

  .topo { min-height: 82svh; }
  .topo__foto { object-position: 68% 50%; }
  .topo__texto h1 { max-width: 100%; }
  .topo__botoes .botao { width: 100%; }
  .topo__ficha { gap: 0.9rem 1.6rem; }

  .galeria { grid-template-columns: 1fr; }
  .passos li { padding-left: 2.9rem; }
}
