/* H&J Construções e Reformas · página principal
   Para o dono de franquia, que abre o link no celular: direta, sólida e clara, com fotos reais das
   obras, o WhatsApp sempre à mão e o prédio 3D das obras entregues (js/predio3d.js) como vitrine.
   Escrito do celular para o computador. Cores da marca: tinta #050834 e azul #3352ff. */

/* Fontes servidas pelo próprio site (fontes/, licença OFL): sem esperar o Google na primeira tela */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fontes/big-shoulders-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fontes/big-shoulders-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fontes/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fontes/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fundo: #f4f5f9;
  --papel: #ffffff;
  --tinta: #050834;
  --tinta-2: #161942;
  --texto: #1b1f3b;
  --suave: #4a4f6d;
  --linha: #dfe2ee;
  --destaque: #3352ff;
  --zap: #15803d;
  --zap-escuro: #116b33;
  --noite: #0a1250;
  --luz: #ffc882;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --corpo: "Onest", system-ui, sans-serif;

  --margem: clamp(16px, 4.5vw, 56px);
  --raio: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; }
::selection { background: var(--destaque); color: #fff; }
h1, h2, h3 { text-wrap: balance; color: var(--tinta); }
p { text-wrap: pretty; }

.pular {
  position: fixed; left: 8px; top: 8px; z-index: 30;
  background: var(--tinta); color: #fff; padding: 12px 16px; text-decoration: none; border-radius: 8px;
}
.pular:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: 0.95; letter-spacing: 0.005em;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.secao { padding: 72px var(--margem); }
.secao__linha { margin-top: 12px; font-size: 1.1875rem; color: var(--suave); max-width: 40ch; }

/* Botões: grandes, para o dedo */
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  touch-action: manipulation;
  transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.botao:active { transform: scale(0.98); }
.botao svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.botao--zap { background: var(--zap); color: #fff; }
.botao--zap:hover { background: var(--zap-escuro); }
.botao--claro { background: rgba(255, 255, 255, 0.14); color: #fff; }
.botao--claro:hover { background: rgba(255, 255, 255, 0.24); }
.botao--grande { min-height: 60px; font-size: 1.125rem; padding: 0 28px; }

/* ---------- Barra ---------- */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) var(--margem) 8px;
  background: var(--tinta); color: #fff;
}
.barra__marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.barra__marca img { width: 28px; height: auto; }
.barra__marca span { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.barra__marca small { display: none; font-family: var(--corpo); font-weight: 500; font-size: 0.8125rem; margin-left: 4px; color: #c9cdea; }
.barra__zap { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; }
.barra__abrir {
  min-height: 44px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.12);
  font-weight: 700; font-size: 0.9375rem; touch-action: manipulation;
}
html:not(.js) .barra__abrir { display: none; }
.barra__links { display: none; }
.barra__links.aberto {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; left: 0; right: 0; top: calc(60px + env(safe-area-inset-top)); bottom: 0;
  padding: 16px var(--margem) 32px; background: var(--tinta); overflow-y: auto;
}
.barra__links.aberto a {
  display: flex; align-items: center; min-height: 56px; text-decoration: none;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.25rem;
}
body.menu-aberto { overflow: hidden; }

/* No topo a barra fica transparente sobre o mural; ao rolar (ou com o menu aberto) fica sólida */
.barra { transition: background-color 200ms var(--ease-out); }
.barra.no-topo { background-color: transparent; background-image: linear-gradient(rgba(5, 8, 52, 0.75), rgba(5, 8, 52, 0)); }
body.menu-aberto .barra { background-color: var(--tinta); background-image: none; }

/* ---------- Topo: o mural das obras correndo atrás do +200 ---------- */
/* As colunas andam por transform (leve) e param quando o topo sai da tela. */
.topo { position: relative; height: 100svh; min-height: 620px; max-height: 1000px; overflow: hidden; background: var(--tinta); color: #fff; }
.mural {
  --g: 10px;
  position: absolute; inset: -20% -22%; display: flex; gap: var(--g); justify-content: center;
  transform: rotate(-8deg); pointer-events: none;
}
.mural__coluna { flex: 0 0 calc((100vw * 1.44 - 3 * var(--g)) / 4); max-width: 260px; }
.mural__trilho { display: flex; flex-direction: column; gap: var(--g); animation: mural-sobe var(--t, 60s) linear infinite; will-change: transform; }
.mural__coluna:nth-child(even) .mural__trilho { animation-name: mural-desce; }
/* O trilho leva as fotos duas vezes: andar metade dele (mais meio vão) emenda sem salto */
@keyframes mural-sobe { to { transform: translateY(calc(-50% - var(--g) / 2)); } }
@keyframes mural-desce { from { transform: translateY(calc(-50% - var(--g) / 2)); } }
.mural.parado .mural__trilho { animation-play-state: paused; }
.mural figure { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--tinta-2); }
.mural img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms; }
.mural img.pronta { opacity: 1; }
.mural figcaption { display: none; }
.topo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(5, 8, 52, 0.7), rgba(5, 8, 52, 0) 20%),
    linear-gradient(to top, var(--tinta) 0%, rgba(5, 8, 52, 0.94) 40%, rgba(5, 8, 52, 0.2) 68%, rgba(5, 8, 52, 0.1) 100%);
}
.topo__texto { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 var(--margem) calc(20px + env(safe-area-inset-bottom)); }
.topo__conta { display: flex; align-items: flex-end; gap: 14px; }
.topo__conta strong { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 31vw, 10rem); line-height: 0.78; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.topo__conta strong span { color: var(--destaque); }
.topo__conta p { padding-bottom: 4px; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: #dfe2f5; }
.topo h1 {
  margin-top: 18px; color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 12.4vw, 4rem); line-height: 0.92; letter-spacing: 0.005em;
}
.topo__linha { margin-top: 12px; max-width: 38ch; font-size: 1.0625rem; line-height: 1.45; color: #e3e6f7; }
.topo .acoes { margin-top: 18px; }
.topo .acoes .botao { flex: 1 1 100%; min-height: 56px; font-size: 1.0625rem; }
.topo .acoes .botao--claro { display: none; }
@media (prefers-reduced-motion: reduce) { .mural__trilho { animation: none; } }

/* ---------- Marcas: as logos no mesmo tamanho visual ---------- */
/* Cada logo traz a sua largura (--wc no celular, --wp no computador), calculada pela proporção dela:
   as largas não dominam e as quadradas não somem. */
.marcas { background: var(--papel); padding: 28px var(--margem) 22px; }
.marcas__cabeca { display: flex; align-items: center; gap: 16px; }
.marcas__cabeca::after { content: ""; flex: 1; height: 1px; background: var(--linha); display: none; }
.marcas h2 { font-family: var(--corpo); text-transform: uppercase; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; color: var(--suave); }
.marcas ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin-top: 18px; }
.marcas li { display: grid; place-items: center; height: 76px; }
.marcas img { width: var(--wc); height: auto; max-height: 50px; object-fit: contain; transition: transform 260ms var(--ease-out); }
@media (hover: hover) { .marcas li:hover img { transform: scale(1.06); } }
.marcas__nota { margin-top: 14px; font-size: 0.75rem; line-height: 1.4; color: #6b708f; max-width: 70ch; }

/* ---------- Cartões ---------- */
.cartao { background: var(--papel); border-radius: var(--raio); padding: 22px 20px; }
.cartao p { margin-top: 8px; color: var(--suave); }
.porque { background: var(--papel); }
.porque .cartao { background: var(--fundo); }
.porque__lista { display: grid; gap: 12px; margin-top: 28px; }
.porque__lista h3 { color: var(--destaque); }

/* ---------- Obras: o prédio 3D à noite ---------- */
.obras { background: var(--noite); color: #e3e6f7; padding: 64px 0 56px; }
.obras__topo { padding: 0 var(--margem); }
.obras h2 { color: #fff; }
.obras__topo p { margin-top: 12px; font-size: 1.125rem; max-width: 42ch; }
.vitrine {
  position: relative; margin-top: 24px; height: min(92svh, 760px); overflow: hidden;
  background: #0c1660;
}
.vitrine__cena { position: absolute; inset: 0; }
.vitrine__cena canvas { display: block; width: 100%; height: 100%; }
/* Sem 3D: a foto de uma loja no lugar */
.sem-3d .vitrine { height: auto; background: none; }
.sem-3d .vitrine__cena, .sem-3d .vitrine__dica { display: none; }

.filtros {
  position: absolute; left: 0; right: 0; top: 12px; z-index: 2;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--margem);
}
.filtros::-webkit-scrollbar { display: none; }
.filtros button {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(5, 8, 52, 0.7); color: #e3e6f7; font-weight: 500; font-size: 0.9375rem; touch-action: manipulation;
}
.filtros button[aria-pressed="true"] { background: #fff; color: var(--tinta); font-weight: 700; }
.sem-3d .filtros { position: static; margin-top: 16px; }
.vitrine__dica {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1;
  font-size: 0.875rem; color: #c9cdea; background: rgba(5, 8, 52, 0.6); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: opacity 300ms var(--ease-out);
}
.vitrine__dica.some { opacity: 0; }
.vitrine__rotulo {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  background: #fff; color: var(--tinta); font-weight: 700; font-size: 0.875rem; padding: 6px 10px; border-radius: 6px; white-space: nowrap;
}

/* Ficha da obra: folha que sobe no celular; cartão ao lado no computador */
.ficha {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 58%;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--papel); color: var(--texto); border-radius: 18px 18px 0 0;
  padding: 18px var(--margem) calc(18px + env(safe-area-inset-bottom));
  animation: sobe 320ms var(--ease-out);
}
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } }
.sem-3d .ficha { position: relative; max-height: none; border-radius: var(--raio); margin: 16px var(--margem) 0; animation: none; }
.ficha__fechar {
  position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.75rem; line-height: 1; color: var(--suave);
}
.ficha__tipo { font-size: 0.875rem; font-weight: 700; color: var(--zap); }
.ficha__nome { margin-top: 2px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.25rem; line-height: 1; padding-right: 44px; }
.ficha__onde { color: var(--suave); }
.ficha__fotos {
  display: flex; gap: 8px; margin: 14px calc(-1 * var(--margem)) 0; padding: 0 var(--margem);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ficha__fotos::-webkit-scrollbar { display: none; }
.ficha__fotos li { flex: none; width: 62%; max-width: 240px; scroll-snap-align: start; }
.ficha__fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--linha); }
.ficha__acao { width: 100%; margin-top: 14px; }
.ficha__fotos li.ficha__texto { width: 100%; max-width: none; color: var(--suave); }
.ficha__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--suave); font-size: 0.9375rem; }
.ficha__nav button { width: 48px; height: 48px; border-radius: 10px; background: var(--fundo); font-size: 1.75rem; line-height: 1; color: var(--tinta); }

