/* =====================================================================
   ZAYTA CNC — site institucional
   Paleta oficial: dourado #B8891D (7556 C) · oliva #5F6738 (5753 C) · creme #FFF7D2 (7499 CP) · off-white #F8F8F8 (663 C) · preto #01040D (426 CP)
   ===================================================================== */
:root {
  --ink: #070A0F;
  --ink-2: #0E1318;
  --ink-3: #181F25;
  --line-d: rgba(244, 238, 220, .12);
  --cream: #FBF5DC;
  --brand-cream: #FFF7D2;
  --cream-2: #EAE2CB;
  --paper: #F8F8F8;
  --line-l: rgba(14, 19, 23, .12);
  --gold: #B8891D;
  --gold-hi: #D3A63C;
  --gold-lo: #8F6912;
  --olive: #5F6738;
  --olive-d: #474D2A;
  --text-d: rgba(244, 238, 220, .74);
  --text-l: #3A3F38;
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 26px;
}
.display .hl { color: var(--gold-hi); font-style: normal; }
.display-sm { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; }
.h2 { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 650; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; margin: 6px 0 22px; letter-spacing: -.015em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-d); max-width: 34em; margin: 0 0 34px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi);
}
.eyebrow .idx { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-size: .68rem; }
.eyebrow .coord { color: var(--text-d); border-right: 1px solid var(--line-d); padding-right: 12px; }
.light .eyebrow { color: var(--gold-lo); }

