/* Zirconium — desenho técnico + forno de sinterização */
:root {
  --ink: #15202B;        /* grafite */
  --forge: #1B2731;      /* câmara do forno */
  --steel: #4B5B68;      /* aço */
  --line: #C9D3DA;       /* traço de desenho */
  --alumina: #EEF2F4;    /* alumina */
  --paper: #FFFFFF;
  --glow: #F29E1F;       /* brasa 1400 ºC */
  --glow-soft: #FCE7C4;
  --cobalt: #1E56D6;     /* interação */
  --ok: #1D7A4B;
  --warn: #A3461A;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --r-s: 4px;
  --r-l: 14px;
  --gap: clamp(1rem, 2.5vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-stretch: 125%; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 112%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--steel); max-width: 54ch; }
.small { font-size: .9rem; color: var(--steel); }
.wrap { width: min(1200px, 100% - 2 * var(--gap)); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band { background: var(--alumina); }
.dark { background: var(--forge); color: #E6ECEF; }
.dark a { color: var(--glow); }
.dark .btn-primary { color: var(--ink); }
.dark .lead, .dark .small { color: #A9B7C1; }

/* ---------- cabeçalho ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 760; font-stretch: 125%; font-size: 1.15rem; }
.brand img { height: 44px; width: auto; }
.site-foot .brand img { height: 48px; }
@media (max-width: 480px) { .site-head .brand img { height: 36px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cobalt); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-s); padding: .45rem .7rem; font: inherit; color: var(--ink); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem var(--gap) 1.5rem; border-bottom: 1px solid var(--line); gap: .2rem; }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; border-bottom: 1px solid var(--alumina); }
  .nav .btn { margin-top: .8rem; text-align: center; }
}

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: var(--r-s); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1.1; }
.btn-primary { background: var(--glow); color: var(--ink); border-color: var(--glow); }
.btn-primary:hover { background: #E08A0A; border-color: #E08A0A; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(30,86,214,.06); }
.dark .btn-ghost { color: #fff; }
.btn-sm { padding: .55rem .95rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- cotas (linhas de dimensão) ---------- */
.dim { position: relative; display: flex; align-items: center; gap: .5rem; color: var(--steel); font-size: .85rem; font-weight: 600; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.dim-h { border-inline: 1px solid currentColor; padding-inline: 2px; height: 14px; }
.dark .dim { color: var(--glow); }

/* ---------- herói ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 13ch; }
.price-from { display: inline-block; margin-top: .4rem; font-weight: 650; }
.price-from strong { font-stretch: 125%; font-size: 1.35rem; }

/* folha de desenho com zona de soltar arquivo */
.sheet { border: 1.5px solid var(--ink); border-radius: var(--r-s); background: #fff; position: relative; }
.sheet .drop { margin: 14px; min-height: 230px; border: 1.5px dashed var(--steel); border-radius: var(--r-s); display: grid; place-content: center; text-align: center; padding: 1.5rem; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.drop.hot, .drop:hover { border-color: var(--glow); background: #FFF8EC; box-shadow: inset 0 0 0 4px var(--glow-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.drop strong { display: block; font-stretch: 118%; font-size: 1.2rem; margin: .7rem 0 .2rem; }
.drop svg { margin-inline: auto; }
.titleblock { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); font-size: .85rem; }
.titleblock div { padding: .6rem .8rem; border-right: 1px solid var(--line); }
.titleblock div:last-child { border-right: 0; }
.titleblock span { display: block; color: var(--steel); font-size: .78rem; }
.titleblock b { font-weight: 650; }

/* ---------- prêmios ---------- */
.awards { border-block: 1px solid var(--line); padding-block: 1.1rem; }
.awards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; align-items: center; }
.awards li { font-weight: 650; font-stretch: 110%; color: var(--steel); }
.awards li:first-child { color: var(--ink); font-weight: 500; font-stretch: 100%; }

/* ---------- processo (sequência real) ---------- */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 1.2rem 1.2rem 0 0; position: relative; }
.steps li::before { content: counter(s); display: block; font-stretch: 125%; font-weight: 760; font-size: 2.2rem; line-height: 1; color: var(--glow); margin-bottom: .7rem; }
.steps li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; gap: 1rem; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- faixas P/M/G desenhadas em escala ---------- */
.sizes { max-width: 860px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: end; margin-top: 2.5rem; }
.size.p .box, .size.p .dim { width: 25%; }
.size.m .box, .size.m .dim { width: 62.5%; }
.size .box { aspect-ratio: 1; border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(75,91,104,.12) 9px 10px); }
.size .dim { margin-bottom: .5rem; white-space: nowrap; }
.size h3 { margin: 1rem 0 .2rem; font-size: 1.6rem; }
.size p { margin: 0; font-size: .95rem; color: var(--steel); }
.size .val { font-weight: 700; color: var(--ink); font-stretch: 112%; font-size: 1.15rem; }
@media (max-width: 700px) { .sizes { grid-template-columns: 1fr; } .size .box, .size .dim { max-width: 240px; } }

/* ---------- oferta lote ---------- */
.offer { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.offer .tag { font-stretch: 125%; font-weight: 780; font-size: clamp(3rem, 9vw, 6rem); line-height: .9; color: var(--glow); }
.offer .tag small { display: block; font-size: 1rem; font-weight: 600; color: #A9B7C1; font-stretch: 100%; margin-top: .6rem; }
@media (max-width: 700px) { .offer { grid-template-columns: 1fr; } }

/* ---------- personas ---------- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2rem; border: 1.5px solid var(--ink); border-radius: var(--r-s); }
.persona { padding: 1.6rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.persona:last-child { border-right: 0; }
.persona p { color: var(--steel); }
.persona a { margin-top: auto; font-weight: 650; }
@media (max-width: 860px) { .personas { grid-template-columns: 1fr; } .persona { border-right: 0; border-bottom: 1px solid var(--line); } .persona:last-child { border-bottom: 0; } }

/* ---------- números / casos ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem 2rem; margin: 1.8rem 0; }
.figure b { display: block; font-stretch: 125%; font-weight: 760; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; }
.figure span { font-size: .95rem; color: var(--steel); }
.dark .figure span { color: #A9B7C1; }
/* casos com imagem */
.case-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.case-nav a { text-decoration: none; color: var(--ink); border: 1px solid #93A3AF; border-radius: 999px; padding: .4rem .9rem; font-size: .92rem; font-weight: 550; }
.case-nav a:hover { border-color: var(--ink); background: var(--alumina); }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.case:first-of-type { border-top: 0; padding-top: 1rem; }
.case:nth-of-type(even) .case-media { order: 2; }
.case.wide { grid-template-columns: 1fr; }
.case.wide .case-media { order: 0; }
.case.wide .case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.case.wide .case-body > p.small, .case.wide .case-body > h2, .case.wide .case-body > p:not(.case-links) { grid-column: 1; }
.case.wide .case-body .figures { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.case.wide .case-body .case-links { grid-column: 1 / -1; }
.case .figures { margin: 1.2rem 0; }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 1.4rem 0 0; }
@media (max-width: 860px) {
  .case, .case.wide .case-body { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case-media { order: 0; }
  .case.wide .case-body .figures { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}
/* imagens */
.shot { margin: 0 0 1.4rem; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.shot figcaption { font-size: .88rem; color: var(--steel); margin-top: .45rem; }
.dark .shot figcaption { color: #A9B7C1; }
.dark .shot img { border-color: #2F3E4A; }
.shot.half { max-width: 62%; }
.shot.narrow { max-width: 300px; margin-inline: auto; }
.shot.machine img { border: 0; background: transparent; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ba .shot img { aspect-ratio: 418 / 266; object-fit: cover; }
@media (max-width: 480px) { .shot.half { max-width: 100%; } }

/* ---------- duas colunas genéricas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 2px; background: var(--glow); }
.dark .ticks li { border-color: #2F3E4A; }

/* ---------- MetalikLab ---------- */
.envelopes { position: relative; aspect-ratio: 450 / 400; max-width: 520px; }
.env { position: absolute; left: 0; bottom: 0; border: 1.5px solid currentColor; }
.env span { position: absolute; top: 6px; right: 8px; font-size: .8rem; font-weight: 650; }
.env.ig { width: 100%; height: 100%; color: var(--ink); }
.env.std { width: 55.6%; height: 50%; color: var(--steel); background: rgba(75,91,104,.06); }
.env.studio { width: 22.2%; height: 25%; color: var(--glow); background: rgba(242,158,31,.12); }
.env.studio span { top: auto; bottom: calc(100% + 4px); right: auto; left: 0; white-space: nowrap; }
.models { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.models th, .models td { text-align: left; padding: .9rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.models thead th { border-bottom: 2px solid var(--ink); font-stretch: 112%; }
.models tbody th { font-stretch: 112%; }
.models .price { font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.tech h3 small { display: block; font-size: .85rem; font-weight: 500; color: var(--steel); font-stretch: 100%; margin-top: .3rem; }
@media (max-width: 860px) { .tech { grid-template-columns: 1fr; } }

/* ---------- materiais ---------- */
.mat-table { width: 100%; border-collapse: collapse; }
.mat-table th, .mat-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mat-table thead th { border-bottom: 2px solid var(--ink); }
.pill { display: inline-block; font-size: .8rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; background: var(--glow-soft); color: #6B4200; white-space: nowrap; }
.pill.off { background: var(--alumina); color: var(--steel); }

/* ---------- loja ---------- */
.shop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r-s); padding: clamp(1.4rem, 3vw, 2.2rem); }
.shop p { margin: 0; }

/* ---------- orçamentador ---------- */
.quote { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (max-width: 980px) { .quote { grid-template-columns: 1fr; } }
.quote .sheet .drop { min-height: 380px; }
.stage { position: relative; }
.stage canvas { width: 100%; height: 420px; border-radius: var(--r-s) var(--r-s) 0 0; touch-action: none; cursor: grab; background: var(--forge); }
.stage canvas:active { cursor: grabbing; }
.labels span { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--glow); font-size: .8rem; font-weight: 650; padding: .15rem .45rem; border-radius: 3px; pointer-events: none; white-space: nowrap; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border-top: 1.5px solid var(--ink); font-size: .9rem; }
.stage-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dims { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .97rem; }
.dims th, .dims td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.dims th { font-weight: 500; color: var(--steel); width: 38%; }
.dims td.ok { color: var(--ok); font-weight: 600; }
.dims td.warn { color: var(--warn); font-weight: 600; }
.panel { border: 1.5px solid var(--ink); border-radius: var(--r-s); }
.panel fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 1.1rem 1.3rem; }
.panel legend { float: left; width: 100%; font-weight: 700; font-stretch: 112%; margin-bottom: .6rem; padding: 0; }
.panel legend span { color: var(--glow); margin-right: .45rem; }
.field { display: block; margin-bottom: .8rem; }
.field > span { display: block; font-size: .9rem; color: var(--steel); margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #93A3AF; border-radius: var(--r-s); background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--glow); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; clear: both; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: .5rem .85rem; border: 1px solid #93A3AF; border-radius: var(--r-s); cursor: pointer; font-size: .95rem; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 1rem; clear: both; }
.range-row output { font-weight: 700; min-width: 3.5ch; }
.summary { background: var(--alumina); padding: 1.1rem 1.3rem; }
.summary table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.summary th { text-align: left; font-weight: 500; color: var(--steel); padding: .4rem 1rem .4rem 0; vertical-align: top; }
.summary td { text-align: right; padding: .4rem 0; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 2px solid var(--ink); margin-top: .6rem; padding-top: .8rem; }
.total b { font-stretch: 125%; font-size: 2rem; font-weight: 780; }
.locked { opacity: .5; pointer-events: none; }
.error { color: var(--warn); font-weight: 600; margin: .8rem 0 0; }
.status { margin: .9rem 0 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--steel); }
.check input { margin-top: .3rem; }
.note { color: #A9B7C1; padding: 2rem; }
.linklike { background: none; border: 0; font: inherit; color: var(--cobalt); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- rodapé ---------- */
.site-foot { background: var(--ink); color: #C3CED6; padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { color: #fff; font-stretch: 112%; margin: 0 0 .8rem; font-size: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-base { border-top: 1px solid #2F3E4A; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- LGPD ---------- */
.consent { position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin-inline: auto; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-s); padding: 1rem 1.2rem; box-shadow: 0 10px 30px rgba(21,32,43,.18); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.consent p { margin: 0; flex: 1 1 300px; font-size: .92rem; }
.consent-actions { display: flex; gap: .5rem; }

/* ---------- conteúdo de texto (privacidade) ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose li { max-width: var(--measure); margin-bottom: .4rem; }

/* whatsapp flutuante */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: .65rem 1rem; font-weight: 650; text-decoration: none; display: flex; align-items: center; gap: .45rem; box-shadow: 0 6px 18px rgba(21,32,43,.15); }
.wa-float:hover { background: var(--alumina); }
@media print { .site-head, .wa-float, .consent { display: none; } }
.case.wide .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figure b { white-space: nowrap; }
.sticky { position: sticky; top: 100px; }
@media (max-width: 860px) { .sticky { position: static; } }
