/* ==========================================================================
   Prosferro Metalúrgica — estilos
   Paleta: branco (60%) · preto/aço (30%) · vermelho (10%)
   ========================================================================== */

:root {
  --red: #d0141c;
  --red-700: #a80f16;
  --red-soft: rgba(208, 20, 28, .08);
  --red-bright: #ff3b42;
  --ink: #111111;
  --steel: #151619;
  --steel-2: #1d1e22;
  --text: #2a2a2a;
  --muted: #5a5a5a;
  --line: #e4e4e4;
  --soft: #f4f4f4;
  --white: #ffffff;
  --header-h: 80px;
  --radius: 6px;
  --font-head: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--ink); line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 4px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Marca registrada */
.reg { font-size: .55em; line-height: 0; vertical-align: super; margin-left: .06em; font-weight: inherit; letter-spacing: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border: 2px solid transparent; border-radius: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.15rem; }

.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; }

.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn-white { background: #fff; color: var(--red-700); border-color: #fff; }
.btn-white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Eyebrow / títulos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red-700);
}
.eyebrow-bar { width: 30px; height: 3px; background: var(--red); display: inline-block; }
.eyebrow-light { color: rgba(255,255,255,.88); }

.section { padding: 104px 0; }
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.005em; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-lead { margin: 18px 0 0; color: var(--muted); font-size: 1.12rem; }
.section-head-light .section-title { color: #fff; }
.section-head-light .section-lead { color: rgba(255,255,255,.75); }

/* ---------- Janela (motivo das peças de catálogo) ---------- */
.window {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.window-bar > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-bar i { width: 10px; height: 10px; border: 2px solid var(--red); border-radius: 50%; flex-shrink: 0; }
.window img { width: 100%; height: auto; }

.window-dark { background: #0d0d0d; border-color: rgba(255,255,255,.16); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.window-dark .window-bar { color: #fff; border-color: rgba(255,255,255,.14); }
.window-dark .window-bar i { border-color: rgba(255,255,255,.8); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
  position: relative; display: block;
  padding: 8px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .02em;
  color: rgba(255,255,255,.8); text-decoration: none;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link { white-space: nowrap; flex-shrink: 0; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-vitrine {
  margin-left: 6px; padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff;
  transition: background-color .25s, border-color .25s;
}
.nav-vitrine::after { display: none; }
.nav-vitrine:hover, .nav-vitrine.active { background: #fff; border-color: #fff; color: var(--ink); }
.nav-cta { white-space: nowrap; flex-shrink: 0; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 18px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.5); border-radius: 4px;
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; clip-path: inset(0);
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  background: var(--ink); color: #fff;
}
.hero-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -2;
  background: url("../images/bg/hero.webp") center 30% / cover no-repeat;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.82) 45%, rgba(10,10,10,.5) 100%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(255,255,255,.035) 34px 36px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1;
  background: var(--red);
}

/* Porta de rolo que "abre" ao carregar */
.hero-door {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(180deg, transparent calc(100% - 18px), #0c0c0c calc(100% - 18px)),
    repeating-linear-gradient(180deg, #34353a 0 24px, #26272b 24px 27px, #45464c 27px 29px, #2d2e33 29px 32px);
  display: grid; place-items: center;
  animation: door-open 1.4s cubic-bezier(.7, 0, .25, 1) 1.1s forwards;
}
.hero-door picture { width: min(460px, 72vw); }
.hero-door img {
  width: 100%; height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.6));
  animation: door-logo .6s var(--ease) both;
}
@keyframes door-logo { from { opacity: 0; transform: scale(.94); } }
@keyframes door-open { to { transform: translateY(-101%); } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 56px; align-items: center;
  padding-block: 64px 80px;
}
.hero-title {
  font-weight: 800; font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: .9;
  text-transform: uppercase; color: #fff; letter-spacing: .01em;
}
.hero-title span { display: block; color: var(--red-bright); font-size: .55em; letter-spacing: .12em; margin-top: 10px; }
.hero-slogan {
  margin: 26px 0 18px; padding-left: 16px; border-left: 4px solid var(--red);
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3; color: #fff;
  max-width: 600px;
}
.hero-sub {
  font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; line-height: 1.65;
  color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 18px 34px; }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points svg { width: 30px; height: 30px; color: var(--red-bright); flex-shrink: 0; }
.hero-points span { font-size: .95rem; line-height: 1.3; color: rgba(255,255,255,.75); }
.hero-points strong { display: block; font-family: var(--font-head); font-size: 1.08rem; color: #fff; font-weight: 700; }

.hero-visual { justify-self: end; width: min(340px, calc((100vh - var(--header-h) - 190px) * .62)); min-width: 250px; }
.hero-visual .window { transform: rotate(2deg); }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker ul { display: flex; flex-shrink: 0; }
.ticker li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase;
}
.ticker li::after { content: ""; width: 8px; height: 8px; background: #fff; transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Fundos fotográficos das seções ---------- */
/* Fundo fixo (efeito janela): o fundo fica parado e o conteúdo rola por cima.
   clip-path recorta o filho fixed na área da seção e funciona também no iOS. */
.has-bg { position: relative; isolation: isolate; clip-path: inset(0); }
.section-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1;
  background: center / cover no-repeat;
}
.section-bg::after { content: ""; position: absolute; inset: 0; }
.bg-sobre { background-image: url("../images/bg/metal-escovado.webp"); }
.bg-sobre::after { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.86)); }
.bg-produtos { background-image: url("../images/bg/tubos.webp"); }
.bg-produtos::after { background: rgba(244,244,244,.93); }
.bg-anatomia { background-image: url("../images/bg/oficina.webp"); }
.bg-anatomia::after {
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px),
    linear-gradient(180deg, rgba(21,22,25,.93), rgba(21,22,25,.88));
}
.bg-servicos { background-image: url("../images/bg/laminas.webp"); }
.bg-servicos::after { background: rgba(255,255,255,.88); }
.bg-passos { background-image: url("../images/bg/maquinas.webp"); }
.bg-passos::after { background: rgba(244,244,244,.92); }
.bg-duvidas { background-image: url("../images/bg/metal-escovado.webp"); background-position: center top; }
.bg-duvidas::after { background: rgba(244,244,244,.9); }
.bg-contato { background-image: url("../images/bg/porta-vermelha-rua.webp"); background-position: center bottom; }
.bg-contato::after { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 100%); }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: url("../images/bg/porta-vermelha.webp") center / cover no-repeat;
}
.about-tag {
  position: absolute; right: -28px; bottom: 40px;
  background: var(--ink); color: #fff; padding: 22px 28px;
  border-left: 6px solid var(--red); max-width: 260px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.about-tag strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; }
