/* Lorac Arquitetura — mobile primeiro. Sem framework. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --vermelho: #9e2a2b;
  --vermelho-esc: #7f2021;
  --grafite: #211d1c;
  --grafite-2: #322d2b;
  --papel: #f7f4ef;
  --branco: #fff;
  --linha: #dcd5cb;
  --txt: #2a2625;
  --txt-2: #5f5853;
  --titulo: "Outfit", "Segoe UI", Arial, sans-serif;
  --corpo: "Manrope", "Segoe UI", Arial, sans-serif;
  --gut: 16px;
  --sec: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--txt); font: 400 1rem/1.6 var(--corpo); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titulo); color: var(--grafite); margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.35rem + 2vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec__lead { margin-top: 12px; color: var(--txt-2); font-size: 1.0625rem; max-width: 56ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: 8px; top: -60px; background: var(--grafite); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.pular:focus { top: 8px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 6px; font: 600 1rem/1.2 var(--titulo); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--p { background: var(--vermelho); color: #fff; }
.btn--p:hover { background: var(--vermelho-esc); }
.btn--c { background: var(--grafite); color: #fff; }
.btn--c:hover { background: var(--grafite-2); }
.btn--b { background: #fff; color: var(--grafite); }
.btn--b:hover { background: var(--papel); }
.btn--g { min-height: 54px; padding-inline: 28px; font-size: 1.0625rem; }
.lnk { color: var(--grafite); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lnk:hover { color: var(--vermelho); }

/* Marcador visível de conteúdo pendente */
.marcador { border: 1.5px dashed var(--vermelho); background: #fbeeee; color: var(--vermelho-esc); padding: 12px 14px; font-size: .9375rem; border-radius: 6px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--papel); border-bottom: 1px solid var(--linha); }
.topo__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; min-height: 64px; }
.topo__logo img { width: 66px; height: auto; }
.topo__nav { display: none; }
.topo__cta { min-height: 42px; padding: 8px 14px; font-size: .875rem; }

