/* ===========================================================================
   HOME V3 — INSTITUCIONAL
   ---------------------------------------------------------------------------
   Sistema visual herdado da landing page que esta convertendo
   (lp.tetrixlog.com.br): mesmos tokens, mesmos raios, mesma tipografia.
   Quem chega pelo anuncio, cai na LP e depois clica no site precisa sentir
   que e a mesma empresa.

   Diferenca proposital para o resto do site (assets/tetrix.css): os raios
   aqui sao curtos (8/10px) e nao 28/18px. Nao "corrigir" para igualar o
   site antigo — e a LP que manda nesta pagina.

   O JS vem de ../assets/tetrix.js, que ja traz motor de lead (Supabase +
   EmailJS + fallback WhatsApp), mascara de telefone, armadilha anti-robo,
   reveal e rastreamento. Por isso a marcacao usa os ganchos dele:
   .nav .burger .menu .reveal .fgroup .field .msg .banner .hp
   [data-lead] [data-role] [data-mask] [data-cta] [data-wpp] .js-ano
   =========================================================================== */

:root {
  --navy: #0F2030;
  --navy-2: #16293B;
  --navy-800: #0C1926;
  --orange: #F96400;
  --orange-2: #FF7D1F;
  --orange-soft: rgba(249, 100, 0, .1);

  /* Laranja como TEXTO sobre fundo claro precisa ser mais escuro: #F96400
     em branco da 2,9:1 e reprova no WCAG AA. Este da 5,0:1. */
  --orange-tx: #B34700;

  --gray: #DCDCDC;
  --paper: #FFFFFF;
  --paper-2: #F4F6F8;
  --paper-3: #EEF1F4;
  --ink: #0F2030;
  --muted: #5F6F7D;
  --muted-2: #8A99A6;
  --line: #E6EAEE;

  /* Contorno de campo precisa de 3:1 contra o fundo (WCAG 1.4.11).
     O --line (1,3:1) serve para divisoria, nunca para borda de input.
     #949494 daria 3,03:1 sobre branco puro, mas o campo tem fundo #FAFBFC
     e ai cai para 2,93:1 — reprova. Medido: este tom da 3,11:1. */
  --line-ctl: #8F8F8F;

  --wpp: #117F43;
  --wpp-h: #0C6C39;
  --ok: #0B7A54;
  --erro: #B3261E;

  --shadow-sm: 0 6px 20px -10px rgba(15, 32, 48, .18);
  --shadow: 0 22px 50px -24px rgba(15, 32, 48, .28);
  --shadow-orange: 0 16px 34px -12px rgba(249, 100, 0, .45);

  --r: 8px;
  --r-lg: 10px;
  --r-pill: 6px;
  --maxw: 1180px;
  --ff: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ff); color: var(--ink); background: var(--paper);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
.sec.soft { background: var(--paper-2); }

.pular {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--r) 0; font-weight: 700;
}
.pular:focus { left: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--orange-tx);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; flex: none; }
.eyebrow.claro { color: var(--orange-2); }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.sec-head .hl { color: var(--orange-tx); }

/* ---- Botoes -------------------------------------------------------------
   Fundo laranja com texto branco so passa no AA se o laranja escurecer.
   #F96400 + branco = 2,9:1. Por isso o botao usa um laranja proprio.      */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff); font-weight: 700; font-size: .95rem; padding: 15px 30px;
  border-radius: var(--r-pill); cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: #C24E00; color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { transform: translateY(-2px); background: #A84300; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-ctl); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-tx); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); }