.about-tag span { color: rgba(255,255,255,.75); font-size: .98rem; }
.about-text .section-title { margin-bottom: 24px; }
.about-text p:not(.eyebrow) { color: var(--muted); }

.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 96px; }
.mv-card {
  padding: 40px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius);
}
.mv-card h3 { font-size: 1.8rem; margin: 18px 0 12px; }
.mv-card p { margin: 0; color: var(--muted); }
.mv-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.mv-icon svg { width: 28px; height: 28px; }
.mv-card-dark { background: var(--ink); border-color: var(--ink); border-top-color: var(--red); }
.mv-card-dark h3 { color: #fff; }
.mv-card-dark p { color: rgba(255,255,255,.75); }
.mv-card-dark .mv-icon { background: rgba(255,255,255,.08); color: var(--red-bright); }

.values { margin-top: 80px; }
.values-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 28px; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.value { padding: 26px 0 30px; border-top: 2px solid var(--ink); }
.value-num { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--red-700); letter-spacing: .08em; }
.value h4 { font-size: 1.35rem; margin: 6px 0 8px; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Produtos ---------- */
.products { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.product:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.08); }
.product-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.product-icon svg { width: 32px; height: 32px; }
.product h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product p { margin: 0; font-size: .96rem; color: var(--muted); line-height: 1.55; }