/* Hero */
.hero__foto { position: relative; background: var(--grafite); }
.hero__foto img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cota { display: none; }
.hero__txt { width: min(100% - 2 * var(--gut), 640px); margin-inline: auto; padding-block: 28px 44px; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem); line-height: 1.06; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--vermelho); }
.hero__sub { margin-top: 16px; font-size: 1.0625rem; color: var(--txt-2); max-width: 52ch; }
.hero__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.hero__acoes .btn { flex: 1 1 100%; }
.nota-google { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 24px; text-decoration: none; font-size: .9375rem; color: var(--txt-2); }
.nota-google strong { color: var(--grafite); }
.nota-google:hover span:last-child { text-decoration: underline; }
.estrelas { color: #c9892b; letter-spacing: 2px; }

/* Lote */
.lote { background: var(--grafite); color: #e9e4dd; }
.lote h2 { color: #fff; }
.lote__g { display: grid; gap: 32px; }
.lote__txt p { margin-block: 16px 24px; font-size: 1.0625rem; max-width: 56ch; }
.lote .btn--c { background: #fff; color: var(--grafite); }
.lote .btn--c:hover { background: var(--papel); }
.lote__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Serviços */
.serv__g { margin-top: 28px; }
.serv__item { display: flex; gap: 14px; padding-block: 18px; border-top: 1px solid var(--linha); }
.serv__item:last-child { border-bottom: 1px solid var(--linha); }
.serv__n { font: 500 .875rem/1.6 var(--titulo); color: var(--vermelho); flex: 0 0 26px; }
.serv__item p { margin-top: 4px; color: var(--txt-2); font-size: .9688rem; }
.serv__fotos { display: none; }
.serv__cta { margin-top: 28px; }

/* Comparativo */
.compare { background: #efeae2; }
.tab { margin-block: 28px; }
.tab__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; padding-block: 12px; border-top: 1px solid var(--linha); }
.tab__l--h { position: sticky; top: 64px; z-index: 2; background: #efeae2; border-top: 0; padding-block: 10px; font: 600 .8125rem/1.25 var(--titulo); color: var(--grafite); }
.tab__l--h .tab__rot { display: none; }
.tab__rot { grid-column: 1 / -1; font: 600 .9375rem/1.3 var(--titulo); color: var(--grafite); margin-bottom: 6px; }
.tab__c { font-size: .8125rem; line-height: 1.35; color: var(--txt-2); }
.tab__c--lorac { color: var(--vermelho-esc); font-weight: 700; }
.tab__l--h .tab__c--lorac { color: var(--vermelho); font-size: .9375rem; }

/* Faixas de imagem */
.faixa { position: relative; max-width: 1760px; margin-inline: auto; background: var(--grafite); }
.faixa img { width: 100%; height: clamp(300px, 56vw, 720px); object-fit: cover; }
.faixa::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(20, 17, 16, .78)); pointer-events: none; }
.faixa figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 24px; color: #fff; font: 500 clamp(1.25rem, 1rem + 1.4vw, 2.25rem)/1.2 var(--titulo); }
.faixa figcaption p { max-width: 24ch; }
.faixa__frase { font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; max-width: none !important; }

/* Sobre */
.sobre__g { display: grid; gap: 28px; }
.sobre__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sobre__txt p { margin-top: 14px; color: var(--txt-2); font-size: 1.0625rem; }
.sobre__txt p.marcador { color: var(--vermelho-esc); font-size: .9375rem; margin-top: 20px; }

/* Processo */
.processo { background: var(--branco); }
.regua { display: none; }
.etapas { margin-block: 28px; border-left: 2px solid var(--vermelho); margin-left: 6px; }
.etapa { position: relative; padding: 0 0 26px 22px; }
.etapa:last-child { padding-bottom: 0; }
.etapa::before { content: ""; position: absolute; left: -8px; top: 9px; width: 14px; height: 14px; background: var(--vermelho); border: 3px solid #fff; border-radius: 50%; }
.etapa__dia { display: block; font: 500 .9375rem/1.2 var(--titulo); color: var(--vermelho); margin-bottom: 4px; }
.etapa__dia b { font-size: 2rem; font-weight: 600; }
.etapa p { margin-top: 4px; color: var(--txt-2); font-size: .9688rem; }

/* Projetos */
.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 22px calc(var(--gut) * -1) 20px; padding: 2px var(--gut); scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; min-height: 42px; padding: 8px 16px; background: transparent; border: 1px solid var(--linha); border-radius: 99px; font-weight: 600; font-size: .9063rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filtro:hover { border-color: var(--grafite); }
.filtro.is-on { background: var(--grafite); border-color: var(--grafite); color: #fff; }
.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; grid-auto-flow: dense; }
.foto { display: block; padding: 0; border: 0; background: #e5dfd6; cursor: zoom-in; overflow: hidden; }
.foto[hidden] { display: none; }
.foto img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.foto--g { grid-column: span 2; }
.foto:hover img { transform: scale(1.03); }

/* Avaliações */
.aval__g { display: grid; gap: 28px; }
.aval__num { font: 600 clamp(4rem, 3rem + 5vw, 7rem)/1 var(--titulo); color: var(--grafite); margin-top: 14px; }
.estrelas--g { font-size: 1.5rem; }
.aval__nota .lnk { display: inline-block; margin-top: 10px; }
.aval__lista { display: grid; gap: 12px; }
.aval__card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 20px; background: var(--branco); border: 1px solid var(--linha); border-radius: 6px; }
.aval__card blockquote { margin: 0; font-size: .9688rem; color: var(--txt-2); }
.aval__card figcaption { margin-top: auto; font: 600 .9375rem/1.3 var(--titulo); color: var(--grafite); }

/* CTA final */
.final { background: var(--vermelho); color: #fff; padding-block: var(--sec); }
.final h2 { color: #fff; }
.final p { margin-block: 12px 24px; max-width: 52ch; font-size: 1.0625rem; }

/* Localização */
.local { padding-block: var(--sec); }
.local__g { display: grid; gap: 28px; }
.local__txt address { margin-top: 16px; font-size: 1.0625rem; }
.local__txt > p { margin-top: 12px; }
.local__txt a[href^="tel"] { font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.local__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--grafite); border-radius: 6px; color: var(--grafite); transition: background-color .2s, color .2s; }
.social:hover { background: var(--grafite); color: #fff; }
.local__mapa iframe { display: block; width: 100%; height: 320px; border: 0; background: #e5dfd6; }

/* Rodapé */
.rodape { background: var(--grafite); color: #c9c2ba; padding-block: 36px 96px; font-size: .875rem; }
.rodape__in { display: grid; gap: 10px; }
.rodape img { width: 88px; margin-bottom: 8px; }
.rodape a { color: #fff; }
.rodape__credito { color: #fff; font-weight: 600; }

/* Barra fixa (celular) */
.barra { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 244, 239, .96); border-top: 1px solid var(--linha); }
.barra .btn { width: 100%; }

/* Formulário */
dialog { border: 0; padding: 0; color: inherit; }
.lead { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; background: #fff; overflow-y: auto; }
.lead::backdrop { background: rgba(20, 17, 16, .7); }
.lead__lado { background: var(--grafite); color: #e9e4dd; padding: 22px var(--gut) 20px; }
.lead__sobre { font: 600 .75rem/1.3 var(--titulo); letter-spacing: .08em; text-transform: uppercase; color: #e5a3a3; }
.lead__lado h2 { color: #fff; font-size: 1.625rem; margin-top: 6px; padding-right: 36px; }
.lead__txt, .lead__chk { display: none; }
.lead__form { position: relative; padding: 18px var(--gut) 28px; }
.lead__x { position: fixed; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.campo { margin-bottom: 14px; }
.campo label { display: block; margin-bottom: 5px; font-weight: 700; font-size: .875rem; color: var(--grafite); }
.campo input, .campo textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: 400 1rem/1.4 var(--corpo); color: var(--txt); background: var(--papel); border: 1px solid var(--linha); border-radius: 6px; }
.campo textarea { resize: vertical; min-height: 92px; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--vermelho); outline-offset: 0; border-color: var(--vermelho); background: #fff; }
.campo small { display: none; margin-top: 4px; color: var(--vermelho-esc); font-size: .8125rem; font-weight: 600; }
.campo.is-inv input, .campo.is-inv textarea { border-color: var(--vermelho); }
.campo.is-inv small { display: block; }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__env { width: 100%; margin-top: 2px; }
.lead__env[disabled] { opacity: .65; cursor: wait; }
.lead__st { margin-top: 12px; font-weight: 600; font-size: .9375rem; }
.lead__st:empty { display: none; }
.lead__st.ok { color: #1f6b43; }
.lead__st.erro { color: var(--vermelho-esc); }
.lead__st.demo { color: #7a5a12; background: #fbf3df; padding: 10px 12px; border-radius: 6px; }
.lead__legal { margin-top: 12px; font-size: .75rem; line-height: 1.45; color: var(--txt-2); }

/* Foto ampliada */
.luz { background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.luz::backdrop { background: rgba(15, 12, 11, .92); }
.luz img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; }
.luz__x { position: fixed; top: 10px; right: 10px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }

/* Páginas internas */
.pg { width: min(100% - 2 * var(--gut), 780px); margin-inline: auto; padding-block: 44px 72px; }
.pg h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.75rem); line-height: 1.12; }
.pg h2 { font-size: 1.3125rem; margin-top: 30px; }
.pg p, .pg ul { margin-top: 10px; color: var(--txt-2); }
.pg ul { list-style: disc; padding-left: 20px; }
.pg li { margin-top: 6px; }
.pg .marcador { color: var(--vermelho-esc); }
.pg--erro { min-height: 60vh; }
.pg--erro .btn { margin-top: 24px; }

/* Revelação leve ao rolar */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root { --gut: 28px; --sec: 80px; }
  .topo__logo img { width: 74px; }
  .topo__in { min-height: 72px; }
  .topo__cta { padding-inline: 18px; font-size: .9375rem; }
  html { scroll-padding-top: 84px; }
  .hero__acoes .btn { flex: 0 1 auto; }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .foto--g { grid-column: span 2; grid-row: span 2; }
  .tab__l { grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(0, 1fr)); column-gap: 16px; align-items: start; padding-block: 16px; }
  .tab__l--h { top: 72px; font-size: .9375rem; padding-block: 12px; }
  .tab__l--h .tab__rot { display: block; }
  .tab__rot { grid-column: auto; margin: 0; }
  .tab__c { font-size: .9375rem; }
  .tab__l--h .tab__c--lorac { font-size: 1.0625rem; }
  .etapas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; border: 0; margin-left: 0; }
  .etapa { padding: 16px 0 0; border-top: 2px solid var(--vermelho); }
  .etapa:last-child { padding-top: 16px; }
  .etapa::before { display: none; }
  .aval__lista { grid-template-columns: repeat(2, 1fr); }
  .aval__card { align-self: stretch; }
  .rodape { padding-bottom: 40px; }
  .barra { display: none; }

  /* Formulário em popup, com as duas colunas da LP atual */
  .lead { width: min(92vw, 900px); height: auto; max-height: 92vh; margin: auto; border-radius: 12px; overflow: hidden; }
  .lead[open] { display: flex; }
  .lead__g { flex: 1; min-height: 0; display: grid; grid-template-columns: 2fr 3fr; }
  /* A grade do tablet tem 3 colunas: esconde as 2 últimas fotos para fechar a última linha */
  .galeria:not(.is-f) .foto:nth-last-child(-n+2) { display: none; }
  .lead__lado { padding: 32px 26px; }
  .lead__lado h2 { font-size: 1.875rem; padding: 0; margin-top: 10px; }
  .lead__txt { display: block; margin-top: 14px; font-size: .9375rem; }
  .lead__chk { display: grid; gap: 10px; margin-top: 24px; font-weight: 600; font-size: .9063rem; }
  .lead__chk li { position: relative; padding-left: 26px; }
  .lead__chk li::before { content: "✓"; position: absolute; left: 0; color: #e5a3a3; font-weight: 800; }
  .lead__form { padding: 28px; overflow-y: auto; }
  .lead__x { position: absolute; top: 6px; right: 6px; color: var(--grafite); }
  .campo__par { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------- Computador ---------- */
@media (min-width: 900px) {
  :root { --sec: 104px; }
  .topo__nav { display: flex; gap: 22px; font-weight: 600; font-size: .9375rem; }
  .topo__nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .2s; }
  .topo__nav a:hover { border-color: var(--vermelho); }

  .hero { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: stretch; height: min(calc(100vh - 72px), 860px); min-height: 560px; }
  .hero__foto { grid-column: 2; grid-row: 1; }
  .hero__foto img { height: 100%; aspect-ratio: auto; }
  .hero__txt { grid-column: 1; grid-row: 1; align-self: center; width: auto; margin: 0; padding: 48px clamp(28px, 3.4vw, 64px) 56px max(var(--gut), calc((100vw - 1320px) / 2)); }
  .hero__acoes { margin-top: 30px; }
  /* Linha de cota, como numa prancha de projeto */
  .cota { display: block; position: absolute; left: 28px; right: 28px; bottom: 26px; height: 12px; border-inline: 1.5px solid #fff; color: #fff; }
  .cota::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1.5px solid #fff; }
  .cota span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 12px; background: var(--grafite); font: 500 .8125rem/1.2 var(--titulo); white-space: nowrap; }

  .lote__g { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .sobre__g { grid-template-columns: 42fr 58fr; align-items: center; gap: 64px; }
  .sobre__txt { max-width: 62ch; }

  .serv__g { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 40px; }
  .serv__item { padding-block: 14px; cursor: default; transition: padding-left .25s ease; }
  .serv__item p { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease; }
  .serv__item.is-on p { max-height: 90px; opacity: 1; margin-top: 4px; }
  .serv__item.is-on { padding-left: 10px; }
  .serv__item.is-on h3 { color: var(--vermelho); }
  .serv__fotos { display: block; position: sticky; top: 104px; aspect-ratio: 4 / 3; background: #e5dfd6; overflow: hidden; }
  .serv__fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
  .serv__fotos img.is-on { opacity: 1; }

  .tab__l { grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .tab__c { font-size: 1rem; }

  /* Régua na escala real dos 30 dias */
  .regua { display: block; position: relative; height: 14px; margin-top: 44px; border-left: 2px solid var(--grafite); }
  .regua::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px solid var(--grafite); }
  .regua__m { position: absolute; left: var(--p); top: 0; width: 14px; height: 14px; margin-left: -7px; background: var(--vermelho); border-radius: 50%; }
  .regua__m:last-child { margin-left: -14px; }
  .etapas { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
  .etapa { border-top: 0; padding-top: 0; }
  .etapa:last-child { padding-top: 0; }
  .etapa__dia b { font-size: 2.75rem; }

  .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .galeria:not(.is-f) .foto:nth-last-child(-n+2) { display: block; }
  .aval__g { grid-template-columns: minmax(280px, 1fr) 2fr; gap: 56px; align-items: start; }
  .aval__nota { position: sticky; top: 104px; }
  .aval__lista { grid-template-columns: repeat(2, 1fr); }
  .local__g { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: stretch; }
  .local__mapa iframe { height: 100%; min-height: 420px; }
  .rodape__in { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; }
  .rodape img { margin: 0; }
  .faixa figcaption { bottom: 40px; }
}

/* ---------- Telas largas ---------- */
@media (min-width: 1700px) {
  :root { --sec: 128px; }
  .hero { height: min(calc(100vh - 72px), 960px); }
  .faixa img { height: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .foto:hover img { transform: none; }
}