/* ---------- botões ---------- */
.btn {
  --bg: transparent; --fg: var(--cream); --bd: var(--line-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  border-radius: var(--r); font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; position: relative; overflow: hidden;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { --bg: var(--gold); --fg: #17130A; --bd: var(--gold); }
.btn-gold:hover { --bg: var(--gold-hi); --bd: var(--gold-hi); }
.btn-ghost:hover { --bd: var(--gold-hi); --fg: var(--gold-hi); }
.btn-dark { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); }
.btn-dark:hover { --bg: var(--olive-d); --bd: var(--olive-d); }
.btn-cream { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn-cream:hover { --bg: #fff; }
.btn-sm { padding: 10px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: 10px; color: var(--text-d); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--olive-d); border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: gap .25s var(--ease), color .2s; }
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { gap: 16px; color: var(--gold-lo); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(14, 19, 23, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line-d); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-symbol { width: 30px; height: auto; margin-top: -10px; transition: transform .6s var(--ease); }
.brand:hover .brand-symbol { transform: rotate(-8deg) scale(1.06); }
.brand-word { width: 104px; height: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 12px; color: var(--text-d); border-radius: var(--r); transition: color .2s; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--cream); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-d); border-radius: var(--r); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- elementos técnicos ---------- */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.frame { position: relative; overflow: hidden; background: var(--ink-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cm { position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold-hi); z-index: 2; pointer-events: none; }
.cm.tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.cm.tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.cm.bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cm.br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(244,238,220,.35) 0 1px, transparent 1px 100px) bottom/100% 22px no-repeat,
    repeating-linear-gradient(90deg, rgba(244,238,220,.2) 0 1px, transparent 1px 50px) bottom/100% 13px no-repeat,
    repeating-linear-gradient(90deg, rgba(244,238,220,.12) 0 1px, transparent 1px 10px) bottom/100% 7px no-repeat;
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(60% 70% at 92% 8%, rgba(255, 247, 211, .20), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(211, 166, 60, .55), transparent 60%),
    radial-gradient(60% 60% at 30% 60%, rgba(95, 103, 57, .55), transparent 70%),
    var(--ink);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(2%, -2%, 0) scale(1.04); } }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure .frame { aspect-ratio: 10 / 13; border-radius: 2px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); background: #EAE3CF; }
.hero-figure .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-figure .frame img, .about-figure .frame img, .solution-media .frame img { mix-blend-mode: multiply; }
.about-figure .frame, .solution-media .frame { background: #EAE3CF; }
.hero-figure figcaption { display: flex; justify-content: space-between; margin-top: 12px; color: var(--text-d); }
.toolpath { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.toolpath rect { fill: none; stroke: var(--gold-hi); stroke-width: .5; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: cut 3.2s .6s var(--ease) forwards; filter: drop-shadow(0 0 4px rgba(211,166,60,.9)); }
@keyframes cut { to { stroke-dashoffset: 0; } }
.hero-seal { position: absolute; width: 92px; left: -46px; bottom: 40px; padding: 18px; background: var(--ink); border: 1px solid var(--line-d); border-radius: 50%; aspect-ratio: 1; object-fit: contain; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- marquee ---------- */
.marquee { background: var(--gold); color: #17130A; overflow: hidden; border-block: 1px solid var(--gold-lo); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; padding: 16px 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee img { width: 22px; height: auto; filter: brightness(0) opacity(.8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.section.light { background: var(--paper); color: var(--ink); }
.section.light p { color: var(--text-l); }
.section.dark { background: var(--ink); }
.section.olive { background: var(--olive-d); background-image: radial-gradient(80% 120% at 100% 0%, rgba(211,166,60,.18), transparent 60%); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.section-head.row > div:first-child { max-width: 680px; }
.section-intro { font-size: 1.08rem; color: var(--text-d); margin: 0; max-width: 40em; }

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.about-figure { margin: 0; position: relative; }
.about-figure .frame { aspect-ratio: 3 / 4; }
.dim-line { position: relative; margin-top: 18px; height: 1px; background: var(--ink); opacity: .55; }
.dim-line::before, .dim-line::after { content: ''; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--ink); }
.dim-line::before { left: 0; } .dim-line::after { right: 0; }
.dim-line span { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); background: var(--paper); padding: 0 10px; color: var(--ink); }
.about-copy p { font-size: 1.04rem; }
blockquote { margin: 34px 0; padding: 26px 0 26px 28px; border-left: 2px solid var(--gold); font-family: var(--f-display); font-stretch: 105%; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.3; color: var(--olive-d); display: flex; gap: 20px; align-items: flex-start; }
blockquote img { width: 40px; flex: none; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line-l); }
.stats div { padding: 22px 16px 0 0; }
.stats div + div { padding-left: 18px; border-left: 1px solid var(--line-l); }
.stats dt { font-family: var(--f-display); font-stretch: 115%; font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--gold-lo); line-height: 1; }
.stats dd { margin: 8px 0 0; font-size: .86rem; color: var(--text-l); }

/* ---------- serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.service-card { background: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; transition: background .4s; }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, transparent 60%); }
.service-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); transition: transform 1s var(--ease), filter .6s; }
.service-body { padding: 4px 24px 30px; position: relative; }
.service-n { color: var(--gold-hi); }
.service-card h3 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.25rem; font-weight: 650; margin: 10px 0 10px; }
.service-card p { color: var(--text-d); margin: 0; font-size: .96rem; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 2; }
.service-card:hover { background: var(--ink-2); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }

/* ---------- soluções ---------- */
.solutions { display: grid; gap: clamp(70px, 10vw, 130px); }
.solution { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.solution.flip .solution-media { order: 2; }
.solution-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.solution-media .main { grid-column: 1 / -1; aspect-ratio: 16 / 11; background: var(--cream-2); }
.solution-media .main img[src$=".png"] { object-fit: contain; padding: 6%; }
.solution-media .thumb { aspect-ratio: 4 / 3; }
.solution-media .frame:hover img { transform: scale(1.05); }
.sol-n { color: var(--gold-lo); }
.ps { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line-l); }
.ps p { margin: 0; }
.ps:last-of-type { border-bottom: 1px solid var(--line-l); margin-bottom: 30px; }
.tag { align-self: start; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-l); border-radius: 2px; text-align: center; color: var(--text-l); }
.tag.gold { background: var(--gold); border-color: var(--gold); color: #17130A; }

/* ---------- portfólio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line-d); color: var(--text-d); padding: 9px 14px; border-radius: 40px; font-size: .86rem; font-weight: 600; transition: all .25s; display: inline-flex; gap: 8px; align-items: center; }
.chip span { font-family: var(--f-mono); font-size: .68rem; opacity: .7; }
.chip:hover { border-color: var(--gold-hi); color: var(--cream); }
.chip.active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.gallery { columns: 4 240px; column-gap: 14px; }
.g-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--ink-3); position: relative; overflow: hidden; break-inside: avoid; border-radius: 2px; }
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .5s; }
.g-cap { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; text-align: left; background: linear-gradient(to top, rgba(14,19,23,.92), transparent); display: grid; gap: 2px; transform: translateY(8px); opacity: 0; transition: all .4s var(--ease); }
.g-cap .mono { color: var(--gold-hi); font-size: .64rem; }
.g-cap strong { font-weight: 600; font-size: .95rem; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-item.hide { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 11, 13, .95); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 30px 10px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-d); text-align: center; }
.lightbox button { background: none; border: 1px solid var(--line-d); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: border-color .2s; }
.lightbox button:hover { border-color: var(--gold-hi); }
.lightbox button svg { width: 22px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-close { position: absolute; top: 18px; right: 18px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: repeating-linear-gradient(90deg, rgba(244,238,220,.45) 0 6px, transparent 6px 12px); }
.step { position: relative; padding: 50px 28px 0 0; }
.step::before { content: ''; position: absolute; top: 9px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 5px rgba(211,166,60,.2); }
.step-n { color: var(--gold-hi); }
.step h3 { font-family: var(--f-display); font-stretch: 110%; font-size: 1.3rem; font-weight: 650; margin: 8px 0 10px; }
.step p { color: var(--text-d); margin: 0; font-size: .95rem; }

/* ---------- calculadora ---------- */
.calc-section { background: var(--paper); background-image: linear-gradient(var(--line-l) 1px, transparent 1px), linear-gradient(90deg, var(--line-l) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.calc-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--paper) 80%); pointer-events: none; }
.calc-section .wrap { position: relative; }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; background: #fff; border: 1px solid var(--line-l); box-shadow: 0 50px 100px -50px rgba(14,19,23,.4); border-radius: 6px; overflow: hidden; }
.calc-form { padding: clamp(24px, 4vw, 46px); display: grid; gap: 30px; align-content: start; }
.calc-step { display: grid; gap: 14px; }
.calc-step[hidden] { display: none; }
.calc-label { font-family: var(--f-display); font-stretch: 105%; font-weight: 650; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.calc-label b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font-family: var(--f-mono); font-size: .78rem; }
.calc-label em { font-style: normal; font-weight: 400; font-size: .85rem; color: #888; }
.svc-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: 8px; }
.svc-opt { position: relative; }
.svc-opt input { position: absolute; opacity: 0; }
.svc-opt span { display: flex; align-items: center; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line-l); border-radius: var(--r); font-weight: 600; font-size: .9rem; line-height: 1.25; color: var(--ink); cursor: pointer; transition: all .2s; background: #fff; }
.svc-opt span:hover { border-color: var(--gold); }
.svc-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); box-shadow: inset 3px 0 0 var(--gold-hi); }
.svc-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.svc-desc { margin: 0; font-size: .88rem; color: #6c6f66 !important; min-height: 1.4em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 6px; }
.field > span { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #555; text-transform: uppercase; }
.field em { font-style: normal; font-family: var(--f-mono); font-weight: 400; color: var(--gold-lo); text-transform: none; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d9d4c6; border-radius: var(--r); background: #FBF9F4; color: var(--ink);
  font: 600 1rem var(--f-body); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,138,30,.18); background-color: #fff; }
.field[hidden] { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d9d4c6; border-radius: var(--r); padding: 4px; background: #FBF9F4; }
.seg[hidden] { display: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 3px; font-size: .88rem; font-weight: 600; color: #555; cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--olive); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.extras { display: grid; gap: 8px; }
.extra { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-l); border-radius: var(--r); cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.extra:hover { border-color: var(--gold); }
.extra input { width: 18px; height: 18px; accent-color: var(--olive); flex: none; }
.extra small { margin-left: auto; font-family: var(--f-mono); font-size: .7rem; color: #888; font-weight: 400; white-space: nowrap; }
.calc-error { margin: -10px 0 0; color: #A33B1F !important; font-weight: 600; font-size: .9rem; min-height: 0; }
.calc-error:empty { display: none; }

.calc-panel { background: var(--ink); color: var(--cream); padding: clamp(24px, 3.4vw, 38px); display: flex; flex-direction: column; gap: 20px; position: relative; }
.calc-panel::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; mask-image: linear-gradient(#000, transparent 50%); -webkit-mask-image: linear-gradient(#000, transparent 50%); }
.panel-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-d); position: relative; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #7BD389; box-shadow: 0 0 10px #7BD389; animation: blink 2s infinite; display: inline-block; }
@keyframes blink { 50% { opacity: .35; } }
.preview { position: relative; height: 150px; border: 1px dashed var(--line-d); border-radius: var(--r); display: grid; place-items: center; }
.preview svg { width: 100%; height: 100%; padding: 22px 30px; overflow: visible; }
.preview rect { fill: rgba(211,166,60,.1); stroke: var(--gold-hi); stroke-width: 1; vector-effect: non-scaling-stroke; transition: all .45s var(--ease); }
.pv-w, .pv-h { position: absolute; color: var(--gold-hi); font-size: .66rem; }
.pv-w { bottom: 4px; left: 50%; transform: translateX(-50%); }
.pv-h { right: 4px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 340px; overflow: auto; position: relative; }
.items .empty { color: var(--text-d); font-size: .9rem; text-align: center; padding: 20px 10px; border: 1px solid var(--line-d); border-radius: var(--r); }
.item { border: 1px solid var(--line-d); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; background: var(--ink-2); animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.item-head strong { font-size: .95rem; }
.item-spec { font-family: var(--f-mono); font-size: .68rem; color: var(--text-d); letter-spacing: .04em; }
.item-price { font-family: var(--f-mono); color: var(--gold-hi); font-size: .85rem; white-space: nowrap; }
.item-rm { background: none; border: 0; color: var(--text-d); font-size: .78rem; padding: 0; text-align: left; text-decoration: underline; width: max-content; }
.item-rm:hover { color: #E28A6E; }
.totals { position: relative; display: grid; gap: 10px; border-top: 1px solid var(--line-d); padding-top: 18px; margin-top: auto; }
.totals[hidden] { display: none; }
.adj { display: grid; gap: 4px; font-size: .84rem; color: var(--text-d); }
.adj div { display: flex; justify-content: space-between; gap: 10px; }
.adj span:last-child { font-family: var(--f-mono); white-space: nowrap; }
.total-label { color: var(--text-d); margin-top: 6px; }
.total-value { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.1; color: var(--gold-hi); }
.total-value .nw { white-space: nowrap; }
.total-value .to { opacity: .55; font-weight: 400; font-size: .7em; }
.total-value small { display: block; font-size: .9rem; font-weight: 500; color: var(--text-d); font-family: var(--f-body); margin-top: 4px; }
.disclaimer { font-size: .76rem; line-height: 1.5; color: var(--text-d); padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(185,138,30,.08); margin: 4px 0 6px; }
.send-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send-fields input { height: 46px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-d); background: var(--ink-2); color: var(--cream); font: 600 .92rem var(--f-body); width: 100%; }
.send-fields input::placeholder { color: rgba(244,238,220,.4); }
.send-fields input:focus { outline: none; border-color: var(--gold-hi); }
.calc-off { padding: 30px; background: #fff; border: 1px solid var(--line-l); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: url('/uploads/gradiente-2.jpg') center/cover; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,19,23,.15), rgba(14,19,23,.55)); }
.cta-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.cta-seal { width: clamp(150px, 20vw, 240px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta p { font-size: 1.1rem; max-width: 36em; color: rgba(255,255,255,.88); margin: 0 0 28px; }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: stretch; }
.contact-copy > p { color: var(--text-d); }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-d); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 1px solid var(--line-d); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-hi); flex: none; margin-top: 2px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list .mono { color: var(--text-d); font-size: .64rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold-hi); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; min-height: 440px; border: 1px solid var(--line-d); background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.9) invert(.92) hue-rotate(180deg) contrast(.9) sepia(.15); }

/* ---------- footer ---------- */
.site-footer { background: #090D10; border-top: 1px solid var(--line-d); padding: 70px 0 40px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand img:first-child { width: 56px; height: auto; }
.footer-brand img:nth-child(2) { width: 140px; height: auto; }
.footer-brand p { color: var(--text-d); margin: 0; font-family: var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--text-d); width: max-content; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-meta { color: var(--text-d); }
.footer-meta p { margin: 0 0 8px; }
.footer-credit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-d); color: var(--text-d); }
.footer-credit .mono { font-size: .64rem; }
.scalle { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); }
.scalle span, .scalle img { transition: opacity .3s; }
.scalle { position: relative; text-decoration: none; }
.scalle:hover strong { color: #B15CFF; }
.scalle strong { transition: color .3s; }
.scalle img { width: 36px; height: auto; }
.scalle img.on { position: absolute; left: 0; opacity: 0; }
.scalle:hover img.on { opacity: 1; }
.scalle strong { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: .92rem; letter-spacing: .01em; }
@media (max-width: 600px) { .site-footer { padding-bottom: 96px; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2.4s infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- pop-up de captação ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.lead-modal[hidden] { display: none; }
.lead-backdrop { position: absolute; inset: 0; background: rgba(8,11,13,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .4s; }
.lead-card { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: .8fr 1.2fr; background: var(--paper); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0,0,0,.7); animation: pop .5s var(--ease); max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.lead-art { background: url('/uploads/gradiente-1.jpg') center/cover; display: grid; place-items: center; min-height: 200px; position: relative; }
.lead-art img { width: 46%; max-width: 150px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.lead-body { padding: clamp(26px, 4vw, 42px); }
.lead-body .eyebrow { color: var(--gold-lo); margin-bottom: 12px; }
.lead-body h2 { font-family: var(--f-display); font-stretch: 108%; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.1; margin: 0 0 10px; }
.lead-body > p { color: var(--text-l); margin: 0 0 20px; font-size: .96rem; }
#lead-form { display: grid; gap: 12px; }
#lead-form[hidden], .lead-success[hidden] { display: none; }
.lead-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(14,19,23,.08); display: grid; place-items: center; color: var(--ink); }
.lead-close:hover { background: rgba(14,19,23,.16); }
.lead-close svg { width: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--text-l); line-height: 1.45; cursor: pointer; }
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--olive); flex: none; }
.consent a { color: var(--olive-d); font-weight: 700; }
.lead-error { margin: 0; color: #A33B1F; font-weight: 600; font-size: .86rem; }
.lead-error:empty { display: none; }
.lead-success { text-align: center; padding: 20px 0; }
.lead-success img { width: 60px; margin: 0 auto 14px; }
.lead-success p { font-weight: 600; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- página de documento ---------- */
.page-doc { background: var(--paper); color: var(--ink); }
.page-doc .site-header { background: var(--ink); }
.doc { padding: 140px var(--gut) 90px; max-width: 820px; }
.doc h2 { font-family: var(--f-display); font-stretch: 105%; font-size: 1.3rem; margin: 36px 0 8px; }
.doc p { color: var(--text-l); }
.doc .eyebrow { color: var(--gold-lo); }
.doc .muted { font-size: .85rem; margin-top: 40px; }

/* ---------- animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 76px 0 auto; flex-direction: column; background: rgba(14,19,23,.97); backdrop-filter: blur(14px); padding: 14px var(--gut) 26px; border-bottom: 1px solid var(--line-d); transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1; }
  .main-nav a { font-size: 1.15rem; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .main-nav a::after { display: none; }
  .nav-open .main-nav { transform: none; }
  .nav-open .site-header { background: rgba(14,19,23,.97); }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { padding-top: 110px; min-height: auto; }
  .hero-inner, .about, .solution, .contact { grid-template-columns: 1fr; }
  .solution.flip .solution-media { order: 0; }
  .hero-figure { max-width: 420px; width: 100%; margin: 10px auto 0; }
  .hero-seal { left: auto; right: -10px; bottom: -20px; width: 76px; }
  .about-figure { max-width: 460px; }
  .cta-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
  .lead-art { min-height: 120px; }
  .lead-art img { width: 70px; }
}
@media (max-width: 600px) {
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
  .brand-word { width: 88px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row, .field-row.three { grid-template-columns: 1fr 1fr; }
  .field-row.three .field:last-child { grid-column: 1 / -1; }
  .ps { grid-template-columns: 1fr; gap: 10px; }
  .tag { justify-self: start; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-l); padding-top: 16px; }
  .stats div { padding-bottom: 16px; }
  .gallery { columns: 2; column-gap: 8px; }
  .g-item { margin-bottom: 8px; }
  .g-cap { opacity: 1; transform: none; padding: 30px 10px 10px; }
  .g-cap strong { font-size: .8rem; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 60px 16px 20px; gap: 16px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { justify-self: end; grid-row: 2; } .lb-next { grid-row: 2; }
  .send-fields { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
  .eyebrow .coord { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- seção creme (cor 7499 CP) ---------- */
.section.cream { background: var(--brand-cream); color: var(--ink); }
.section.cream p { color: var(--text-l); }
.section.cream .eyebrow { color: var(--gold-lo); }

/* ---------- diferenciais ---------- */
.diffs { margin-top: clamp(70px, 9vw, 120px); }
.diffs .eyebrow { color: var(--gold-lo); }
.diffs .h3 { margin-bottom: 34px; }
.diff-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-l); }
.diff-list li { padding: 24px 22px 6px 0; }
.diff-list li + li { padding-left: 22px; border-left: 1px solid var(--line-l); }
.diff-list .mono { color: var(--gold-lo); }
.diff-list h4 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.15rem; font-weight: 650; margin: 10px 0 8px; color: var(--olive-d); }
.diff-list p { margin: 0; font-size: .92rem; }

/* ---------- materiais ---------- */
.mat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(95,103,56,.25); border: 1px solid rgba(95,103,56,.25); }
.mat-list li { background: var(--brand-cream); padding: 26px 24px 28px; display: grid; gap: 6px; align-content: start; transition: background .3s; }
.mat-list li:hover { background: #FFFBEA; }
.mat-list .mono { color: var(--gold-lo); }
.mat-list strong { font-family: var(--f-display); font-stretch: 110%; font-size: 1.3rem; font-weight: 650; color: var(--olive-d); line-height: 1.15; }
.mat-list small { font-size: .9rem; color: var(--text-l); }

/* ---------- vídeos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { margin: 0; }
.video-card .frame { aspect-ratio: 9 / 14; border-radius: 3px; background: var(--ink); }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-weight: 600; font-size: .95rem; }
.video-card figcaption .mono { color: var(--gold-hi); }

/* ---------- público ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.aud { background: #fff; border: 1px solid var(--line-l); border-radius: 4px; padding: 26px 22px; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.aud:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(7,10,15,.45); border-color: var(--gold); }
.aud img { width: 30px; margin-bottom: 18px; }
.aud h3 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.12rem; margin: 0 0 8px; color: var(--ink); }
.aud p { margin: 0; font-size: .9rem; }

/* ---------- redes no rodapé ---------- */
.socials { display: flex; gap: 10px; margin-top: 14px !important; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; color: var(--cream); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.socials svg { width: 18px; height: 18px; }

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-list { grid-template-columns: repeat(2, 1fr); }
  .diff-list li + li { border-left: 0; padding-left: 0; }
  .diff-list li { border-bottom: 1px solid var(--line-l); padding-bottom: 20px; }
  .diff-list li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-l); }
  .mat-list { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid, .diff-list, .aud-grid { grid-template-columns: 1fr; }
  .diff-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .mat-list li { padding: 20px 16px; }
  .mat-list strong { font-size: 1.1rem; }
  .video-grid { gap: 10px; }
}

.mat-list li.mat-cta { background: var(--olive); padding: 0; }
.mat-list li.mat-cta:hover { background: var(--olive-d); }
.mat-cta a { display: grid; gap: 6px; align-content: center; height: 100%; padding: 26px 24px; text-decoration: none; color: var(--brand-cream); }
.mat-cta strong { color: var(--brand-cream) !important; }
.mat-cta small { color: rgba(255,247,210,.8) !important; display: inline-flex; align-items: center; gap: 8px; }
.mat-cta svg { width: 16px; height: 16px; }


/* =====================================================================
   v2 — botões arredondados e calculadora mais intuitiva
   ===================================================================== */
:root { --r-btn: 999px; --r-field: 12px; --r-card: 16px; }
.btn { border-radius: var(--r-btn); padding: 15px 26px; }
.btn-sm { padding: 10px 18px; }
.btn-outline { --bg: transparent; --fg: var(--gold-hi); --bd: rgba(211,166,60,.55); }
.btn-outline:hover { --bg: rgba(211,166,60,.12); --bd: var(--gold-hi); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.nav-toggle, .lead-close { border-radius: 50%; }
.main-nav a { border-radius: var(--r-btn); }
.lightbox button { border-radius: 50%; }
.tag { border-radius: var(--r-btn); padding: 5px 12px; }
.eyebrow .idx { border-radius: var(--r-btn); padding: 0 9px; }
.field input, .field select, .send-fields input { border-radius: var(--r-field); }
.lead-card { border-radius: 24px; }
.wa-float { box-shadow: 0 14px 34px -10px rgba(37,211,102,.55); }

/* ---- calculadora ---- */
.calc { border-radius: 24px; align-items: start; }
.calc-form { gap: 34px; }
.calc-progress { list-style: none; margin: 0 0 -6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-progress li { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #9a9a92; display: grid; gap: 8px; }
.calc-progress i { height: 4px; border-radius: 4px; background: #E7E3D6; transition: background .4s var(--ease); }
.calc-progress li.done { color: var(--olive-d); }
.calc-progress li.done i { background: linear-gradient(90deg, var(--olive), var(--gold)); }

.svc-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.svc-opt span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 74px; padding: 14px 16px; border-radius: var(--r-card); border-width: 1.5px; }
.svc-opt strong { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.svc-opt small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: #8a8a80; font-weight: 400; }
.svc-opt input:checked + span { box-shadow: none; background: var(--ink); }
.svc-opt input:checked + span small { color: var(--gold-hi); }
.svc-opt span:hover { transform: translateY(-1px); }
.svc-desc { padding-left: 2px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid #DDD8C9; background: #fff; color: var(--ink); border-radius: var(--r-btn); padding: 10px 16px; font-weight: 600; font-size: .9rem; transition: all .2s; }
.pill:hover { border-color: var(--gold); }
.pill.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pills.sm .pill { padding: 7px 14px; font-size: .84rem; }
.sub-field { display: grid; gap: 8px; margin-top: 4px; }
.sub-field[hidden] { display: none; }
.sub-label { font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: #555; text-transform: uppercase; }
.seg { border-radius: var(--r-btn); padding: 4px; }
.seg span { border-radius: var(--r-btn); }

.in-unit { position: relative; display: block; }
.in-unit input { padding-right: 46px; }
.in-unit em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--f-mono); font-size: .76rem; color: var(--gold-lo); pointer-events: none; }
.field > span em { display: none; }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; height: 50px; border: 1px solid #d9d4c6; border-radius: var(--r-btn); background: #FBF9F4; overflow: hidden; }
.stepper button { border: 0; background: transparent; font-size: 1.3rem; color: var(--olive-d); transition: background .2s; }
.stepper button:hover { background: rgba(95,103,56,.1); }
.stepper input { border: 0 !important; height: 100% !important; text-align: center; background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dim-help { margin: -2px 0 0; font-size: .84rem; color: #6c6f66 !important; display: flex; gap: 8px; }
.dim-help::before { content: 'i'; flex: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(184,137,29,.15); color: var(--gold-lo); font: 700 .7rem/18px var(--f-mono); text-align: center; margin-top: 1px; }
.extra { border-radius: var(--r-field); }
.extra span { flex: 1; }

.calc-panel { border-radius: 20px; margin: 10px; position: sticky; top: 92px; gap: 16px; }
.current { display: grid; gap: 14px; padding: 14px; border: 1px dashed var(--line-d); border-radius: 16px; transition: border-color .3s, background .3s; }
.current.ok { border-style: solid; border-color: rgba(211,166,60,.5); background: rgba(211,166,60,.06); }
.current .preview { height: 120px; border: 0; }
.current-info { display: grid; gap: 4px; }
.cur-tag { color: var(--gold-hi); font-size: .62rem; }
.current-info strong { font-size: 1rem; }
.cur-spec { font-family: var(--f-mono); font-size: .68rem; color: var(--text-d); letter-spacing: .03em; }
.cur-price { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 1.5rem; color: var(--gold-hi); }
.cur-price:empty, .cur-missing:empty, .cur-spec:empty { display: none; }
.cur-missing { font-size: .86rem; color: var(--text-d); }
.items { max-height: 260px; }
.items:empty { display: none; }
.items-title { color: var(--text-d); font-size: .62rem; padding: 4px 2px 0; }
.item { border-radius: 14px; }
.totals { border-top: 0; padding-top: 4px; }
.calc-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; background: rgba(7,10,15,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(211,166,60,.35); border-radius: var(--r-btn); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); animation: slideIn .35s var(--ease); }
.calc-bar[hidden] { display: none; }
.calc-bar div { display: grid; line-height: 1.2; }
.calc-bar .mono { color: var(--text-d); font-size: .6rem; }
.calc-bar strong { color: var(--gold-hi); font-family: var(--f-display); font-stretch: 108%; font-size: 1.05rem; white-space: nowrap; }
body:has(.calc-bar:not([hidden])) .wa-float { opacity: 0; pointer-events: none; }

@media (max-width: 1080px) {
  .calc-panel { position: static; margin: 0; border-radius: 0 0 24px 24px; }
}
@media (max-width: 600px) {
  .calc { border-radius: 20px; }
  .calc-progress li { font-size: .56rem; letter-spacing: .04em; }
  .field-row.three { grid-template-columns: 1fr 1fr; }
  .field-row.three > .field:last-child { grid-column: 1 / -1; }
  .svc-options { grid-template-columns: 1fr 1fr; }
  .svc-opt span { min-height: 70px; padding: 12px; }
}

#calc-add[hidden] { display: none; }

/* selo da chamada final: círculo próprio + selo oficial centralizado (gira em torno do centro) */
.cta-seal { width: clamp(150px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; animation: none;
  background: radial-gradient(circle at 30% 25%, #E9C35A 0%, var(--gold) 38%, #6E5412 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,247,210,.25), inset 0 -10px 30px rgba(0,0,0,.25); }
.cta-seal img { width: 80%; height: 80%; object-fit: contain; animation: spin 40s linear infinite; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }

/* ---------- carrossel de vídeos do topo ---------- */
.hero-reel { position: absolute; inset: 0; background: var(--ink); }
.reel-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 6s linear; transform: scale(1.04); }
.reel-v.on { opacity: 1; transform: scale(1); }
.reel-bars { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4; display: flex; gap: 6px; }
.reel-bar { flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.reel-bar::before { content: ''; display: block; height: 4px; border-radius: 4px; background: rgba(255,247,210,.3); }
.reel-bar i { display: block; height: 4px; margin-top: -4px; width: 0; border-radius: 4px; background: var(--brand-cream); transition: width .25s linear; }
.reel-bar.done i { width: 100%; }
.reel-bar:hover::before { background: rgba(255,247,210,.5); }
.reel-bar:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }
.hero-figure .frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 3; pointer-events: none; background: linear-gradient(to top, rgba(7,10,15,.55), transparent); }
#reel-title { transition: opacity .3s; }

.hero-seal { bottom: 84px; }
@media (max-width: 860px) { .hero-seal { bottom: 70px; } }

/* ---------- preview da peça (desenho técnico contido no quadro) ---------- */
.current .preview, .preview { position: relative; display: block; height: auto; aspect-ratio: 240 / 130; max-height: 170px; width: 100%; border: 0; border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(211,166,60,.07), transparent 70%), repeating-linear-gradient(0deg, transparent 0 15px, rgba(255,247,210,.04) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, rgba(255,247,210,.04) 15px 16px); }
.preview svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; }
.preview #pv-rect { fill: rgba(211,166,60,.14); stroke: var(--gold-hi); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: x .4s var(--ease), y .4s var(--ease), width .4s var(--ease), height .4s var(--ease), rx .4s; }
.preview #pv-rect.empty { fill: rgba(255,247,210,.03); stroke: rgba(211,166,60,.55); stroke-dasharray: 4 4; }
.preview .dim line { stroke: rgba(255,247,210,.45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.preview .dim text { fill: var(--gold-hi); font-family: var(--f-mono); font-size: 9px; letter-spacing: .04em; }
.pv-w, .pv-h { display: none; }
.preview .dim.text-only line { display: none; }

/* =====================================================================
   v3 — revisão de detalhes e interatividade
   ===================================================================== */
::selection { background: rgba(184,137,29,.85); color: #fff; }
.nw { white-space: nowrap; }

/* barra de progresso de leitura */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--gold-hi)); transform: scaleX(0); transform-origin: left; }

/* itens que ampliam em tela cheia */
button.frame, button.zoomable { display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.solution-media .zoomable:hover img { transform: scale(1.05); }
.video-card .zoomable { cursor: pointer; }
.play-ico { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,10,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--brand-cream); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease); }
.play-ico svg { width: 18px; height: 18px; }
.video-card .zoomable:hover .play-ico, .video-card .zoomable:focus-visible .play-ico { opacity: 1; transform: none; }
.video-card .frame video { transition: transform 1s var(--ease); }
.video-card .zoomable:hover video { transform: scale(1.04); }
@media (hover: none) { .play-ico { opacity: .9; transform: none; } }
.lightbox video { max-height: 80vh; max-width: 100%; border-radius: 6px; background: #000; }
.lightbox video[hidden], .lightbox img[hidden] { display: none; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }

/* portfólio: ver mais */
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.more-wrap[hidden] { display: none; }
.more-wrap .btn span { font-family: var(--f-mono); font-size: .8rem; opacity: .7; }
.g-item { border-radius: 10px; }

/* fotos aparecem suavemente */
img.fade-img { opacity: 0; transition: opacity .6s var(--ease), transform 1s var(--ease), filter .5s; }
img.fade-img.loaded { opacity: 1; }

/* carrossel do topo: área de toque maior */
.reel-bar { height: 26px; padding: 11px 0; }

/* menu do celular com chamada para a calculadora */
.nav-mobile-cta { display: none; }

/* rodapé: links mais fáceis de tocar */
.footer-nav a { padding: 4px 0; }

/* processo: "Etapa 01" */
.step-n { letter-spacing: .12em; }

@media (max-width: 1080px) {
  .nav-mobile-cta { display: inline-flex; margin-top: 18px; border-bottom: 0 !important; padding: 15px 26px !important; font-size: 1rem !important; }
}

/* ---- carrosséis de arrastar no celular (serviços e público) ---- */
@media (max-width: 760px) {
  .swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 14px; scrollbar-width: none; background: none !important; border: 0 !important; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 78%; scroll-snap-align: start; scroll-margin-left: var(--gut); }
  .services-grid.swipe .service-card { border: 1px solid var(--line-d); border-radius: 16px; overflow: hidden; }
  .aud-grid.swipe .aud { flex-basis: 70%; }
  .swipe-hint { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-d); }
  .light .swipe-hint { color: #8a8a80; }
  .swipe-hint i { flex: 1; height: 2px; border-radius: 2px; background: currentColor; opacity: .25; position: relative; overflow: hidden; }
  .swipe-hint i b { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--gold-hi); opacity: 1; border-radius: 2px; }

  /* filtros do portfólio em uma linha rolável */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scrollbar-width: none; width: calc(100% + var(--gut) * 2); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  /* processo como linha do tempo vertical */
  .steps { grid-template-columns: 1fr !important; row-gap: 0 !important; padding-left: 30px; }
  .steps::before { display: block !important; top: 14px; bottom: 14px; left: 6px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, rgba(244,238,220,.45) 0 6px, transparent 6px 12px) !important; }
  .step { padding: 0 0 34px; }
  .step::before { left: -30px; top: 5px; }
}
@media (min-width: 761px) { .swipe-hint { display: none; } }