.catalog { margin-top: 88px; }
.catalog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.catalog-head h3 { font-size: 1.9rem; font-weight: 800; }
.catalog-head p { margin: 0; color: var(--muted); }
.catalog-grid { columns: 4 240px; column-gap: 20px; }
.catalog-item {
  display: block; width: 100%; margin: 0 0 20px; padding: 0;
  background: none; border: 0; cursor: zoom-in; text-align: left;
  break-inside: avoid; border-radius: 16px;
}
.catalog-item .window { transition: box-shadow .3s, border-color .3s, transform .3s var(--ease); }
.catalog-item:hover .window { border-color: var(--red); box-shadow: 0 18px 40px rgba(0,0,0,.12); transform: translateY(-3px); }

/* ---------- Vitrine (seção) ---------- */
.bg-vitrine { background-image: url("../images/bg/porta-vermelha-rua.webp"); }
.bg-vitrine::after { background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.8) 100%); }
.vitrine-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.vitrine-text .section-lead { margin-bottom: 28px; }
.vitrine-points { display: grid; gap: 14px; margin-bottom: 36px; }
.vitrine-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.vitrine-points svg { width: 24px; height: 24px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: var(--red); color: #fff; margin-top: 1px; }
.vitrine-mock { display: block; text-decoration: none; max-width: 480px; justify-self: center; width: 100%; border-radius: 16px; }
.vitrine-mock .window { box-shadow: 0 30px 60px rgba(0,0,0,.16); transform: rotate(-1.5deg); transition: transform .4s var(--ease), box-shadow .4s; }
.vitrine-mock:hover .window { transform: rotate(0) translateY(-4px); box-shadow: 0 36px 70px rgba(0,0,0,.2); }
.vitrine-mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--soft); }
.vitrine-mock-grid img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.vitrine-mock-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
}
.vitrine-mock-foot svg { width: 20px; height: 20px; }
.vitrine-mock:hover .vitrine-mock-foot { background: var(--red-700); }

/* ---------- Página da vitrine ---------- */
/* Sem rolagem e sem barra visível. O scrollbar-gutter reserva o mesmo espaço
   que a barra ocupa nas outras páginas, então o header não "escorrega" ao trocar de página. */
