/* =====================================================================
   Meta Metálicos — Landing Page (teste A/B Google Ads)
   Direção: "Engenharia de Precisão" — aço + navy + blueprint técnico
   Paleta base: azul + branco (identidade do cliente)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca — azul industrial */
  --navy-900: #071a2e;
  --navy-800: #0a2540;
  --navy-700: #0e3a5f;
  --brand-700: #0c4576;
  --brand-600: #0f4c81;
  --brand-500: #1565a8;
  --azure-500: #1e7be0;
  --azure-400: #3f97ef;

  /* Aço / neutros */
  --steel-050: #f5f8fb;
  --steel-100: #eaf0f6;
  --steel-200: #d9e2ec;
  --steel-300: #bccadb;
  --slate-500: #59697c;
  --ink: #0c1b29;

  /* Apoio */
  --wa: #25d366;
  --wa-600: #1ebe5a;
  --amber: #f6a609;      /* usado só p/ destaque de "pronta entrega" */
  --amber-soft: #fff3d6;
  --ok: #1a9d5a;

  --white: #ffffff;

  /* Tipografia */
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;

  /* Espaço / raio / sombra */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 4px 14px rgba(10, 37, 64, .06);
  --shadow-md: 0 8px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(7, 26, 46, .18);
  --ring: 0 0 0 3px rgba(30, 123, 224, .28);

  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* scroll-padding: o header é sticky (72px); sem isso a âncora para com o topo da seção escondido atrás dele */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azure-500); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; color: var(--ink); letter-spacing: -.015em; font-weight: 700; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--azure-400); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-500); font-weight: 600;
}
/* traço preso à 1ª linha: quando o texto quebra no celular, ele não desce para o meio do bloco nem encolhe */
.eyebrow::before { content: ""; flex: none; width: 26px; height: 2px; margin-top: calc(.8em - 1px); background: var(--azure-500); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin: 14px 0 12px; }
.section-head p { color: var(--slate-500); font-size: 1.06rem; }
.text-amber { color: #b9760a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; padding: 15px 26px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--azure-500); color: #fff; box-shadow: 0 10px 24px rgba(30, 123, 224, .35); }
.btn-primary:hover { background: #1a6ecb; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 123, 224, .42); }
.btn-wa { background: var(--wa); color: #06331b; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.btn-wa:hover { background: var(--wa-600); color: #052715; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--brand-600); border-color: var(--steel-200); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--azure-400); color: var(--azure-500); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--steel-200); transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,37,64,.08); }
/* grid de 3 colunas: o nav fica no eixo central da página, independente da largura da logo/CTA */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; justify-self: start; min-width: 0; }
.brand .logo-img, .brand-fallback { flex: none; }
.brand .logo-img { height: 54px; width: auto; }
.brand-fallback { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--brand-600), var(--navy-800));
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: .01em; color: var(--ink); font-weight: 700; }
.brand-word span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--brand-500); margin-top: 3px; }

