/* Letras alojadas no próprio site (IBM Plex, licença SIL OFL) */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2'); }

/* Pericial — folha de estilos base */
:root {
  --ink: #1C1C1C;
  --ink-2: #3D3B37;
  --muted: #5F5D58;
  --line: #D9D5CC;
  --paper: #F7F5F1;
  --white: #FFFFFF;
  --red: #E30613;
  --red-dark: #B8050F;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(48px, 7vw, 88px);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: calc(var(--section) / 2); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.lead { color: var(--ink-2); max-width: 680px; margin-bottom: 32px; }
.mono { font-family: var(--mono); }
.grid { display: flex; flex-wrap: wrap; gap: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 2px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { color: var(--red); }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 20; background: rgba(247,245,241,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.header .logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } .header .btn { margin-left: auto; } .header .logo img { height: 40px; } }
@media (max-width: 400px) { .header .logo img { height: 34px; } .header .btn { padding: 0 12px; } }

/* Topo */
.hero { position: relative; overflow: hidden; background: #121212; color: var(--paper); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,.94) 0%, rgba(18,18,18,.8) 45%, rgba(18,18,18,.15) 75%, rgba(18,18,18,0) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero-text { max-width: 640px; }
.hero .eyebrow { color: #D6D3CC; }
.hero h1.eyebrow { font-size: 13px; line-height: 1.4; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.hero .claim { font-size: clamp(36px, 5.6vw, 62px); line-height: 1.05; font-weight: 500; margin: 8px 0 22px; letter-spacing: -0.015em; }
.hero p.sub { font-size: clamp(17px, 1.6vw, 20px); color: #E6E2DA; margin-bottom: 34px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .cap { position: absolute; z-index: 1; right: var(--gutter); bottom: 14px; font-family: var(--mono); font-size: 11px; color: #B8B4AC; }
@media (max-width: 700px) { .hero::after { background: rgba(18,18,18,.82); } }

/* Faixa de garantias */
.trust { background: var(--white); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust .wrap > div { padding: 24px 20px 24px 0; }
.trust .wrap > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.trust .n { font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 6px; }
.trust p { font-weight: 500; }
@media (max-width: 860px) { .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; } .trust .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Por onde começar */
.case-big { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--ink); border-top: 4px solid var(--red); padding: clamp(22px, 3vw, 32px); text-decoration: none; }
.case-big .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.case-big h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.case-big p { color: var(--ink-2); }
.case-big ol { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; counter-reset: c; }
.case-big li { display: flex; gap: 10px; counter-increment: c; }
.case-big li::before { content: "0" counter(c); font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 3px; }
.case-big .go { margin-top: auto; padding-top: 6px; font-weight: 500; }
.case-small { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--ink); padding: 18px 22px; text-decoration: none; }
.case-small strong { font-weight: 600; }
.case-small span { font-size: 15px; color: var(--muted); }

/* Serviços */
.svc { border-top: 1px solid var(--ink); }
.svc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc-row label { flex: 1 1 340px; display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font-weight: 500; }
.svc-row input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.svc-row .who { flex: 1 1 280px; font-size: 15px; color: var(--muted); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 24px; }
.svc-count { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* Estado físico + urbanístico */
.band-white { background: var(--white); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: var(--section); }
.band-white .wrap { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); padding-top: var(--section); padding-bottom: var(--section); }
.band-white .col { flex: 1 1 380px; }
.duo { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); align-self: flex-start; }
.duo div { padding: 20px 20px 20px 0; }
.duo div + div { padding: 20px 0 20px 20px; border-left: 1px solid var(--line); }
.duo .k { font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 8px; }
.duo p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } .duo div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Patologias */
.pat { flex: 1 1 240px; border-top: 2px solid var(--ink); padding-top: 16px; }
.pat h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.pat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 28px; margin-bottom: 10px; }
.steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Registos */
.equip { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--ink-2); margin: -16px 0 32px; }
.reg { flex: 1 1 250px; margin: 0; background: var(--white); border: 1px solid var(--ink); display: flex; flex-direction: column; }
.reg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reg figcaption { border-top: 1px solid var(--ink); padding: 16px 18px 20px; display: grid; gap: 6px; }
.reg .n { font-family: var(--mono); font-size: 12px; color: var(--red); }
.reg strong { font-weight: 600; }
.reg span.d { font-size: 15px; color: var(--muted); }
.reg span.c { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Relatório */
.dark { background: var(--ink); color: var(--paper); margin-top: var(--section); }
.dark .wrap { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); }
.dark .eyebrow { color: #B8B4AC; }
.dark .col { flex: 1 1 380px; }
.report-list { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.report-list li::marker { font-family: var(--mono); color: #D9463E; }
.report-note { color: #D6D3CC; margin-top: 18px; }

/* Serviços extra */
.extra { flex: 1 1 320px; background: var(--white); border: 1px solid var(--ink); padding: 22px; }
.extra h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.extra p { font-size: 15px; color: var(--muted); }

/* Faixa final com ilustração */
.band-img { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); margin-top: var(--section); }
.band-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.band-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,28,28,.96) 0%, rgba(28,28,28,.85) 42%, rgba(28,28,28,0) 62%); }
.band-img .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.band-img .txt { max-width: 560px; }
.band-img .eyebrow { color: #B8B4AC; }
.band-img h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; margin-bottom: 20px; }
.band-img p.sub { color: #D6D3CC; margin-bottom: 30px; }
@media (max-width: 700px) { .band-img::after { background: rgba(28,28,28,.86); } }

/* Área + perguntas */
.two { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); }
.two > div { flex: 1 1 360px; }
.two > div.faq { flex: 1.4 1 460px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top-color: var(--ink); }
details:last-of-type { border-bottom: 1px solid var(--ink); }
summary { font-weight: 500; cursor: pointer; }
details p { margin-top: 10px; color: var(--ink-2); }