html:has(.vitrine-page) { height: 100%; overflow: hidden; scrollbar-gutter: stable; background: var(--ink); }
.vitrine-page { height: 100%; overflow: hidden; }
.vitrine-frame { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; width: 100%; background: #fff; }
.vitrine-frame iframe { display: block; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Anatomia ---------- */
.anatomy {
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px),
    var(--steel);
  color: #fff;
}
.anatomy-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.anatomy-figure {
  background: var(--steel-2); border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 28px;
}
.door-svg { width: 100%; height: auto; display: block; }
.door-svg .part { transition: opacity .35s, filter .35s; }
.door-svg.has-active .part:not(.on) { opacity: .25; }
.door-svg .part.on { filter: drop-shadow(0 0 8px rgba(255, 70, 70, .85)); }
.pin { cursor: pointer; }
.pin circle { fill: #fff; stroke: var(--red); stroke-width: 2; transition: fill .25s; }
.pin text { fill: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 12px; text-anchor: middle; transition: fill .25s; }
.pin.on circle { fill: var(--red); stroke: #fff; }
.pin.on text { fill: #fff; }

.parts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.part-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.05); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  transition: background-color .25s, border-color .25s;
}
.part-btn span {
  flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.12); font-size: .85rem; font-weight: 700;
}
.part-btn:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); }
.part-btn.is-active { background: var(--red); border-color: var(--red); }
.part-btn.is-active span { background: #fff; color: var(--red-700); }

.part-info {
  margin-top: 20px; padding: 24px 26px;
  background: #fff; color: var(--text); border-radius: 10px; border-left: 6px solid var(--red);
  min-height: 150px;
}
.part-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
.part-info p { margin: 0; color: var(--muted); }

/* ---------- Serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative; overflow: hidden;
  padding: 32px 28px 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.service:hover::after { transform: scaleX(1); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.service-top svg { width: 46px; height: 46px; color: var(--red); }
.service-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: rgba(17,17,17,.12); }
.service h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Para quem (fundo fixo) ---------- */
.audience { position: relative; isolation: isolate; clip-path: inset(0); background: var(--ink); color: #fff; }
.audience-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -2;
  background: url("../images/bg/esmerilhadeira.webp") center / cover no-repeat;
}
.audience-bg::after { content: ""; position: absolute; inset: 0; background: rgba(12,12,12,.86); }
.audience-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.audience-text .section-title { color: #fff; margin-bottom: 20px; }
.audience-text p:not(.eyebrow) { color: rgba(255,255,255,.78); margin-bottom: 28px; }
.audience-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.audience-list li {
  display: flex; gap: 16px; padding: 26px 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
}
.audience-list svg { width: 34px; height: 34px; color: var(--red-bright); flex-shrink: 0; }
.audience-list h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.audience-list p { margin: 0; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.55; }

/* ---------- Como pedir ---------- */
.steps { background: var(--soft); }
.steps-list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps-list::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px);
}
.step { position: relative; }
.step-num {
  position: relative; width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px;
  background: #fff; border: 3px solid var(--red); border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--red-700);
}
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Dúvidas frequentes ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head .section-lead { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--red); box-shadow: 0 12px 28px rgba(0,0,0,.07); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none; border-radius: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.faq-item summary:hover h3 { color: var(--red-700); }
.faq-icon { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--red-soft); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--red); transition: transform .3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--red); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; color: var(--muted); }

