/* ==========================================================================
   AP Equipamentos Industriais — LP Mineração
   Segue o Manual de Identidade Visual 2026 (IDV/Logomarca/…MIV.pdf):
   - Azul Engenharia #0F4797 (principal) · Azul Profundo #011B3F (secundária)
   - Branco Técnico #FFFFFF · Grafite Industrial #3F3F3F · Cinza Estrutural #D3D3D3
   - Preto Técnico #141414
   - Tipografia oficial: Barlow (400–800)
   ========================================================================== */

:root {
  /* Paleta oficial */
  --azul-engenharia: #0F4797;
  --azul-profundo: #011B3F;
  --branco: #FFFFFF;
  --grafite: #3F3F3F;
  --cinza-estrutural: #D3D3D3;
  --preto: #141414;

  /* Derivados funcionais (tons da paleta oficial, sem cor nova de marca) */
  --azul-engenharia-hover: #0B3A7D;
  --azul-destaque: #5B93E0;          /* Azul Engenharia clareado: destaque sobre fundo azul, como nos criativos */
  --azul-tinta: #EDF2FA;             /* Azul Engenharia a 7% sobre branco */
  --cinza-claro: #F4F5F7;            /* "cinza muito claro" permitido pelo manual como fundo */
  --cinza-texto: #6B6B6B;            /* Grafite suavizado para apoio */
  --linha: #E4E4E4;                  /* Cinza Estrutural suavizado para divisores finos */

  --erro: #B4231B;
  --sucesso: #1F7A45;

  --shell: 1200px;
  --radius: 2px;
  --radius-lg: 4px;
  --sp: clamp(64px, 8vw, 120px);
  --shadow-sm: 0 1px 2px rgba(1, 27, 63, .06), 0 10px 28px rgba(1, 27, 63, .07);
  --shadow-md: 0 2px 6px rgba(1, 27, 63, .10), 0 24px 56px rgba(1, 27, 63, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

/* O atributo hidden precisa vencer o display declarado nas classes abaixo. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;                          /* corpo: Regular, entrelinha 1,5 */
  color: var(--grafite);
  background: var(--branco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0; }

/* Título principal: Medium/Semibold, entrelinha 0,98 */
h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.015em;
  color: var(--preto);
}
/* Título secundário: Regular + Bold, entrelinha 1,05 */
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--preto);
}
h1 strong, h2 strong { font-weight: 700; color: var(--azul-engenharia); }
h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--preto);
}

::selection { background: var(--azul-engenharia); color: var(--branco); }

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

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--azul-engenharia); color: var(--branco);
  padding: 12px 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 16px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.shell--narrow { max-width: 880px; }

/* ── Destaque (Bold, caixa alta) ─────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--azul-engenharia);
  margin: 0 0 20px;
}
.eyebrow__num {
  font-weight: 600; font-variant-numeric: tabular-nums;   /* informação técnica */
  padding-right: 12px; border-right: 1px solid currentColor;
  opacity: .6;
}
/* Fio curto sob o título, como nos criativos */
.section__head h2::after,
.hero h1::after,
.problem__text h2::after {
  content: ""; display: block;
  width: 56px; height: 2px; margin-top: 24px;
  background: var(--azul-engenharia);
}

/* ── Botões (Bold, caixa alta) ───────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.1;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), gap .18s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--azul-engenharia); color: var(--branco); }
.btn--primary::after {
  content: ""; width: 18px; height: 10px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h15M12 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h15M12 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease);
}
.btn--primary:hover { background: var(--azul-engenharia-hover); }
.btn--primary:hover::after { transform: translateX(3px); }
.btn--sm.btn--primary::after { width: 15px; }

.btn--ghost { background: transparent; color: var(--azul-engenharia); border-color: var(--cinza-estrutural); }
.btn--ghost:hover { border-color: var(--azul-engenharia); background: var(--azul-tinta); }
.btn--on-dark { color: var(--branco); border-color: rgba(255, 255, 255, .35); }
.btn--on-dark:hover { color: var(--branco); border-color: var(--branco); background: rgba(255, 255, 255, .08); }

.btn[disabled] { opacity: .72; cursor: progress; }
.btn__spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--branco); border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--azul-engenharia); text-decoration: none;
  border-bottom: 1px solid var(--cinza-estrutural); padding-bottom: 3px;
  transition: gap .18s var(--ease), border-color .18s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 12px; border-color: var(--azul-engenharia); }

/* ── Header: assinatura institucional; monograma no celular e ao rolar ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
  transition: box-shadow .2s var(--ease);
}
.header.is-compact { box-shadow: 0 6px 24px rgba(1, 27, 63, .08); }
.header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 108px;
  transition: min-height .2s var(--ease);
}
.header.is-compact .header__inner { min-height: 72px; }
.header__logo { flex: 0 0 auto; display: block; padding: 8px 0; }
/* Assinatura institucional: mínimo digital de 150 px (manual) */
.header__logo-full { width: 160px; height: auto; }
/* Monograma: mínimo digital de 32 px */
.header__logo-mono { display: none; height: 36px; width: auto; }
.header.is-compact .header__logo-full { display: none; }
.header.is-compact .header__logo-mono { display: block; }

