/* Reforma: site modelo
   Cal, grafite e petróleo, com pátina e um cobre discreto. Uma família só (Albert Sans) em pesos leves.
   cal #eeece7  grafite #24282a  grafite-2 #5c615f  linha #d5d2ca  petróleo #183a40  pátina #9fc2b5  cobre #9c5b36
   Contraste (WCAG): grafite/cal 13.4, grafite-2/cal 5.6, cal/petróleo 10.9, pátina/petróleo 6.4, cobre/cal 5.0 */
:root {
  --cal: #eeece7;
  --cal-2: #e4e1da;
  --grafite: #24282a;
  --grafite-2: #5c615f;
  --linha: #d5d2ca;
  --petroleo: #183a40;
  --petroleo-2: #10292e;
  --patina: #9fc2b5;
  --cobre: #9c5b36;
  --margem: clamp(1.1rem, 4.2vw, 4rem);
  --fonte: 'Albert Sans', system-ui, sans-serif;
  --curva: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cal); color: var(--grafite);
  font-family: var(--fonte); font-weight: 400; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, ol, ul, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--cobre); outline-offset: 3px; }
.obra :focus-visible, .rodape :focus-visible { outline-color: var(--patina); }

.pular { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--grafite); color: var(--cal); padding: .6rem 1rem; }
.pular:focus { top: 1rem; }

h1, h2 { font-weight: 300; letter-spacing: -.025em; }
figcaption { font-size: .8125rem; color: var(--grafite-2); padding-top: .6rem; }

/* ---------- topo ---------- */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem var(--margem); }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marca-icone { width: 22px; height: 22px; fill: none; stroke: var(--grafite); stroke-width: 1.3; }
.marca-icone path { stroke-width: 1; }
.marca-nome { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.marca-sub { font-size: .875rem; color: var(--grafite-2); font-weight: 300; padding-left: .7rem; border-left: 1px solid var(--linha); }
.menu { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); font-size: .9375rem; }
.menu a { text-decoration: none; color: var(--grafite-2); padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--grafite); border-color: var(--grafite); }

