/* Factum — mobile first. Tema: concreto escuro (T11), Space Grotesk */
:root {
  --bg: #E4E2DE;           /* posição 1 */
  --cinza: #B2B0AD;        /* posição 2 */
  --cinza-escuro: #4A4845; /* posição 3 */
  --ouro: #C9960C;         /* posição 4: botões e destaques sobre fundo escuro */
  --ambar: #A65D03;        /* posição 5: textos de destaque sobre fundo claro */
  --texto: #111111;        /* posição 6 */
  --noite: #111111;
  --fonte: "Space Grotesk", system-ui, sans-serif;
  --gutter: 20px;
  --topo-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-h); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--texto); font-family: var(--fonte); font-weight: 300; font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; }

/* Tipografia */
.titulo, h1, h2, h3 { font-family: var(--fonte); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.titulo { font-size: clamp(2.1rem, 9vw, 3.6rem); }
.secao__texto { color: var(--cinza-escuro); max-width: 34rem; margin-top: 14px; }
.miolo { padding: 72px var(--gutter); max-width: 1100px; margin: 0 auto; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid transparent; font-family: var(--fonte); font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.botao--ouro { background: var(--ouro); color: var(--noite); }
.botao--ouro:hover { background: var(--noite); color: var(--ouro); }
.botao--linha { border-color: var(--texto); color: var(--texto); }
.botao--linha:hover { background: var(--texto); color: var(--bg); }
.botao--grande { min-height: 58px; padding: 0 40px; margin-top: 28px; font-size: 1.05rem; }

/* Topo */
.topo { position: fixed; inset: 0 0 auto 0; height: var(--topo-h); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--cinza); }
.topo__logo img { height: 38px; width: auto; filter: brightness(0); }
.topo__botao { width: 44px; height: 44px; background: none; border: 0; display: grid; place-content: center; gap: 7px; cursor: pointer; }
.topo__botao span { display: block; width: 26px; height: 1.5px; background: var(--texto); transition: transform .3s; }
.topo__botao[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.topo__botao[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu { position: fixed; inset: var(--topo-h) 0 auto 0; background: var(--bg); display: grid; padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--cinza); transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s; }
.menu.aberto { transform: none; visibility: visible; }
.menu a { font-size: 1.7rem; font-weight: 500; letter-spacing: -.04em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--cinza); }
.menu a:hover { color: var(--ambar); }

/* Primeira dobra */
.hero { padding: calc(var(--topo-h) + 36px) var(--gutter) 56px; max-width: 1100px; margin: 0 auto; }
.hero__titulo { font-size: clamp(2rem, 9.5vw, 4.2rem); }
.hero__texto { margin: 18px 0 24px; max-width: 28rem; color: var(--cinza-escuro); }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__molde { position: relative; margin: 44px 14px 0 0; isolation: isolate; }
.hero__molde::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--ambar); z-index: -1; }
.hero__molde img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* Projetos: foto grande com legenda e miniaturas */
.portfolio { padding: 64px 0 80px; border-top: 1px solid var(--cinza); }
.secao__cabeca { padding: 0 var(--gutter); max-width: 1100px; margin: 0 auto; }