.header__nav { display: none; margin-left: auto; gap: 30px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.header__nav a { text-decoration: none; color: var(--grafite); transition: color .16s var(--ease); }
.header__nav a:hover { color: var(--azul-engenharia); }
/* O CTA fica sempre encostado na direita; o menu, quando aparece, ocupa o meio. */
.header .btn { margin-left: auto; }

.btn__short { display: none; }

@media (min-width: 960px) {
  .header__nav { display: flex; }
  .header__nav ~ .btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .header__inner, .header.is-compact .header__inner { min-height: 68px; gap: 12px; }
  .header__logo-full, .header.is-compact .header__logo-full { display: none; }
  .header__logo-mono, .header.is-compact .header__logo-mono { display: block; height: 30px; }
  /* Botão cheio, com seta e sombra: precisa parecer botão à primeira vista. */
  .header .btn--sm {
    min-height: 46px; padding: 0 16px; font-size: 13px; letter-spacing: .05em;
    box-shadow: 0 4px 14px rgba(15, 71, 151, .3);
  }
  .header .btn--sm::after { width: 15px; }
}
@media (max-width: 430px) {
  .header .btn--sm { padding: 0 14px; font-size: 12.5px; letter-spacing: .03em; gap: 8px; }
  .header .btn--sm .btn__full { display: none; }
  .header .btn--sm .btn__short { display: inline; }
}
@media (max-width: 340px) {
  .header__logo-mono, .header.is-compact .header__logo-mono { height: 26px; }
  .header .btn--sm { padding: 0 12px; }
  .header .btn--sm::after { display: none; }
}

/* ── Hero (Azul Profundo, texto branco) ──────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 104px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.hero--dark {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(15, 71, 151, .55) 0%, rgba(1, 27, 63, 0) 60%),
    var(--azul-profundo);
  color: var(--branco);
}
.hero--dark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .25) 70%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .25) 70%);
  pointer-events: none;
}
.hero--dark h1 { color: var(--branco); }
.hero--dark h1 strong { color: var(--azul-destaque); }
.hero--dark .eyebrow { color: var(--azul-destaque); }
.hero--dark h1::after { background: var(--azul-destaque); }

.hero__inner {
  position: relative;
  display: grid; gap: clamp(36px, 4vw, 64px);
  align-items: center;
}
.hero__text { max-width: 640px; }
.hero__lead {
  margin-top: 26px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.25;                         /* subtítulo: Regular, entrelinha 1,25 */
  color: rgba(255, 255, 255, .82);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__media { position: relative; margin: 0; }
.hero__media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
/* Camada azul de contraste sob o selo (manual: "sobre fotografia") */
.hero__media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(1, 27, 63, 0) 55%, rgba(1, 27, 63, .75) 100%);
  pointer-events: none;
}
.hero__badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  color: var(--branco);
  font-size: 15.5px; font-weight: 600; line-height: 1.35;   /* legenda: Medium/Semibold */
}
.hero__badge-pulse {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--azul-destaque); box-shadow: 0 0 0 0 rgba(91, 147, 224, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(91, 147, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 147, 224, 0); }
}

@media (min-width: 920px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}

