/* ==========================================================
   Ramos Serralheria — estilos (mobile first)
   Paleta: índigo da logo + branco + aço escovado
   ========================================================== */
:root {
  --brand: #29166f;
  --brand-dark: #1c1050;
  --brand-deep: #110a33;
  --accent: #4a35c8;
  --accent-dark: #3a27a6;
  --accent-light: #c9c4e6;   /* lilás da sombra das letras RS */
  --arc: #d6e4ff;
  --steel-1: #eef1f5;
  --steel-2: #c5ccd6;
  --steel-3: #8e98a8;
  --whatsapp: #25d366;
  --ink: #16141f;
  --text: #4a4757;
  --muted: #6d6a7e;
  --line: #e4e3ec;
  --bg: #fff;
  --bg-alt: #f4f4f8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(17, 10, 51, .28);
  --header-h: 64px;
  --tab-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --steel-grad: linear-gradient(110deg, #e6eaef 0%, #fff 22%, #cfd5de 40%, #f6f7f9 58%, #d3d9e1 78%, #fff 100%);
  --mesh: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 22px),
          repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 400; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .97rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.btn--outline { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn--whatsapp { background: var(--whatsapp); color: #06301a; }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 700 .76rem/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent-light); }
.metal-text { background: var(--steel-grad); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
@keyframes sheen { to { background-position: -220% center; } }

/* ---------- Barra de progresso (cordão de solda) ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress__bar { height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--accent) 70%, var(--arc)); }
.progress__tip { position: absolute; top: -3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--arc), 0 0 22px 6px rgba(140,160,255,.6); opacity: 0; transition: opacity .3s; }
.progress.is-moving .progress__tip { opacity: 1; }

/* ---------- Porta de aço ---------- */
.shutter { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.shutter__door {
  position: absolute; inset: 0 0 auto; height: 100%; display: grid; place-items: center;
  transform: translateY(-101%); transition: transform .75s cubic-bezier(.7,0,.3,1);
  background: repeating-linear-gradient(180deg, #262a34 0, #4d5564 2px, #8c95a4 9px, #b4bbc7 14px, #7f8898 21px, #4a5161 26px, #1d2028 28px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.shutter__door::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(180deg, #3b3f4b, #1a1c23); border-top: 3px solid var(--brand); }
.shutter__plate { width: min(320px, 76vw); padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.35); }
.shutter__plate img { width: 100%; height: auto; }
html.shutter-closed .shutter { pointer-events: auto; }
html.shutter-closed .shutter__door { transform: none; animation: shutterFailsafe .01s 4s forwards; }
@keyframes shutterFailsafe { to { transform: translateY(-101%); } }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: #fff; box-shadow: 0 1px 0 var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 20px -14px rgba(17,10,51,.5); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: block; flex: none; }
.logo img { height: 42px; width: auto; }
.header__call { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--bg-alt); color: var(--brand); font-weight: 700; font-size: .85rem; text-decoration: none; }
.nav { display: none; }

/* ---------- Barra inferior (celular) ---------- */
.tabbar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -10px 26px -18px rgba(17,10,51,.5); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border: 0; background: none; padding: 0; font: 700 11.5px/1.1 var(--font-body); color: var(--muted); text-decoration: none; white-space: nowrap; cursor: pointer; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current] { color: var(--brand); }
.tab--main { color: var(--brand); font-weight: 800; }
.tab--main i { width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; background: linear-gradient(145deg, var(--accent), var(--brand)); display: grid; place-items: center; box-shadow: 0 0 0 5px #fff, 0 12px 20px -8px rgba(41,22,111,.7); }
.tab--main svg { width: 27px; height: 27px; stroke: #fff; }

.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 86dvh; margin: 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; background: #fff; color: var(--ink); overflow-y: auto; }
.sheet[open] { animation: sheetUp .35s var(--ease); }
.sheet::backdrop { background: rgba(17,10,51,.6); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet__grip { width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet__head h2 { font-size: 1.5rem; margin: 0; }
.sheet__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-alt); color: var(--brand); font-size: 24px; line-height: 1; cursor: pointer; }
.sheet__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet__item { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px; border-radius: 12px; background: var(--bg-alt); text-decoration: none; font-weight: 700; font-size: .84rem; line-height: 1.15; color: var(--ink); }
.sheet__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.sheet__all { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--brand-deep); min-height: calc(100svh - var(--header-h) - var(--tab-h)); padding: 40px 0 22px; }
.hero__bg { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mesh), linear-gradient(0deg, rgba(17,10,51,.97) 12%, rgba(28,16,80,.72) 60%, rgba(28,16,80,.5)); }
@keyframes heroZoom { to { transform: scale(1); } }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__content { position: relative; z-index: 2; margin-bottom: 26px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 10.5vw, 4.6rem); font-weight: 900; letter-spacing: -.03em; max-width: 14ch; margin-bottom: .35em; }
.hero__lead { font-size: 1.05rem; max-width: 54ch; color: rgba(255,255,255,.88); margin: 1.1rem 0 1.4rem; }
.hero__actions { display: grid; gap: 10px; }

.weld { position: relative; display: block; width: min(440px, 72%); height: 10px; }
.weld__bead { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 6px; background: linear-gradient(90deg, transparent 65%, rgba(150,165,255,.55) 100%), radial-gradient(ellipse 4px 6px at 30% 50%, #fff 0%, #c9d0da 35%, #8a93a2 70%, #4c5463 100%) 0 0 / 6px 100% repeat-x; box-shadow: 0 2px 5px rgba(0,0,0,.55); }
.weld__bead::after { content: ""; position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 5px var(--arc), 0 0 34px 12px rgba(130,150,255,.7); opacity: 0; }
.js .weld__bead { width: 0; }
.hero.is-welding .weld__bead { animation: weld 2.2s cubic-bezier(.45,.05,.55,.95) forwards; }
.hero.is-welding .weld__bead::after { animation: arcFlicker .08s steps(2) infinite, tipOut .5s 2.2s forwards; opacity: 1; }
@keyframes weld { from { width: 0; } to { width: 100%; } }
@keyframes arcFlicker { 50% { transform: scale(.75); } }
@keyframes tipOut { to { opacity: 0; } }

.js [data-hero] { opacity: 0; transform: translateY(26px); }
.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }

.stats { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.stats li { padding: 16px 0 0; display: flex; flex-direction: column; gap: 3px; }
.stats li + li { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.stats strong { font: 900 clamp(1.7rem, 7vw, 3rem)/1 var(--font-head); color: #fff; }
.stats span { font-size: .76rem; line-height: 1.2; color: rgba(255,255,255,.75); }
.stats--light { border-color: var(--line); }
.stats--light li + li { border-color: var(--line); }
.stats--light strong { color: var(--brand); }
.stats--light span { color: var(--muted); }

/* ---------- Faixa de aço ---------- */
.ticker { overflow: hidden; padding: 13px 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px), linear-gradient(180deg, #e3e7ec, #b9c0cb 55%, #d5dae1); border-block: 1px solid #9aa3b1; box-shadow: inset 0 1px 0 #fff; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 900 1.05rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--brand-deep); }
.ticker__item::after { content: ""; width: 14px; height: 14px; flex: none; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: radial-gradient(circle at 50% 50%, var(--brand) 0 3px, transparent 3.5px), linear-gradient(145deg, #f3f5f8, #6f7888); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { position: relative; padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--brand-deep); color: rgba(255,255,255,.78); overflow: hidden; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--mesh), radial-gradient(600px 300px at 90% 0%, rgba(74,53,200,.35), transparent 70%); }
.section__head { max-width: 640px; margin-bottom: 26px; }
.section__head p:last-child { margin-bottom: 0; }
.section__more { margin-top: 18px; }

/* ---------- Portas de foto: atalhos para páginas ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.door { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4/4.6; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--brand-deep); transition: transform .3s var(--ease); }
.door:active { transform: scale(.97); }
.door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,10,51,0) 34%, rgba(17,10,51,.95) 94%); }
.door::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.4) 50%, transparent 62%); transform: translateX(-110%); }
.door__t { padding: 12px; }
.door b { display: block; font: 800 1.08rem/1.1 var(--font-head); }
.door small { display: block; font-size: .78rem; line-height: 1.25; margin-top: 4px; color: rgba(255,255,255,.82); }
.door__go { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 17px; font-weight: 800; transition: transform .3s var(--ease); }
.doors--lead .door:first-child { grid-column: span 2; aspect-ratio: 16/10; }
.doors--lead .door:first-child b { font-size: 1.45rem; }

/* cartões de serviço (página Serviços) */
.services { display: grid; gap: 14px; }
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 12px); }
.service__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service__count { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(17,10,51,.82); color: #fff; font-size: .76rem; font-weight: 700; }
.service__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.service__body p { font-size: .95rem; flex: 1; }
.service__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service__actions .btn { min-height: 46px; padding: .6em .7em; font-size: .88rem; }

/* ---------- Processo (viga com parafusos) ---------- */
.process { position: relative; padding-left: 46px; }
.beam { position: absolute; left: 8px; top: 0; bottom: 0; width: 13px; border-radius: 3px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.beam__fill { position: absolute; inset: 0; border-radius: 3px; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(90deg, rgba(255,255,255,.55), transparent 45%, rgba(0,0,0,.28)), linear-gradient(180deg, var(--steel-3), var(--steel-2) 45%, var(--steel-1)); }
.bolt { position: absolute; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); transform: rotate(-120deg) scale(.6); opacity: .4; transition: transform .7s var(--ease), opacity .4s, filter .4s; }
.bolt::before { content: ""; position: absolute; inset: 0; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: linear-gradient(145deg, #f3f5f8, #9aa3b1 50%, #5b6474); }
.bolt::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: radial-gradient(circle, var(--brand-deep) 0 3px, #7d8696 3.5px); }
.bolt.is-lit { transform: none; opacity: 1; filter: drop-shadow(0 0 8px rgba(201,196,230,.8)) drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.beam .bolt:nth-of-type(1) { top: 12.5%; }
.beam .bolt:nth-of-type(2) { top: 37.5%; }
.beam .bolt:nth-of-type(3) { top: 62.5%; }
.beam .bolt:nth-of-type(4) { top: 87.5%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { padding: 20px 18px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: background-color .5s, border-color .5s; }
.step.is-lit { border-color: rgba(201,196,230,.5); background: rgba(255,255,255,.08); }
.step__num { display: block; font: 900 2rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--steel-2); margin-bottom: 10px; }
.step.is-lit .step__num { -webkit-text-stroke-color: #fff; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- Quem somos ---------- */
.about { display: grid; gap: 34px; align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: 1fr .8fr; gap: 12px; align-items: end; }
.about__media > img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.about__media > img:first-child { aspect-ratio: 4/5; }
.about__media > img:nth-child(2) { aspect-ratio: 3/4; margin-bottom: 34px; }
.about__badge { position: absolute; left: 8px; bottom: -16px; background: linear-gradient(145deg, var(--accent), var(--brand)); color: #fff; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--steel-2); display: flex; flex-direction: column; }
.about__badge strong { font: 900 1.7rem/1 var(--font-head); }
.about__badge span { font-size: .76rem; }
.checks { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.values { display: grid; gap: 12px; }
.value { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.value p { margin: 0; font-size: .95rem; }

/* ---------- Cartões de categoria ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-flow: dense; }
.cat-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; background: var(--brand-deep); isolation: isolate; aspect-ratio: 4/4.4; }
.cat-card--big { grid-column: span 2; aspect-ratio: 16/10; }
.cat-card--wide { grid-column: span 2; aspect-ratio: 16/9; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,10,51,.93) 0%, rgba(17,10,51,.3) 52%, rgba(17,10,51,.05) 100%); }
.cat-card::after { content: ""; position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.75); border-radius: 9px; clip-path: inset(0 100% 100% 0); transition: clip-path .8s var(--ease); pointer-events: none; }
.cat-card:focus-visible::after { clip-path: inset(0); }
.cat-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cat-card__count { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #dcd8f2; margin-bottom: 4px; }
.cat-card h3 { color: #fff; margin: 0; font-size: 1.02rem; }
.cat-card--big h3 { font-size: 1.45rem; }
.cat-card__arrow { display: none; flex: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); font-size: 1.1rem; transition: transform .4s var(--ease), background-color .3s; }
.cat-card--big .cat-card__arrow, .cat-card--wide .cat-card__arrow { display: grid; }

/* ---------- Topo de páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: rgba(255,255,255,.88); padding: 34px 0 36px; background: var(--brand-deep); }
.page-hero__bg { position: absolute; inset: -10% 0; z-index: -2; will-change: transform; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mesh), linear-gradient(100deg, rgba(17,10,51,.95) 10%, rgba(28,16,80,.72) 65%, rgba(28,16,80,.5)); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 9vw, 4rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: .3em; }
.page-hero p { max-width: 60ch; margin-bottom: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; padding: .5em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; margin-bottom: 16px; color: rgba(255,255,255,.65); }
.breadcrumb a { text-decoration: none; color: rgba(255,255,255,.88); }

/* ---------- Galeria em colunas ---------- */
.masonry { columns: 2; column-gap: 10px; }
.masonry__item { display: block; width: 100%; break-inside: avoid; margin: 0 0 10px; padding: 0; border: 0; cursor: zoom-in; position: relative; overflow: hidden; border-radius: 12px; background: var(--line); }
.masonry__item img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.masonry__item img.is-loaded { opacity: 1; }
.cat-nav { display: grid; gap: 10px; }
.cat-nav .cat-card { aspect-ratio: 16/8; }
.cat-nav .cat-card h3 { font-size: 1.2rem; }
.cat-nav .cat-card__arrow { display: grid; }
.cat-nav__label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { display: inline-flex; align-items: center; min-height: 42px; text-decoration: none; padding: 0 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; }
.chips a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: 26px 20px; background: var(--brand-deep); color: rgba(255,255,255,.85); display: grid; gap: 18px; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mesh), radial-gradient(500px 260px at 100% 0, rgba(74,53,200,.55), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band__actions { display: grid; gap: 10px; }

/* ---------- Dúvidas ---------- */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 16px 16px; font-size: .96rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,5,28,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 12px 16px; animation: lbIn .3s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); min-height: 0; text-align: center; }
.lightbox img { max-height: 68dvh; width: auto; margin: 0 auto; border-radius: 10px; animation: lbImg .4s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { color: rgba(255,255,255,.82); margin-top: 10px; font-size: .92rem; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.lightbox__want { flex: 0 1 280px; }
.lightbox button { flex: none; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; font-size: 1.9rem; line-height: 1; display: grid; place-items: center; }
.lightbox__close { position: absolute; top: 10px; right: 10px; }

/* ---------- Briefing de orçamento ---------- */
.brief { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; box-shadow: var(--shadow); }
.brief__track { position: relative; height: 10px; margin: 2px 8px 22px; border-radius: 6px; background: var(--bg-alt); box-shadow: inset 0 1px 2px rgba(17,10,51,.2); }
.brief__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .6s var(--ease); }
.brief__dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: var(--steel-2); transition: background-color .4s, transform .5s var(--ease); transform: rotate(-90deg); }
.brief__dot.is-on { background: var(--brand); transform: none; }
.brief__dot:nth-of-type(1) { left: 0; }
.brief__dot:nth-of-type(2) { left: 33.33%; }
.brief__dot:nth-of-type(3) { left: 66.66%; }
.brief__dot:nth-of-type(4) { left: 100%; }
.brief__step[hidden] { display: none; }
.brief__step { animation: stepIn .4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.brief__q { font: 800 1.3rem/1.15 var(--font-head); color: var(--ink); margin: 0 0 4px; }
.brief__hint { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.brief__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brief__opt { min-height: 54px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-alt); color: var(--ink); font: 600 .9rem/1.2 var(--font-body); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.brief__opt:active, .brief__opt.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.brief__back { min-height: 44px; margin-top: 10px; padding: 0 4px; border: 0; background: none; color: var(--brand); font: 600 .9rem var(--font-body); cursor: pointer; text-decoration: underline; }
.brief__picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.brief__picked li { padding: .3em .8em; border-radius: 999px; background: var(--bg-alt); color: var(--brand); font-size: .8rem; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; padding: .8em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-alt); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(74,53,200,.14); }
.field.has-error input { border-color: #c5221f; }
.error { color: #c5221f; font-size: .8rem; }
.brief__send { display: grid; gap: 8px; margin-top: 4px; }
.brief__status { margin: 10px 0 0; font-size: .92rem; font-weight: 600; color: var(--brand); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a, .contact-list > li > span { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-radius: 12px; background: var(--bg-alt); color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.contact-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: #fff; color: var(--brand); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 12px; margin: 16px 0 0; }
.map { border-radius: 16px; overflow: hidden; height: 300px; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

/* ---------- Rodapé ---------- */
.footer { position: relative; isolation: isolate; background: var(--brand-deep); color: rgba(255,255,255,.75); padding: 40px 0 0; font-size: .95rem; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mesh); }
.footer__inner { display: grid; gap: 28px; padding-bottom: 28px; }
.footer__logo { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #fff; margin-bottom: 12px; }
.footer__logo img { height: 44px; width: auto; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer nav, .footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer nav a, .footer__col a { display: flex; align-items: center; min-height: 36px; text-decoration: none; overflow-wrap: anywhere; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: .85rem; }

.wa-float { display: none; }

/* ---------- Entrada ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), clip-path 1s var(--ease) var(--d, 0s); }
.reveal[data-reveal="left"] { transform: translateX(-34px); }
.reveal[data-reveal="right"] { transform: translateX(34px); }
.reveal[data-reveal="zoom"] { transform: scale(.94); }
.reveal[data-reveal="door"] { transform: none; opacity: 1; clip-path: inset(100% 0 0 0); }
.reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .container { width: min(1180px, 100% - 48px); }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .cta-band__actions { display: flex; flex-wrap: wrap; }
  .doors { grid-template-columns: repeat(3, 1fr); }
  .doors--lead .door:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .services, .cats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat-card__arrow { display: grid; }
  .masonry { columns: 3; column-gap: 14px; }
  .masonry__item { margin-bottom: 14px; }
  .cat-nav { grid-template-columns: 1fr 1fr; }
  .sheet { max-width: 620px; margin-inline: auto; }
  .sheet__list { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .brief__opts { grid-template-columns: repeat(3, 1fr); }
  .brief { padding: 26px; }
}

/* ---------- Computador ---------- */
@media (min-width: 1000px) {
  :root { --header-h: 84px; }
  body { padding-bottom: 0; }
  .tabbar, .sheet, .header__call { display: none; }
  .logo img { height: 52px; }
  .nav { display: flex; align-items: center; gap: 6px; }
  .nav__link { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); line-height: 1.15; transition: background-color .2s; }
  .nav__link svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav__link b { display: block; font-size: .95rem; }
  .nav__link small { display: block; font-size: .74rem; color: var(--muted); }
  .nav__link:hover, .nav__link[aria-current] { background: var(--bg-alt); }
  .nav__cta { margin-left: 8px; }

  .hero { min-height: calc(100vh - var(--header-h)); padding: 36px 0 30px; }
  .hero h1 { font-size: clamp(3rem, 5.2vw, 4.4rem); max-width: 19ch; }
  .hero::before { background: var(--mesh), linear-gradient(100deg, rgba(17,10,51,.95) 0%, rgba(28,16,80,.82) 45%, rgba(28,16,80,.3) 100%), linear-gradient(0deg, rgba(17,10,51,.9) 0%, transparent 45%); }
  .hero__lead { font-size: 1.22rem; margin: 1.5rem 0 2rem; }
  .hero__content { margin-bottom: 30px; }
  .stats li { padding-top: 18px; }
  .stats li + li { padding-left: 28px; }
  .stats span { font-size: .9rem; }

  .section { padding: 104px 0; }
  .section--tight { padding: 72px 0; }
  .section__head { margin-bottom: 44px; }
  .doors { gap: 16px; }
  .door b { font-size: 1.3rem; }
  .door__t { padding: 18px; }
  .door:hover img, .service:hover .service__media img, .cat-card:hover img { transform: scale(1.07); }
  .door:hover::after { transform: translateX(110%); transition: transform .9s var(--ease); }
  .door:hover .door__go { transform: translateX(3px); }
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { transform: translateX(120%); }
  .btn--primary:hover { background: var(--brand-dark); }
  .btn--light:hover { background: var(--steel-1); }
  .btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
  .btn--outline:hover { background: var(--brand); color: #fff; }
  .cat-card:hover::after { clip-path: inset(0); }
  .cat-card:hover .cat-card__arrow { transform: rotate(-45deg); background: var(--brand); border-color: var(--brand); }
  .cats { grid-auto-rows: 260px; gap: 18px; }
  .cat-card, .cat-card--big, .cat-card--wide { aspect-ratio: auto; }
  .cat-card--big { grid-row: span 2; }
  .cat-card__body { padding: 22px; }
  .cat-card h3 { font-size: 1.35rem; }
  .cat-card--big h3 { font-size: 2.1rem; }
  .cat-nav .cat-card { aspect-ratio: 16/6; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .masonry { columns: 3; column-gap: 16px; }

  /* viga na horizontal */
  .process { padding: 0; }
  .beam { position: relative; left: auto; top: auto; bottom: auto; width: auto; height: 14px; margin-bottom: 34px; }
  .beam__fill { transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(180deg, rgba(255,255,255,.5), transparent 40%, rgba(0,0,0,.25)), linear-gradient(90deg, var(--steel-3), var(--steel-2) 40%, var(--steel-1) 70%, var(--steel-2)); }
  .bolt, .beam .bolt:nth-of-type(n) { top: 50%; }
  .beam .bolt:nth-of-type(1) { left: 12.5%; }
  .beam .bolt:nth-of-type(2) { left: 37.5%; }
  .beam .bolt:nth-of-type(3) { left: 62.5%; }
  .beam .bolt:nth-of-type(4) { left: 87.5%; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { padding: 28px 24px; }
  .step__num { font-size: 2.6rem; margin-bottom: 16px; }

  .about { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .about__media { gap: 16px; }
  .about__badge { left: -14px; bottom: -20px; padding: 18px 22px; }
  .values { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 48px; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
  .map { height: 420px; }
  .page-hero { padding: 76px 0 72px; }
  .page-hero p { font-size: 1.1rem; }
  .footer { padding-top: 60px; }
  .footer__bottom { padding: 22px 0; }

  .lightbox { padding: 24px 90px; }
  .lightbox img { max-height: 74vh; }
  .lightbox button:hover { background: var(--accent); }
  .ticker__item { font-size: 1.4rem; }

  .wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(37,211,102,.7); transition: transform .2s; }
  .wa-float svg { width: 32px; height: 32px; }
  .wa-float:hover { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js [data-hero] { opacity: 1; transform: none; clip-path: none; }
  .js .weld__bead { width: 100%; }
  .shutter { display: none; }
}