.obras__nota { padding: 14px var(--margem) 0; font-size: 0.875rem; color: #aab0d8; }
.obras__lista {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 18px var(--margem) 4px;
}
.obras__lista::-webkit-scrollbar { display: none; }
/* Andando sozinha (js): sem encaixe, e as pontas somem para mostrar que continua. */
.obras__lista.anda {
  scroll-snap-type: none;
  mask-image: linear-gradient(90deg, transparent, #000 var(--margem), #000 calc(100% - var(--margem)), transparent);
}
.obras__lista li { flex: none; width: 150px; scroll-snap-align: start; }
.obras__lista button { display: block; width: 100%; text-align: left; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.obras__lista img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.obras__lista strong { display: block; padding: 8px 10px 0; font-size: 0.9375rem; color: #fff; }
.obras__lista span { display: block; padding: 0 10px 10px; font-size: 0.8125rem; color: #aab0d8; line-height: 1.3; }
.obras__lista button[aria-current="true"] { outline: 3px solid var(--luz); outline-offset: -3px; }

/* ---------- Como funciona ---------- */
.passos { display: grid; gap: 12px; margin-top: 28px; }
.passos li { position: relative; background: var(--papel); border-radius: var(--raio); padding: 20px 20px 20px 76px; min-height: 92px; }
.passos span {
  position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--destaque); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
}
.passos p { margin-top: 6px; color: var(--suave); }
.roteiro {
  margin-top: 28px; background: var(--papel); color: var(--tinta);
  padding: 24px 20px 52px; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
}
.roteiro > summary { display: block; list-style: none; cursor: pointer; }
.roteiro > summary::-webkit-details-marker { display: none; }
.roteiro__titulo { display: block; font-weight: 700; font-size: 1.0625rem; }
.roteiro__barra { display: flex; gap: 3px; margin-top: 14px; }
.roteiro__barra i { flex: 1; height: 10px; border-radius: 2px; background: var(--destaque); }
.roteiro__barra i:nth-child(1) { opacity: 0.3; } .roteiro__barra i:nth-child(2) { opacity: 0.42; } .roteiro__barra i:nth-child(3) { opacity: 0.54; }
.roteiro__barra i:nth-child(4) { opacity: 0.66; } .roteiro__barra i:nth-child(5) { opacity: 0.78; } .roteiro__barra i:nth-child(6) { opacity: 0.9; }
.roteiro__resumo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 0.8125rem; color: var(--suave); }
.roteiro__resumo strong { font-size: 0.9375rem; color: var(--tinta); }
.roteiro__nota { display: block; margin-top: 12px; font-size: 0.875rem; line-height: 1.45; color: var(--suave); }
.roteiro__abrir { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-weight: 700; color: var(--destaque); }
.roteiro__abrir::after { content: "+"; font-size: 1.375rem; line-height: 1; transition: transform 200ms var(--ease-out); }
.roteiro[open] .roteiro__abrir::after { transform: rotate(45deg); }
.roteiro:not([open]) { padding-bottom: 40px; }
.roteiro__semana { margin-top: 20px; }
.roteiro__quando { font-weight: 700; margin-bottom: 4px; }
.roteiro__linha { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.roteiro__linha i { flex: 1; min-width: 12px; border-bottom: 3px dotted #b9bdd6; transform: translateY(-4px); }
.roteiro__linha span:last-child { white-space: nowrap; color: var(--suave); }
.roteiro__fim {
  margin: 22px -20px 0; min-height: 48px; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--tinta); color: #fff; font-weight: 700;
}
.roteiro__fim span:last-child { white-space: nowrap; }

.chamada {
  margin-top: 24px; padding: 22px 20px; border-radius: var(--raio); background: var(--tinta); color: #e3e6f7;
  display: grid; gap: 16px;
}
.chamada strong { color: #fff; }
.chamada .botao { width: 100%; }
.perguntas__cartao { margin-top: 20px; padding: 22px 20px; border-radius: var(--raio); background: var(--fundo); display: grid; gap: 14px; max-width: 820px; }
.perguntas__cartao strong { color: var(--tinta); }
.perguntas__cartao .botao { width: 100%; }

/* ---------- Serviços ---------- */
.servicos { background: var(--fundo); }
.tipos { display: grid; gap: 12px; margin-top: 28px; }
.tipos .cartao { display: flex; flex-direction: column; background: var(--papel); }
.tipos__zap {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin-top: auto; padding-top: 12px;
  font-weight: 700; color: var(--zap); text-decoration: none;
}
.tipos__zap svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.tipos__zap:hover { color: var(--zap-escuro); text-decoration: underline; }
.servicos__todos { margin-top: 20px; }
.servicos__todos > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none;
  border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); font-weight: 700; color: var(--tinta);
}
.servicos__todos > summary::-webkit-details-marker { display: none; }
.servicos__todos > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 200ms var(--ease-out); }
.servicos__todos[open] > summary::after { transform: rotate(45deg); }
.servicos__todos .servicos__grade { margin-top: 12px; }
.servicos__grade { display: grid; gap: 10px; margin-top: 28px; }
.servicos__grupo > summary {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px;
  border-radius: 10px; background: var(--tinta); color: #fff; cursor: pointer; list-style: none; touch-action: manipulation;
}
.servicos__grupo > summary::-webkit-details-marker { display: none; }
.servicos__grupo > summary h3 { color: #fff; font-size: 1.125rem; }
.servicos__grupo > summary span { margin-left: auto; font-size: 0.875rem; color: #c9cdea; }
.servicos__grupo > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: #fff; transition: transform 200ms var(--ease-out); }
.servicos__grupo[open] > summary::after { transform: rotate(45deg); }
.servicos__grupo > ul { margin-top: 6px; }
.servicos__grupo li + li { margin-top: 4px; }
.servicos__grupo li summary, .perguntas summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 8px 16px; border-radius: 10px; background: var(--fundo);
  cursor: pointer; list-style: none; font-weight: 500; touch-action: manipulation;
}
.servicos__grupo li summary::-webkit-details-marker, .perguntas summary::-webkit-details-marker { display: none; }
.servicos__grupo li summary::after, .perguntas summary::after {
  content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--destaque); transition: transform 200ms var(--ease-out);
}
.servicos__grupo li details[open] summary::after, .perguntas details[open] summary::after { transform: rotate(45deg); }
.servicos__grupo details p, .perguntas details p { padding: 10px 16px 14px; color: var(--suave); }

/* ---------- Galeria ---------- */
.obras .galeria { padding: 56px var(--margem) 0; }
.galeria__titulo { color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.25rem); line-height: 0.95; }
.galeria__linha { margin-top: 10px; color: #aab0d8; }
/* No celular as fotos ficam numa fileira de arrastar para o lado (a próxima aparece pela metade);
   do tablet para cima, em colunas */
.galeria__grade {
  display: flex; gap: 10px; margin: 24px calc(-1 * var(--margem)) 0; padding: 0 var(--margem) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--margem); scrollbar-width: none;
}
.galeria__grade::-webkit-scrollbar { display: none; }
.galeria__grade li { flex: 0 0 64%; scroll-snap-align: start; }
.galeria__grade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.galeria figure { border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.galeria figcaption { padding: 8px 10px 10px; font-size: 0.8125rem; line-height: 1.35; color: #aab0d8; }
.galeria figcaption strong { display: block; color: #fff; }

/* ---------- Foto que amplia (galeria e ficha) ---------- */
.amplia { position: relative; display: block; width: 100%; cursor: zoom-in; }
.amplia::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(5, 8, 52, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Visor: a foto em tela cheia ---------- */
.visor {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #04061c; color: #fff; overscroll-behavior: contain;
}
.visor[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.visor::backdrop { background: #04061c; }
:root:has(.visor[open]) { overflow: hidden; }
.visor__palco {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; overflow: hidden;
  padding: calc(64px + env(safe-area-inset-top)) 8px 8px; touch-action: pan-y pinch-zoom; cursor: zoom-in;
}
.visor__palco img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; user-select: none; -webkit-user-select: none; }
.visor--zoom .visor__palco { place-items: normal; padding: 0; overflow: auto; touch-action: auto; cursor: grab; scrollbar-width: none; }
.visor--zoom .visor__palco img { max-width: none; max-height: none; margin: auto; border-radius: 0; cursor: zoom-out; }
.visor__rodape {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px var(--margem) calc(16px + env(safe-area-inset-bottom));
}
.visor__legenda { flex: 1 1 auto; font-size: 0.9375rem; line-height: 1.4; color: #c9cdea; }
.visor__legenda strong { color: #fff; }
.visor__conta { margin-left: 10px; color: #8d93c4; }
.visor__rodape .botao { flex: 1 1 100%; }
.visor__dica { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: var(--margem); font-size: 0.875rem; color: #8d93c4; }
.visor__fechar, .visor__seta {
  position: absolute; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255, 255, 255, 0.14); color: #fff; line-height: 1;
}
.visor__fechar { top: calc(8px + env(safe-area-inset-top)); right: 8px; width: 48px; height: 48px; font-size: 2rem; }
.visor__seta { top: 50%; width: 44px; height: 64px; margin-top: -32px; font-size: 2.25rem; }
.visor__seta--antes { left: 8px; }
.visor__seta--depois { right: 8px; }
.visor__seta[hidden], .visor--zoom .visor__seta, .visor--zoom .visor__dica { display: none; }
.visor__fechar:hover, .visor__seta:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Perguntas ---------- */
.perguntas { background: var(--papel); }
.perguntas__lista { display: grid; gap: 6px; margin-top: 28px; max-width: 820px; }
.perguntas summary { font-weight: 700; min-height: 60px; }

/* ---------- Contato ---------- */
.contato { background: var(--tinta); color: #e3e6f7; padding: 72px var(--margem) calc(56px + env(safe-area-inset-bottom)); }
.contato h2 { color: #fff; }
.contato > p { margin-top: 12px; font-size: 1.125rem; max-width: 40ch; }
.contato .botao--grande { width: 100%; margin-top: 24px; }
.contato__canais { display: grid; gap: 18px; margin-top: 32px; font-size: 1.0625rem; }
.contato__canais span { display: block; font-size: 0.8125rem; color: #aab0d8; }
.contato__canais a { color: #fff; font-weight: 700; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--tinta-2); color: #c9cdea; padding: 40px var(--margem) calc(28px + env(safe-area-inset-bottom)); }
.rodape__logo { width: 120px; }
.rodape__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 20px; }
.rodape__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; color: #fff; }
.rodape__fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 0.8125rem; }
.rodape__fim a { color: #fff; }

/* ---------- Entradas: só um leve subir ---------- */
.js .surge { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.js .surge.dentro { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .visor__rodape .botao { flex: none; }
  .visor__seta { width: 56px; height: 72px; margin-top: -36px; }
  .visor__seta--antes { left: 16px; }
  .visor__seta--depois { right: 16px; }
  .topo .acoes .botao { flex: none; padding: 0 28px; }
  .topo .acoes .botao--claro { display: inline-flex; padding: 0 24px; }
  .porque__lista, .tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria__grade { display: block; columns: 3; column-gap: 8px; margin: 24px 0 0; padding: 0; overflow: visible; }
  .galeria__grade li { break-inside: avoid; margin-bottom: 8px; }
  .galeria__grade img { aspect-ratio: auto; }
  .contato .botao--grande { width: auto; }
  .contato__canais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obras__lista li { width: 180px; }
  .marcas ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Computador ---------- */
@media (min-width: 1000px) {
  body { font-size: 1.125rem; }
  .barra { gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .barra__abrir { display: none; }
  .barra__marca small { display: inline; }
  .barra__links { display: flex; gap: 2px; }
  .barra__links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
    text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: #dfe2f5;
  }
  .barra__links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .barra__zap { padding: 0 18px; }

  .topo { min-height: 680px; }
  /* Mural do lado direito, com o nome e o lugar de cada loja; texto à esquerda sobre o azul */
  .mural { --g: 14px; inset: -25% -10% -25% 18%; transform: rotate(-6deg); }
  .mural__coluna { flex: 0 0 calc((100vw - 5 * var(--g)) / 6); max-width: 300px; }
  .mural figcaption {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
    background: linear-gradient(transparent, rgba(5, 8, 52, 0.85)); font-size: 0.8125rem; line-height: 1.3; color: #fff;
  }
  .mural figcaption strong { display: block; font-size: 0.9375rem; }
  .topo::after {
    background:
      linear-gradient(rgba(5, 8, 52, 0.7), rgba(5, 8, 52, 0) 18%),
      linear-gradient(90deg, var(--tinta) 0%, rgba(5, 8, 52, 0.96) 30%, rgba(5, 8, 52, 0.4) 52%, rgba(5, 8, 52, 0) 72%);
  }
  .topo__texto { top: 0; display: flex; flex-direction: column; justify-content: center; max-width: 720px; padding-top: 80px; padding-bottom: 40px; }
  .topo__conta strong { font-size: clamp(10rem, min(17vw, 30vh), 16rem); }
  .topo__conta p { font-size: 1.25rem; padding-bottom: 12px; }
  .topo h1 { font-size: clamp(3.25rem, min(5vw, 9vh), 5.5rem); }
  .topo__linha { font-size: 1.25rem; }
  .topo .acoes { margin-top: 28px; }

  .marcas { padding: 40px var(--margem) 30px; }
  .marcas__cabeca::after { display: block; }
  .marcas ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 28px; margin-top: 24px; }
  .marcas li { height: 112px; }
  .marcas img { width: var(--wp); max-height: 72px; }
  .marcas__nota { margin-top: 18px; }

  .secao { padding: 112px var(--margem); }
  .porque__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }

  .obras { padding: 112px 0 80px; }
  .obras__topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .obras__topo p { margin-top: 0; }
  .vitrine { height: min(82vh, 780px); margin-top: 36px; }
  .filtros { top: 20px; }
  .ficha {
    left: var(--margem); right: auto; top: 84px; bottom: 24px; width: 380px; max-height: none;
    border-radius: 16px; padding: 22px 22px 20px; animation-name: entra;
  }
  @keyframes entra { from { transform: translateX(-24px); opacity: 0; } }
  .ficha__fotos { margin: 14px -22px 0; padding: 0 22px; }
  .ficha__fotos li { width: 68%; }
  .sem-3d .ficha { margin: 16px var(--margem) 0; width: auto; max-width: 560px; }

  .como { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-rows: auto auto auto 1fr; column-gap: 56px; align-items: start; }
  .como h2, .como .secao__linha { grid-column: 1; }
  .como .passos { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .como .roteiro { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; padding: 30px 30px 60px; }
  .roteiro__fim { margin: 26px -30px 0; padding: 0 30px; }
  .roteiro > summary { pointer-events: none; cursor: default; }
  .roteiro__barra, .roteiro__resumo, .roteiro__abrir { display: none; }
  .roteiro__nota { margin-top: 6px; }

  .tipos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servicos__grupo > summary { pointer-events: none; }
  .servicos__grupo > summary::after { display: none; }
  .como .chamada { grid-column: 1; align-self: end; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .chamada .botao, .perguntas__cartao .botao { width: auto; }
  .perguntas { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .perguntas h2 { grid-column: 1 / -1; }
  .perguntas__lista { grid-column: 1; }
  .perguntas__cartao { grid-column: 2; margin-top: 28px; position: sticky; top: 96px; }
  .servicos__grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; align-items: start; }
  .galeria__grade { columns: 4; column-gap: 10px; }
  .galeria__grade li { margin-bottom: 10px; }

  .contato { padding: 112px var(--margem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .contato h2, .contato > p, .contato .botao--grande { grid-column: 1; }
  .contato__canais { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; grid-template-columns: 1fr; }
  .contato .botao--grande { justify-self: start; }

  .rodape { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: center; }
  .rodape__links { justify-content: flex-end; margin-top: 0; }
  .rodape__fim { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .surge { opacity: 1; transform: none; transition: none; }
  .ficha { animation: none; }
}