/* ── Selos de credibilidade (com ícones) ─────────────────────────────── */
.credentials-band { background: var(--branco); border-bottom: 1px solid var(--linha); }
.credentials {
  display: grid; grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
.credentials li {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--linha);
}
.credentials li:last-child { border-bottom: 0; }
.credentials__icon { grid-row: span 2; width: 56px; height: 56px; color: var(--azul-engenharia); }
.credentials__icon svg { width: 100%; height: 100%; }
.credentials__key {
  display: block;
  font-size: 26px; font-weight: 600; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--azul-engenharia); margin: 4px 0 8px;
}
.credentials__val { display: block; font-size: 15.5px; color: var(--cinza-texto); line-height: 1.35; }

@media (min-width: 640px) {
  .credentials { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
  .credentials li { padding: 32px 0; border-bottom: 0; }
  .credentials li:nth-child(n+3) { border-top: 1px solid var(--linha); }
}
@media (min-width: 1000px) {
  .credentials { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .credentials li { grid-template-columns: 1fr; padding: 40px 28px; border-left: 1px solid var(--linha); }
  .credentials li:first-child { border-left: 0; padding-left: 0; }
  .credentials li:nth-child(n+3) { border-top: 0; }
  .credentials__icon { grid-row: auto; width: 52px; height: 52px; margin-bottom: 18px; }
  .credentials__key { margin-top: 0; }
}

/* ── Principais clientes ─────────────────────────────────────────────
   Esteira contínua numa linha só. O desfoque é aplicado em CADA logo, pela
   distância dele até o centro (app.js), e não com uma camada borrada por
   cima: assim não há imagem fantasma nem véu lavando a marca. O par do
   centro fica limpo; quem sai vai desfocando e encolhendo de leve.
   Logos em cor original: é marca de terceiro, não a nossa. */
.clientes {
  background: var(--cinza-claro);
  border-bottom: 1px solid var(--linha);
  padding: clamp(40px, 4.5vw, 60px) 0;
}
.clientes__titulo {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cinza-texto); text-align: center; margin-bottom: clamp(26px, 3vw, 38px);
}

.clientes__esteira {
  position: relative;
  display: flex; width: 100%; overflow: hidden;
  /* as pontas somem, para o logo não aparecer e sumir de repente */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clientes__pista {
  list-style: none; margin: 0; padding: 0 clamp(14px, 2vw, 24px) 0 0;
  flex: 0 0 auto;
  display: flex; align-items: center;
  gap: clamp(30px, 5vw, 56px);
  animation: clientes-esteira 46s linear infinite;
}
.clientes__esteira:hover .clientes__pista,
.clientes__esteira:focus-within .clientes__pista { animation-play-state: paused; }

.clientes__pista li {
  flex: 0 0 auto;
  width: clamp(104px, 26vw, 140px);
  display: flex; align-items: center; justify-content: center;
}
.clientes__pista img {
  width: auto; height: auto;
  max-width: 100%; max-height: 42px;
  object-fit: contain;
  /* o app.js escreve estas três variáveis a cada quadro */
  filter: blur(var(--desfoque, 0px));
  opacity: var(--presenca, 1);
  transform: scale(var(--escala, 1));
  will-change: filter, opacity, transform;
}
@media (min-width: 900px) { .clientes__pista img { max-height: 48px; } }

@keyframes clientes-esteira { to { transform: translateX(-100%); } }

/* Sem animação: faixa parada, tudo nítido, com rolagem no dedo. */
@media (prefers-reduced-motion: reduce) {
  .clientes__pista { animation: none; }
  .clientes__esteira { overflow-x: auto; }
  .clientes__pista img { filter: none; opacity: 1; transform: none; }
}

/* ── Seções ──────────────────────────────────────────────────────────── */
.section { padding: var(--sp) 0; }
.section--alt { background: var(--cinza-claro); }
.section__head { max-width: 780px; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section__sub { margin-top: 18px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.25; color: var(--cinza-texto); }

/* Azul Engenharia: seção de assinatura (processo) */
.section--blue { background: var(--azul-engenharia); color: var(--branco); }
.section--blue h2, .section--blue h3 { color: var(--branco); }
.section--blue h2 strong { color: var(--branco); }
.section--blue .eyebrow { color: rgba(255, 255, 255, .78); }
.section--blue .section__head h2::after { background: var(--branco); }

/* Azul Profundo: setores */
.section--deep {
  background: var(--azul-profundo); color: var(--branco);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.section--deep h2 { color: var(--branco); }
.section--deep h2 strong { color: var(--azul-destaque); }
.section--deep .eyebrow { color: var(--azul-destaque); }
.section--deep .section__head h2::after { background: var(--azul-destaque); }

/* ── Portfólio ─────────────────────────────────────────────────────────
   Card sem efeito de hover (não é link). Só a foto é clicável e abre o
   visualizador; o ícone de lupa fica sempre visível, inclusive no celular. */
.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
.product {
  display: flex; flex-direction: column;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product__media {
  position: relative; display: block; width: 100%;
  padding: 0; margin: 0; border: 0; background: var(--cinza-claro);
  cursor: zoom-in; overflow: hidden;
}
.product__media:focus-visible { outline-offset: -3px; }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(1, 27, 63, .78); color: var(--branco);
}
.product__zoom svg { width: 22px; height: 22px; }
.product__body { padding: 24px 26px 28px; border-top: 2px solid var(--azul-engenharia); }
.product__body p { margin-top: 10px; color: var(--cinza-texto); font-size: 16px; line-height: 1.4; }

/* No celular os cards viram lista horizontal: mesma informação, metade da rolagem. */
@media (max-width: 619px) {
  .products { gap: 14px; }
  .product { flex-direction: row; align-items: stretch; }
  .product__media { flex: 0 0 38%; width: auto; }
  .product__media img { height: 100%; width: 100%; aspect-ratio: auto; min-height: 124px; }
  .product__zoom { right: 8px; bottom: 8px; width: 32px; height: 32px; }
  .product__zoom svg { width: 18px; height: 18px; }
  .product__body { padding: 16px 16px 18px; display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 2px solid var(--azul-engenharia); }
  .product__body h3 { font-size: 17px; }
  .product__body p { margin-top: 6px; font-size: 14.5px; line-height: 1.4; }
}

@media (min-width: 620px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .product--wide {
    grid-column: span 3; flex-direction: row; align-items: stretch;
    background: var(--azul-profundo); border-color: var(--azul-profundo);
  }
  .product--wide .product__media { flex: 0 0 50%; width: auto; }
  .product--wide .product__media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .product--wide .product__body { display: flex; flex-direction: column; justify-content: center; padding: 48px 52px; border-top: 0; }
  .product--wide h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.05; color: var(--branco); }
  .product--wide .product__body p { font-size: 18px; line-height: 1.35; max-width: 42ch; color: rgba(255, 255, 255, .78); }
  .product--wide .link-arrow { color: var(--branco); border-color: rgba(255, 255, 255, .35); align-self: flex-start; }
  .product--wide .link-arrow:hover { border-color: var(--branco); }
}

/* Texto de apoio do campo: conversa com a promessa de que o time identifica a peça. */
.field__ajuda { margin-top: 7px; font-size: 14px; color: var(--cinza-texto); line-height: 1.35; }

/* Segmentos secundários, abaixo do foco de operação. */
.operacao__secundarios {
  margin-top: clamp(28px, 3.5vw, 40px);
  color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.45; max-width: 64ch;
}

/* Nota da visita técnica, ao fim da jornada. */
.process__nota {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.45; max-width: 70ch;
}

/* ── Diferenciais ────────────────────────────────────────────────────── */
.diffs {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
.diff {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-lg);
  padding: 32px 28px 34px;
}
.diff__icon { display: block; width: 68px; height: 68px; color: var(--azul-engenharia); margin-bottom: 26px; }
.diff__icon svg { width: 100%; height: 100%; }
.diff p { margin-top: 14px; color: var(--cinza-texto); font-size: 16px; line-height: 1.5; }

@media (min-width: 640px) { .diffs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .diffs { grid-template-columns: repeat(4, 1fr); } }

/* ── Problema ────────────────────────────────────────────────────────── */
.problem__inner { display: grid; gap: clamp(36px, 4.5vw, 72px); align-items: center; }
.problem__media { margin: 0; position: relative; }
.problem__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
}
/* moldura técnica deslocada, em Azul Engenharia */
.problem__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--azul-engenharia); border-radius: var(--radius-lg);
}
.problem__text h2 { max-width: 20ch; }
.problem__text p { margin-top: 24px; color: var(--grafite); font-size: clamp(17px, 1.5vw, 19px); max-width: 54ch; }
.problem__text p + p { margin-top: 16px; }
.problem__text .btn { margin-top: 34px; }
.problem { position: relative; z-index: 0; }