/* Formulário */
.quote { background: var(--white); border: 1px solid var(--ink); padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 40px); }
.quote .info { flex: 1 1 280px; }
.quote .info p { color: var(--ink-2); margin-bottom: 14px; }
.quote form { flex: 2 1 440px; display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field.full { flex-basis: 100%; }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); font-size: 16px; }
.field textarea { resize: vertical; min-height: 110px; }
.chosen { padding: 12px; border: 1px dashed var(--ink); font-family: var(--mono); font-size: 14px; }
.check { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -5000px; }
.quote button { flex-basis: 100%; }
.form-msg { flex-basis: 100%; font-size: 15px; }
.form-msg.ok { color: #1E6B35; }
.form-msg.err { color: var(--red-dark); }

/* Rodapé */
.footer { background: var(--ink); color: #D6D3CC; margin-top: var(--section); font-size: 15px; }
.footer a { color: #F7F5F1; }
.footer a:hover { color: #FF5A5F; }
.ft-top { display: grid; grid-template-columns: 1.3fr 1.2fr 1.1fr 1fr 1fr; gap: 32px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.ft-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.ft-claim { color: #F7F5F1; font-size: 17px; margin-bottom: 6px; }
.ft-desc { color: #B8B4AC; }
.ft-h { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #8C877E; margin-bottom: 14px; }
.footer address { font-style: normal; margin-bottom: 14px; line-height: 1.6; }
.footer address strong { color: #F7F5F1; font-weight: 600; }
.footer p + p { margin-top: 12px; }
.footer .btn { color: #fff; }
.ft-nav { display: grid; gap: 8px; }
.ft-nav a { text-decoration: none; }
.ft-legal { border-top: 1px solid #3A3A38; }
.ft-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #8C877E; }
.ft-legal p + p { margin-top: 0; }
@media (max-width: 1100px) { .ft-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .ft-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-top { grid-template-columns: 1fr; } }

/* Página de texto (privacidade, 404) */
.doc { max-width: 760px; padding-top: var(--section); padding-bottom: var(--section); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 24px; }
.doc h2 { font-size: 21px; font-weight: 600; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 10px; }

/* Escritórios */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.offices address { font-style: normal; padding: 16px 16px 0 0; font-size: 15px; color: var(--ink-2); }
.offices address + address { padding-left: 16px; border-left: 1px solid var(--line); }
.offices .k { display: block; font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 6px; }
@media (max-width: 480px) { .offices { grid-template-columns: 1fr; } .offices address + address { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; } }

/* Prazos */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.tl-node { position: relative; padding: 28px 20px 8px 0; }
.tl-node::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--red); }
.tl-node.first::before { background: var(--ink); }
.tl-node .v { font-family: var(--mono); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--red); margin-bottom: 12px; }
.tl-node.first .v { color: var(--ink); }
.tl-node h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.tl-node p:last-child { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

/* Vistoria ou peritagem */
.vp { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--ink); border-top: 4px solid var(--ink); padding: clamp(22px, 3vw, 28px); }
.vp.opt { background: var(--paper); border: 1px dashed var(--ink); }
.vp .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.vp.opt .tag { color: var(--red); }
.vp h3 { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.2; }
.vp > p { color: var(--ink-2); }
.vp ul { margin: 0; padding: 12px 0 0 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
.vp .para { font-size: 15px; color: var(--muted); }
.vp .para .mono { font-size: 12px; }
.vp .res { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

/* Formulário por blocos */
.fs { flex-basis: 100%; border: 0; margin: 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 16px; }
.fs legend { width: 100%; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink); padding: 8px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.opts.full { flex-basis: 100%; }
.opt { display: inline-flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); font-size: 15px; cursor: pointer; min-height: 44px; }
.opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt.urgent { border-color: var(--red); }
.opt.urgent:has(input:checked) { background: #FDECEC; }

/* Páginas de serviço e de zona */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.pg .pg-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); margin-bottom: 24px; }
.pg ul { padding-left: 20px; margin: 0 0 12px; }
.pg h2 { border-top: 1px solid var(--ink); padding-top: 14px; }
.pg .faq { margin-top: 8px; }
.pg-addr { font-style: normal; color: var(--ink-2); margin-bottom: 10px; }
.pg-cta { margin-top: 48px; padding: 28px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pg .pg-cta p { color: #E6E2DA; margin: 0; max-width: 460px; }
.svc-more { white-space: nowrap; }