/* ---------- hero e comparador ---------- */
.hero { padding: clamp(1.6rem, 4vw, 3.4rem) var(--margem) clamp(3rem, 6vw, 5rem); }
.hero-texto { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: 1; max-width: 9em; }
.hero-lead { color: var(--grafite-2); font-weight: 300; max-width: 40ch; font-size: 1.125rem; }
.hero-dica { margin-top: .8rem; font-size: .9375rem; }
.controles { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--linha); }
.abas { display: flex; gap: 1.8rem; }
.abas button { padding: .55rem 0 .6rem; color: var(--grafite-2); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.abas button:hover { color: var(--grafite); }
.abas button[aria-selected="true"] { color: var(--grafite); border-color: var(--grafite); }
.ficha-ambiente { font-size: .875rem; color: var(--grafite-2); font-weight: 300; padding-bottom: .65rem; }

.comparador-moldura { margin-top: 1.1rem; }
.comparador {
  --pos: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cal-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .18s var(--curva); pointer-events: none; }
.comparador.trocando img { opacity: 0; }
.antes { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.antes img { filter: saturate(.92); }
.selo {
  position: absolute; top: 1rem; z-index: 2; font-size: .8125rem; letter-spacing: .01em;
  color: #fff; background: rgba(20, 26, 28, .5); padding: .25rem .6rem; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.selo-antes { left: 1rem; }
.selo-depois { right: 1rem; }
.alca { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 48px; transform: translateX(-50%); z-index: 3; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
.alca:focus-visible { outline: none; }
.alca-linha { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 6px rgba(0, 0, 0, .25); }
.alca-botao {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .95); background: rgba(20, 26, 28, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .2s var(--curva);
}
.alca:focus-visible .alca-botao { outline: 1.5px solid #fff; outline-offset: 3px; }
.comparador:active .alca-botao { transform: scale(.94); }
.alca-botao svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- a obra semana a semana ---------- */
.obra { position: relative; height: 420vh; background: var(--petroleo); color: var(--cal); }
.obra-palco {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "cabeca semanas" "visual semanas"; gap: 1.6rem clamp(2rem, 5vw, 5rem);
  padding: clamp(1.6rem, 4vh, 3rem) var(--margem);
}
.obra-cabeca { grid-area: cabeca; }
.obra-cabeca h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.05; }
.obra-cabeca p { color: #bccbc9; font-weight: 300; max-width: 46ch; margin-top: .6rem; }
.obra-visual { grid-area: visual; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.obra-fotos { position: relative; min-height: 0; background: var(--petroleo-2); overflow: hidden; }
.obra-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--curva); }
.obra-fotos img.ativa { opacity: 1; }
.obra-progresso { display: flex; align-items: center; gap: 1.1rem; padding-top: 1rem; }
.obra-pct { font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; min-width: 3.4ch; color: var(--patina); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.obra-trilho { flex: 1; height: 1px; background: rgba(238, 236, 231, .22); position: relative; }
.obra-trilho span { position: absolute; inset: -1px 0; background: var(--patina); transform-origin: left; transform: scaleX(.1); transition: transform .5s var(--curva); }
.obra-visual figcaption { color: #93a9a6; padding-top: .5rem; }

.obra-semanas { grid-area: semanas; align-self: center; display: grid; gap: 1.2rem; }
.semanas { counter-reset: s; border-bottom: 1px solid rgba(238, 236, 231, .16); }
.semanas button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 5.6rem 1fr; align-items: baseline; gap: .8rem;
  padding: .55rem 0; border-top: 1px solid rgba(238, 236, 231, .16); color: rgba(238, 236, 231, .5); transition: color .25s;
}
.semanas button:hover { color: var(--cal); }
.s-num { font-size: .8125rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.s-nome { font-size: 1.0625rem; font-weight: 300; line-height: 1.3; transition: font-size .3s var(--curva); }
.semanas li.feita button { color: rgba(238, 236, 231, .78); }
.semanas li.feita .s-num { color: var(--patina); }
.semanas li.atual button { color: var(--cal); }
.semanas li.atual .s-num { color: var(--patina); }
.semanas li.atual .s-nome { font-size: 1.4rem; font-weight: 400; }
.semanas li p { display: none; padding: 0 0 .8rem 6.4rem; color: #bccbc9; font-weight: 300; font-size: .9375rem; max-width: 36rem; }
.semanas li.atual p { display: block; }
.semana-detalhe { display: none; }
.semanas-nav { display: flex; gap: .5rem; }
.semanas-nav button { width: 44px; height: 44px; border: 1px solid rgba(238, 236, 231, .4); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.semanas-nav button:hover:not(:disabled) { background: rgba(238, 236, 231, .1); border-color: var(--cal); }
.semanas-nav button:disabled { opacity: .3; cursor: default; }
.semanas-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reformas entregues ---------- */
.reformas { padding: clamp(4rem, 8vw, 7rem) var(--margem); }
.reformas h2, .servicos h2, .sobre h2, .contato h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.reformas h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.grade-reformas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.4rem 1.6rem; }
.reforma img { width: 100%; object-fit: cover; }
.reforma figcaption { padding-top: .45rem; }
.reforma h3 { font-weight: 400; font-size: 1.25rem; margin-top: .9rem; letter-spacing: -.01em; }
.reforma p { color: var(--grafite-2); font-weight: 300; font-size: .9375rem; max-width: 44ch; margin-top: .3rem; }
.r1 { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.r1 img { aspect-ratio: 4 / 3.3; }
.r2 { grid-column: 9 / span 4; }
.r3 { grid-column: 8 / span 5; }
.r2 img, .r3 img { aspect-ratio: 3 / 2; }

/* ---------- serviços: lista como uma especificação ---------- */
.servicos { padding: clamp(4rem, 8vw, 7rem) var(--margem); background: var(--cal-2); }
.servicos h2 { max-width: 20ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lista-servicos { border-top: 1px solid var(--grafite); }
.lista-servicos li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .4rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--linha); }
.lista-servicos h3 { font-weight: 400; font-size: 1.1875rem; letter-spacing: -.01em; }
.lista-servicos p { color: var(--grafite-2); font-weight: 300; max-width: 52ch; }

/* ---------- sobre ---------- */
.sobre { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 8vw, 7rem) var(--margem); }
.sobre-foto img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.sobre-texto p { color: var(--grafite-2); font-weight: 300; max-width: 46ch; margin-top: 1.1rem; }
.numeros { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.2rem; border-top: 1px solid var(--grafite); }
.numeros div { padding-top: .9rem; }
.numeros div + div { padding-left: 1.4rem; border-left: 1px solid var(--linha); }
.numeros dt { font-size: .875rem; color: var(--grafite-2); font-weight: 300; }
.numeros dd { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.1; letter-spacing: -.03em; color: var(--petroleo); }

/* ---------- contato ---------- */
.contato { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem clamp(2rem, 6vw, 6rem); align-items: end; padding: clamp(4rem, 8vw, 6.5rem) var(--margem); border-top: 1px solid var(--linha); }
.contato h2 { grid-row: 1 / span 3; max-width: 15ch; }
.contato p { color: var(--grafite-2); font-weight: 300; max-width: 42ch; }
.botao {
  justify-self: start; display: inline-block; padding: .85rem 1.4rem; background: var(--petroleo); color: var(--cal);
  text-decoration: none; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; transition: background .2s;
}
.botao:hover { background: var(--petroleo-2); }
.contato address { font-size: .9375rem; color: var(--grafite-2); font-weight: 300; }

/* ---------- rodapé ---------- */
.rodape { background: var(--petroleo-2); color: var(--cal); padding: 2.2rem var(--margem); display: grid; gap: 1.1rem; }
.rodape-aviso { font-size: .875rem; color: #9fb1af; font-weight: 300; max-width: 72ch; }
.voltar { justify-self: start; font-size: .9375rem; color: var(--cal); text-underline-offset: 4px; }
.vetor { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; padding-top: 1.1rem; border-top: 1px solid rgba(238, 236, 231, .16); font-size: .875rem; }
.vetor a { color: var(--cal); text-underline-offset: 3px; }
.vetor-marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .menu a:not(:last-child) { display: none; }
  .marca-sub { display: none; }
  .hero-texto, .sobre, .contato { grid-template-columns: 1fr; }
  .contato h2 { grid-row: auto; }
  .comparador { aspect-ratio: 4 / 3.6; }
  .grade-reformas { grid-template-columns: 1fr 1fr; }
  .r1 { grid-column: 1 / -1; grid-row: auto; }
  .r2, .r3 { grid-column: auto; }

  .obra { height: 440vh; }
  .obra-palco {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "cabeca" "visual" "semanas";
    gap: .9rem; padding: 1.1rem var(--margem) 1.2rem;
  }
  .obra-cabeca h2 { font-size: 1.75rem; }
  .obra-cabeca p { font-size: .875rem; line-height: 1.45; margin-top: .3rem; }
  .obra-visual figcaption { display: none; }
  .obra-progresso { padding-top: .7rem; }
  .obra-semanas { align-self: end; gap: .8rem; }
  .semanas { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; border: 0; }
  .semanas button { display: block; height: 32px; padding: 0; border: 0; border-top: 2px solid rgba(238, 236, 231, .2); text-align: center; }
  .semanas .s-nome, .semanas li p { display: none !important; }
  .semanas .s-num { font-size: 0; }
  .semanas .s-num::after { content: attr(data-n); font-size: .875rem; }
  .semanas li.feita button { border-top-color: rgba(159, 194, 181, .55); }
  .semanas li.atual button { border-top-color: var(--patina); color: var(--cal); }
  .semana-detalhe { display: grid; gap: .2rem; min-height: 7.4rem; align-content: start; }
  .d-num { font-size: .8125rem; color: var(--patina); }
  .semana-detalhe h3 { font-size: 1.3rem; font-weight: 400; line-height: 1.15; }
  .semana-detalhe p:last-child { font-size: .9rem; line-height: 1.45; color: #bccbc9; font-weight: 300; }
  .semanas-nav { justify-content: space-between; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .hero-lead { font-size: 1rem; }
  .controles { margin-top: 1.6rem; }
  .abas { gap: 1.3rem; }
  .ficha-ambiente { width: 100%; padding: .55rem 0 .6rem; border-top: 1px solid var(--linha); order: 2; }
  .comparador-moldura { margin-inline: calc(var(--margem) * -1); }
  .comparador-moldura figcaption { padding-inline: var(--margem); }
  .comparador { aspect-ratio: 4 / 4.2; }
  .selo { top: .7rem; }
  .selo-antes { left: .7rem; }
  .selo-depois { right: .7rem; }
  .grade-reformas { grid-template-columns: 1fr; gap: 2.2rem; }
  .lista-servicos li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .comparador img, .obra-fotos img, .obra-trilho span, .s-nome { transition: none; }
}