@media (min-width: 900px) { .problem__inner { grid-template-columns: .95fr 1.05fr; } }
@media (max-width: 899px) { .problem__media::before { inset: 12px -10px -12px 10px; } }

/* ── Como funciona (Azul Engenharia) ───────────────────────────────────
   As etapas acendem uma a uma conforme a rolagem (app.js).
   Desktop: a seção fica fixa enquanto a rolagem avança de 01 a 05.
   Celular/tablet: cada etapa acende ao entrar na tela.
   Sem JS ou com movimento reduzido, todas aparecem acesas. */
.process { background: var(--azul-engenharia); color: var(--branco); }
.process__sticky { padding: var(--sp) 0; }

.steps-wrap { position: relative; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
  position: relative;
}
.step {
  position: relative;
  background: rgba(1, 27, 63, .30);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px 24px;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--branco); color: var(--azul-engenharia);
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.step__icon {
  display: block; width: 52px; height: 52px; color: var(--branco);
  margin: 22px 0 16px;
}
.step__icon svg { width: 100%; height: 100%; }
.step h3 { font-size: 21px; }
.step p { margin-top: 10px; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.45; }

/* Estados controlados pelo JS */
.js-steps .step { opacity: .22; transform: translateY(18px); }
.js-steps .step.is-active { opacity: 1; transform: none; background: rgba(1, 27, 63, .42); border-color: rgba(255, 255, 255, .34); }
.js-steps .step.is-current .step__num { box-shadow: 0 0 0 6px rgba(255, 255, 255, .22); }
.js-steps .step:not(.is-active) .step__num { background: transparent; color: var(--branco); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }

/* Trilho de progresso: vertical no empilhado, horizontal no desktop */
.steps__rail {
  position: absolute; z-index: 0; pointer-events: none;
  left: 48px; top: 50px; bottom: 50px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px);
}
.steps__fill {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--progress, 100%);
  background: var(--branco);
  transition: height .5s var(--ease), width .5s var(--ease);
}
.steps .step { z-index: 1; }

/* Celular: a linha sai de dentro dos cards e vira conector entre eles.
   Os cards são semitransparentes, então qualquer traço por trás apareceria
   por cima do texto. O número fica na coluna da linha, cobrindo-a. */
@media (max-width: 639px) {
  .steps-wrap { padding-left: 58px; }
  .steps__rail { display: none; }
  .step { padding: 22px 22px 26px; }
  .step__num { position: absolute; left: -56px; top: 22px; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: -33px; top: 76px; bottom: -18px; width: 2px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 12px);
  }
  .js-steps .step.is-active:not(:last-child)::before { background: var(--branco); }
}

@media (min-width: 640px) and (max-width: 1059px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__rail { display: none; }
}
@media (min-width: 1060px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .step { padding: 26px 20px 28px; }
  /* A linha começa e termina no centro dos números das pontas, não na borda da seção.
     O recuo à direita é a largura de uma coluna menos a distância do número (20px + 24px). */
  .steps__rail {
    left: 44px; right: calc((100% - 4 * 14px) / 5 - 44px); top: 50px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 12px);
  }
  /* A confirmação repete as 4 etapas seguintes. */
  .steps--static { grid-template-columns: repeat(4, 1fr); }
  .steps-wrap:has(.steps--static) .steps__rail { right: calc((100% - 3 * 14px) / 4 - 44px); }
  .steps__fill { height: 100%; width: var(--progress, 100%); }
}
/* Seção fixa durante a rolagem (desktop com altura suficiente) */
@media (min-width: 1060px) and (min-height: 680px) {
  .js-steps-pinned .process__track { height: 215vh; }
  .js-steps-pinned .process__sticky {
    position: sticky; top: 72px;
    min-height: calc(100vh - 72px);
    display: flex; align-items: center;
    padding: 48px 0;
  }
  .js-steps-pinned .process__sticky > .shell { width: 100%; }
}

