/* =========================================================
   SEMEL Motores Elétricos — one page
   Cores e fontes seguem o site de referência (Hostinger)
   ========================================================= */

:root {
  --navy: #0B2545;
  --blue: #005EB8;
  --blue-light: #4FA3E3;
  --blue-tint: rgba(0, 94, 184, 0.1);
  --ink: #182639;
  --muted: #5F6F85; /* #64748B da referência, 1 tom mais escuro: passa 4.5:1 também sobre o --soft */
  --line: #E2E8F0;
  --soft: #F4F6F8;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-hover: #1FBE5B;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 25px 50px -20px rgba(11, 37, 69, 0.25);
  --shadow-sm: 0 1px 20px rgba(11, 37, 69, 0.08);

  --ease-out: cubic-bezier(.2, .75, .2, 1);

  --header-h: 80px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
/* hidden como recuo; clip impede até rolagem lateral por código ou âncora */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* Aba escondida: pausa tudo (animation-play-state não é herdado) */
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia ---------- */
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.6rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { transition: transform .25s var(--ease-out); }
.btn:hover svg:has(use[href="#i-arrow"]) { transform: translateX(4px); }
/* Toque: alvo mínimo de 44px sem mudar o layout */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
}
.btn--lg { padding: 16px 28px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--navy); color: var(--white); }
/* Texto escuro no verde: o branco no #25D366 não atinge contraste mínimo */
.btn--whatsapp { background: var(--wa); color: var(--navy); }
.btn--whatsapp:hover { background: var(--wa-hover); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--blue);
}
.link .icon { transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { flex: none; }
/* Recorte temporário: o PNG atual do logo tem margem transparente grande */
.brand__logo { display: block; height: 46px; width: auto; }
.footer__logo { display: block; height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a:not(.btn) {
  position: relative; font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  padding: 6px 0; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--blue); }
.nav a.is-active::after, .nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .25s, opacity .2s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy); }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 880px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 150px;
}
.hero__bg, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero__video { display: none; opacity: 0; transition: opacity .6s var(--ease-out); transform: translateZ(0); }
.hero__band--end { display: none; }

/* Modo vídeo no scroll (desktop): hero alto com palco fixo. O JS liga .is-scrub conforme os portões */
.hero.is-scrub { height: 215vh; } /* 115vh de rolagem para o vídeo inteiro */
.hero.is-scrub .hero__stage { position: sticky; top: 0; height: 100vh; min-height: 0; padding: var(--header-h) 0 32px; }
/* Títulos limitados pela altura da tela, para caber em notebooks de tela baixa */
.hero.is-scrub h1 { font-size: min(clamp(2.1rem, 1.3rem + 3.6vw, 4rem), 7.4vh); }
.hero.is-scrub .hero__end-title { font-size: min(clamp(2.1rem, 1.3rem + 3vw, 3.6rem), 6.8vh); }
.hero.is-scrub .hero__video { display: block; }
.hero.is-scrub.video-ready .hero__video { opacity: 1; }
.hero.is-scrub .hero__band--start { transform: translateY(calc((1 - var(--k, 1)) * -40px)); }
/* Escurecimento local atrás de cada faixa de texto: acompanha a opacidade da faixa e deixa o motor limpo */
.hero__band--start { position: relative; }
.hero__band::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -14%; top: -18%; width: 100%; height: 136%;
  background: radial-gradient(closest-side, rgba(6,18,36,.66) 0%, rgba(6,18,36,.55) 58%, rgba(6,18,36,0) 100%);
}
.hero.is-scrub .hero__band--end {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  position: absolute; inset: 0; margin: 0 auto;
  padding-top: var(--header-h); padding-bottom: 84px; /* 84px = sobreposição do card de números no fim */
  opacity: 0; visibility: hidden;
}
/* Entrada da faixa 2: cada bloco se aproxima (eco do avanço da câmera), reversível no scroll */
.hero__band--end > * {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 28px)) scale(calc(.94 + .06 * var(--kc)));
  transform-origin: left center;
}
.hero__end-title { color: var(--white); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; max-width: 14ch; margin: 4px 0 22px; }
.eyebrow--light { color: var(--blue-light); }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* Escurece só a coluna do texto; o motor (lado direito) fica quase sem filtro */
  background:
    linear-gradient(90deg, rgba(11,37,69,.86) 0%, rgba(11,37,69,.76) 34%, rgba(11,37,69,.5) 48%, rgba(11,37,69,.12) 60%, rgba(11,37,69,0) 68%),
    linear-gradient(0deg, rgba(11,37,69,.45) 0%, rgba(11,37,69,0) 28%);
}
.hero__content { max-width: 1240px; }
/* Sombra em 3 camadas (borda, brilho, queda): o texto se sustenta sobre o vídeo com menos filtro azul */
.hero h1, .hero__end-title, .hero__lead, .hero .eyebrow {
  text-shadow: 0 1px 2px rgba(6,18,36,.75), 0 3px 12px rgba(6,18,36,.55), 0 10px 40px rgba(6,18,36,.6);
}
.hero h1 { color: var(--white); max-width: 15ch; margin: 22px 0 22px; }
.hero h1 .hl { color: var(--blue-light); }
.hero__lead { max-width: 540px; font-size: 1.125rem; color: #CBD5E1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: .02em; color: #F1F5F9;
}
.badge__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 4px rgba(79,163,227,.25); }
.badge__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--blue-light);
  animation: pulse 2.2s ease-out infinite;
}