.btn-wpp { background: var(--wpp); color: #fff; }
.btn-wpp:hover { transform: translateY(-2px); background: var(--wpp-h); }
.btn-lg { padding: 18px 38px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---- Faixa de utilidades + cabecalho ----------------------------------- */
.util { background: var(--navy-800); color: #CDD7DF; font-size: .82rem; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; gap: 16px; }
.util a { display: inline-flex; align-items: center; gap: 7px; color: #CDD7DF; transition: color .2s; }
.util a:hover { color: #fff; }
.util .u-left { display: flex; gap: 24px; align-items: center; }
.util svg { width: 14px; height: 14px; color: var(--orange-2); flex: none; }
.util .u-right { display: flex; gap: 14px; align-items: center; }
.util .u-right a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); justify-content: center; }
.util .u-right a svg { width: 13px; height: 13px; color: #fff; }

header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .93); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
/* O tetrix.js poe .scrolled no .nav (nao no header), por isso o :has(). */
header:has(.nav.scrolled) { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; transition: padding .3s; }
.nav.scrolled { padding: 11px 0; }
.logo-img { height: 46px; width: auto; transition: height .3s; }
.nav.scrolled .logo-img { height: 40px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--navy); transition: color .2s; }
.nav-links a:hover { color: var(--orange-tx); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Gaveta do celular */
.menu {
  display: none; position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); z-index: 90;
  background: var(--navy); padding: 92px 26px 26px; flex-direction: column; gap: 4px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
}
.menu.open { display: flex; }
.menu a { color: #E7EDF2; font-weight: 600; font-size: 1.02rem; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.menu a:hover { color: var(--orange-2); }
.menu .btn { margin-top: 18px; border-bottom: 0; color: #fff; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(9, 18, 28, .96) 0%, rgba(9, 18, 28, .88) 42%, rgba(9, 18, 28, .5) 76%, rgba(9, 18, 28, .3) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 104px 0 116px; max-width: 760px; }
.hero .eyebrow { color: var(--orange-2); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; }
.hero h1 .hl { color: var(--orange-2); }
.hero .sub { font-size: 1.16rem; color: #CBD6DF; margin-top: 24px; max-width: 580px; font-weight: 400; }
.hero .sub b { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--navy);
  border-radius: 8px; padding: 7px 16px 7px 7px; font-size: .85rem; font-weight: 600;
  margin-bottom: 24px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
}
.hero-badge .hb-tx { line-height: 1.3; text-align: left; }
.hero-badge b { font-weight: 800; }
.hero-badge .hb-ic { width: 28px; height: 28px; border-radius: 6px; background: #C24E00; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hero-badge .hb-ic svg { width: 16px; height: 16px; color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; }
.hero-trust span { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: #E7EDF2; }
.hero-trust > span > svg { width: 19px; height: 19px; color: var(--orange-2); flex: none; }

/* ---- Faixa de numeros ---------------------------------------------------- */
/* ATENCAO: escopado em `section.stats` de proposito. `sobre.html` usa
   `<div class="stats">` para outra coisa, dentro de uma secao navy — sem o
   escopo, estas regras pintavam aquele bloco de branco e o texto claro
   sumia (medido: 1,54:1). Mesma familia de erro do `.hero`. */
section.stats { background: var(--paper); }
section.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: -46px; position: relative; z-index: 5; }
section.stats .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; text-align: center; box-shadow: var(--shadow); }
section.stats .stat .ic { width: 44px; height: 44px; border-radius: 8px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
section.stats .stat .ic svg { width: 22px; height: 22px; color: var(--orange-tx); }
section.stats .stat b { display: block; font-size: 2.1rem; font-weight: 900; color: var(--navy); letter-spacing: -.03em; line-height: 1.05; }
section.stats .stat b .pre { font-size: 1.1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; vertical-align: 2px; margin-right: 4px; }
section.stats .stat > span { display: block; color: var(--muted); font-weight: 600; font-size: .88rem; margin-top: 4px; line-height: 1.35; }

/* ---- Historia ------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media .ph { position: relative; aspect-ratio: 4 / 3.6; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(155deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow); }
.about-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge {
  position: absolute; right: -16px; bottom: -16px; width: 154px; height: 154px; border-radius: 16px;
  background: #C24E00; color: #fff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; box-shadow: var(--shadow-orange); border: 6px solid #fff;
}
.about-media .badge b { font-size: 2.3rem; font-weight: 900; line-height: 1; }
.about-media .badge span { font-size: .72rem; font-weight: 600; margin-top: 6px; max-width: 112px; line-height: 1.25; }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 20px; }
.about-copy h2 .hl { color: var(--orange-tx); }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy p b { color: var(--navy); }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; }
.about-list li { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.about-list li .chk { width: 24px; height: 24px; border-radius: 6px; background: var(--orange-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.about-list li .chk svg { width: 13px; height: 13px; color: var(--orange-tx); }

/* ---- O que fazemos ------------------------------------------------------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sol-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.sol-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sol-card:hover::after { transform: scaleY(1); }
.sol-card .ic { width: 58px; height: 58px; border-radius: 9px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background .25s; }
.sol-card:hover .ic { background: #C24E00; }
.sol-card .ic svg { width: 30px; height: 30px; color: #fff; }
.sol-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.sol-card p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; flex: 1; }
.sol-card .more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .86rem; color: var(--orange-tx); }
.sol-card .more svg { width: 15px; height: 15px; transition: transform .2s; }
.sol-card:hover .more svg { transform: translateX(4px); }

/* ---- Compromissos -------------------------------------------------------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; position: relative; }
.proc-line { position: absolute; top: 34px; left: 17%; right: 17%; height: 2px; background: repeating-linear-gradient(90deg, var(--gray) 0 8px, transparent 8px 16px); z-index: 0; }
.proc-step { position: relative; z-index: 1; text-align: center; }
.proc-step .num { width: 70px; height: 70px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: 900; font-size: 1.5rem; color: var(--navy); transition: .25s; }
.proc-step:hover .num { background: #C24E00; color: #fff; border-color: #C24E00; transform: translateY(-4px); }
.proc-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.proc-step p { color: var(--muted); font-size: .92rem; max-width: 320px; margin: 0 auto; }

/* ---- Credenciais --------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; transition: transform .2s, box-shadow .2s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feat-card .ic { width: 48px; height: 48px; border-radius: 8px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-card .ic svg { width: 24px; height: 24px; color: var(--orange-tx); }
.feat-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feat-card p { color: var(--muted); font-size: .88rem; }

/* ---- Depoimentos --------------------------------------------------------- */
.test { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.test-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .9; }
.test-ov { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 25, 38, .82), rgba(12, 25, 38, .92)); }
.test .wrap { position: relative; z-index: 2; }
.test .sec-head h2 { color: #fff; }
.test .sec-head p { color: #AEBCC8; }
.test-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.test-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); padding: 30px 26px; }
.test-card p { color: #DBE3EA; font-size: .96rem; }
.test-who { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.test-who .av { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .4); color: #9FB0BD; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.test-who b { display: block; font-size: .95rem; }
.test-who small { color: #9FB0BD; font-size: .82rem; }

/* Marcacao honesta de espaco vago. Enquanto nao houver depoimento real,
   a pagina diz isso em vez de inventar cliente — inventar prova social e
   justamente o que destroi a confianca que esta pagina existe para criar. */
.test-card.vago { border-style: dashed; background: rgba(255, 255, 255, .03); }
.test-card.vago p { color: #AEBCC8; font-style: italic; }
.selo-vago {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(249, 100, 0, .18);
  border: 1px solid rgba(255, 125, 31, .5); color: #FFB27A; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 5px; margin-bottom: 14px;
}

/* ---- Segmentos ----------------------------------------------------------- */
.seg-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.seg-tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy); box-shadow: var(--shadow-sm); }
.seg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.seg-tile:hover img { transform: scale(1.06); }
.seg-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 25, 38, .1) 30%, rgba(12, 25, 38, .9)); }
.seg-name { position: absolute; left: 20px; right: 16px; bottom: 16px; z-index: 2; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.seg-tile.big { grid-column: span 2; grid-row: span 2; }
.seg-tile.big .seg-name { font-size: 1.6rem; }
.seg-tile.big .seg-name small { display: block; font-size: .9rem; font-weight: 500; color: #CBD6DF; margin-top: 6px; }

/* ---- Contato ------------------------------------------------------------- */
/* O selo "Resposta em ate 24h" fica em top:-15px e a secao tem
   overflow:hidden. Sem padding vertical o selo nasce acima do limite da
   secao e aparece cortado pela metade — era o que estava na tela. */
.cb { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(56px, 7vw, 92px) 0; }
.cb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .9; }
.cb-ov { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12, 25, 38, .94), rgba(12, 25, 38, .62)); }
.cb .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.cb-copy .eyebrow { color: var(--orange-2); margin-bottom: 16px; }
.cb-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cb-copy p { color: #C6D2DC; margin-top: 16px; }
.cb-points { margin-top: 22px; display: grid; gap: 12px; }
.cb-points li { display: flex; align-items: center; gap: 11px; font-weight: 600; color: #E7EDF2; font-size: .95rem; }
.cb-points svg { width: 20px; height: 20px; color: var(--orange-2); flex: none; }
.cb-form { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); position: relative; }
.cb-badge { position: absolute; top: -15px; left: 24px; background: #C24E00; color: #fff; border-radius: 8px; padding: 8px 14px; font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px -8px rgba(249, 100, 0, .55); z-index: 3; }
.cb-badge svg { width: 15px; height: 15px; }
.cb-form h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 6px; }
.cb-form .fs { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }

/* Campos: os nomes de classe vem do motor em ../assets/tetrix.js. */
.fgroup { margin-bottom: 12px; }
.fgroup label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.fgroup label .hint { font-weight: 500; color: var(--muted); }
.field {
  width: 100%; font-family: var(--ff); font-size: 16px; color: var(--ink); padding: 13px 15px;
  border: 1.5px solid var(--line-ctl); border-radius: 8px; background: #FAFBFC; transition: .2s;
}
.field::placeholder { color: #7A8794; }
.field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 100, 0, .18); background: #fff; }
select.field { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6F7D' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgroup .msg { display: none; font-size: .78rem; color: var(--erro); font-weight: 600; margin-top: 5px; }
.fgroup.bad .field { border-color: var(--erro); background: #FFF6F5; }
.fgroup.bad .msg { display: block; }
.banner { display: none; background: #FFF6F5; border: 1px solid #F3C9C5; color: #8A1D17; border-radius: var(--r); padding: 13px 15px; font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.banner.show { display: block; }
.cb-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .76rem; color: var(--muted); margin-top: 12px; text-align: center; }
.cb-note svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.cb-ok { display: none; text-align: center; padding: 22px 6px; }
.cb-ok.show { display: block; }
.cb-ok svg { width: 52px; height: 52px; color: var(--ok); margin: 0 auto 12px; }
.cb-ok h3 { font-size: 1.25rem; color: var(--navy); }
.cb-ok p { color: var(--muted); margin-top: 8px; font-size: .94rem; }

/* Armadilha anti-robo: display:none e obrigatorio. Escondida so com
   opacity/clip ela continua no layout e o navegador preenche — foi assim
   que lead real ficou preso em "Aguarde um instante". */
.hp { display: none !important; }

/* ---- Area de atuacao ----------------------------------------------------- */
.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border: 1px solid var(--line); }
.map-info { padding: 44px 40px; }
.map-info h2 { font-size: 1.7rem; margin-bottom: 8px; }
.map-info .eyebrow { margin-bottom: 14px; }
.map-info > p { color: var(--muted); margin-bottom: 22px; }
.map-info .row { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
.map-info .row svg { width: 22px; height: 22px; color: var(--orange-tx); flex: none; margin-top: 2px; }
.map-info .row b { display: block; font-size: .95rem; }
.map-info .row span { color: var(--muted); font-size: .9rem; }
.map-visual { position: relative; min-height: 340px; overflow: hidden; background: var(--navy); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transform: scale(1.9); transform-origin: 62% 49%; }
.map-badge { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: #fff; padding: 8px 16px; border-radius: 6px; font-weight: 700; font-size: .82rem; color: var(--navy); box-shadow: var(--shadow-sm); white-space: nowrap; z-index: 2; }

/* ---- Chamada final ------------------------------------------------------- */
.final {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, .09) 1.5px, transparent 1.5px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1.5px, transparent 1.5px) 0 0 / 40px 40px,
    linear-gradient(130deg, #A84300, #C24E00);
}
.final .wrap { position: relative; z-index: 2; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.final p { font-size: 1.15rem; margin: 16px auto 0; opacity: .95; max-width: 620px; }
.final-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---- Rodape -------------------------------------------------------------- */
footer { background: var(--navy-800); color: #fff; padding: 70px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-brand .logo-img { height: 54px; margin-bottom: 20px; }
.foot-brand p { color: #9FB0BD; font-size: .94rem; max-width: 330px; }
.foot-social { display: flex; gap: 12px; margin-top: 22px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; color: #C3CFD9; transition: background .2s, color .2s; }
.foot-social a:hover { background: #C24E00; color: #fff; }
.foot-social svg { width: 18px; height: 18px; }
.foot-col h5 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2); margin: 0 0 18px; font-weight: 700; }
.foot-col a, .foot-col p { display: block; color: #AFBECA; font-size: .92rem; margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; color: #8695A3; font-size: .82rem; }
.foot-bottom a { color: #AFBECA; }

/* ---- WhatsApp flutuante + barra fixa do celular -------------------------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 70; background: var(--wpp); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px -8px rgba(17, 127, 67, .55); transition: transform .2s; }
.wa:hover { transform: translateY(-3px) scale(1.05); }
.wa svg { width: 32px; height: 32px; }
.mobile-cta { display: none; }

/* ---- Reveal (classe lida pelo tetrix.js) --------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===================================================== RESPONSIVO ========= */
@media (max-width: 1020px) {
  section.stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sec { padding: 72px 0; }
  .util .u-left a[href^="mailto:"] { display: none; }
  .nav-links { display: none; }
  .burger { display: block; }
  .hero-inner { padding: 80px 0 110px; max-width: 100%; }
  section.stats .wrap { margin-top: -34px; }
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-media { order: -1; max-width: 440px; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid { grid-template-columns: 1fr; gap: 34px; }
  .proc-line { display: none; }
  .test-grid { grid-template-columns: 1fr; }
  .cb .wrap { grid-template-columns: 1fr; gap: 32px; }
  .map-card { grid-template-columns: 1fr; }
  .map-visual { min-height: 260px; order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .seg-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 165px; }
  .seg-tile.big { grid-column: span 2; grid-row: span 1; }
  .seg-tile.big .seg-name { font-size: 1.3rem; }
}
@media (max-width: 768px) {
  .util { display: none; }
  .nav-cta { display: none; }
  .nav { justify-content: space-between; padding: 12px 0; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #C24E00; color: #fff;
    font-weight: 800; font-size: 1.02rem; padding: 15px 16px; box-shadow: 0 -6px 20px -6px rgba(0, 0, 0, .35);
  }
  .mobile-cta svg { width: 18px; height: 18px; }
  .wa { bottom: 74px; right: 16px; }
  body { padding-bottom: 60px; }
  .hero-inner { text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .about-copy { text-align: center; }
  .about-list li { justify-content: center; }
  .cb-copy { text-align: center; }
  .cb-points { display: inline-block; text-align: left; }
  .sol-card { text-align: center; align-items: center; }
  .sol-card .ic { margin-left: auto; margin-right: auto; }
  .foot-grid { text-align: center; }
  .foot-brand { display: flex; flex-direction: column; align-items: center; }
  .foot-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .f-row { grid-template-columns: 1fr; }
  .sol-grid, .feat-grid, .about-list, .foot-grid { grid-template-columns: 1fr; }
  section.stats .wrap { grid-template-columns: 1fr; gap: 14px; }
  .wa { right: 16px; }
  .hero-inner { padding: 58px 0 84px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .sub { font-size: 1rem; margin-top: 18px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1; min-width: 0; padding: 15px 18px; }
  .hero-badge { font-size: .78rem; padding: 6px 13px 6px 6px; }
  .sec-head { margin-bottom: 34px; }
  .sec-head p { font-size: 1rem; }
  section.stats .stat { padding: 18px 20px; }
  .about-media .badge { width: 108px; height: 108px; right: -8px; bottom: -8px; border-width: 5px; }
  .about-media .badge b { font-size: 1.7rem; }
  .about-media .badge span { font-size: .66rem; max-width: 88px; }
  .sol-card, .cb-form { padding: 24px 20px; }
  .cb-copy h2, .final h2, .about-copy h2 { font-size: 1.65rem; }
  .map-info { padding: 30px 22px; }
  .seg-mosaic { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  .seg-tile.big { grid-column: span 1; }
  .seg-name { font-size: .95rem; }
  .seg-tile.big .seg-name { font-size: 1.2rem; }
  footer { padding: 52px 0 24px; }
}
@media (max-width: 380px) { .hero h1 { font-size: 1.8rem; } }

/* ===========================================================================
   SIMULADOR — versao v3
   ---------------------------------------------------------------------------
   Mesmos ganchos do motor em ../assets/tetrix.js (.sim, [data-sim-*]), mas
   vestido com os tokens da LP. Nao carregar tetrix.css junto: ele redefine
   :root com os raios antigos (28/18px) e desmonta esta pagina.
   =========================================================================== */
.sim { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.sim-top { background: var(--navy); color: #fff; padding: 20px 26px; }
.sim-top .eyebrow { color: var(--orange-2); margin-bottom: 8px; }
.sim-top .sim-h, .sim-top p { color: #fff; }
.sim-top .sim-h { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sim-top p:not(.sim-h) { color: #AEBCC8; font-size: 13.5px; margin-top: 4px; }
.sim-body { padding: 24px 26px; }
.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgroup .hint { font-weight: 500; color: var(--muted); }
.sim-range { display: flex; align-items: center; gap: 14px; }
.sim-range input[type=range] { flex: 1; accent-color: var(--orange); height: 22px; }
.sim-val { font-weight: 800; font-size: 15px; color: var(--navy); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }

.sim-out { display: none; margin-top: 20px; }
.sim-out.show { display: block; }
.sim-nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; }
.sim-num { background: var(--paper-2); border-radius: var(--r); padding: 16px 8px; }
.sim-num.destaque { background: var(--navy); }
.sim-num b { display: block; font-size: clamp(21px, 2.6vw, 27px); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sim-num.destaque b { color: #FFB27A; }
.sim-num span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.sim-num.destaque span { color: rgba(255, 255, 255, .78); }
.sim-msg { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.sim-msg strong { color: var(--navy); }

/* Portao: troca o resultado pelo pedido de contato ate a pessoa preencher. */
.sim-portao { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.sim-portao.show { display: block; }
.sp-selo {
  display: inline-flex; align-items: center; gap: 7px; background: var(--orange-soft);
  color: var(--orange-tx); font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.sp-tit { font-size: 17.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.sp-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.sp-nota { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

@media (max-width: 560px) {
  .sim-body { padding: 18px 18px; }
  .sim-row:not(.keep2) { grid-template-columns: 1fr; }
  .sim-row.keep2 { gap: 10px; }
  .sim-nums { grid-template-columns: 1fr; }
  .sim-num { display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 13px 16px; }
  .sim-num b { font-size: 24px; }
  .sim-num span { margin-top: 0; }
}

/* ===========================================================================
   AJUSTES QUE AFASTAM A HOME DA LANDING PAGE
   ---------------------------------------------------------------------------
   A identidade continua a mesma (tokens, tipografia, raios). O que muda e a
   estrutura: hero em duas colunas com o rack da propria Tetrix no lugar da
   foto de galpao, segmentos em grade de icones no lugar do mosaico de fotos,
   e area de atuacao em painel tipografico no lugar do mapa.
   =========================================================================== */

/* ---- Hero em duas colunas ---------------------------------------------- */
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero-grid .hero-inner { padding: 92px 0 96px; max-width: 100%; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; max-width: 480px; margin-left: auto; height: auto;
  border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .75);
}
/* Sem .hero-photo o scrim vira o proprio fundo do hero. */
.hero-scrim { background: linear-gradient(118deg, var(--navy) 0%, var(--navy-2) 58%, #1D3A52 100%); }

/* ---- Segmentos em grade de icones -------------------------------------- */
.seg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.seg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.seg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.seg-ic { width: 52px; height: 52px; border-radius: var(--r); background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: background .25s; }
.seg-card:hover .seg-ic { background: #C24E00; }
.seg-ic svg { width: 28px; height: 28px; color: #fff; }
.seg-card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.seg-card p { color: var(--muted); font-size: .92rem; }

/* ---- Area de atuacao: painel tipografico ------------------------------- */
.map-visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(150deg, var(--navy-2), var(--navy));
}
.map-sp { display: flex; flex-direction: column; align-items: center; }
.map-sp-uf { font-size: clamp(4.5rem, 11vw, 7rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; color: #fff; }
.map-sp-uf::after { content: ""; display: block; width: 58px; height: 4px; background: var(--orange); border-radius: 2px; margin: 14px auto 0; }
.map-sp-tx { margin-top: 14px; font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #AEBCC8; }
.map-badge { position: static; transform: none; margin-top: 8px; max-width: 86%; text-align: center; white-space: normal; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid .hero-inner { padding: 72px 0 0; }
  .hero-visual img { margin: 0 auto; max-width: 420px; }
  .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  /* A imagem vem DEPOIS da acao, como no resto do site: decoracao nao
     empurra o botao para fora da primeira tela. */
  .hero-grid .hero-inner { display: contents; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-visual { order: 9; width: 100%; padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .seg-grid { grid-template-columns: 1fr; }
  .hero-visual img { max-width: 100%; }
  .map-sp-uf { font-size: 4rem; }
}

/* ---- Texto que troca de versao por tamanho de tela --------------------- */
.so-celular { display: none; }
@media (max-width: 768px) {
  .so-desktop { display: none; }
  .so-celular { display: inline; }
  /* Respiro menor na primeira tela: cada folga aqui custa um botao abaixo
     da dobra, e o celular e de onde vem a maior parte do trafego. */
  .hero-grid .hero-badge { margin-bottom: 14px; }
  .hero-grid .eyebrow { margin-bottom: 12px; }
  .hero .sub { margin-top: 12px; }
  .hero-cta { margin-top: 22px; }
  .hero-trust { margin-top: 22px; }
}

/* ---- Densidade do menu com o site inteiro na barra ---------------------
   Oito itens + botao: a 1100px "Porta-paletes" e "Solicitar orcamento"
   quebravam em duas linhas e desalinhavam a barra. O site anterior trocava
   para hamburguer em 1080px pelo mesmo motivo. Com o Blog na barra passamos
   a 8 itens: "Inicio" saiu (a logo ja leva pra home) e o corte virou 1180px. */
.nav-links { gap: 16px; }
.nav-links a, .nav-cta .btn { white-space: nowrap; }
.nav-cta .btn { padding: 12px 20px; font-size: .88rem; }
.nav-links a[aria-current="page"] { color: var(--orange-tx); }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .burger { display: block; }
}

/* Estrelas dos depoimentos: o laranja da marca sobre o navy da secao da
   7,4:1, entao aqui ele pode ser o tom cheio. */
.test-card .stars { color: var(--orange-2); letter-spacing: 3px; margin-bottom: 14px; font-size: 1.05rem; }
.test-who .av { overflow: hidden; background: #C24E00; border: 0; }
.test-who .av img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .sol-card .more, .foot-col a { min-height: 26px; display: inline-flex; align-items: center; }
  .foot-social a { width: 42px; height: 42px; }
}

/* ---- Icone alinhado a PRIMEIRA linha, nao ao centro do bloco ------------
   No celular estes itens quebram em duas linhas. Com align-items:center o
   check ia parar no vao entre as linhas — medido: 12px fora de lugar.    */
.cb-points li, .about-list li, .hero-trust span {
  align-items: flex-start;
}
.cb-points li svg, .hero-trust > span > svg { margin-top: .18em; }
.about-list li .chk { margin-top: .05em; }

/* `1fr` sozinho vale minmax(auto,1fr): a coluna cresce ate caber a palavra
   mais longa e espreme a vizinha. Num cartao de 142px o texto sai uma
   palavra por linha. Todas as grades acima usam minmax(0,1fr) por isso. */

/* ---- Rede de seguranca contra palavra longa ----------------------------
   Palavra unica mais larga que a caixa (e-mail, "Contrabalançada" num
   rotulo estreito) vazava alguns pixels e a ultima letra ficava cortada.
   `break-word` so age quando nao ha alternativa: onde ja cabe, nada muda. */
p, li, td, th, dd, dt, figcaption, label, small,
h1, h2, h3, h4, h5,
b, strong, i, em, a, span, .stat-label, .stat-value, .contato-linha {
  overflow-wrap: break-word;
}

/* O cartao de area de atuacao e grid: mesma armadilha do minmax(auto,1fr).
   Numa tela de 305px uteis ele nao encolhia e vazava. */
.map-card { min-width: 0; }
.map-card > * { min-width: 0; }
@media (max-width: 960px) {
  .map-card { grid-template-columns: minmax(0, 1fr); }
}

/* Linhas de contato do cartao de atuacao: filhos de flex com min-width:auto.
   O e-mail nao encolhia numa tela de 305px uteis. */
.map-info .row { min-width: 0; }
.map-info .row > * { min-width: 0; }
.map-info .row > svg { min-width: 22px; }

/* Avatar por iniciais: usado onde o depoimento e de pessoa real e nao temos
   foto dela. Melhor duas letras do que o rosto de um desconhecido. */
.test-who .av.iniciais { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: .85rem; letter-spacing: .04em; }
