/* ==========================================================================
   TECOSMAQ — Proposta visual v1.0
   Conceito: Engenharia à vista
   ========================================================================== */

/* As fontes Archivo, Inter e IBM Plex Mono são carregadas de forma otimizada e não-bloqueante no head via preconnect */

:root {
  --ink-950: #0A1012;
  --ink-900: #101719;
  --ink-800: #172125;
  --ink-700: #243136;
  --steel-700: #3E4C51;
  --steel-600: #56656A;
  --steel-500: #5F6D72;
  --steel-400: #97A3A7;
  --steel-300: #C2CBCE;
  --steel-200: #DDE3E4;
  --steel-100: #EDF0EF;
  --paper: #F6F7F4;
  --white: #FFFFFF;
  --brand: #01489A;
  --brand-dark: #01356F;
  --brand-soft: #E8F0FA;
  --brand-line: #B7CEE8;
  --danger: #B23A2A;
  --panel: #061426;
  --panel-text: #FFFFFF;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 2px;
  --shadow: 0 24px 60px -30px rgba(10, 16, 18, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--brand); color: #FFFFFF; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 999;
  background: var(--ink-900); color: var(--white); padding: 12px 18px;
  font-family: var(--font-mono); font-size: 12px;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.display,
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(34px, 4.3vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.12; }
h4 { font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--steel-600); max-width: 58ch; }
.small { font-size: 14px; line-height: 1.6; color: var(--steel-500); }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #8FC2FF; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head__title { max-width: 760px; }
.section-head__title h2 { margin-top: 18px; }
.section-head__aside { flex: 0 0 auto; padding-bottom: 8px; }

/* --------------------------------------------------------------------------
   Botões e links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent;
  background: var(--brand); color: #FFFFFF;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: -.01em; cursor: pointer; border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--steel-300); }
.btn--ghost:hover { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink-900); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--steel-300); padding-bottom: 6px;
  transition: gap .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { gap: 16px; border-color: var(--brand); color: var(--brand); }
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow--light { border-color: rgba(255,255,255,.3); color: var(--white); }
.link-arrow--light:hover { color: #8FC2FF; border-color: #8FC2FF; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 247, 244, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--steel-200); background: rgba(246, 247, 244, .97); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 190px; height: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; font-family: var(--font-display); font-weight: 500;
  font-size: 14px; letter-spacing: -.005em; color: var(--ink-800);
  padding: 8px 0;
}
.nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 0;
  width: 100%; height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-contacts { display: inline-flex; align-items: center; gap: 9px; }
.header-phone,
.header-whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  color: var(--steel-600); white-space: nowrap;
  transition: color .2s var(--ease);
}
.header-phone svg, .header-whatsapp svg { width: 14px; height: 14px; flex: 0 0 auto; }
.header-phone:hover, .header-whatsapp:hover { color: var(--brand); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--steel-300);
  background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink-900); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink-900);
  transition: transform .3s var(--ease);
}
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 78px 0 0; z-index: 99;
  background: var(--paper); padding: 32px var(--gutter) 48px;
  overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--steel-200);
}
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--steel-200);
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.mobile-menu .btn {
  margin-top: 24px; width: 100%; min-height: 52px; padding: 0 24px;
  justify-content: center; border-bottom: 0; font-size: 15px;
}
.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 84px) 0 0; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16,23,25,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,23,25,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 85%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px);
}
.hero-copy h1 { margin: 22px 0 24px; max-width: 12ch; }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel-500);
}
.hero-note svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 auto; }

.hero-plate {
  position: relative; aspect-ratio: 4 / 4.6; min-height: 420px;
  background:
    radial-gradient(120% 90% at 70% 16%, #FFFFFF 0%, #F1F4F3 38%, #DDE4E3 100%);
  border: 1px solid var(--steel-300);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-plate::before {
  content: ''; position: absolute; inset: 18px; border: 1px solid rgba(16,23,25,.09); pointer-events: none;
}
.hero-plate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20,107,90,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,107,90,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 50% 45%, #000 0%, transparent 100%);
}
.hero-plate__tag {
  position: absolute; top: 26px; left: 26px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--panel-text); padding: 7px 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
}
.hero-plate__tag i { width: 5px; height: 5px; background: #7FB3F0; border-radius: 50%; }
.hero-plate__serial {
  position: absolute; right: 26px; top: 26px; z-index: 3;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  color: var(--steel-500); writing-mode: vertical-rl;
}
.hero-plate__frame {
  position: absolute; z-index: 2; inset: 62px 26px 64px 26px;
  background: #FFFFFF; border: 1px solid rgba(16,23,25,.10);
  display: grid; place-items: center; padding: 22px 18px 34px;
  overflow: hidden;
}
.hero-plate__frame::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(20,107,90,.10); pointer-events: none;
}
.hero-plate__img {
  width: 100%; height: 100%; object-fit: contain;
}
.hero-plate__stamp {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em;
  color: var(--brand); text-transform: uppercase;
}
.hero-plate__axis-x, .hero-plate__axis-y {
  position: absolute; z-index: 3; background: var(--brand); opacity: .45;
}
.hero-plate__axis-x { left: 9%; right: 9%; bottom: 54px; height: 1px; }
.hero-plate__axis-y { top: 14%; bottom: 12%; left: 11px; width: 1px; }
.hero-plate__axis-x::before, .hero-plate__axis-x::after,
.hero-plate__axis-y::before, .hero-plate__axis-y::after {
  content: ''; position: absolute; background: var(--brand);
}
.hero-plate__axis-x::before { left: 0; top: -4px; width: 1px; height: 9px; }
.hero-plate__axis-x::after { right: 0; top: -4px; width: 1px; height: 9px; }
.hero-plate__axis-y::before { top: 0; left: -4px; height: 1px; width: 9px; }
.hero-plate__axis-y::after { bottom: 0; left: -4px; height: 1px; width: 9px; }
.hero-plate__caption {
  position: absolute; z-index: 3; left: 26px; right: 26px; bottom: 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 9.5px; line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel-600);
}
.hero-plate__caption strong { display: block; color: var(--ink-900); font-weight: 600; }
.hero-plate__callout {
  position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 11px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel-500); white-space: nowrap;
}
.hero-plate__callout::before { content: ''; width: 18px; height: 1px; background: var(--brand); }

.trust-bar {
  position: relative; border-top: 1px solid var(--steel-200);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-bar div {
  padding: 20px 24px 22px; border-right: 1px solid var(--steel-200);
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
}
.trust-bar div:first-child { border-left: 1px solid var(--steel-200); }
.trust-bar strong {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.trust-bar span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--steel-500); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--white { background: var(--white); }
/* Faixa azul de serviço (manutenção e assistência) */
.section--brand {
  position: relative; overflow: hidden; color: #FFFFFF;
  background:
    radial-gradient(120% 130% at 88% -12%, rgba(143, 194, 255, .30) 0%, rgba(143, 194, 255, 0) 58%),
    linear-gradient(135deg, #01356F 0%, #01489A 56%, #0A5AAE 100%);
}
.maintenance::before,
.maintenance::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  aspect-ratio: 1; border-radius: 50%;
}
.maintenance::before {
  left: clamp(-140px, -7vw, -50px); top: clamp(-150px, -9vw, -60px);
  width: clamp(180px, 22vw, 300px); border: 1px solid rgba(255, 255, 255, .12);
}
.maintenance::after {
  right: clamp(-170px, -9vw, -70px); bottom: clamp(-180px, -13vw, -100px);
  width: clamp(280px, 34vw, 460px); border: 1px solid rgba(255, 255, 255, .18);
}
.maintenance-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(30px, 5vw, 76px); align-items: start;
}
.maintenance-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .34);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .09em;
  text-transform: uppercase; color: #FFFFFF;
}
.maintenance-badge::before {
  content: ''; width: 5px; height: 5px; background: #8FC2FF; border-radius: 50%;
}
.maintenance-copy h2 { color: #FFFFFF; max-width: 17ch; margin: 14px 0 18px; }
.maintenance-copy .lead { color: rgba(255, 255, 255, .89); max-width: 46ch; }
.maintenance-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }
.maintenance-note {
  margin: 18px 0 0; max-width: 48ch;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.75; color: rgba(255, 255, 255, .64);
}
.maintenance-list { border-top: 1px solid rgba(255, 255, 255, .26); }
.maintenance-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .26);
}
.maintenance-item__num {
  padding-top: 4px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: #8FC2FF;
}
.maintenance-item h3 { color: #FFFFFF; font-size: clamp(19px, 1.5vw, 23px); }
.maintenance-item p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.maintenance-foot {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255, 255, 255, .7);
}

.section--ink { background: var(--panel); color: var(--panel-text); }
.section--ink .lead { color: #B9C7D4; }
.section--steel { background: var(--steel-100); }
.section--line { border-top: 1px solid var(--steel-200); }

/* Soluções */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.solution-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--steel-200);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.solution-card:hover { border-color: var(--steel-400); transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-card__media {
  position: relative; aspect-ratio: 4 / 3.15; overflow: hidden;
  background: #FFFFFF;
  border-bottom: 1px solid var(--steel-200);
}
.solution-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 0; transition: transform .6s var(--ease);
}
.solution-card:hover .solution-card__media img { transform: scale(1.045); }
.solution-card__index {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--steel-500); background: rgba(255,255,255,.86); padding: 3px 6px;
}
.solution-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.solution-card__body h3 { font-size: 20px; }
.solution-card__body p { margin: 10px 0 20px; font-size: 13.5px; line-height: 1.55; color: var(--steel-500); }
.solution-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.solution-card__foot span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.solution-card__foot svg { width: 16px; height: 16px; color: var(--brand); transition: transform .3s var(--ease); }
.solution-card:hover .solution-card__foot svg { transform: translate(3px, -3px); }