/* ── Prova social: 4,8 no Google em destaque ─────────────────────────── */
.proof {
  display: grid; gap: 28px; align-items: stretch;
  grid-template-columns: 1fr;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.proof__rating {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  background: var(--azul-profundo);
  border-radius: var(--radius-lg);
  color: var(--branco);
  text-decoration: none;
}
.proof__score {
  font-size: clamp(88px, 12vw, 148px); font-weight: 600; line-height: .82;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.proof__meta { display: flex; flex-direction: column; gap: 8px; }
.proof__stars { color: var(--azul-destaque); font-size: clamp(26px, 3vw, 34px); letter-spacing: 4px; line-height: 1; }
.proof__label { font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.proof__count {
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .72);
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px;
}
.proof__note { display: flex; align-items: center; }
.proof__note { flex-direction: column; gap: 14px; align-items: flex-start; }
.proof__note p { color: var(--cinza-texto); font-size: 18px; line-height: 1.45; max-width: 52ch; }

.proof__plant { margin: 0; position: relative; }
.proof__plant img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: var(--radius-lg);
}
.proof__plant figcaption {
  margin-top: 14px;
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--cinza-texto);
}

@media (min-width: 860px) { .proof { grid-template-columns: auto 1fr; gap: 56px; } }
@media (max-width: 640px) { .proof__plant img { aspect-ratio: 16 / 10; } }

/* ── Setores (bullets, sem interação) + avaliações do Google ───────── */
.sectors {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; column-gap: 40px;
}
.sectors li {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 20px; font-weight: 600;
}
.sectors svg { width: 40px; height: 40px; color: var(--azul-destaque); flex: 0 0 auto; }
@media (min-width: 560px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
/* São 4 focos de operação: 2 x 2 fica equilibrado, 3 + 1 não. */
@media (min-width: 900px) { .sectors { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }

.reviews { margin-top: clamp(48px, 6vw, 72px); }
.reviews__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 20px;
}
.reviews__stars { color: var(--azul-destaque); font-size: 16px; letter-spacing: 2px; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.review {
  padding: 22px 24px;
  border-left: 2px solid var(--azul-destaque);
  background: rgba(255, 255, 255, .04);
}
.review blockquote { margin: 0; font-size: 17px; line-height: 1.4; color: var(--branco); }
.review__author { margin-top: 12px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .62); }
@media (min-width: 860px) { .reviews__list { grid-template-columns: repeat(3, 1fr); } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--cinza-estrutural); }
.faq__item { border-bottom: 1px solid var(--cinza-estrutural); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; line-height: 1.25; color: var(--preto);
  transition: color .16s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--azul-engenharia); }
.faq__sign { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 18px; height: 2px; background: var(--azul-engenharia);
  transition: transform .22s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__answer { padding: 0 0 28px; max-width: 64ch; }
.faq__answer p { color: var(--grafite); font-size: 17.5px; }

/* ── Chamada final: texto à esquerda, foto à direita ─────────────────── */
.contact { background: var(--cinza-claro); padding: clamp(56px, 7vw, 96px) 0; }
.contact__inner { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.contact__sub { margin-top: 24px; color: var(--grafite); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.3; max-width: 44ch; }
.contact__text .btn { margin-top: 32px; }
.contact__text h2::after {
  content: ""; display: block; width: 56px; height: 2px; margin-top: 24px; background: var(--azul-engenharia);
}
.contact__media { margin: 0; }
.contact__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1fr; } }

/* ── Pop-up do formulário ────────────────────────────────────────────── */
html.has-dialog { overflow: hidden; }

.modal, .lightbox {
  border: 0; padding: 0; margin: auto;
  max-width: none; max-height: none;
  background: transparent; color: inherit;
}
.modal::backdrop { background: rgba(1, 27, 63, .72); backdrop-filter: blur(3px); }
.lightbox::backdrop { background: rgba(1, 12, 30, .92); }

.modal[open] { animation: dialog-in .28s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.modal { width: min(560px, calc(100% - 24px)); }
.modal__panel {
  position: relative;
  max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--branco);
  border-top: 4px solid var(--azul-engenharia);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}
