/* ==========================================================
   HOME — redesign v2
   Base clara e editorial (como a Focal), com hero cinematográfico e
   faixas escuras pontuais. A marca e o produto são os protagonistas;
   tipografia contida (títulos até ~44 px), muito espaço em branco.
   ========================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fontes/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --ink-2: #3a3a3c;
  --muted: #6e6e72;
  --line: #e4e4e1;
  --soft: #f4f4f1;
  --white: #fff;
  --dark: #0b0b0c;
  --dark-2: #151517;
  --dark-line: rgba(255, 255, 255, 0.14);
  --wrap: min(92%, 1280px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Tipografia ---------- */
.h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.15;
}
.eyebrow {
  display: block; margin-bottom: 14px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.escuro .eyebrow { color: rgba(255, 255, 255, 0.6); }
.lede { color: var(--muted); max-width: 56ch; }
.escuro .lede { color: rgba(255, 255, 255, 0.72); }

.secao { padding: clamp(64px, 8vw, 120px) 0; }
.escuro { background: var(--dark); color: #fff; }
.suave { background: var(--soft); }

.secao-topo {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}

/* ---------- Botões ---------- */
.botao {
  --c: var(--ink); --i: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border: 1px solid var(--c); background: transparent; color: var(--c);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  cursor: pointer; transition: background .3s ease, color .3s ease;
}
.botao:hover { background: var(--c); color: var(--i); }
.botao-cheio { background: var(--c); color: var(--i); }
.botao-cheio:hover { background: transparent; color: var(--c); }
.escuro .botao, .hero .botao { --c: #fff; --i: var(--ink); }

.seta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.seta::after { content: "→"; transition: transform .3s var(--ease); }
a:hover > .seta::after, .seta:hover::after { transform: translateX(5px); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: clamp(18px, 3vw, 44px);
  color: #fff;
  transition: background .35s ease, color .35s ease, height .35s var(--ease), box-shadow .35s ease;
}
.topo.rolou {
  --header-h: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.96); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.topo.menu-aberto { background: transparent; color: #fff; box-shadow: none; }

.logo { justify-self: center; display: block; }
.logo img { height: 34px; width: auto; transition: height .35s var(--ease), filter .35s ease; }
.topo.rolou .logo img { height: 24px; filter: brightness(0); }
.topo.menu-aberto .logo img { filter: none; }

.nav { display: none; gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.nav a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav-dir { justify-self: end; }
.nav-dir .botao { padding: 11px 20px; font-size: 11.5px; --c: currentColor; --i: var(--ink); }
.topo.rolou .nav-dir .botao { --i: #fff; }

.menu-botao {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer; padding: 10px 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.barras { width: 24px; display: grid; gap: 6px; }
.barras i { display: block; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.menu-aberto .barras i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-aberto .barras i:nth-child(2) { opacity: 0; }
.menu-aberto .barras i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* menu do celular */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px clamp(24px, 8vw, 64px) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.menu.aberto { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu li { border-bottom: 1px solid var(--dark-line); }
.menu li a { display: block; padding: 16px 0; font-size: 22px; font-weight: 500; letter-spacing: 0.01em; }
.menu small { margin-top: 28px; color: rgba(255,255,255,.55); font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; background: #000; color: #fff;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(36px, 7vh, 80px); }
.hero-linha { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero h1 {
  font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; max-width: 22ch;
}
.hero p { margin-top: 14px; max-width: 46ch; color: rgba(255,255,255,.82); font-size: 16px; }
.hero-botoes { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes sobe { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero h1, .hero p, .hero-botoes { animation: sobe 1s var(--ease) both; }
.hero p { animation-delay: .12s; }
.hero-botoes { animation-delay: .24s; }

/* ---------- Destaques (produtos) ---------- */
.produtos-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.produto { display: block; }
.produto .quadro {
  aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; display: grid; place-items: center;
}
.produto img {
  width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .8s var(--ease);
}
.produto:hover img { transform: scale(1.06); }
.produto .info { padding-top: 16px; display: grid; gap: 4px; }
.produto .linha-nome { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.produto h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
.produto .tipo { font-size: 14px; color: var(--muted); }
.produto .spec { font-size: 14px; color: var(--ink-2); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Linhas (blocos 50/50) ---------- */
.linha-bloco { display: grid; grid-template-columns: 1fr; }
.linha-bloco .imagem { position: relative; min-height: 300px; overflow: hidden; background: #000; }
.linha-bloco .imagem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.linha-bloco:hover .imagem img { transform: scale(1.04); }
.linha-bloco .texto {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(36px, 6vw, 96px); background: var(--soft);
}
.linha-bloco:nth-child(even) .texto { background: #fff; }
.linha-bloco h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; margin-bottom: 16px; }
.linha-bloco p { color: var(--muted); max-width: 40ch; margin-bottom: 28px; }

/* ---------- Sobre ---------- */
.sobre-grade { display: grid; gap: 0; }
.sobre-foto { min-height: 320px; position: relative; overflow: hidden; }
.sobre-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sobre-texto { padding: clamp(40px, 7vw, 110px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sobre-texto .h2 { margin-bottom: 22px; }
.sobre-texto p + p { margin-top: 14px; }
.sobre-texto .botao { margin-top: 32px; }
.numeros { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--dark-line); width: 100%; justify-content: space-between; }
.numeros strong { display: block; font-size: 18px; font-weight: 600; }
.numeros span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Diferenciais ---------- */
.dif { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.dif li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.dif .n { font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.dif h3 { margin: 10px 0 8px; font-size: 17px; font-weight: 600; }
.dif p { font-size: 14.5px; color: var(--muted); max-width: 32ch; }

/* ---------- Distribuidores ---------- */
.dist-filtros { margin-bottom: 28px; }
.dist-filtros select {
  min-width: min(100%, 320px); background-color: #fff; border: 1px solid var(--line);
  padding: 14px 44px 14px 18px; font-size: 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.dist-grade { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card-dist {
  display: grid; grid-template-columns: 56px 1fr; gap: 2px 16px; align-items: center;
  padding: 20px; background: #fff; border: 1px solid var(--line);
  transition: border-color .3s ease, transform .4s var(--ease), box-shadow .4s ease;
}
.card-dist:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.06); }
.card-dist .profile { grid-row: 1 / span 2; }
.card-dist .profile img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.card-dist .content { display: contents; }
.card-dist h3 { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; align-self: end; overflow-wrap: anywhere; }
.card-dist .content > span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; align-self: start; }
.card-dist .content > p { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.card-dist .social { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 12px; }
.card-dist .social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s ease, color .3s ease, border-color .3s ease; }
.card-dist .social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-dist .social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-dist .location { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-dist[hidden] { display: none; }
.dist-vazio { color: var(--muted); padding: 28px 0; }
.dist-mais { margin-top: 32px; }

/* ---------- Suporte ---------- */
.suporte-grade { display: grid; border-top: 1px solid var(--line); }
.suporte-item { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.suporte-item h3 { font-size: 19px; font-weight: 600; }
.suporte-item p { color: var(--muted); max-width: 38ch; margin-bottom: 8px; }

/* ---------- Revendedor ---------- */
.revendedor-linha { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.revendedor .h2 { margin-bottom: 12px; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--dark); color: #fff; padding: 72px 0 28px; border-top: 1px solid var(--dark-line); }
.rodape-grade { display: grid; gap: 40px; }
.rodape img { height: 28px; width: auto; margin-bottom: 18px; }
.rodape h4 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; font-weight: 600; }
.rodape a { display: block; padding: 5px 0; font-size: 15px; color: rgba(255,255,255,.88); }
.rodape a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rodape p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 36ch; }
.rodape .rodape-fim { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: 13px; color: rgba(255,255,255,.5); max-width: none; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .produtos-grade { grid-template-columns: repeat(4, 1fr); gap: 36px 22px; }
  .dist-grade { grid-template-columns: repeat(2, 1fr); }
  .dif { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-botao, .menu { display: none; }
  .topo { grid-template-columns: 1fr auto 1fr; }
  .linha-bloco { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .linha-bloco.inverte .imagem { order: 2; }
  .sobre-grade { grid-template-columns: 1fr 1fr; min-height: 620px; }
  .dist-grade { grid-template-columns: repeat(3, 1fr); }
  .dif { grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
  .dif li { border-bottom: 0; padding: 28px 0 0; }
  .suporte-grade { grid-template-columns: repeat(3, 1fr); }
  .suporte-item { border-bottom: 0; padding: 36px 36px 8px 0; }
  .suporte-item + .suporte-item { padding-left: 36px; border-left: 1px solid var(--line); }
  .rodape-grade { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 959px) {
  .nav-dir { display: none; }
  .topo { grid-template-columns: 1fr auto 1fr; }
  .logo img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero p, .hero-botoes { animation: none; }
  .produto img, .linha-bloco .imagem img, .botao, .menu, .logo img, .topo { transition: none; }
}