/* Aplicações */
.applications { position: relative; overflow: hidden; }
.applications::before {
  content: ''; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1;
  border: 1px solid rgba(127,224,196,.16); border-radius: 50%;
}
.applications::after {
  content: ''; position: absolute; right: 4%; top: -8%; width: 32%; aspect-ratio: 1;
  border: 1px solid rgba(127,224,196,.10); border-radius: 50%;
}
.applications-grid { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.applications-copy h2 { margin: 18px 0 22px; max-width: 13ch; }
.applications-list { border-top: 1px solid rgba(255,255,255,.16); }
.applications-list a {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 16px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid rgba(255,255,255,.16);
  transition: padding .25s var(--ease), color .25s var(--ease);
}
.applications-list a:hover { padding-left: 12px; color: #8FC2FF; }
.applications-list .num { font-family: var(--font-mono); font-size: 10px; color: #8FA0A4; letter-spacing: .1em; }
.applications-list .name { font-family: var(--font-display); font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: -.02em; }
.applications-list .desc { font-size: 12.5px; color: var(--steel-400); text-align: right; max-width: 28ch; }
.applications-list svg { width: 16px; height: 16px; }

/* Engenharia */
.engineering-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.engineering-media { position: relative; }
.engineering-media__img {
  position: relative; aspect-ratio: 4 / 3.4; background: var(--ink-800); overflow: hidden;
}
.engineering-media__img img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.engineering-media__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,18,.72), transparent 55%);
}
.engineering-media__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: rgba(10,16,18,.74); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); padding: 7px 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
}
.engineering-media__caption {
  position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px;
  color: var(--white); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em; line-height: 1.6; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.engineering-media__caption span { color: var(--steel-300); max-width: 34ch; }
.engineering-copy h2 { margin: 18px 0 22px; }
.materials { display: flex; gap: 10px; margin: 28px 0 34px; flex-wrap: wrap; }
.material-chip {
  border: 1px solid var(--steel-300); padding: 10px 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.material-chip strong { font-family: var(--font-display); font-size: 15px; }
.material-chip span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
.process-list { counter-reset: step; }
.process-item {
  display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--steel-200);
}
.process-item:last-child { border-bottom: 1px solid var(--steel-200); }
.process-item__num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--brand); padding-top: 4px; }
.process-item h4, .process-item__title { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 4px; }
.process-item p { font-size: 13.5px; color: var(--steel-500); margin: 0; }

/* Projetos / dossiês */
.projects-grid { display: grid; grid-template-columns: 1.35fr .825fr .825fr; gap: 18px; }
.project-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--steel-200);
}
.project-card--lead { grid-row: span 1; }
.project-card__media { position: relative; overflow: hidden; background: var(--steel-100); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card--lead .project-card__media { aspect-ratio: 16 / 10; }
.project-card--doc .project-card__media { aspect-ratio: 4 / 3; }
.project-card--doc .project-card__media img { object-fit: cover; filter: grayscale(1) contrast(1.08); opacity: .82; }
.project-card--doc .project-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,107,90,.08), rgba(10,16,18,.20));
}
.project-card__label {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: var(--white); padding: 5px 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
}
.project-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { font-size: 19px; }
.project-card__body p { font-size: 13px; color: var(--steel-500); margin: 8px 0 16px; }
.project-card__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--steel-200);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500);
}
.project-card__meta svg { width: 14px; height: 14px; color: var(--brand); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--steel-300); }
.step { position: relative; padding: 28px 28px 0 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; right: 14px; top: 34px; width: 14px; height: 1px; background: var(--steel-400);
}
.step__num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--brand); }
.step h3 { font-size: 21px; margin: 14px 0 10px; }
.step p { font-size: 13.5px; color: var(--steel-500); max-width: 24ch; }

/* Diferenciais */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--steel-200); border-left: 1px solid var(--steel-200); }
.fact { padding: 26px 24px 30px; border-right: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); background: var(--paper); }
.fact__icon { width: 34px; height: 34px; color: var(--brand); margin-bottom: 26px; }
.fact h4, .fact__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 8px; }
.fact p { font-size: 13px; color: var(--steel-500); margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid h2 { margin: 18px 0 20px; max-width: 11ch; }
.faq-list { border-top: 1px solid var(--steel-300); }
.faq-item { border-bottom: 1px solid var(--steel-300); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ''; position: absolute; background: var(--brand); transition: transform .3s var(--ease);
}
.faq-item summary .plus::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq-item summary .plus::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); }
.faq-item__answer { padding: 0 44px 24px 0; color: var(--steel-600); font-size: 14.5px; max-width: 70ch; }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* CTA final */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; left: -8%; bottom: -60%; width: 52%; aspect-ratio: 1;
  border: 1px solid rgba(127,224,196,.15); border-radius: 50%;
}
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.cta-copy h2 { margin: 18px 0 22px; max-width: 12ch; }
.cta-contact { margin-top: 38px; display: grid; gap: 14px; }
.cta-contact a { display: inline-flex; align-items: center; gap: 12px; color: var(--steel-200); font-size: 14px; }
.cta-contact a:hover { color: #8FC2FF; }
.cta-contact svg { width: 16px; height: 16px; color: #8FC2FF; }
.cta-form {
  background: var(--white); color: var(--ink-900); padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.5);
}
.cta-form h3 { font-size: 22px; margin-bottom: 6px; }
.cta-form > p { font-size: 12.5px; color: var(--steel-500); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--steel-600); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--steel-300); background: var(--paper);
  min-height: 48px; padding: 12px 14px; font-size: 15px; color: var(--ink-900); border-radius: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--white); }
.form-consent { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0; }
.form-consent input { margin-top: 3px; accent-color: var(--brand); }
.form-consent label { font-size: 12.5px; color: var(--steel-500); line-height: 1.5; }
.form-consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cta-form .btn { width: 100%; }
.form-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #56656A; margin-top: 12px; text-align: center; }
.form-success { display: none; padding: 18px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-dark); font-size: 14px; }
.form-success.is-visible { display: block; }

/* Footer */
.site-footer { background: var(--panel); color: #C2CBCE; padding: clamp(52px, 7vw, 80px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.1fr; gap: 48px; padding-bottom: 52px; }
.footer-brand img { width: 220px; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; color: #A6B5C4; max-width: 34ch; line-height: 1.7; }
.footer-col h4, .footer-col__title { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #93A2A6; margin: 0 0 18px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #C2CBCE; margin: 0 0 8px; }
.footer-col a:hover { color: #8FC2FF; }
.footer-col svg { width: 15px; height: 15px; flex: 0 0 auto; }
.footer-col--contact a { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; margin-top: 3px; color: #7FB3F0; flex: 0 0 auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #8B9A9E;
}
.footer-bottom a:hover { color: var(--steel-300); }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; }
.social svg { width: 15px; height: 15px; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand);
  display: grid; place-items: center; color: var(--white);
  box-shadow: 0 14px 34px -12px rgba(10,16,18,.55);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); background: var(--brand-dark); }
.wa-float.is-hero-hidden { opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92); pointer-events: none; }
.wa-float { transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease), visibility .25s; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
.wa-float svg { width: 25px; height: 25px; }

/* --------------------------------------------------------------------------
   Página de solução
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 18px 0; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500);
  border-bottom: 1px solid var(--steel-200);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--steel-300); }
.solution-hero { padding: clamp(40px, 5vw, 68px) 0 clamp(40px, 5vw, 64px); }
.solution-hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.solution-hero h1 { font-size: clamp(42px, 5.4vw, 76px); margin: 18px 0 20px; max-width: 12ch; }
.solution-hero .lead { max-width: 50ch; }
.solution-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.solution-hero__media {
  margin: 0; position: relative; aspect-ratio: 4 / 4.35; background: #FFFFFF;
  border: 1px solid var(--steel-200); display: grid; place-items: center; padding: 22px;
  justify-self: end; width: 100%; max-width: 520px;
}
.solution-hero__media img { width: 100%; height: 100%; object-fit: contain; }
.solution-hero__media .corner { position: absolute; width: 16px; height: 16px; border-color: var(--brand); border-style: solid; opacity: .5; }
.corner--tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.corner--tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.corner--br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.subnav {
  position: sticky; top: 78px; z-index: 60; background: var(--paper);
  border-top: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200);
}
.subnav-inner { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto; padding: 15px 0; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-500);
  border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.subnav a:hover { color: var(--brand); border-color: var(--brand); }

.content-block { padding: clamp(52px, 6vw, 80px) 0; border-bottom: 1px solid var(--steel-200); }
.content-block__grid { display: grid; grid-template-columns: minmax(0,.55fr) minmax(0,1.45fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.content-block__label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.content-block h2 { margin: 14px 0 18px; max-width: 16ch; }
.content-block h3 { margin: 0 0 10px; }
.content-block p { color: var(--steel-600); font-size: 15px; }
.content-block p:last-child { margin-bottom: 0; }
.block-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.block-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block-card { background: var(--white); border: 1px solid var(--steel-200); padding: 22px; }
.block-card .mono { color: var(--brand); }
.block-card h3 { font-size: 18px; margin: 14px 0 8px; }
.block-card p { font-size: 13px; margin: 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--steel-200); font-size: 13.5px; }
.spec-table th { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-500); font-weight: 500; background: var(--steel-100); }
.spec-table td:first-child { font-weight: 600; font-family: var(--font-display); width: 28%; }
.spec-table td:last-child { color: var(--steel-500); font-size: 12.5px; }
.spec-note { display: flex; gap: 10px; margin-top: 16px; padding: 13px 14px; background: #FBF4E8; border-left: 2px solid #B78233; font-size: 12px; color: #6B5227; }
.spec-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.checklist li { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--steel-200); font-size: 13.5px; color: var(--steel-700); }
.checklist svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--steel-200); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12px; background: linear-gradient(150deg,#fff,#EDF1EF); }
.gallery figcaption { padding: 10px 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; color: var(--steel-500); border-top: 1px solid var(--steel-200); }
.gallery figure:first-child img { object-fit: cover; padding: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related-card { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--steel-200); padding: 12px; }
.related-card img { width: 78px; height: 66px; object-fit: contain; background: var(--steel-100); padding: 6px; }
.related-card h4, .related-card__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 3px; }
.related-card span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.related-card:hover { border-color: var(--steel-400); }

/* Marca */
.brand-hero { padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--steel-200); }
.brand-hero h1 { font-size: clamp(40px, 5.6vw, 78px); max-width: 14ch; margin: 18px 0 22px; }
.brand-logo-stage { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin-top: 48px; }
.brand-logo-box { border: 1px solid var(--steel-200); min-height: 220px; display: grid; place-items: center; padding: 32px; }
.brand-logo-box--light { background: var(--white); }
.brand-logo-box--dark { background: var(--ink-900); }
.brand-logo-box img { max-width: 300px; }
.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-top: 26px; }
.swatch { border: 1px solid var(--steel-200); }
.swatch__color { height: 100px; }
.swatch__meta { padding: 12px; background: var(--white); }
.swatch__meta strong { display: block; font-family: var(--font-display); font-size: 13px; }
.swatch__meta span { font-family: var(--font-mono); font-size: 9.5px; color: var(--steel-500); letter-spacing: .06em; }
.type-spec { border-top: 1px solid var(--steel-300); margin-top: 24px; }
.type-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--steel-300); align-items: baseline; }
.type-row .mono { color: var(--steel-500); }
.type-row .sample-display { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.type-row .sample-body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.type-row .sample-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }

