/* ==========================================================================
   Besouro Elétrico — folha de estilo
   Paleta tirada das próprias fotos: o petróleo do Fusca, o creme do
   interior, o cromo e o laranja dos cabos da parte elétrica.
   Título em Big Shoulders Display (peso de cartaz de oficina);
   texto em Archivo (a fonte trabalhadora).
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fontes/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fontes/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* cores */
  --petroleo: #0f2a35;
  --petroleo-2: #173f4e;
  --petroleo-3: #1f5165;
  --creme: #efe6d3;
  --creme-2: #e4d8bf;
  --papel: #f6f0e3;
  --estanho: #b9c6c7;
  --tinta: #0b1a21;
  --tinta-suave: #40565f;
  --laranja: #f0601c;
  --laranja-forte: #e8551a;
  --laranja-tinta: #a83d0d;
  --acao: #f0601c;
  --acao-tinta: #1a0c04;

  /* tipografia */
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --texto: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-detalhe: 0.875rem;
  --t-texto: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --t-sub: clamp(1.3rem, 1.15rem + 0.6vw, 1.5rem);
  --t-secao: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem);
  --t-topo: clamp(3rem, 1.5rem + 7vw, 6.5rem);
  --t-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);

  --limite: 1180px;
  --barra-h: 62px;
}

/* ------------------------------- base ---------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--barra-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: var(--t-texto);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

h2 { font-size: var(--t-secao); line-height: 1; }
h3 { font-weight: 600; line-height: 1.08; }

p { margin: 0; max-width: 65ch; text-wrap: pretty; }

a { color: inherit; }

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

.pular {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 60;
  background: var(--creme);
  color: var(--petroleo);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.pular:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 3px;
}

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

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--acao);
  color: var(--acao-tinta);
  font-family: var(--texto);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  min-height: 48px;
  border: 0;
  border-radius: 3px;
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1), background-color 140ms ease;
}
.botao:hover { background: var(--laranja-forte); transform: translateY(-2px); }
.botao:active { transform: translateY(0); }
.botao-grande { font-size: 1.05rem; padding: 1.05rem 1.7rem; min-height: 54px; }
.botao-pequeno { padding: 0.7rem 1.05rem; min-height: 44px; font-size: 0.95rem; }
.botao-claro { background: var(--creme); color: var(--petroleo); }
.botao-claro:hover { background: #fff; }

/* ------------------------------- barra --------------------------------- */

.barra {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--barra-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--petroleo) 88%, transparent);
  color: var(--creme);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(239, 230, 211, 0.14);
}

.marca {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.barra-nav {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}
.barra-nav a { text-decoration: none; opacity: 0.85; }
.barra-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.barra .botao { margin-left: auto; }
.barra-nav + .botao { margin-left: 0; }

/* ------------------------------ abertura ------------------------------- */

.abertura {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--petroleo);
  color: var(--creme);
}

.abertura-foto { position: absolute; inset: 0; }
.abertura-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.abertura::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(9, 26, 33, 0.55) 0%,
      rgba(9, 26, 33, 0.35) 34%,
      rgba(9, 26, 33, 0.86) 72%,
      rgba(9, 26, 33, 0.96) 100%);
}

.abertura-conteudo {
  position: relative;
  z-index: 2;
  width: min(var(--limite), 100% - 2.5rem);
  margin-inline: auto;
  padding: calc(var(--barra-h) + 3rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.abertura-onde {
  font-size: var(--t-detalhe);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--creme);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.abertura-onde::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: var(--laranja);
}

.abertura-titulo {
  font-size: var(--t-topo);
  font-weight: 800;
  line-height: 0.92;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(9, 26, 33, 0.5);
}

.abertura-texto {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(239, 230, 211, 0.92);
}

.abertura-nota {
  font-size: var(--t-detalhe);
  color: rgba(239, 230, 211, 0.72);
}

/* ----------------------------- conversão ------------------------------- */

.conversao { background: var(--petroleo); color: var(--creme); }

.conversao-palco { display: none; }

/* --- celular: história empilhada --- */
.conversao-mobile {
  width: min(var(--limite), 100% - 2.5rem);
  margin-inline: auto;
  padding: clamp(3rem, 9vw, 5rem) 0;
}
.conversao-mobile h2 { color: var(--creme); margin-bottom: 2rem; }
.mobile-passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: passo;
}
.mobile-passos li { position: relative; }
.mobile-passos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.mobile-passos h3 {
  margin-top: 0.9rem;
  font-size: var(--t-h3);
  color: var(--creme);
  counter-increment: passo;
}
.mobile-passos h3::before {
  content: counter(passo);
  font-family: var(--display);
  font-weight: 800;
  color: var(--laranja);
  margin-right: 0.55rem;
}
.mobile-passos p { color: rgba(239, 230, 211, 0.8); margin-top: 0.35rem; }