/* ---------- CTA (fundo fixo) ---------- */
.cta-band { position: relative; isolation: isolate; clip-path: inset(0); padding: 88px 0; color: #fff; background: var(--red-700); }
.cta-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -2;
  background: url("../images/bg/solda.webp") center / cover no-repeat;
}
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(150,10,16,.95) 0%, rgba(150,10,16,.88) 45%, rgba(17,17,17,.85) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner > div:first-child { flex: 1 1 0%; min-width: 0; }
.cta-inner h2 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.12rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px 24px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; background: #fff;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s, background-color .25s;
}
.contact-card svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 12px; }
.contact-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-card strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.contact-card-red { background: var(--red); border-color: var(--red); }
.contact-card-red svg, .contact-card-red strong { color: #fff; }
.contact-card-red .contact-label { color: rgba(255,255,255,.9); }
.contact-card-red:hover { background: var(--red-700); border-color: var(--red-700); }

.contact-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.info-block { display: flex; gap: 18px; padding: 30px 28px; background: var(--soft); border-radius: 10px; }
.info-block > svg { width: 32px; height: 32px; color: var(--red); flex-shrink: 0; }
.info-block > div { flex: 1; min-width: 0; }
.info-block h3 { font-size: 1.35rem; margin-bottom: 8px; }
.info-block address { color: var(--muted); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed #cfcfcf; }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { margin: 0; color: var(--muted); text-align: right; }

/* ---------- Rodapé ---------- */
.footer { background: #0b0b0b; color: rgba(255,255,255,.7); padding-top: 72px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.footer-title { color: #fff; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-hours { margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

/* ---------- Páginas legais ---------- */
.legal-hero { margin-top: var(--header-h); padding: 80px 0 60px; }
.legal-hero h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 14px; }
.legal-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.legal { padding: 64px 0 110px; background: #fff; }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 44px 0 14px; }
.legal-body h2:first-of-type { margin-top: 24px; }
.legal-body ul { margin-bottom: 14px; }
.legal-body li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 3px; background: var(--red); }
.legal-body a { color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: .88rem; letter-spacing: .06em; color: var(--muted); }
.legal-back { margin-top: 48px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  transition: background-color .25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1ebe5b; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; background: rgba(0,0,0,.93);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(900px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 1rem; }
.lb-btn {
  flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.55); border-radius: 50%; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* ---------- Revelação ao rolar ---------- */
.js .reveal, .js .reveal-left, .js .reveal-right {
  opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal { transform: translateY(28px); }
.js .reveal-left { transform: translateX(-40px); }
.js .reveal-right { transform: translateX(40px); }
.js .is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .product-icon { grid-row: span 2; margin-bottom: 0; }
}

@media (max-width: 1320px) and (min-width: 1221px) {
  .nav { gap: 18px; }
  .nav-link { padding: 8px 9px; font-size: 1.02rem; }
  .nav-vitrine { padding: 6px 14px; }
  .nav-cta { padding: 10px 14px; }
}

@media (max-width: 1220px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 20px 24px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    box-shadow: 0 20px 30px rgba(0,0,0,.35);
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
  .nav-cta { padding: 14px 18px; }
  .nav-vitrine { margin: 14px 0 0; padding: 12px 18px; text-align: center; border-color: rgba(255,255,255,.6); }
}

@media (max-width: 1080px) {

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps-list::before { display: none; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-head { position: static; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 56px 72px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .about-photo { aspect-ratio: 16 / 10; }
  .about-tag { right: 16px; bottom: -24px; }
  .mv-grid { grid-template-columns: minmax(0, 1fr); margin-top: 72px; }
  .anatomy-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vitrine-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .anatomy-figure { max-width: 620px; width: 100%; margin-inline: auto; }
}

@media (max-width: 699px) {
  .hero-bg { background-image: url("../images/bg/hero-sm.webp"); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .brand img { height: 48px; }

  .hero-grid { padding-block: 44px 60px; }
  .hero-slogan { margin-top: 20px; }
  .hero-actions { flex-direction: column; margin-bottom: 36px; }
  .hero-actions .btn { width: 100%; }
  .vitrine-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 14px; }

  .about-tag { position: relative; right: auto; bottom: auto; margin: -40px 16px 0; max-width: none; }
  .mv-card { padding: 30px 24px; }
  .values-grid { grid-template-columns: minmax(0, 1fr); }

  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product { padding: 22px 20px; }
  .catalog-grid { columns: 2; column-gap: 12px; }
  .catalog-item { margin-bottom: 12px; }
  .window-bar { font-size: .88rem; padding: 8px 10px; gap: 4px; }
  .window-bar i { width: 8px; height: 8px; }
  .catalog-head h3, .values-title { font-size: 1.6rem; }

  .anatomy-figure { padding: 14px; }
  .part-btn { font-size: .95rem; padding: 10px; gap: 8px; }
  .part-info { padding: 20px; }

  .services-grid, .audience-list, .steps-list, .contact-grid, .contact-info { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .info-block { padding: 24px 20px; }
  .hours div { flex-direction: column; gap: 0; }
  .hours dd { text-align: left; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-item summary { padding: 18px; }
  .faq-item summary h3 { font-size: 1.1rem; }
  .faq-answer { padding: 0 18px 20px; }
  .legal-hero { padding: 56px 0 40px; }
  .legal { padding: 44px 0 80px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }

  .lightbox { padding: 70px 12px 24px; flex-wrap: wrap; align-content: center; }
  .lightbox figure { order: -1; width: 100%; }
  .lightbox img { max-height: 70vh; }
}

@media (max-width: 380px) {
  .parts-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-door { display: none; }
  .ticker-track { animation: none; }
}