.modal__head { margin-bottom: 26px; padding-right: 44px; }
.modal__head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.modal__head p { margin-top: 14px; font-size: 16.5px; line-height: 1.35; color: var(--grafite); }

.modal__close, .lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cinza-claro); color: var(--azul-profundo);
  transition: background-color .16s var(--ease);
}
.modal__close:hover { background: var(--linha); }
.modal__close svg, .lightbox__close svg { width: 22px; height: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul-profundo);
}
.field input {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--preto);
  background: var(--branco);
  border: 1px solid var(--cinza-estrutural);
  border-radius: var(--radius);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input::placeholder { color: #9A9A9A; }
.field input:focus { outline: none; border-color: var(--azul-engenharia); box-shadow: 0 0 0 3px rgba(15, 71, 151, .16); }
.field.is-invalid input { border-color: var(--erro); }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 27, .14); }
.field__error { margin-top: 7px; font-size: 14px; font-weight: 500; color: var(--erro); }

#lead-form .btn { margin-top: 10px; }
.form__privacy { margin-top: 16px; font-size: 14.5px; font-weight: 500; color: var(--cinza-texto); line-height: 1.35; text-align: center; }
.form__fail {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(180, 35, 27, .07);
  border: 1px solid rgba(180, 35, 27, .25);
  border-radius: var(--radius);
  color: var(--erro); font-size: 15px; line-height: 1.45;
}

.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  padding: 12px 0 8px;
}
.form-success__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--azul-tinta); color: var(--azul-engenharia);
}
.form-success__check svg { width: 30px; height: 30px; }
.form-success p { font-size: clamp(19px, 1.9vw, 22px); font-weight: 600; color: var(--azul-profundo); max-width: 32ch; line-height: 1.25; }

/* ── Visualizador de foto ────────────────────────────────────────────── */
.lightbox { width: 100vw; height: 100dvh; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade-in .2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 120px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-lg);
}
.lightbox__close { top: 18px; right: 18px; background: var(--branco); }
.lightbox__close:hover { background: var(--cinza-claro); }

/* ── Rodapé (Azul Profundo, assinatura principal negativa) ───────────── */
.footer { background: var(--azul-profundo); color: rgba(255, 255, 255, .72); padding: 56px 0; }
.footer__inner { display: grid; gap: 28px; align-items: center; }
/* Assinatura principal completa: mínimo digital de 180 px */
.footer__logo { width: 200px; }
.footer__name { color: var(--branco); font-weight: 600; font-size: 17px; }
@media (min-width: 860px) {
  .footer__inner { grid-template-columns: auto 1fr auto; gap: 56px; }
}

/* ── Página de confirmação (obrigado) ────────────────────────────────── */
.thanks {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(15, 71, 151, .55) 0%, rgba(1, 27, 63, 0) 60%),
    var(--azul-profundo);
  color: var(--branco);
  padding: clamp(56px, 8vw, 104px) 0;
}
.thanks__inner { max-width: 720px; }
.thanks__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--branco);
  margin-bottom: 28px;
}
.thanks__check svg { width: 34px; height: 34px; }
.thanks .eyebrow { color: var(--azul-destaque); }
.thanks h1 { color: var(--branco); font-size: clamp(34px, 5vw, 58px); }
.thanks h1 strong { color: var(--azul-destaque); }
.thanks h1::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 24px; background: var(--azul-destaque); }
.thanks__lead {
  margin-top: 26px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3;
  color: rgba(255, 255, 255, .82); max-width: 54ch;
}

/* Na confirmação as etapas já nascem visíveis: não há rolagem para acompanhar. */
.steps--static .step { opacity: 1; transform: none; }
.thanks__prepare {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.45; max-width: 68ch;
}

.thanks__meanwhile { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
.thanks__meanwhile h2::after {
  content: ""; display: block; width: 56px; height: 2px; margin-top: 24px; background: var(--azul-engenharia);
}
.thanks__meanwhile-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.35; color: var(--cinza-texto); max-width: 46ch; }
.thanks__meanwhile .btn { margin-top: 30px; }
@media (min-width: 900px) { .thanks__meanwhile { grid-template-columns: 1.1fr .9fr; } }

/* ── Movimento reduzido ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