.galeria { padding: 24px var(--gutter) 0; max-width: 940px; margin: 0 auto; }
.caixa-grande { position: relative; }
.passa { display: none; position: absolute; top: 50%; z-index: 1; width: 44px; height: 64px; margin-top: -32px; padding: 0 0 4px; border: 0; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.passa:hover { background: var(--noite); }
.passa--ant { left: 0; }
.passa--prox { right: 0; }
@media (hover: hover) and (min-width: 720px) { .passa { display: block; } }
.grande { touch-action: pan-y; user-select: none; position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.6; max-height: 640px; padding: 0; border: 1px solid var(--cinza-escuro); background: var(--cinza); overflow: hidden; cursor: pointer; font: inherit; color: inherit; }
.grande__midia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grande__fotos { position: absolute; top: 12px; right: 12px; padding: 5px 12px; background: var(--noite); color: var(--ouro); font-size: .8rem; font-weight: 500; }
.grande__fotos[hidden] { display: none; }
.grande__nome { position: absolute; left: 0; bottom: 0; padding: 9px 16px; background: var(--bg); color: var(--texto); font-weight: 500; font-size: 1.1rem; letter-spacing: -.03em; }
.faixa { position: relative; margin-top: 8px; }
.seta { display: none; position: absolute; top: 0; bottom: 0; z-index: 1; width: 40px; padding: 0 0 4px; border: 0; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s, opacity .2s; }
.seta:hover { background: var(--noite); }
.seta:disabled { opacity: 0; pointer-events: none; }
.seta--ant { left: 0; }
.seta--prox { right: 0; }
@media (hover: hover) and (min-width: 720px) { .seta { display: block; } }
.minis { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.minis::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: var(--cinza); opacity: .55; cursor: pointer; transition: opacity .2s; }
.mini[hidden] { display: none; }
.mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini:hover, .mini.on { opacity: 1; }
.mini.on { border-color: var(--ouro); }

/* Ambientes */
.ambientes { background: var(--cinza); }
.ambientes .secao__texto { color: var(--texto); }
.lista-amb { margin-top: 32px; max-width: 720px; border-top: 1px solid var(--cinza-escuro); }
.lista-amb details { border-bottom: 1px solid var(--cinza-escuro); }
.lista-amb summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.lista-amb summary::-webkit-details-marker { display: none; }
.lista-amb summary::after { content: "+"; font-weight: 300; font-size: 1.8rem; }
.lista-amb details[open] summary::after { content: "–"; }
.lista-amb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lista-amb details p { padding: 12px 0 22px; }

/* Como funciona */
.passos { margin-top: 36px; border-top: 1px solid var(--cinza-escuro); }
.passos li { display: grid; grid-template-columns: 86px 1fr; gap: 8px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--cinza-escuro); }
.passo__n { font-size: 4.6rem; font-weight: 500; letter-spacing: -.05em; line-height: .9; color: transparent; -webkit-text-stroke: 1.3px var(--ambar); }
.passos h3 { font-size: 1.45rem; }
.passos p { color: var(--cinza-escuro); font-size: .95rem; margin-top: 4px; }