.nav { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 1.3vw, 20px); justify-self: center; }
.nav a.navlink { color: var(--ink); font-weight: 500; font-size: .95rem; opacity: .8; transition: opacity .15s; white-space: nowrap; }
.nav a.navlink:hover { opacity: 1; color: var(--brand-600); }
.header-cta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; justify-self: end; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-700); font-size: .95rem; white-space: nowrap; }
.header-phone svg { width: 17px; height: 17px; flex: none; }
.header-cta .btn { white-space: nowrap; }
.header-cta .lbl-short { display: none; }
.nav-toggle { display: none; }
@media (max-width: 1400px) { .header-phone { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf2fb; overflow: hidden;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(96deg, rgba(6,20,36,.96) 0%, rgba(6,20,36,.88) 28%, rgba(7,26,46,.58) 56%, rgba(7,26,46,.24) 100%),
    linear-gradient(180deg, rgba(6,20,36,.5) 0%, rgba(6,20,36,.1) 42%, rgba(6,20,36,.6) 100%),
    url("../assets/hero-peneiras.jpg");
  /* webp (metade do peso, pesa no 4G); navegador sem image-set/type() descarta esta linha e fica no jpg acima */
  background-image:
    linear-gradient(96deg, rgba(6,20,36,.96) 0%, rgba(6,20,36,.88) 28%, rgba(7,26,46,.58) 56%, rgba(7,26,46,.24) 100%),
    linear-gradient(180deg, rgba(6,20,36,.5) 0%, rgba(6,20,36,.1) 42%, rgba(6,20,36,.6) 100%),
    image-set(url("../assets/hero-peneiras.webp") type("image/webp"), url("../assets/hero-peneiras.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero::before { /* blueprint grid sutil sobre a foto */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32;
  background-image:
    linear-gradient(rgba(120,170,225,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,225,.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg, #000 55%, transparent);
}
/* padding-block, não o atalho "padding": o atalho zerava o padding-inline do .wrap e o texto encostava na borda da tela */
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; min-height: clamp(500px, 70vh, 660px); padding-block: clamp(52px, 8vw, 92px) clamp(104px, 13vw, 168px); }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: #7fb6f0; }
.hero .eyebrow::before { background: #7fb6f0; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; margin: 18px 0 20px; }
.hero h1 .accent { color: #6db4ff; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.24rem); color: #b8ccdf; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #cadcec; list-style: none; }

/* ---------- Painel de expertise (sobreposto ao hero) ---------- */
.expertise-wrap { position: relative; z-index: 5; margin-top: clamp(-62px, -3.6vw, -40px); margin-bottom: clamp(44px, 6vw, 88px); }
.expertise-panel {
  background: linear-gradient(158deg, rgba(12,44,74,.95), rgba(7,26,46,.97));
  border: 1px solid rgba(125,182,240,.22); border-radius: var(--radius-lg);
  box-shadow: 0 34px 74px rgba(4,14,26,.52), inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: clamp(24px, 3.4vw, 40px); color: #eaf2fb;
}
.ep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.ep-item { display: block; color: inherit; padding-left: clamp(16px, 2vw, 28px); transition: transform .18s ease; }
.ep-item:first-child { padding-left: 0; }
.ep-item:not(:first-child) { border-left: 1px solid rgba(255,255,255,.09); }
.ep-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 15px;
  background: rgba(125,182,240,.10); border: 1px solid rgba(125,182,240,.28); color: #7fb6f0; transition: border-color .18s, color .18s; }
.ep-ic svg { width: 24px; height: 24px; }
.ep-item h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.ep-item p { color: #9fb6cb; font-size: .9rem; line-height: 1.5; }
.ep-item:hover { transform: translateY(-3px); }
.ep-item:hover .ep-ic { border-color: rgba(125,182,240,.6); color: #9fd0ff; }
.ep-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(20px, 2.4vw, 30px); padding-top: clamp(18px, 2vw, 24px); border-top: 1px solid rgba(255,255,255,.09); }
.ep-foot span { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: #cadcec; }
.ep-foot svg { width: 17px; height: 17px; color: #6db4ff; flex: none; }

/* ---------- Diferenciais (band imersivo full-bleed) ---------- */
.band-photo { position: relative; overflow: hidden; color: #eaf2fb; padding: clamp(64px, 9vw, 120px) 0; background-color: var(--navy-900); }
.band-diff {
  background-image:
    linear-gradient(180deg, rgba(6,20,36,.93) 0%, rgba(6,20,36,.82) 42%, rgba(6,20,36,.95) 100%),
    linear-gradient(100deg, rgba(6,20,36,.9), rgba(7,26,46,.6) 72%),
    url("../assets/tela-malha.jpg");
  background-image:
    linear-gradient(180deg, rgba(6,20,36,.93) 0%, rgba(6,20,36,.82) 42%, rgba(6,20,36,.95) 100%),
    linear-gradient(100deg, rgba(6,20,36,.9), rgba(7,26,46,.6) 72%),
    image-set(url("../assets/tela-malha.webp") type("image/webp"), url("../assets/tela-malha.jpg") type("image/jpeg"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.band-photo::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: linear-gradient(rgba(120,170,225,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,225,.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg, #000 60%, transparent); }
.band-inner { position: relative; }
.band-head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 60px); }
.band-head .eyebrow { color: #7fb6f0; } .band-head .eyebrow::before { background: #7fb6f0; }
.band-head h2 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; margin: 14px 0 18px; }
.band-head p { color: #b8ccdf; font-size: 1.08rem; max-width: 580px; margin-bottom: 26px; }
.band-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.band-cols .bc { padding-top: 22px; border-top: 2px solid rgba(125,182,240,.4); }
.band-cols .bc h3 { color: #fff; font-size: 1.16rem; margin-bottom: 10px; }
.band-cols .bc p { color: #a9c0d6; font-size: .95rem; line-height: 1.55; }
.band-cols .bc strong { color: #9fd0ff; }

/* ---------- Equipamentos ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.equip {
  grid-column: span 2; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.equip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.equip .equip-fig {
  aspect-ratio: 16 / 10; background:
    radial-gradient(420px 220px at 70% -10%, rgba(30,123,224,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--brand-700));
  position: relative; display: grid; place-items: center; overflow: hidden;
}
.equip .equip-fig::before { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(120,170,225,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,225,.10) 1px, transparent 1px);
  background-size: 30px 30px; }
.equip .equip-fig svg { width: 62%; height: auto; position: relative; z-index: 1; }

/* Figura com foto real do equipamento (produto recortado sobre fundo branco) */
.equip .equip-fig.photo {
  background:
    radial-gradient(420px 240px at 70% -10%, rgba(30,123,224,.10), transparent 60%),
    linear-gradient(165deg, #f8fbfe, var(--steel-100));
}
.equip .equip-fig.photo::before {
  opacity: .9;
  background-image: linear-gradient(rgba(60,110,170,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(60,110,170,.07) 1px, transparent 1px);
}
.equip .equip-fig.photo img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px;
  position: relative; z-index: 1; mix-blend-mode: multiply;
}
.equip .equip-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.equip .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-500); }
.equip h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.equip p { color: var(--slate-500); font-size: .95rem; flex: 1; }
.equip .equip-spec {
  display: inline-flex; align-self: flex-start; gap: 9px; align-items: center; margin: 16px 0 18px;
  background: var(--navy-800); border: none; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: -.005em;
  padding: 9px 15px; border-radius: 999px; box-shadow: 0 6px 16px rgba(10,37,64,.22);
}
.equip .equip-spec::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure-400); box-shadow: 0 0 0 3px rgba(63,151,239,.25);
}
.equip .equip-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--azure-500); font-size: .95rem; }
.equip .equip-link svg { width: 16px; height: 16px; transition: transform .15s; }
.equip:hover .equip-link svg { transform: translateX(3px); }
.equip.wide { grid-column: span 3; }
.equip.service .equip-fig:not(.photo) { background: linear-gradient(160deg, #123a5f, #0c2f4d); }
.equip .badge-featured { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--amber); color: #3a2703; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; border-radius: 6px; }

/* ---------- Capítulo escuro conectado (Manutenção + Prazo) ---------- */
.chapter { position: relative; overflow: hidden; background-color: var(--navy-900); color: #eaf2fb; }
.chapter-bg { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,20,36,.85), rgba(6,20,36,.66) 45%, rgba(6,20,36,.9)),
    url("../assets/oficina.jpg") center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(6,20,36,.85), rgba(6,20,36,.66) 45%, rgba(6,20,36,.9)),
    image-set(url("../assets/oficina.webp") type("image/webp"), url("../assets/oficina.jpg") type("image/jpeg")); }
.chapter-bg::after { content: ""; position: absolute; inset: 0; opacity: .3;
  background-image: linear-gradient(rgba(120,170,225,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,225,.06) 1px, transparent 1px);
  background-size: 46px 46px; }
.chapter-sec { position: relative; z-index: 1; padding: clamp(56px, 8vw, 100px) 0; }
.chapter-sec .eyebrow { color: #7fb6f0; } .chapter-sec .eyebrow::before { background: #7fb6f0; }

/* Cabecalho do bloco de manutencao */
.maint-head { max-width: 780px; margin-bottom: clamp(30px, 4.4vw, 48px); }
.maint-head h2 { color: #fff; font-size: clamp(25px, 3.9vw, 42px); line-height: 1.1; margin: 14px 0 18px; }
.maint-lead { color: #c2d5e6; font-size: 1.06rem; line-height: 1.62; }
.maint-lead strong { color: #eaf2fb; font-weight: 600; }

/* Video (material do cliente) + passos do processo */
.maint-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 3.6vw, 52px); align-items: start; }

.maint-figure { margin: 0; }
.maint-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #eef2f6;
  border-radius: var(--radius-lg); border: 1px solid rgba(125,182,240,.24);
  box-shadow: 0 26px 58px rgba(3,12,22,.5); object-fit: cover;
}

.maint-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.maint-steps li { display: flex; gap: 16px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.1); }
.maint-steps li:first-child { border-top: none; padding-top: 0; }
.maint-steps li:last-child { padding-bottom: 0; }
.ms-n {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(125,182,240,.1); border: 1px solid rgba(125,182,240,.3); color: #7fb6f0;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.maint-steps h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.maint-steps p { color: #9fb6cb; font-size: .93rem; line-height: 1.55; }

/* Rodape: bullets de servico + CTA */
.maint-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(30px, 4.2vw, 48px);
  padding-top: clamp(24px, 3.2vw, 36px); border-top: 1px solid rgba(255,255,255,.1);
}
.maint2-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }
.maint2-points li { display: flex; gap: 11px; align-items: flex-start; color: #eaf2fb; font-weight: 500; font-size: .95rem; }
.maint2-points .ck { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #47e07f; }

.chapter-delivery { border-top: 1px solid rgba(125,182,240,.14); }
.delivery2-head { max-width: 660px; margin-bottom: clamp(30px,4vw,48px); }
.delivery2-head h2 { color: #fff; font-size: clamp(26px,4vw,42px); margin: 14px 0 14px; }
.delivery2-head p { color: #b8ccdf; }
.delivery2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,40px); }
.delivery2-stats .d2 { padding-top: 22px; border-top: 2px solid var(--amber); }
.delivery2-stats .d2 b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.delivery2-stats .d2:first-child b { color: var(--amber); }
.delivery2-stats .d2 span { display: block; color: #9fb6cb; font-size: .95rem; margin-top: 12px; }

/* ---------- Setores (lista-índice com miniatura do equipamento) ---------- */
.sectors2-top { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(20px,4vw,48px); align-items: end; margin-bottom: clamp(30px,4vw,50px); }
.sectors2-top h2 { font-size: clamp(28px,4.4vw,46px); line-height: 1.06; margin-top: 12px; }
.sectors2-top p { color: var(--slate-500); font-size: 1.02rem; padding-bottom: 6px; }
.sectors2-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px,6vw,90px); }
.s2 { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--steel-200); align-items: start; }
.s2-fig {
  flex: none; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; position: relative;
  background-color: var(--steel-100); border: 1px solid var(--steel-200);
}
.s2-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2-b h3 { font-size: 1.24rem; margin-bottom: 7px; }
.s2-b p { color: var(--slate-500); font-size: .96rem; }

/* ---------- Processo (timeline conectada) ---------- */
.process { background: var(--steel-050); border-block: 1px solid var(--steel-200); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--brand-500), var(--azure-400)); z-index: 0; }
.tl-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.tl-node {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(150deg, var(--brand-600), var(--navy-800)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 0 0 7px var(--steel-050), 0 8px 18px rgba(12,69,118,.28);
}
.tl-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tl-step p { color: var(--slate-500); font-size: .94rem; }

/* ---------- Números (band gráfico escuro) ---------- */
.stats-band { position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 8vw, 96px) 0; background-color: var(--navy-900); }
.stats-bg { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,20,36,.8), rgba(7,26,46,.92)), url("../assets/band-hall.jpg") center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(6,20,36,.8), rgba(7,26,46,.92)),
    image-set(url("../assets/band-hall.webp") type("image/webp"), url("../assets/band-hall.jpg") type("image/jpeg")); }
.stats-bg::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(120,170,225,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,225,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(800px 360px at 85% 0%, #000, transparent); }
.stats-head { position: relative; z-index: 1; text-align: center; max-width: 660px; margin: 0 auto clamp(36px,5vw,56px); }
.stats-head .eyebrow { color: #7fb6f0; margin-inline: auto; } .stats-head .eyebrow::before { background: #7fb6f0; }
.stats-head h2 { color: #fff; font-size: clamp(26px,4vw,42px); margin-top: 14px; }
.stats-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { text-align: center; padding: 8px 22px; position: relative; }
.stat-cell + .stat-cell::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 66px; background: rgba(255,255,255,.18); }
.sb-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.2rem); color: #fff; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.sb-big.sb-sm { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sb-big .u { font-size: .4em; font-weight: 600; color: #9fd0ff; margin-left: 5px; letter-spacing: 0; }
.stat-cell p { color: #b8ccdf; font-size: .95rem; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--steel-200); border-radius: var(--radius-sm); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--azure-400); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 22px; height: 22px; color: var(--brand-500); transition: transform .25s; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 22px; color: var(--slate-500); font-size: .98rem; }

/* ---------- Formulário / CTA final ---------- */
.contact { background: linear-gradient(180deg, var(--steel-050), #fff); border-top: 1px solid var(--steel-200); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
/* sem min-width:0 a coluna não encolhe abaixo do botão mais largo do form e a página toda escorrega para o lado no celular */
.contact-grid > * { min-width: 0; }
.contact-info .eyebrow { margin-bottom: 14px; }
.contact-info h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 16px; }
.contact-info > p { color: var(--slate-500); margin-bottom: 26px; max-width: 440px; }
.info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.info-list a, .info-list div { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 500; }
.info-list .ic { width: 44px; height: 44px; flex: none; border-radius: 11px; background: #fff; border: 1px solid var(--steel-200); display: grid; place-items: center; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.info-list .ic svg { width: 21px; height: 21px; }
.info-list a > span:not(.ic), .info-list div > span:not(.ic) { min-width: 0; overflow-wrap: anywhere; }
.info-list small { display: block; color: var(--slate-500); font-weight: 400; font-size: .82rem; }
.assurance { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.assurance span { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--slate-500); }
.assurance svg { width: 16px; height: 16px; color: var(--ok); }

.form-card { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 34px); }
.form-card .form-head { margin-bottom: 20px; }
.form-card .form-head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .form-head p { color: var(--slate-500); font-size: .94rem; }
.field { margin-bottom: 16px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--azure-500); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--steel-200); border-radius: var(--radius-sm);
  background: var(--steel-050); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--azure-400); background: #fff; box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2359697c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-note { font-size: .8rem; color: var(--slate-500); margin-top: 14px; text-align: center; }
.form-note a { color: var(--brand-500); }
.field-error { display: none; color: #c02626; font-size: .8rem; margin-top: 5px; }
.field.invalid input, .field.invalid select { border-color: #e0a1a1; background: #fdf5f5; }
.field.invalid .field-error { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b8ccdf; padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand-word b { color: #fff; }
.footer-about p { margin: 16px 0; font-size: .95rem; max-width: 320px; color: #97b0c6; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { color: #b8ccdf; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: #6db4ff; flex: none; margin-top: 2px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .84rem; color: #7f97ad; }
.footer-uplevel-credit { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #7f97ad; font-size: .82rem; }
.footer-uplevel-credit img { height: 20px; width: auto; opacity: .75; transition: opacity .2s; }
.footer-uplevel-credit a:hover img { opacity: 1; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #06331b; font-weight: 700; padding: 13px 18px 13px 15px; border: none; border-radius: 999px; box-shadow: 0 12px 34px rgba(37,211,102,.4); transition: transform .18s ease, box-shadow .2s, opacity .2s, visibility .2s; font-family: inherit; }
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .wa-txt { font-size: .95rem; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-float { animation: wa-pulse 2.6s infinite; }

/* ---------- Modal WhatsApp ---------- */
.wa-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.wa-modal[hidden] { display: none; }
.wa-modal-overlay { position: absolute; inset: 0; background: rgba(7,26,46,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: wa-fade .2s ease; }
/* dvh: no Safari do iPhone o vh conta a área atrás da barra de endereço e o fim do card ficava escondido */
.wa-modal-card { position: relative; width: 100%; max-width: 448px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 32px); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; animation: wa-pop .24s ease; }
@keyframes wa-fade { from { opacity: 0; } }
@keyframes wa-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.wa-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--steel-200); background: #fff; color: var(--slate-500); display: grid; place-items: center; transition: background .15s, color .15s; }
.wa-modal-close:hover { background: var(--steel-050); color: var(--ink); }
.wa-modal-close svg { width: 20px; height: 20px; }
.wa-modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-right: 34px; }
.wa-modal-ic { width: 50px; height: 50px; flex: none; border-radius: 13px; background: var(--wa); color: #06331b; display: grid; place-items: center; }
.wa-modal-ic svg { width: 27px; height: 27px; }
.wa-modal-head h3 { font-size: 1.32rem; }
.wa-modal-head p { color: var(--slate-500); font-size: .9rem; margin-top: 3px; }
body.modal-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Thank you page ---------- */
.ty { min-height: 100vh; display: grid; place-items: center; text-align: center; color: #eaf2fb; padding: 40px var(--gutter);
  background: radial-gradient(900px 480px at 50% -10%, rgba(30,123,224,.3), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--brand-700)); position: relative; overflow: hidden; }
.ty::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(120,170,225,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,225,.075) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(180deg,#000 60%, transparent); }
.ty-inner { position: relative; max-width: 620px; }
.ty .check { width: 88px; height: 88px; border-radius: 50%; background: rgba(37,211,102,.16); border: 1px solid rgba(37,211,102,.5); display: grid; place-items: center; margin: 0 auto 26px; }
.ty .check svg { width: 44px; height: 44px; color: #47e07f; }
.ty h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); margin-bottom: 16px; }
.ty p { color: #b8ccdf; font-size: 1.1rem; margin-bottom: 12px; }
.ty .next { background: rgba(9,30,52,.5); border: 1px solid rgba(125,182,240,.24); border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; text-align: left; }
.ty .next h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; font-family: var(--font-head); }
.ty .next ol { margin: 0; padding-left: 0; list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 12px; }
.ty .next li { counter-increment: n; display: flex; gap: 13px; align-items: flex-start; color: #cadcec; font-size: .98rem; }
.ty .next li::before { content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--azure-500); color: #fff; font-family: var(--font-mono); font-size: 13px; display: grid; place-items: center; font-weight: 600; }
.ty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ty .home-link { display: inline-flex; align-items: center; gap: 8px; color: #9fc4f0; margin-top: 26px; font-size: .95rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .expertise-wrap { margin-top: clamp(-52px, -6vw, -34px); }
  .ep-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 22px; }
  .ep-item { padding-left: 0; border-left: none !important; }
  .ep-item:nth-child(n+3) { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); }
  .contact-grid { grid-template-columns: 1fr; }
  .band-cols { grid-template-columns: repeat(2, 1fr); gap: 26px 34px; }
  .maint-split { grid-template-columns: 1fr; gap: 30px; }
  .maint-foot { flex-direction: column; align-items: flex-start; }
  .sectors2-top { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat-cell:nth-child(3)::before { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .timeline::before { display: none; }
  .tl-node { box-shadow: 0 8px 18px rgba(12,69,118,.28); }
  .equip, .equip.wide { grid-column: span 3; }
  .equip-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
/* Colapso do menu antes de apertar demais (mantém tudo em 1 linha no desktop) */
@media (max-width: 1240px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--steel-200); background: #fff; color: var(--ink); }
  /* justify-self: stretch. Com o "center" herdado do desktop, o menu aberto encolhia para uma caixinha no meio da tela */
  .nav.open { display: flex; justify-content: flex-start; justify-self: stretch; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--steel-200); padding: 6px var(--gutter) 14px; box-shadow: var(--shadow-md); z-index: 60; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav.open a.navlink { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--steel-100); font-size: 1.02rem; opacity: 1; }
  .nav.open a.navlink:last-child { border-bottom: none; }
}
@media (max-width: 760px) {
  .equip, .equip.wide { grid-column: span 6; }
  .band-cols { grid-template-columns: 1fr; gap: 0; }
  .band-cols .bc { margin-top: 20px; padding-top: 20px; }
  .band-cols .bc:first-child { margin-top: 0; }
  .delivery2-stats { grid-template-columns: 1fr; gap: 0; }
  .delivery2-stats .d2 { margin-top: 22px; }
  .delivery2-stats .d2:first-child { margin-top: 0; }
  .sectors2-list { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; gap: 0; }
  .field.row .field { margin-bottom: 16px; }
  .hero-actions .btn { flex: 1; }
  .wa-float .wa-txt { display: none; }
  .wa-float { padding: 15px; }
  /* o botão flutuante sai de cena enquanto o CTA do hero ou o formulário estão na tela (main.js), para não cobrir os botões */
  .wa-float.is-tucked { opacity: 0; visibility: hidden; transform: translateY(18px) scale(.9); pointer-events: none; }
  .footer-grid { grid-template-columns: 1fr; }
  /* folga no fim da página para o botão flutuante não cobrir a última linha do rodapé */
  .site-footer { padding-bottom: 92px; }
  .band-head h2 br, .sectors2-top h2 br { display: none; }
}
@media (max-width: 520px) {
  .s2 { gap: 15px; }
  .s2-fig { width: 68px; height: 68px; border-radius: 12px; }
  /* painel de expertise em lista compacta (ícone à esquerda): empilhado em blocos ocupava quase duas telas */
  .ep-grid { grid-template-columns: 1fr; gap: 0; }
  .ep-item { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.09); }
  .ep-item:first-child { padding-top: 0; border-top: none; }
  .ep-item:nth-child(n+3) { padding-top: 18px; }
  .ep-ic { grid-row: 1 / span 2; width: 42px; height: 42px; margin-bottom: 0; border-radius: 11px; }
  .ep-ic svg { width: 21px; height: 21px; }
  .ep-item h3 { font-size: 1.02rem; margin: 2px 0 5px; }
  .ep-item p { font-size: .88rem; }
  .ep-foot { gap: 10px; }
  /* logo escala pela largura: com altura fixa ele era espremido pelo CTA e virava uma faixa de ~20px */
  .brand { justify-self: stretch; }
  .brand .logo-img { height: auto; width: 100%; max-width: 190px; }
  .header-inner { gap: 10px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { padding: 12px 16px; font-size: .92rem; }
  .header-cta .lbl-long { display: none; }
  .header-cta .lbl-short { display: inline; }
  /* botões podem quebrar linha em vez de vazar da tela */
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn-lg { padding: 16px 22px; }
  /* com o texto podendo quebrar, os dois CTAs caberiam lado a lado com 3 linhas cada: força um por linha */
  .hero-actions .btn { flex: 1 1 100%; }
  .form-card { padding: 22px 18px; }
  .wa-modal { padding: 12px; }
  .wa-modal-card { padding: 22px 18px; }
  .wa-modal-head { gap: 12px; margin-bottom: 16px; padding-right: 40px; }
  .wa-modal-ic { width: 42px; height: 42px; border-radius: 11px; }
  .wa-modal-ic svg { width: 23px; height: 23px; }
  .wa-modal-head h3 { font-size: 1.16rem; }
  .wa-modal-head p { font-size: .86rem; }
  .wa-modal .field { margin-bottom: 12px; }
  .wa-modal .field textarea { min-height: 72px; }
}
@media (max-width: 460px) {
  .stats-row, .timeline { grid-template-columns: 1fr; }
  .stat-cell + .stat-cell::before { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .eyebrow { letter-spacing: .12em; }
}
/* telas muito estreitas (iPhone SE 1ª geração, Galaxy Fold fechado): o CTA do header sai, o hero e o botão flutuante já levam ao orçamento */
@media (max-width: 359px) {
  .header-cta .btn-primary { display: none; }
}
/* toque não tem hover: sem isso o card/botão fica "levantado" depois do toque */
@media (hover: none) {
  .btn:hover, .equip:hover, .ep-item:hover, .wa-float:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}