/* Animações */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .site-header, .wa-float, .mobile-menu { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .content-block { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
/* Abaixo de 1170 px nenhum número cabe ao lado do menu; entre 1170 e
   1399 px o WhatsApp (canal prioritário) assume o lugar do fixo. */
@media (max-width: 1170px) {
  .header-contacts { display: none; }
}
@media (max-width: 1399px) {
  .header-phone { display: none; }
}
/* Acima de 1400 px os dois números convivem com carrinho e CTA:
   a navegação cede 6 px por link para o conjunto caber. */
@media (min-width: 1400px) {
  .nav { gap: 24px; }
  .header-contacts > * + * { padding-left: 9px; border-left: 1px solid var(--steel-300); }
}
@media (max-width: 1240px) {
  .header-inner { gap: 24px; }
  .nav { gap: 22px; }
  body[data-page="catalogo"] .header-actions .btn { display: none; }
}
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .header-inner { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr .85fr; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1.2fr .8fr; }
  .projects-grid .project-card--doc:last-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; }
  .footer-col--contact { grid-column: 1 / -1; display: flex; gap: 40px; flex-wrap: wrap; }
  .footer-col--contact h4 { width: 100%; margin-bottom: 0; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 14ch; }
  .hero-plate { max-width: 560px; width: 100%; justify-self: start; aspect-ratio: 4 / 4.2; }
  .solution-hero__media { justify-self: stretch; max-width: none; aspect-ratio: 4 / 4.2; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-bar div:nth-child(2) { border-right: 0; }
  .trust-bar div:nth-child(3), .trust-bar div:nth-child(4) { border-top: 1px solid var(--steel-200); }
  .trust-bar div:nth-child(3) { border-left: 1px solid var(--steel-200); }
  .applications-grid, .engineering-grid, .faq-grid, .cta-grid, .solution-hero__grid { grid-template-columns: 1fr; }
  .applications-copy h2, .cta-copy h2 { max-width: 16ch; }
  .engineering-media { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 24px 24px 28px 0; }
  .step:nth-child(2)::after { display: none; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--steel-300); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid .project-card--lead { grid-column: 1 / -1; }
  .projects-grid .project-card--doc:last-child { grid-column: auto; }
  .content-block__grid { grid-template-columns: 1fr; gap: 18px; }
  .block-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .block-cards.block-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .brand-logo-stage { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-inner { height: 68px; }
  .brand img { width: 158px; }
  .header-actions { gap: 8px; }
  .cart-button { width: 38px; height: 38px; }
  .mobile-menu { inset: 68px 0 0; }
  .subnav { top: 68px; }
  .hero { padding-top: 32px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-actions .btn { width: 100%; }
  .hero-plate { min-height: 360px; aspect-ratio: 4 / 4.4; }
  .hero-plate__frame { inset: 54px 18px 58px 18px; padding: 16px 12px 30px; }
  .hero-plate__tag { top: 18px; left: 18px; }
  .hero-plate__serial { right: 14px; top: 18px; }
  .hero-plate__caption { left: 18px; right: 18px; bottom: 18px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-bar div { padding: 15px 16px; flex-direction: column; gap: 2px; }
  .trust-bar div:nth-child(3) { border-top: 1px solid var(--steel-200); }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card__media { aspect-ratio: 16 / 10; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card--lead { grid-column: auto; }
  .projects-grid .project-card--doc:last-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 20px 0 24px; border-top: 1px solid var(--steel-300); }
  .step::after { display: none; }
  .facts { grid-template-columns: 1fr; }
  .applications-list a { grid-template-columns: 30px 1fr auto; }
  .applications-list .desc { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-col--contact { display: block; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; }
  .palette { grid-template-columns: 1fr 1fr; }
  .type-row { grid-template-columns: 1fr; gap: 8px; }
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
  .spec-table tr { padding: 16px 0; border-bottom: 1px solid var(--steel-200); }
  .spec-table td { border: 0; padding: 3px 0; }
  .spec-table td:first-child { width: 100%; font-size: 15px; margin-bottom: 4px; }
  .spec-table td:nth-child(2)::before { content: 'Definição: '; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
  .spec-table td:nth-child(3)::before { content: 'Observação: '; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px;
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------------------------
   Tema claro / escuro
   -------------------------------------------------------------------------- */
.theme-toggle {
  width: 44px; height: 44px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--steel-300); background: transparent; color: var(--ink-900);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

[data-theme="dark"] {
  color-scheme: dark;
  --ink-950: #05090E;
  --ink-900: #EEF3F8;
  --ink-800: #DCE6EF;
  --steel-700: #C3D0DC;
  --steel-600: #A8B8C8;
  --steel-500: #8FA2B5;
  --steel-400: #6F8296;
  --steel-300: #33465A;
  --steel-200: #22303E;
  --steel-100: #131E2A;
  --paper: #070C12;
  --white: #0E1620;
  --brand: #4C9AF2;
  --brand-dark: #2F6DB5;
  --brand-soft: #12263D;
  --brand-line: #274666;
  --panel: #040B14;
  --panel-text: #F4F7FA;
}
[data-theme="dark"] body { background: var(--paper); color: var(--ink-900); }
[data-theme="dark"] .site-header { background: rgba(7, 12, 18, .92); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(7, 12, 18, .97); border-color: var(--steel-200); }
[data-theme="dark"] .mobile-menu { background: var(--paper); }
[data-theme="dark"] .skip-link { background: var(--panel); color: var(--panel-text); }
[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
}
[data-theme="dark"] .hero-plate {
  background: radial-gradient(120% 90% at 70% 16%, #1B2A38 0%, #121D28 45%, #0C141D 100%);
  border-color: var(--steel-300);
}
[data-theme="dark"] .hero-plate__frame { background: #FFFFFF; border-color: #FFFFFF; }
[data-theme="dark"] .hero-plate__frame::before { border-color: rgba(1,72,154,.14); }
[data-theme="dark"] .hero-plate__stamp { color: #01489A; }
[data-theme="dark"] .hero-plate__callout { color: #5F6D72; }
[data-theme="dark"] .hero-plate__callout::before { background: #01489A; }
[data-theme="dark"] .hero-plate__axis-x,
[data-theme="dark"] .hero-plate__axis-y { background: #7FB3F0; }
[data-theme="dark"] .hero-plate__axis-x::before,
[data-theme="dark"] .hero-plate__axis-x::after,
[data-theme="dark"] .hero-plate__axis-y::before,
[data-theme="dark"] .hero-plate__axis-y::after { background: #7FB3F0; }
[data-theme="dark"] .solution-card__media,
[data-theme="dark"] .solution-hero__media,
[data-theme="dark"] .related-card img { background: #FFFFFF; }
[data-theme="dark"] .gallery img { background: linear-gradient(150deg, #FFFFFF, #EDF1EF); }
[data-theme="dark"] .gallery figure:first-child img { background: #F4F6F8; }
[data-theme="dark"] .spec-note { background: #2A2418; border-left-color: #B78233; color: #E8D3A8; }
[data-theme="dark"] .form-success { background: var(--brand-soft); border-color: var(--brand-line); color: #B9D6FF; }
[data-theme="dark"] .form-note { color: #8FA2B5; }
[data-theme="dark"] .btn { background: #2F6DB5; color: #FFFFFF; }
[data-theme="dark"] .btn:hover { background: #3E86D6; }
[data-theme="dark"] .btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--steel-300); }
[data-theme="dark"] .btn--ghost:hover { background: #EEF3F8; border-color: #EEF3F8; color: #0A1012; }
[data-theme="dark"] .btn--light { background: #EEF3F8; color: #0A1012; }
[data-theme="dark"] .btn--light:hover { background: #DCE9F7; color: #0A1012; }
[data-theme="dark"] .btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.35); }
[data-theme="dark"] .btn--outline-light:hover { background: #EEF3F8; color: #0A1012; border-color: #EEF3F8; }
[data-theme="dark"] .link-arrow--light { color: #F4F7FA; border-color: rgba(255,255,255,.3); }
[data-theme="dark"] .link-arrow--light:hover { color: #8FC2FF; border-color: #8FC2FF; }
[data-theme="dark"] .wa-float { background: #2F6DB5; color: #FFFFFF; }
[data-theme="dark"] .wa-float:hover { background: #3E86D6; }
[data-theme="dark"] .applications-list .desc { color: #9BAEC1; }
[data-theme="dark"] .cta-contact a { color: #D6E1EA; }
[data-theme="dark"] .cta-contact a:hover { color: #8FC2FF; }
[data-theme="dark"] .brand-logo-box--light { background: #F6F7F4; }
[data-theme="dark"] .brand-logo-box--dark { background: #05090E; }
[data-theme="dark"] .project-card__label { background: var(--white); color: var(--ink-900); }
[data-theme="dark"] .project-card--doc .project-card__media::after { background: linear-gradient(135deg, rgba(1,72,154,.10), rgba(5,9,14,.28)); }
[data-theme="dark"] .subnav { background: var(--paper); }
[data-theme="dark"] .spec-table th { background: var(--steel-100); color: var(--steel-500); }
[data-theme="dark"] .theme-toggle { color: var(--ink-900); border-color: var(--steel-300); }
[data-theme="dark"] .theme-toggle:hover { color: var(--brand); border-color: var(--brand); }

/* --------------------------------------------------------------------------
   Catálogo interativo
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.catalog-hero { padding: clamp(40px, 5vw, 64px) 0 20px; border-bottom: 1px solid var(--steel-200); }
.catalog-hero h1 { margin: 18px 0 20px; max-width: 15ch; font-size: clamp(40px, 5.6vw, 76px); }
.catalog-search {
  margin-top: 30px; max-width: 760px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--steel-300); color: var(--steel-500);
  transition: border-color .2s var(--ease);
}
.catalog-search:focus-within { border-color: var(--brand); color: var(--brand); }
.catalog-search svg { width: 20px; height: 20px; flex: 0 0 auto; }
.catalog-search input {
  width: 100%; border: 0; background: transparent; color: var(--ink-900);
  padding: 15px 0; font-family: var(--font-body); font-size: 17px; outline: 0;
}
.catalog-search input::placeholder { color: var(--steel-500); }
.catalog-filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 4px;
  scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: 2px;
}
.catalog-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--steel-200); background: var(--white);
  padding: 10px 12px; color: var(--steel-600); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-chip span { color: var(--steel-400); margin-left: 3px; }
.filter-chip:hover { border-color: var(--steel-400); color: var(--ink-900); }
.filter-chip.is-active { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.filter-chip.is-active span { color: #FFFFFF; }
.catalog-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--steel-200);
}
.catalog-toolbar__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.catalog-toolbar__meta > span:first-child { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.catalog-toolbar__hint { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--steel-200); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.catalog-card:hover { border-color: var(--steel-400); transform: translateY(-3px); box-shadow: var(--shadow); }
.catalog-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.catalog-card__media {
  position: relative; aspect-ratio: 4 / 3; background: #F4F6F8;
  display: grid; place-items: center; padding: 10px; border-bottom: 1px solid var(--steel-200);
  overflow: hidden;
}
.catalog-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.catalog-card:hover .catalog-card__media img { transform: scale(1.04); }
.catalog-card__cat {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  background: rgba(255,255,255,.92); color: #3E4C51; padding: 4px 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase;
}
.catalog-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.catalog-card__body h3 { font-size: 19px; line-height: 1.15; }
.catalog-card__body p { font-size: 13px; line-height: 1.55; color: var(--steel-500); margin: 8px 0 14px; }
.catalog-card__specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.catalog-card__specs span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--steel-200); color: var(--steel-500); padding: 4px 6px;
}
.catalog-card__actions { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--steel-200); }
.catalog-card__detail {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--ink-900);
  border-bottom: 1px solid var(--steel-300);
}
.catalog-card__select {
  margin-left: auto; border: 1px solid var(--steel-300); background: transparent;
  padding: 8px 10px; cursor: pointer; color: var(--ink-900);
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.catalog-card__select:hover { border-color: var(--brand); color: var(--brand); }
.catalog-card.is-selected .catalog-card__select { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.catalog-empty { padding: 60px 0 40px; text-align: center; }
.catalog-empty h3 { margin-bottom: 8px; }
.catalog-empty p { color: var(--steel-500); margin-bottom: 20px; }
/* --------------------------------------------------------------------------
   Carrinho de orçamento (catálogo)
   -------------------------------------------------------------------------- */
.cart-button {
  position: relative; width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--steel-300); background: transparent; color: var(--ink-900);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.cart-button:hover { border-color: var(--brand); color: var(--brand); }
.cart-button svg { width: 18px; height: 18px; }
.cart-button__count {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--brand); color: #FFFFFF; border: 2px solid var(--paper); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; line-height: 1;
}
.cart-button__count[hidden] { display: none; }
.cart-button.is-bumping .cart-button__count { animation: cart-pop .5s var(--ease); }
[data-theme="dark"] .cart-button__count { color: #04121F; }
@keyframes cart-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.quote-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(440px, 100%); max-width: none; height: 100dvh; max-height: none;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--ink-900);
  box-shadow: -40px 0 90px -50px rgba(0,0,0,.6);
}
.quote-drawer:not([open]) { display: none; }
.quote-drawer::backdrop { background: rgba(5, 9, 14, .58); backdrop-filter: blur(3px); }
.quote-drawer[open] { animation: quote-drawer-in .34s var(--ease); }
.quote-drawer[open]::backdrop { animation: quote-fade-in .3s var(--ease); }
.quote-drawer.is-closing { animation: quote-drawer-out .24s var(--ease) forwards; }
.quote-drawer.is-closing::backdrop { animation: quote-fade-out .24s var(--ease) forwards; }
@keyframes quote-drawer-in { from { transform: translateX(100%); } }
@keyframes quote-drawer-out { to { transform: translateX(100%); } }
@keyframes quote-fade-in { from { opacity: 0; } }
@keyframes quote-fade-out { to { opacity: 0; } }

.quote-drawer__head {
  flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 22px 18px; border-bottom: 1px solid var(--steel-200);
}
.quote-drawer__head h2 { font-size: 26px; margin: 8px 0 6px; }
.quote-drawer__count {
  margin: 0; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--steel-500);
}
.quote-drawer__close {
  width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid var(--steel-300); background: transparent; color: var(--ink-900); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.quote-drawer__close:hover { border-color: var(--brand); color: var(--brand); }
.quote-drawer__close svg { width: 15px; height: 15px; }

.quote-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; }
.quote-drawer__list { list-style: none; margin: 0; padding: 0; }
.quote-drawer__empty { display: grid; justify-items: center; gap: 8px; padding: 64px 8px; text-align: center; }
.quote-drawer__empty svg { width: 32px; height: 32px; color: var(--steel-400); margin-bottom: 4px; }
.quote-drawer__empty p { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.quote-drawer__empty span { font-size: 12.5px; color: var(--steel-500); max-width: 30ch; }
.quote-drawer__empty .btn { margin-top: 12px; }
.quote-drawer__more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 16px 0 20px; padding: 13px 12px;
  border: 1px dashed var(--steel-300); background: transparent;
  color: var(--steel-600); cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.quote-drawer__more:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.quote-drawer__more svg { width: 14px; height: 14px; }

.quote-item {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 14px;
  align-items: start; padding: 16px 0; border-bottom: 1px solid var(--steel-200);
}
.quote-drawer__list .quote-item:last-child { border-bottom: 0; }
.quote-item__thumb { background: #F4F6F8; border: 1px solid var(--steel-200); padding: 4px; }
.quote-item__thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.quote-item__cat {
  display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--steel-500); line-height: 1.4;
}
.quote-item__info strong {
  display: block; margin: 3px 0 10px;
  font-family: var(--font-display); font-size: 15px; line-height: 1.25;
}
.quote-qty { display: inline-flex; align-items: center; border: 1px solid var(--steel-200); }
.quote-qty button {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink-900); font-size: 16px; line-height: 1; cursor: pointer;
}
.quote-qty button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-dark); }
.quote-qty button:disabled { color: var(--steel-400); cursor: not-allowed; opacity: .55; }
.quote-qty__value {
  min-width: 32px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums;
}
.quote-item__remove {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--steel-500); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.quote-item__remove:hover { border-color: var(--steel-300); color: var(--danger); }
.quote-item__remove svg { width: 14px; height: 14px; }
[data-theme="dark"] .quote-item__remove:hover { color: #FF9A8A; }

.quote-drawer__foot {
  flex: 0 0 auto; padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--steel-200);
  box-shadow: 0 -20px 40px -34px rgba(0,0,0,.45);
}
.quote-drawer__note-field { display: block; margin-bottom: 12px; }
.quote-drawer__note-field label {
  display: block; margin-bottom: 6px; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--steel-500);
}
.quote-drawer__note-field label span { color: var(--steel-400); }
.quote-drawer__note-field textarea {
  width: 100%; min-height: 52px; padding: 9px 10px; resize: none;
  border: 1px solid var(--steel-200); background: var(--paper); color: var(--ink-900);
  font-size: 12.5px; line-height: 1.5;
}
.quote-drawer__note-field textarea:focus { outline: 0; border-color: var(--brand); background: var(--white); }
.quote-drawer__cta { width: 100%; }
.quote-drawer__links { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.quote-drawer__links button {
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--steel-500);
  text-decoration: underline; text-underline-offset: 3px;
}
.quote-drawer__links button:hover { color: var(--brand); }
.quote-drawer__disclaimer {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.5;
  color: var(--steel-500); text-align: center;
}

.cart-toast {
  position: fixed; z-index: 130; top: 92px; left: 50%;
  display: flex; align-items: center; gap: 16px;
  width: min(440px, calc(100% - 32px)); padding: 11px 14px;
  background: var(--panel); color: #FFFFFF;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.6);
  font-size: 12.5px; line-height: 1.4;
  opacity: 0; transform: translate(-50%, -12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cart-toast[hidden] { display: none; }
.cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast span {
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-toast button {
  flex: 0 0 auto; border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; color: #8FC2FF;
  text-decoration: underline; text-underline-offset: 3px;
}
.cart-toast button:hover { color: #FFFFFF; }
.product-modal {
  width: min(960px, calc(100% - 32px)); max-height: 88vh; padding: 0; border: 0;
  background: var(--white); color: var(--ink-900); position: fixed;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.55);
}
.product-modal::backdrop { background: rgba(5, 9, 14, .62); backdrop-filter: blur(4px); }
.product-modal__close {
  position: absolute; z-index: 5; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 1px solid var(--steel-300);
  background: #F4F6F8; color: #101719; cursor: pointer;
}
.product-modal__close svg { width: 17px; height: 17px; }
#product-modal-body { display: grid; grid-template-columns: 1fr 1fr; max-height: 88vh; }
/* Palco da imagem: o zoom acompanha o cursor (ponteiro fino) e o botão
   fixa a ampliação no toque; sempre com 44 px de alvo no mobile. */
.product-modal__media {
  position: relative; overflow: hidden;
  background: #FFFFFF; display: grid; place-items: center; padding: 28px; min-height: 380px;
  cursor: zoom-in;
}
.product-modal__zoom { position: relative; display: grid; place-items: center; width: 100%; }
.product-modal__media img {
  max-width: 100%; max-height: 500px; object-fit: contain;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: scale(var(--zoom-scale, 1));
  transition: transform .4s var(--ease);
  will-change: transform;
}
.product-modal__media.is-zoomed { cursor: zoom-out; touch-action: none; }
.product-modal__media.is-zoomed img { --zoom-scale: 2.2; }
.product-modal__zoom-hint {
  position: absolute; z-index: 3; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--steel-200);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--steel-600);
  transition: opacity .2s var(--ease);
}
.product-modal__media.is-zoomed .product-modal__zoom-hint { opacity: 0; }
.product-modal__zoom-btn {
  position: absolute; z-index: 3; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--steel-300); background: rgba(255, 255, 255, .94); color: var(--ink-900);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.product-modal__zoom-btn:hover { border-color: var(--brand); color: var(--brand); }
.product-modal__zoom-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.product-modal__zoom-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.product-modal__zoom-btn .zoom-icon-out { display: none; }
.product-modal__zoom-btn[aria-pressed="true"] .zoom-icon-in { display: none; }
.product-modal__zoom-btn[aria-pressed="true"] .zoom-icon-out { display: block; }
@media (hover: none) {
  .product-modal__zoom-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .product-modal__media img { transition: none; }
}
.product-modal__body { padding: 38px 36px 32px; overflow-y: auto; }
.product-modal__body h2 { font-size: clamp(28px, 3vw, 40px); margin: 14px 0 14px; }
.product-modal__body .lead { font-size: 15px; color: var(--steel-600); }
.product-modal__body h3 { font-size: 17px; margin: 24px 0 12px; }
.product-modal__specs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--steel-200); }
.product-modal__specs li { padding: 9px 0 9px 20px; border-bottom: 1px solid var(--steel-200); font-size: 13px; color: var(--steel-700); position: relative; }
.product-modal__specs li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 1px; background: var(--brand); }
.product-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
[data-theme="dark"] .filter-chip { background: var(--white); border-color: var(--steel-200); color: var(--steel-600); }
[data-theme="dark"] .filter-chip.is-active { background: #2F6DB5; border-color: #2F6DB5; color: #FFFFFF; }
[data-theme="dark"] .filter-chip.is-active span { color: #FFFFFF; }
[data-theme="dark"] .catalog-card__cat { background: rgba(14,22,32,.92); color: #DCE6EF; }
[data-theme="dark"] .catalog-card__media { background: #FFFFFF; }
[data-theme="dark"] .catalog-card.is-selected .catalog-card__select { background: #2F6DB5; border-color: #2F6DB5; color: #FFFFFF; }
[data-theme="dark"] .product-modal { background: var(--white); color: var(--ink-900); }
[data-theme="dark"] .product-modal__media { background: #FFFFFF; }
[data-theme="dark"] .product-modal__close { background: #F4F6F8; color: #101719; border-color: #DDE3E4; }
[data-theme="dark"] .catalog-search input { color: var(--ink-900); }
[data-theme="dark"] .catalog-search input::placeholder { color: var(--steel-500); }

@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .catalog-toolbar__meta { align-items: flex-start; }
  .quote-drawer { width: 100%; }
  .quote-drawer__head { padding: 18px 18px 14px; }
  .quote-drawer__close { width: 44px; height: 44px; }
  .quote-drawer__body { padding: 0 18px; }
  .quote-drawer__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
  .quote-item { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; }
  .quote-qty button { width: 38px; height: 38px; }
  .quote-qty__value { min-width: 34px; }
  .quote-item__remove { width: 38px; height: 38px; }
  .cart-toast { top: 80px; }
  #product-modal-body { grid-template-columns: 1fr; overflow-y: auto; }
  .product-modal__media { min-height: 220px; max-height: 280px; padding: 18px; }
  .product-modal__body { padding: 24px 20px 28px; overflow: visible; }
  .product-modal { max-height: 92vh; overflow-y: auto; }
  .catalog-hero h1 { max-width: 12ch; }
}

/* Página de orçamento: seleção em cards + formulário */
.quote-head { max-width: 900px; }
.quote-head h1 { margin: 18px 0 20px; max-width: 20ch; font-size: clamp(38px, 4.6vw, 62px); }
.quote-head .lead { max-width: 62ch; }
.quote-head .small { margin-top: 18px; max-width: 60ch; }
.quote-head__contact { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.quote-head__contact a {
  display: inline-flex; align-items: center; gap: 9px;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--steel-600);
}
.quote-head__contact a:hover { color: var(--brand); border-color: var(--brand); }
.quote-head__contact svg { width: 14px; height: 14px; flex: 0 0 auto; }

.quote-layout {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-top: clamp(30px, 4vw, 48px);
}
.quote-cards { position: sticky; top: 100px; display: grid; gap: 12px; align-content: start; }
.quote-cards__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.quote-cards__head h2 { font-size: 20px; }
.quote-cards__count {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--steel-500);
}
.quote-cards__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quote-item--card {
  grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px;
  padding: 10px; border: 1px solid var(--steel-200); background: var(--white);
}
.quote-item--card .quote-item__thumb { padding: 3px; }
.quote-item--card .quote-item__info strong { font-size: 14px; margin-bottom: 8px; }
.quote-item--card .quote-qty button { width: 28px; height: 28px; }
.quote-item--card .quote-qty__value { min-width: 28px; }
.quote-item--card .quote-item__remove { width: 28px; height: 28px; }
.quote-cards__empty {
  display: grid; justify-items: start; gap: 6px; padding: 20px;
  border: 1px dashed var(--steel-300);
}
.quote-cards__empty p { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.quote-cards__empty span { font-size: 12px; line-height: 1.5; color: var(--steel-500); }
.quote-cards__empty .btn { margin-top: 10px; }
.quote-cards__add {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--brand);
}
.quote-cards__add:hover { border-color: var(--brand); }
.quote-cards__add svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-cards { position: static; }
  .quote-cards__list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 760px) {
  body[data-page="orcamento"] .section--tight { padding-top: 28px; padding-bottom: clamp(48px, 9vw, 80px); }
  .quote-head h1 { margin: 14px 0 16px; max-width: none; font-size: clamp(32px, 8.6vw, 40px); }
  .quote-head .lead { font-size: 15.5px; line-height: 1.55; }
  .quote-head .small { margin-top: 12px; font-size: 12.5px; }
  .quote-head__contact { margin-top: 18px; gap: 8px 18px; }
  .quote-head__contact a { font-size: 9px; }
  .quote-layout { margin-top: 26px; }
  .quote-cards__list { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
  .quote-item--card { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .quote-item--card .quote-qty button { width: 34px; height: 34px; }
  .quote-item--card .quote-item__remove { width: 34px; height: 34px; }
}

/* Estudo de temas */
.theme-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.theme-shot { border: 1px solid var(--steel-200); background: var(--white); overflow: hidden; }
.theme-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--steel-200); }
.theme-shot__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.theme-shot__label strong { font-family: var(--font-display); font-size: 16px; }
.theme-shot__label span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
.theme-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.theme-note { border: 1px solid var(--steel-200); background: var(--white); padding: 20px; }
.theme-note h3 { font-size: 17px; margin: 10px 0 6px; }
.theme-note p { font-size: 13px; color: var(--steel-500); margin: 0; }
.table-scroll { margin-top: 20px; overflow-x: auto; overscroll-behavior-x: contain; }
.theme-table { width: 100%; border-collapse: collapse; }
.theme-table th, .theme-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--steel-200); font-size: 12.5px; }
.theme-table th { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); background: var(--steel-100); }
.theme-table code { font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 900px) {
  .theme-compare { grid-template-columns: 1fr; }
  .theme-notes { grid-template-columns: 1fr; }
}

/* Faixa de manutenção no mobile */
@media (max-width: 900px) {
  .maintenance-grid { grid-template-columns: 1fr; gap: 30px; }
  .maintenance-copy h2 { max-width: none; }
  .maintenance-actions { flex-direction: column; gap: 10px; }
  .maintenance-actions .btn { width: 100%; }
  .maintenance-note { font-size: 11px; }
  .maintenance-item { gap: 14px; padding: 17px 0; }
  .maintenance-item p { font-size: 14px; }
  .maintenance-foot { font-size: 11px; }
}
@media (max-width: 640px) {
  .maintenance-copy h2 { font-size: clamp(28px, 8.4vw, 36px); }
  .maintenance-badge { font-size: 9px; }
}

/* --------------------------------------------------------------------------
   Resultado do envio de orçamento
   -------------------------------------------------------------------------- */
.quote-noscript {
  margin: 0 0 18px; padding: 12px 14px; border-left: 2px solid #B78233;
  background: #FBF4E8; color: #6B5227; font-size: 12px; line-height: 1.6;
}
.quote-noscript a { color: #6B5227; text-decoration: underline; text-underline-offset: 2px; }
.field-note {
  grid-column: 1 / -1; margin: 0; padding: 10px 12px;
  border-left: 2px solid var(--brand-line); background: var(--steel-100);
  color: var(--steel-500); font-size: 11.5px; line-height: 1.55;
}
.form-consent.is-invalid label { color: var(--danger); }
.quote-result {
  margin-top: 22px; padding: 22px 22px 18px;
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  scroll-margin-top: 120px;
}
.quote-result:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.quote-result__head h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 10px 0 10px; }
.quote-result > p { color: var(--steel-600); font-size: 14px; margin: 0 0 4px; }
.quote-priority { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--brand-line); }
.quote-priority .mono { color: var(--brand-dark); font-size: 9px; }
.quote-priority h4 { font-size: 20px; margin: 8px 0 6px; }
.quote-priority p { color: var(--steel-600); font-size: 13.5px; margin: 0; }
.quote-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.quote-result__actions .btn { min-height: 44px; font-size: 13.5px; }
.quote-result__note {
  margin: 12px 0 0 !important; font-family: var(--font-mono); font-size: 10px !important;
  letter-spacing: .07em; text-transform: uppercase; color: var(--steel-500) !important;
}
.quote-result__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--brand-line);
}
.quote-result__link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px;
}
.quote-result__contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 2px 8px; min-width: 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
  color: var(--steel-500); text-align: right;
}
.quote-result__contact a {
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--steel-300);
}
.quote-result__contact a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.quote-result--warning,
.quote-result--error { background: #FBF4E8; border-color: #E0C08A; }
.quote-result--warning .quote-result__head .eyebrow,
.quote-result--error .quote-result__head .eyebrow { color: #8A6328; }
.quote-result--warning > p,
.quote-result--error > p { color: #6B5227; }
.quote-result--warning .quote-result__link,
.quote-result--error .quote-result__link { color: #6B5227; }

[data-theme="dark"] .quote-noscript { background: #2A2418; border-left-color: #B78233; color: #E8D3A8; }
[data-theme="dark"] .quote-noscript a { color: #E8D3A8; }
[data-theme="dark"] .field-note { background: var(--steel-100); color: var(--steel-500); }
[data-theme="dark"] .quote-result { background: var(--brand-soft); border-color: var(--brand-line); }
[data-theme="dark"] .quote-result__head h3 { color: var(--ink-900); }
[data-theme="dark"] .quote-result > p,
[data-theme="dark"] .quote-priority p { color: var(--steel-600); }
[data-theme="dark"] .quote-priority .mono,
[data-theme="dark"] .quote-result__link { color: #B9D6FF; }
[data-theme="dark"] .quote-priority { border-top-color: var(--brand-line); }
[data-theme="dark"] .quote-result__footer { border-top-color: var(--brand-line); }
[data-theme="dark"] .quote-result--warning,
[data-theme="dark"] .quote-result--error { background: #2A2418; border-color: #6B5227; }
[data-theme="dark"] .quote-result--warning .quote-result__head h3,
[data-theme="dark"] .quote-result--error .quote-result__head h3 { color: #F3E6C8; }
[data-theme="dark"] .quote-result--warning .quote-result__head .eyebrow,
[data-theme="dark"] .quote-result--error .quote-result__head .eyebrow { color: #E8C98E; }
[data-theme="dark"] .quote-result--warning > p,
[data-theme="dark"] .quote-result--error > p { color: #E8D3A8; }

@media (max-width: 640px) {
  .quote-result { padding: 18px 16px 16px; }
  .quote-result__actions { flex-direction: column; }
  .quote-result__actions .btn { width: 100%; }
  .quote-result__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quote-result__contact {
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 2px; text-align: left; font-size: 11px;
  }
  .quote-result__contact > span[aria-hidden] { display: none; }
  .quote-result__note, .quote-priority .mono { font-size: 11px !important; }
  .quote-result__link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   Hero full-bleed com vídeo industrial
   -------------------------------------------------------------------------- */
.hero--cover {
  --hero-veil: rgba(246, 247, 244, .62);
  --hero-veil-soft: rgba(246, 247, 244, .24);
  --hero-trust-bg: rgba(246, 247, 244, .80);
  --hero-trust-border: rgba(16, 23, 25, .14);
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: 0; display: flex; flex-direction: column;
  background: #0A1012; color: var(--ink-900);
  overflow: hidden;
}
[data-theme="dark"] .hero--cover {
  --hero-veil: rgba(7, 12, 18, .68);
  --hero-veil-soft: rgba(7, 12, 18, .24);
  --hero-trust-bg: rgba(7, 12, 18, .76);
  --hero-trust-border: rgba(255, 255, 255, .18);
}
.hero--cover::before { display: none; }
.hero--cover::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,9,14,.18) 0%, transparent 24%, transparent 72%, rgba(5,9,14,.24) 100%);
}
/* Palco do vídeo: no desktop é um bloco sem altura (só contém elementos
   absolutos, que se posicionam pela hero). No mobile em retrato ele vira a
   caixa que ocupa o espaço disponível acima do texto. */
.hero-cover__stage { position: static; }

/* Poster: fallback estático quando o vídeo não carrega ou o movimento é reduzido */
.hero-cover__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("img/hero-video-poster.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1.01);
}
.hero-cover__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1.01);
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-cover__video.is-playing { opacity: 1; transition-duration: .55s; }
.hero-cover__video.is-playing.is-looping { opacity: 0; }
.hero-cover__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-veil) 0%, var(--hero-veil) 36%, var(--hero-veil-soft) 55%, transparent 74%);
  -webkit-backdrop-filter: blur(30px) saturate(.88);
  backdrop-filter: blur(30px) saturate(.88);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 76%);
  mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 76%);
}
.hero-cover__content {
  position: relative; z-index: 3; flex: 1; min-height: 0;
  display: flex; align-items: center;
  padding-top: clamp(100px, 12vh, 132px);
  padding-bottom: clamp(16px, 2.6vh, 30px);
}
.hero-copy--cover { max-width: 720px; }
.hero-copy--cover h1 {
  max-width: 12ch;
  font-size: clamp(40px, 4.6vw, 68px);
  margin: clamp(14px, 2vh, 22px) 0 clamp(16px, 2.4vh, 24px);
}
.hero-copy--cover .lead {
  max-width: 48ch;
  font-size: clamp(16.5px, 1.28vw, 19px);
  line-height: 1.55;
  color: var(--ink-800);
}
.hero-copy--cover .hero-note { color: var(--steel-600); margin-top: clamp(14px, 2vh, 22px); }
.hero-cover__meta {
  position: absolute; z-index: 4;
  top: clamp(96px, 11vh, 118px); right: var(--gutter);
  display: flex; align-items: center; gap: 8px;
}
.hero-cover__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: rgba(5, 9, 14, .58);
  border: 1px solid rgba(255, 255, 255, .22); color: #FFFFFF;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-cover__badge::before {
  content: ''; width: 5px; height: 5px; background: #7FB3F0; border-radius: 50%;
}
.hero-video-toggle {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: rgba(5, 9, 14, .66); color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  box-shadow: 0 1px 10px rgba(5, 9, 14, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover { background: rgba(5, 9, 14, .9); border-color: #FFFFFF; }
.hero-video-toggle:focus-visible { outline: 2px solid #8FC2FF; outline-offset: 2px; }
.hero-video-toggle svg { width: 12px; height: 12px; }
.hero-video-toggle .icon-play { display: none; }
.hero-video-toggle[data-state="paused"] .icon-pause { display: none; }
.hero-video-toggle[data-state="paused"] .icon-play { display: block; margin-left: 1px; }
.hero-cover__trust { position: relative; z-index: 3; padding-bottom: clamp(14px, 2.6vh, 28px); }
.trust-bar--cover {
  background: var(--hero-trust-bg);
  border: 1px solid var(--hero-trust-border);
  -webkit-backdrop-filter: blur(18px) saturate(.9);
  backdrop-filter: blur(18px) saturate(.9);
}
.trust-bar--cover div { border-color: var(--hero-trust-border); padding: 16px 22px 18px; }
.trust-bar--cover div:first-child { border-left-color: var(--hero-trust-border); }
.trust-bar--cover strong { color: var(--ink-900); }
.trust-bar--cover span { color: var(--steel-500); }

/* Header transparente sobre a hero da Home */
body.home .site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  background: linear-gradient(to bottom, rgba(5, 9, 14, .90) 0%, rgba(5, 9, 14, .58) 56%, transparent 100%);
  background-origin: border-box;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.home .site-header.is-scrolled {
  background: rgba(246, 247, 244, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--steel-200);
}
[data-theme="dark"] body.home .site-header.is-scrolled { background: rgba(7, 12, 18, .97); }
body.home .site-header:not(.is-scrolled) .nav a,
body.home .site-header:not(.is-scrolled) .header-phone,
body.home .site-header:not(.is-scrolled) .header-whatsapp { color: #FFFFFF; }
body.home .site-header:not(.is-scrolled) .header-contacts > * + * { border-left-color: rgba(255, 255, 255, .34); }
body.home .site-header:not(.is-scrolled) .nav a:hover,
body.home .site-header:not(.is-scrolled) .nav a[aria-current="page"] { color: #8FC2FF; }
body.home .site-header:not(.is-scrolled) .brand .logo-light { display: none; }
body.home .site-header:not(.is-scrolled) .brand .logo-dark { display: block; }
body.home .site-header:not(.is-scrolled) .theme-toggle {
  color: #FFFFFF; border-color: rgba(255, 255, 255, .42);
}
body.home .site-header:not(.is-scrolled) .theme-toggle:hover {
  color: #8FC2FF; border-color: #8FC2FF;
}
body.home .site-header:not(.is-scrolled) .menu-toggle {
  border-color: rgba(255, 255, 255, .42);
}
body.home .site-header:not(.is-scrolled) .menu-toggle span,
body.home .site-header:not(.is-scrolled) .menu-toggle span::before,
body.home .site-header:not(.is-scrolled) .menu-toggle span::after { background: #FFFFFF; }
body.home .site-header:not(.is-scrolled) .btn--sm { background: var(--brand); color: #FFFFFF; }
body.home .hero-actions { margin-top: clamp(18px, 2.8vh, 30px); }

@media (max-width: 900px) {
  .hero--cover { --hero-veil: rgba(246, 247, 244, .66); --hero-veil-soft: rgba(246, 247, 244, .22); }
  [data-theme="dark"] .hero--cover { --hero-veil: rgba(7, 12, 18, .72); --hero-veil-soft: rgba(7, 12, 18, .24); }
  .hero-cover__bg { background-position: 66% center; }
  .hero-cover__video { object-position: 66% 50%; }
  .hero-cover__veil {
    background: linear-gradient(180deg, var(--hero-veil) 0%, var(--hero-veil) 46%, var(--hero-veil-soft) 74%, transparent 100%);
    -webkit-mask-image: none; mask-image: none;
    -webkit-backdrop-filter: blur(15px) saturate(.9);
    backdrop-filter: blur(15px) saturate(.9);
  }
  .hero-cover__content { align-items: center; padding-top: 92px; padding-bottom: 14px; }
  .hero-copy--cover { max-width: 100%; }
  .hero-copy--cover h1 { font-size: clamp(38px, 7.6vw, 54px); max-width: 13ch; }
  .hero-copy--cover .lead { max-width: 46ch; font-size: 16.5px; }
  .hero-cover__meta { top: 88px; right: var(--gutter); }
  .hero-cover__badge { font-size: 7.5px; }
  .hero-cover__trust { padding-bottom: 14px; }
  .trust-bar--cover div { padding: 13px 14px 14px; }
  .trust-bar--cover strong { font-size: 13.5px; }
  .trust-bar--cover span { font-size: 8.5px; letter-spacing: .07em; }
}
@media (max-width: 900px) and (orientation: portrait) {
  /* Retrato: o vídeo vira um palco que ocupa todo o espaço livre acima do
     texto (antes era uma faixa fixa de ~23% da tela). O texto fica no papel
     do tema, logo abaixo, com a chamada sempre acima da dobra. */
  .hero--cover { background: var(--paper); }
  .hero-cover__stage {
    display: block; position: relative;
    flex: 1 1 auto; min-height: 220px; max-height: 62svh;
    overflow: hidden;
  }
  .hero-cover__bg,
  .hero-cover__video {
    inset: 0; height: 100%;
    background-position: 55% 44%;
    object-position: 55% 44%;
    transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
  }
  /* Scrim no topo do palco: legibilidade do logo, do tema e do menu */
  .hero-cover__stage::after {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 58%;
    z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 9, 14, .66) 0%, rgba(5, 9, 14, .26) 62%, transparent 100%);
  }
  .hero--cover::after { display: none; }
  .hero-cover__veil { display: none; }

  .hero-cover__content {
    flex: 0 0 auto;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 8px;
  }
  .hero-copy--cover { max-width: 100%; }
  .hero-copy--cover h1 { font-size: clamp(36px, 5.4vw, 50px); max-width: 15ch; }
  .hero-copy--cover .lead { font-size: 16.5px; }
  .hero-copy--cover .hero-note { display: none; }

  /* Controle do vídeo no canto inferior direito do palco */
  .hero-cover__meta { top: auto; bottom: 12px; right: var(--gutter); left: auto; }
  .hero-cover__badge { display: none; }

  .hero-cover__trust { padding-bottom: 12px; }
  .trust-bar--cover {
    background: var(--hero-trust-bg);
    border: 1px solid var(--hero-trust-border);
    -webkit-backdrop-filter: blur(14px) saturate(.9);
    backdrop-filter: blur(14px) saturate(.9);
  }
  .trust-bar--cover div { border-color: var(--hero-trust-border); }
  .trust-bar--cover div:first-child { border-left-color: var(--hero-trust-border); }
  .trust-bar--cover strong { color: var(--ink-900); }
  .trust-bar--cover span { color: var(--steel-500); }
}

@media (max-width: 640px) {
  /* Telefone: o vídeo ganha quase metade da tela e o texto fica direto ao
     ponto — título, chamadas e diferenciais. O parágrafo de apoio volta a
     aparecer a partir de 641 px, onde há altura para tudo. */
  .hero-cover__stage { max-height: 60svh; }
  .hero-cover__content { padding-top: 16px; padding-bottom: 8px; }
  .hero-copy--cover .lead { display: none; }
  .hero-copy--cover h1 { font-size: clamp(32px, 8.8vw, 42px); margin: 12px 0 14px; max-width: 14ch; }
  .hero-copy--cover .eyebrow { font-size: 8.5px; }
  .hero-actions { margin-top: 20px; gap: 8px; }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  .hero-cover__trust { padding-bottom: 10px; }
  .trust-bar--cover div { padding: 12px 12px 13px; gap: 2px; }
  .trust-bar--cover strong { font-size: 12.5px; line-height: 1.25; }
  .trust-bar--cover span { display: none; }
}


/* Telas muito estreitas (até 360px) */
@media (max-width: 360px) {
  .hero-copy--cover .eyebrow { display: none; }
  .hero-copy--cover h1 { font-size: 30px; margin: 0 0 12px; }
  .hero-copy--cover .lead { font-size: 14.5px; line-height: 1.45; }
  .hero-actions { margin-top: 12px; gap: 6px; }
  .hero-actions .btn { min-height: 44px; font-size: 13px; }
  .hero-cover__content { padding-bottom: 4px; }
  .hero-cover__trust { padding-bottom: 6px; }
  .trust-bar--cover div { padding: 7px 9px 8px; }
  .hero-cover__stage { min-height: 180px; }
}

/* Celular na horizontal: hero compacta, sem barra de confiança */
@media (max-width: 900px) and (max-height: 800px) and (orientation: landscape) {
  .hero--cover { min-height: 100svh; background: #0A1012; }
  .hero-cover__bg {
    inset: 0; height: auto;
    background-position: 72% center;
    transform: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-cover__video {
    inset: 0; height: 100%;
    object-position: 72% 50%;
    transform: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero--cover::after { display: none; }
  .hero-cover__veil {
    display: block;
    background: linear-gradient(90deg, var(--hero-veil) 0%, var(--hero-veil) 40%, var(--hero-veil-soft) 62%, transparent 88%);
    -webkit-backdrop-filter: blur(18px) saturate(.9);
    backdrop-filter: blur(18px) saturate(.9);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 90%);
    mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 90%);
  }
  .hero-cover__content { padding-top: 74px; padding-bottom: 14px; }
  .hero-cover__meta { top: auto; bottom: 14px; right: var(--gutter); left: auto; }
  .hero-copy--cover .lead { display: block; }
  .hero-cover__badge { display: none; }
  .hero-cover__trust { display: none; }
  .hero-copy--cover h1 { font-size: clamp(26px, 7.4vh, 40px); max-width: 17ch; margin: 8px 0 10px; }
  .hero-copy--cover .lead { font-size: 13.5px; line-height: 1.45; max-width: 54ch; }
  .hero-copy--cover .hero-note { display: none; }
  .hero-copy--cover .eyebrow { font-size: 8.5px; }
  .hero-actions { margin-top: 14px; gap: 8px; }
  .hero-actions .btn { width: auto; min-height: 40px; padding: 0 16px; font-size: 12px; }
}


/* Retrato com pouca altura: compacta texto e barra de confiança */
@media (max-width: 900px) and (max-height: 780px) and (orientation: portrait) {
  .hero-cover__stage { min-height: 190px; }
  .hero-cover__content { padding-top: 14px; padding-bottom: 6px; }
  .hero-cover__meta { bottom: 10px; }
  .hero-copy--cover .lead { display: none; }
  .hero-copy--cover h1 { font-size: clamp(26px, 7.4vw, 38px); margin: 8px 0 10px; }
  .hero-copy--cover .eyebrow { font-size: 8px; }
  .hero-actions { margin-top: 12px; gap: 6px; }
  .hero-actions .btn { min-height: 44px; font-size: 13px; }
  .hero-cover__trust { padding-bottom: 4px; }
  .trust-bar--cover div { padding: 9px 10px; }
  .trust-bar--cover strong { font-size: 11.5px; }
  .trust-bar--cover span { display: none; }
}

/* Tablet em pé com pouca altura: sem o parágrafo de apoio o vídeo mantém
   presença de capa em vez de encolher para uma faixa. */
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) and (max-height: 880px) {
  .hero-copy--cover .lead { display: none; }
  .hero-cover__stage { min-height: 260px; }
}

/* Notebooks baixos: compacta a hero sem perder a capa */
@media (min-width: 901px) and (max-height: 800px) {
  .hero-cover__content { padding-top: 92px; padding-bottom: 14px; }
  .hero-copy--cover h1 { font-size: clamp(36px, 4.2vw, 60px); margin: 12px 0 14px; }
  .hero-copy--cover .lead { font-size: 16px; }
  .hero-copy--cover .hero-note { display: none; }
  body.home .hero-actions { margin-top: 18px; }
  .hero-cover__trust { padding-bottom: 12px; }
  .trust-bar--cover div { padding: 12px 18px 13px; }
  .trust-bar--cover strong { font-size: 13.5px; }
  .trust-bar--cover span { font-size: 8.5px; }
}
@media (min-width: 901px) and (max-height: 640px) {
  .hero-cover__trust { display: none; }
  .hero-cover__content { padding-bottom: 26px; }
}

/* Movimento reduzido: mantém o poster estático e dispensa o controle */
@media (prefers-reduced-motion: reduce) {
  .hero-cover__video { display: none; }
  .hero-video-toggle { display: none; }
}

/* Telas muito estreitas: cabe logo + tema + carrinho + menu */
@media (max-width: 380px) {
  .brand img { width: 132px; }
  .header-actions { gap: 6px; }
  .cart-button, .theme-toggle, .menu-toggle { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-drawer[open],
  .quote-drawer.is-closing,
  .quote-drawer[open]::backdrop,
  .quote-drawer.is-closing::backdrop { animation: none; }
  .cart-toast { transition: none; }
}

/* --------------------------------------------------------------------------
   Refinos de toque, leitura e áreas seguras (mobile)
   -------------------------------------------------------------------------- */
@supports (padding: max(0px)) {
  .container {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (max-width: 900px) {
  /* 16 px evita o zoom automático do iOS ao focar um campo */
  .field input, .field select, .field textarea,
  .quote-drawer__note-field textarea { font-size: 16px; }
  .field input, .field select { min-height: 50px; }

  /* Piso de legibilidade para etiquetas mono no mobile */
  .eyebrow { font-size: 11.5px; }
  .hero-cover__badge { font-size: 10px; }
  .hero-copy--cover .eyebrow { font-size: 11px; }
  .trust-bar--cover span { font-size: 11px; line-height: 1.35; }
  .catalog-card__cat, .catalog-card__specs span { font-size: 10.5px; }
  .field label, .quote-drawer__note-field label,
  .footer-col h4, .footer-col__title,
  .form-note, .quote-drawer__disclaimer,
  .quote-head__contact a, .quote-drawer__count,
  .catalog-toolbar__hint { font-size: 11.5px; }
  .step__num, .process-item__num, .solution-card__index,
  .project-card__label, .applications-list .num,
  .engineering-media__badge, .material-chip span,
  .solution-card__foot span, .engineering-media__caption span,
  .project-card__meta span, .content-block__label,
  .gallery figcaption, .related-card span,
  #quote-cards-count, .quote-cards__count,
  .breadcrumb, .breadcrumb a, .breadcrumb span,
  .subnav a, .footer-bottom, .footer-bottom a { font-size: 11px; }

  /* Alvos de toque com pelo menos 44 px */
  .theme-toggle, .cart-button, .menu-toggle { width: 44px; height: 44px; }
  .cta-contact a { min-height: 44px; }
  .footer-bottom { padding: 16px 0; gap: 4px 20px; align-items: flex-start; }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }  .breadcrumb { padding: 8px 0; }
  .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
  .subnav a { min-height: 48px; display: inline-flex; align-items: center; }
  .swatch__meta span, .theme-shot__label span, .theme-table th { font-size: 11px; }
  .form-consent { min-height: 44px; }
  .form-consent input { width: 20px; height: 20px; margin-top: 0; flex: 0 0 auto; accent-color: var(--brand); }
  .hero-video-toggle { width: 44px; height: 44px; }
  .hero-video-toggle svg { width: 14px; height: 14px; }
  .product-modal__close { width: 44px; height: 44px; }
  .filter-chip { min-height: 44px; padding: 11px 15px; font-size: 11.5px; }
  .catalog-card__actions { padding-top: 14px; }
  .catalog-card__detail { min-height: 44px; padding: 0 2px; font-size: 13px; }
  .catalog-card__select { min-height: 44px; padding: 0 18px; font-size: 12px; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; margin-bottom: 0; }
  .footer-col p { margin-bottom: 14px; }
  .footer-col--contact a { align-items: center; }
  .footer-col--contact svg, .footer-contact svg { margin-top: 0; }
  .social a { width: 44px; height: 44px; }
  .quote-head__contact a { min-height: 44px; padding: 10px 0; font-size: 10px; }
  .link-arrow { min-height: 44px; padding-bottom: 0; }
  .breadcrumb a { padding: 8px 0; }
  .cart-toast button { min-height: 44px; padding: 0 8px; }
  .quote-qty button { min-width: 44px; min-height: 44px; }
  .quote-item__remove { width: 44px; height: 44px; }
  .quote-item--card .quote-qty button { width: 44px; height: 44px; min-width: 44px; }
  .quote-item--card .quote-item__remove { width: 44px; height: 44px; }
  .quote-cards__add {
    min-height: 44px; display: inline-flex; align-items: center;
    border-bottom-color: transparent; text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 4px;
    text-decoration-color: var(--steel-300);
  }
  .quote-cards__add:hover { text-decoration-color: var(--brand); }
  .quote-drawer__links button {
    min-height: 44px; padding: 0; font-size: 11.5px;
    display: inline-flex; align-items: center;
  }

  /* Um único container de rolagem no modal de produto */
  .product-modal { max-height: 92svh; overflow: hidden; }
  #product-modal-body { max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; }
  .product-modal__body { overflow: visible; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

  /* O botão flutuante não cobre o "Selecionar" nem os campos do orçamento */
  body[data-page="catalogo"] .wa-float,
  body[data-page="orcamento"] .wa-float { display: none; }

  /* Com diálogo modal aberto, o fundo não rola */
  html.has-dialog, html.has-dialog body { overflow: hidden; }
}

@media (max-width: 980px) {
  .quote-layout { display: flex; flex-direction: column; }
  .quote-cards:has(.quote-cards__empty:not([hidden])) { order: 2; }
}

@media (max-width: 760px) {
  .quote-cards__empty { padding: 16px; gap: 4px; }
  .quote-cards__empty .btn { min-height: 44px; margin-top: 6px; }
}

/* Efeitos de hover não ficam "presos" depois do toque */
@media (hover: none) {
  .solution-card:hover { transform: none; box-shadow: none; }
  .catalog-card:hover { transform: none; box-shadow: none; }
  .solution-card:hover .solution-card__media img,
  .catalog-card:hover .catalog-card__media img { transform: none; }
}

/* Cabeçalho em telas muito estreitas: logo menor, três alvos de 44 px */
@media (max-width: 380px) {
  .header-inner { gap: 4px; }
  .brand img { width: 128px; }
  .header-actions { gap: 6px; }
  .cart-button, .theme-toggle, .menu-toggle { width: 44px; height: 44px; }
}

/* Menu mobile: contato no rodapé e área segura */
.menu-open .mobile-menu { display: flex; flex-direction: column; }
.mobile-menu { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.mobile-menu__contact {
  margin-top: auto; display: grid; gap: 0;
  padding-top: 22px; border-top: 1px solid var(--steel-200);
}
.mobile-menu__contact p {
  margin: 0 0 4px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--steel-500);
}
.mobile-menu__contact a {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 11px 0; min-height: 44px; border-bottom: 0;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--steel-700);
}
.mobile-menu__contact a:hover { color: var(--brand); }
.mobile-menu__contact svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--brand); }

/* Tabela de tokens: lista de cartões no mobile (mesmo padrão da spec-table) */
@media (max-width: 760px) {
  .table-scroll { overflow: visible; }
  .theme-table thead { display: none; }
  .theme-table, .theme-table tbody, .theme-table tr, .theme-table td { display: block; width: 100%; }
  .theme-table tr {
    border: 1px solid var(--steel-200); background: var(--white);
    padding: 12px 14px; margin-top: 10px;
  }
  .theme-table td { border: 0; padding: 2px 0; font-size: 13px; }
  .theme-table td:first-child { margin-bottom: 6px; }
  .theme-table td:first-child code { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
  .theme-table td:nth-child(2)::before,
  .theme-table td:nth-child(3)::before,
  .theme-table td:nth-child(4)::before {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--steel-500);
  }
  .theme-table td:nth-child(2)::before { content: 'Claro · '; }
  .theme-table td:nth-child(3)::before { content: 'Escuro · '; }
  .theme-table td:nth-child(4)::before { content: 'Uso · '; }
}

/* No mobile a lista de seleção cresce com a página (sem rolagem aninhada) */
@media (max-width: 760px) {
  .quote-cards__list { max-height: none; overflow: visible; }
}

@media (max-width: 640px) {
  .block-cards.block-cards--2 { grid-template-columns: 1fr; }
}