/* ---------- Entrada do banner do topo ---------- */
/* Escondidos só com JS ativo; o failsafe mostra tudo após 3s se o script falhar */
.js [data-intro] { opacity: 0; animation: intro-failsafe 0s 3s forwards; }
/* fill "backwards": ao terminar, o elemento volta ao estilo normal e o hover segue funcionando */
.intro-in [data-intro] { opacity: 1; animation: intro-up .8s var(--ease-out) var(--delay, 0s) backwards; }
.intro-in .badge[data-intro] { animation-name: intro-down; }
.intro-in [data-split] { animation: none; }

/* Título palavra a palavra: cada palavra sobe de dentro de uma máscara */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
.word__in { display: inline-block; }
.intro-in .word__in { animation: word-up .9s var(--ease-out) var(--delay, 0s) backwards; }

/* Brilho periódico no botão principal */
.hero .btn--primary { position: relative; overflow: hidden; }
.hero .btn--primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out 2.4s infinite;
}
.hero .btn--ghost:hover .icon { animation: wiggle .5s ease-in-out; }

@keyframes intro-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes intro-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(120%); } to { transform: none; } }
@keyframes intro-failsafe { to { opacity: 1; } }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
@keyframes shine { 0% { transform: translateX(-120%); } 25%, 100% { transform: translateX(120%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }

/* ---------- Números ---------- */
.stats {
  position: relative; z-index: 2; margin-top: -84px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stats li { padding: 30px 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--font-head); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; line-height: 1.1; color: var(--navy); }
.stats li > span { font-size: 0.875rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: 112px 0; }
.section--soft { background: var(--soft); }
#sobre { padding-top: 120px; }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head > p:not(.eyebrow) { margin-top: 16px; font-size: 1.0625rem; color: var(--muted); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 44px; }

/* Split (imagem + texto) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.split__body > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; }
.split__body h2 + p { margin-top: 22px; }
.split__body .btn { margin-top: 34px; }

.frame { position: relative; }
.frame::before {
  content: ''; position: absolute; top: -18px; left: -18px; width: 96px; height: 96px;
  border-top: 4px solid rgba(0,94,184,.3); border-left: 4px solid rgba(0,94,184,.3); border-top-left-radius: 20px;
}

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 32px; }
.checklist--stack { grid-template-columns: 1fr; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.checklist .icon {
  width: 28px; height: 28px; padding: 6px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue); stroke-width: 2.5;
}

/* ---------- Produtos ---------- */
/* Fundo de pontos em ondas: o canvas fica preso na tela enquanto a seção rola, atrás dos cards */
#produtos { position: relative; isolation: isolate; }
.wave-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wave-bg__canvas {
  position: sticky; top: 0; display: block; width: 100%; height: 100vh;
  opacity: .35; /* o esmaecimento nas bordas de cima e de baixo é feito no próprio desenho (mais leve que mask-image) */
}

/* 4 colunas: 14 produtos + card de chamada ocupando 2 colunas fecham 4 linhas cheias */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid #EEF2F6; border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
/* Fotos WEG em fundo branco: mídia branca + contain para o produto aparecer inteiro */
.product__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); border-bottom: 1px solid #EEF2F6; }
.product__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.product__body h3 { font-size: 1.0625rem; }
.product__body p { font-size: 0.9375rem; color: var(--muted); }

.product--cta {
  grid-column: span 2; justify-content: center; gap: 0;
  padding: 36px 40px; background: var(--navy); border-color: var(--navy); color: var(--white);
  position: relative;
}
.product--cta::after {
  content: ''; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(79,163,227,.12); pointer-events: none;
}
.product--cta:hover { transform: none; }
.product--cta h3 { color: var(--white); font-size: 1.5rem; position: relative; z-index: 1; }
.product--cta p { color: #CBD5E1; margin-top: 10px; max-width: 46ch; position: relative; z-index: 1; }
.product--cta .btn { align-self: flex-start; margin-top: 24px; position: relative; z-index: 1; }
.product__body .link { margin-top: auto; padding-top: 10px; }
/* O card inteiro é clicável: o link "Cotar" se estende sobre ele */
.product { position: relative; }
.product .link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tag {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint); padding: 4px 10px; border-radius: 999px;
}

/* ---------- Serviços ---------- */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service { background: var(--white); padding: 34px 28px; transition: background-color .25s; }
.service:hover { background: #FAFCFF; }
.service__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
  border-radius: 12px; background: var(--blue-tint); color: var(--blue);
  transition: background-color .25s, color .25s;
}
.service:hover .service__icon { background: var(--blue); color: var(--white); }
.service__icon .icon { width: 22px; height: 22px; }
.service h3 { font-size: 1.0625rem; }
.service p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }

.process { margin-top: 56px; }
.process__title { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 20px; }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.process li { display: flex; gap: 14px; padding-top: 20px; border-top: 2px solid var(--line); position: relative; }
.process li::before { content: ''; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--blue); }
.process li > span { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: 0.875rem; line-height: 1.7; }
.process strong { display: block; color: var(--navy); }
.process p { font-size: 0.9375rem; color: var(--muted); margin-top: 2px; }

/* ---------- Diferenciais ---------- */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.why__intro > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 1.0625rem; }
.why__intro .btn { margin-top: 32px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__list li {
  background: var(--white); border: 1px solid #EEF2F6; border-radius: var(--radius); padding: 28px;
  transition: box-shadow .3s, border-color .3s;
}
.why__list li:hover { box-shadow: var(--shadow); border-color: transparent; }
.why__n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1; color: rgba(0,94,184,.25); margin-bottom: 18px; }
.why__list h3 { font-size: 1.0625rem; }
.why__list p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Enrolamento de bobinas (seção escura de especialidade) ---------- */
.section--dark { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section--dark::after {
  content: ''; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79,163,227,.14), rgba(79,163,227,0)); pointer-events: none;
}
.section--dark .container { position: relative; z-index: 1; }
.section--dark h2 { color: var(--white); }
.section--dark .split__body > p:not(.eyebrow) { color: #CBD5E1; }
.section--dark .checklist li { color: var(--white); }
.section--dark .checklist .icon { background: rgba(79,163,227,.16); color: var(--blue-light); }
.section--dark .split__media img { box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.split__actions .btn { margin-top: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: 104px 0; text-align: center; }
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.cta::before { width: 320px; height: 320px; right: -90px; top: -110px; }
.cta::after { width: 420px; height: 420px; left: -160px; bottom: -240px; }
.cta__inner { position: relative; z-index: 1; max-width: 780px; }
.cta h2 { color: var(--white); }
.cta p { margin-top: 16px; font-size: 1.125rem; color: #DBEAFE; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.contact__list small { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list span { font-weight: 500; color: var(--ink); }
.contact__list a:hover { color: var(--blue); }

.map { margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form h3 { font-size: 1.5rem; }
.form__hint { font-size: 0.9375rem; color: var(--muted); margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #CBD5E1; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,94,184,.15); }
.field input[aria-invalid="true"] { border-color: #DC2626; }
.form__error { font-size: 0.875rem; color: #B91C1C; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #CBD5E1; padding: 72px 0 28px; font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 18px; max-width: 320px; color: #94A3B8; }
.footer h4 { color: var(--white); font-size: 0.875rem; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--white); }
.footer__social { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 18px; color: #CBD5E1; }
.footer__social + .footer__social { margin-top: 10px; }
.footer__wa { margin-top: 18px; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.8125rem; color: #94A3B8;
  padding-right: 96px; /* espaço para o botão flutuante do WhatsApp */
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--navy); box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease-out), opacity .25s;
}
.wa-float:hover { transform: scale(1.06); }
/* Escondido enquanto os botões do banner (que já têm WhatsApp) estão na tela */
.wa-float.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js [data-intro], .word__in { opacity: 1; animation: none !important; }
  .badge__dot::after, .hero .btn--primary::after { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .header__cta { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: var(--white); box-shadow: 0 20px 30px -20px rgba(11,37,69,.3);
    border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 18px; }

  .products { grid-template-columns: repeat(3, 1fr); }
  .product--cta { grid-column: span 1; padding: 32px 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Telas estreitas e tablets em pé: o texto cobre quase toda a largura, então o filtro volta a ser cheio */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1024px) {
  .hero__overlay { background: linear-gradient(180deg, rgba(11,37,69,.8) 0%, rgba(11,37,69,.88) 100%); }
}

@media (max-width: 900px) {
  .split, .contact { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__media { order: 0; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product--cta { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process ol { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .brand__logo { height: 38px; }
  .section { padding: 76px 0; }
  #sobre { padding-top: 84px; }
  .section__head { margin-bottom: 40px; }

  .hero__stage { padding: calc(var(--header-h) + 48px) 0 120px; min-height: auto; }
  .hero__bg { object-position: 75% center; }
  .hero__overlay { background: linear-gradient(180deg, rgba(11,37,69,.88) 0%, rgba(11,37,69,.92) 100%); }
  .hero__band::before { display: none; } /* no celular o texto ocupa a largura toda e o filtro já cobre */
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions .btn { width: 100%; }

  .stats { margin-top: -64px; }
  .stats li { padding: 22px 12px; }
  .stats strong { font-size: 1.5rem; }

  .checklist { grid-template-columns: 1fr; }
  /* Celular: cards horizontais (foto à esquerda) para a lista de 14 produtos não ficar longa */
  .products { grid-template-columns: 1fr; gap: 12px; }
  .product { flex-direction: row; }
  .product:hover { transform: none; }
  .product__media { width: 116px; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #EEF2F6; }
  .product__body { padding: 16px 16px 14px; gap: 4px; }
  .product__body h3 { font-size: 1rem; }
  .product__body p { font-size: 0.875rem; }
  .product__body .link { padding-top: 6px; }
  .product .tag { display: none; }
  .product--cta { grid-column: auto; flex-direction: column; padding: 28px 22px; }
  .product--cta .btn { align-self: stretch; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 28px 22px; }
  .process ol { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .cta { padding: 80px 0; }
  .cta__actions .btn { width: 100%; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-bottom: 96px; }
  .footer__bottom { padding-right: 0; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