/* Sobre */
.sobre { background: var(--noite); color: var(--bg); }
.sobre__frase { font-size: clamp(1.9rem, 8.4vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; max-width: 22ch; }
.sobre__frase em { font-style: normal; color: var(--ouro); }
.sobre__cidades { margin-top: 28px; max-width: 32rem; color: var(--cinza); }

/* Contato */
.contato { border-top: 3px solid var(--ouro); }
.contato__dados { margin-top: 48px; display: grid; gap: 16px; overflow-wrap: anywhere; border-top: 1px solid var(--cinza-escuro); padding-top: 28px; }
.contato__dados li { display: grid; gap: 2px; }
.contato__dados span { font-size: .85rem; color: var(--cinza-escuro); }
.contato__dados a { text-decoration: none; color: var(--ambar); font-weight: 500; }
.contato__dados a:hover { text-decoration: underline; }

.rodape { padding: 36px var(--gutter) 100px; background: var(--cinza); display: grid; gap: 14px; justify-items: start; color: var(--texto); font-size: .9rem; }
.rodape img { height: 46px; width: auto; filter: brightness(0); }
.rodape__links button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.rodape__links a:hover, .rodape__links button:hover { color: var(--ambar); }

/* Landing pages de serviço */
.topo__cta { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.vantagens { background: var(--cinza); }
.lista-v { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--cinza-escuro); }
.lista-v li { padding: 18px 0; border-bottom: 1px solid var(--cinza-escuro); }
.lista-v h3 { font-size: 1.45rem; }
.lista-v p { margin-top: 6px; font-size: .95rem; }
@media (min-width: 720px) {
  .lista-v { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
.amb-link { display: inline-block; margin: -8px 0 22px; color: var(--ambar); font-weight: 500; text-decoration: none; }
.amb-link:hover { text-decoration: underline; }

/* Aviso de cookies */
.cookies { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; gap: 14px; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--noite); color: var(--bg); font-size: .9rem; line-height: 1.5; }
.cookies[hidden] { display: none; }
.cookies a { color: var(--ouro); }
.cookies__acoes { display: flex; gap: 10px; }
.cookies__acoes .botao { min-height: 44px; padding: 0 22px; flex: 1; }
.cookies .botao--linha { background: transparent; border-color: var(--bg); color: var(--bg); }
.cookies .botao--linha:hover { background: var(--bg); color: var(--noite); }
.cookies .botao--ouro:hover { background: var(--bg); color: var(--noite); }
@media (min-width: 720px) {
  .cookies { grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding-inline: max(var(--gutter), calc((100vw - 1100px) / 2 + var(--gutter))); }
  .cookies__acoes .botao { flex: none; }
}

/* Página de texto legal (privacidade) */
.topo__voltar { font-weight: 500; font-size: .95rem; text-decoration: none; }
.topo__voltar:hover { color: var(--ambar); }
.texto-legal { max-width: 760px; padding-top: calc(var(--topo-h) + 40px); }
.texto-legal__data { margin: 14px 0 28px; color: var(--cinza-escuro); font-size: .9rem; }
.texto-legal h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.texto-legal h3 { font-size: 1.1rem; margin: 20px 0 8px; letter-spacing: -.02em; }
.texto-legal p { margin-bottom: 12px; }
.texto-legal ul { margin: 0 0 12px 1.2em; list-style: disc; }
.texto-legal li { margin-bottom: 6px; }
.texto-legal a { color: var(--ambar); }

/* WhatsApp: círculo no celular, pílula no desktop */
.whats-fixo { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: block; width: 60px; height: 60px; line-height: 0; }
.whats-fixo img { display: block; width: 100%; height: 100%; transform-origin: center center; animation: pulsa 1.5s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.whats-fixo:focus-visible { outline-offset: 4px; border-radius: 50%; }
@keyframes pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Ampliar */
.ampliar { border: 0; background: rgba(17,17,17,.97); color: #F2F2F2; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; }
.ampliar::backdrop { background: #000; }
.ampliar[open] { display: grid; grid-template-rows: 1fr auto; }
.ampliar__midia { display: grid; place-items: center; min-height: 0; padding: 64px 12px 8px; }
.ampliar__midia img, .ampliar__midia video { max-width: 100%; max-height: 100%; object-fit: contain; }
.ampliar__legenda { text-align: center; padding: 8px var(--gutter) 24px; font-size: 1.2rem; font-weight: 500; letter-spacing: -.03em; }
.ampliar__fechar { position: absolute; top: 8px; right: 12px; z-index: 2; width: 48px; height: 48px; background: none; border: 0; color: #F2F2F2; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.ampliar__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 64px; background: rgba(17,17,17,.5); border: 0; color: var(--ouro); font-size: 2.4rem; cursor: pointer; }
.ampliar__nav--ant { left: 0; }
.ampliar__nav--prox { right: 0; }

/* Telas maiores */
@media (min-width: 720px) {
  :root { --gutter: 40px; --topo-h: 78px; }
  .topo__logo img { height: 44px; }
  .topo__botao { display: none; }
  .menu { position: static; display: flex; gap: 32px; padding: 0; border: 0; background: none; transform: none; visibility: visible; }
  .menu a { font-size: .95rem; font-weight: 400; letter-spacing: 0; padding: 6px 0; border: 0; }
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 56px; align-items: center; }
  .hero__titulo, .hero__texto, .acoes { grid-column: 1; }
  .hero__molde { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .passos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .contato__dados { grid-template-columns: repeat(2, 1fr); }
  .whats-fixo { width: 65px; height: 65px; }
  .grande { aspect-ratio: 16 / 10; }
  .mini { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .whats-fixo img { animation: none; }
}