/* --------------------------- fica / muda ------------------------------- */

.fica-muda {
  background: var(--creme);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.fica-muda h2 { margin-bottom: 2.25rem; }

.duas-colunas {
  display: grid;
  gap: 2.5rem;
}

.coluna-rotulo {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-sub);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid currentColor;
  margin-bottom: 1.1rem;
}
.coluna-fica .coluna-rotulo { color: var(--petroleo-3); }
.coluna-muda .coluna-rotulo { color: var(--laranja-tinta); }

.coluna ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.coluna li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.5;
}
.coluna li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--petroleo-3);
}
.coluna-muda li::before { background: var(--laranja); }

/* ------------------------------ serviços ------------------------------- */

.servicos {
  background: var(--papel);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.servicos h2 { margin-bottom: 0.6rem; }
.linha-fina { color: var(--tinta-suave); margin-bottom: 2.5rem; }

.lista-servicos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(11, 26, 33, 0.16);
}
.servico {
  display: grid;
  gap: 0.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(11, 26, 33, 0.16);
}
.servico h3 { font-size: var(--t-h3); }
.servico p { color: var(--tinta-suave); max-width: 52ch; }
.preco {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--tinta) !important;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.moeda { font-weight: 500; font-size: 0.82em; color: var(--tinta-suave); }

.exemplo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--laranja-tinta);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05em 0.55em;
  white-space: nowrap;
}

.servicos-cta { margin-top: 2.5rem; }

/* ------------------------------- passos -------------------------------- */

.passos {
  background: var(--petroleo-2);
  color: var(--creme);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.passos h2 { color: var(--creme); margin-bottom: 2.5rem; }
.lista-passos {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: passo;
  display: grid;
  gap: 2.25rem;
}
.lista-passos li { position: relative; padding-top: 3.2rem; }
.lista-passos li::before {
  counter-increment: passo;
  content: counter(passo, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--laranja);
}
.lista-passos h3 { font-size: var(--t-h3); margin-bottom: 0.5rem; }
.lista-passos p { color: rgba(239, 230, 211, 0.82); }

/* ---------------------------- depoimentos ------------------------------ */

.depoimentos {
  background: var(--creme);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.depoimentos h2 { margin-bottom: 0.6rem; }

.lista-depoimentos {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.depoimento {
  margin: 0;
  padding: 1.5rem 1.6rem;
  background: var(--papel);
  border: 1px dashed rgba(168, 61, 13, 0.5);
  border-left: 4px solid var(--laranja);
}
.depoimento blockquote {
  margin: 0 0 0.9rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.4;
  color: var(--tinta-suave);
}
.depoimento figcaption {
  font-size: var(--t-detalhe);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ------------------------------ dúvidas -------------------------------- */

.duvidas {
  background: var(--papel);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.duvidas h2 { margin-bottom: 2.25rem; }
.lista-duvidas {
  border-top: 1px solid rgba(11, 26, 33, 0.16);
}
.lista-duvidas details {
  border-bottom: 1px solid rgba(11, 26, 33, 0.16);
}
.lista-duvidas summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-sub);
  line-height: 1.15;
}
.lista-duvidas summary::-webkit-details-marker { display: none; }
.lista-duvidas summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--texto);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--laranja-tinta);
  transition: transform 180ms ease;
}
.lista-duvidas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lista-duvidas details p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--tinta-suave);
}

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

.onde {
  background: var(--creme);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.onde-grade { display: grid; gap: 2.5rem; align-items: center; }
.onde h2 { margin-bottom: 0.9rem; }
.onde-texto > p { color: var(--tinta-suave); }

.onde-dados {
  margin: 2rem 0 0;
  display: grid;
  gap: 0.35rem 1.5rem;
}
.onde-dados dt {
  font-size: var(--t-detalhe);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--petroleo-3);
}
.onde-dados dd {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.onde-mapa a {
  font-weight: 700;
  color: var(--laranja-tinta);
  text-underline-offset: 4px;
}
.onde-foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* ------------------------------ chamada -------------------------------- */

.chamada {
  position: relative;
  overflow: hidden;
  background: var(--petroleo);
  color: var(--creme);
}
.chamada-foto { position: absolute; inset: 0; }
.chamada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.chamada::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 26, 33, 0.72) 0%, rgba(9, 26, 33, 0.9) 100%);
}
.chamada-conteudo {
  position: relative;
  z-index: 2;
  width: min(var(--limite), 100% - 2.5rem);
  margin-inline: auto;
  padding: clamp(4rem, 11vw, 7.5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  text-align: left;
}
.chamada-conteudo h2 { max-width: 18ch; }
.chamada-conteudo p { color: rgba(239, 230, 211, 0.9); max-width: 48ch; }
.chamada-nota { font-size: var(--t-detalhe); color: rgba(239, 230, 211, 0.72); }

/* ------------------------------- rodapé -------------------------------- */

.rodape {
  background: var(--petroleo);
  color: rgba(239, 230, 211, 0.75);
  padding: 2.5rem 0 6rem;
  border-top: 1px solid rgba(239, 230, 211, 0.14);
}
.rodape-linha { display: grid; gap: 0.6rem; }
.rodape-marca {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--creme);
}
.rodape-fino { font-size: var(--t-detalhe); max-width: 60ch; }

/* ---------------------------- botão fixo (celular) --------------------- */

.botao-fixo {
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background: var(--acao);
  color: var(--acao-tinta);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(9, 26, 33, 0.4);
  transform: translateY(160%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.botao-fixo.aparece { transform: translateY(0); }

/* =============================== telas grandes ========================= */

@media (min-width: 900px) {
  :root { --barra-h: 74px; }

  .barra-nav { display: flex; }
  .barra .botao { margin-left: 0; }

  .abertura::after {
    background:
      linear-gradient(90deg,
        rgba(9, 26, 33, 0.95) 0%,
        rgba(9, 26, 33, 0.82) 32%,
        rgba(9, 26, 33, 0.35) 66%,
        rgba(9, 26, 33, 0.55) 100%);
  }
  .abertura-conteudo { padding-bottom: 6rem; }
  .abertura-titulo { max-width: 14ch; }

  .duas-colunas { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .lista-servicos { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .servico { padding: 1.9rem 0; }

  .lista-passos { grid-template-columns: repeat(3, 1fr); gap: 3rem; }

  .lista-depoimentos { grid-template-columns: repeat(3, 1fr); }

  .onde-grade { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .chamada-conteudo { align-items: flex-start; }

  .rodape { padding-bottom: 2.5rem; }
  .botao-fixo { display: none; }
}

/* --- a conversão presa: só no computador e com movimento liberado -------- */

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .conversao { height: 100svh; }
  html.js .conversao-mobile { display: none; }
  html.js .conversao-palco {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vh, 2rem);
    height: 100svh;
    padding: calc(var(--barra-h) + 1.5rem) clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vh, 2.5rem);
    will-change: background-color;
  }

  .palco-cabeca { max-width: 60rem; }
  .palco-cabeca h2 { font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); }
  .palco-intro { margin-top: 0.5rem; opacity: 0.72; }

  .palco-cena {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    min-height: 0;
  }

  .palco-legendas { position: relative; display: grid; min-height: 220px; }
  .palco-legenda { grid-area: 1 / 1; align-self: center; list-style: none; }
  .palco-legenda h3 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); margin-bottom: 0.6rem; }
  .palco-legenda p { max-width: 40ch; opacity: 0.85; }

  .palco-fotos {
    position: relative;
    height: min(62vh, 560px);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  }
  .palco-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .palco-barra {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
  }
  .palco-rotulo {
    font-size: var(--t-detalhe);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
  }
  .palco-trilha {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.28;
    overflow: hidden;
  }
  .palco-preenche {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--laranja);
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao, .botao-fixo, .lista-duvidas summary::after { transition: none; }
  .botao:hover { transform: none; }
}
