/* Metalúrgica Círculo — LP estática (convertida do Elementor) */

@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* cores do kit do Elementor */
  --azul: #0044D3;
  --azul-2: #0053FF;
  --azul-vivo: #2668F2;
  --azul-claro: #3E7CFF;
  --azul-borda: #39639A;
  --navy: #071A42;
  --navy-2: #04266B;
  --preto: #000;
  --grafite: #1D1D1D;
  --cinza: #54595F;
  --cinza-claro: #F5F5F5;
  --linha: #E0E0E0;
  --texto-claro: #E6E6E6;
  --branco: #fff;
  --whats: #25D366;

  --raio-curva: 160px;
  --container: 1140px;
  --fonte: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.centro { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--branco); padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; }

/* ---------- botão ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--azul) 0%, var(--azul-2) 100%);
  color: var(--branco);
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 68, 211, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 83, 255, .45); filter: brightness(1.08); }
.btn--grande { padding: 18px 38px; font-size: 18px; text-transform: uppercase; }

.divisor { border: 0; height: 2px; margin: 18px 0; background: var(--azul); }
.titulo-secao { font-size: clamp(28px, 3vw + 12px, 40px); text-align: center; color: var(--preto); margin-bottom: 40px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  padding: 80px 0 120px;
  background: var(--preto) url("../img/hero.webp") center / cover no-repeat;
  color: var(--branco);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 100%),
              linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 65%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 560px; }
.hero__logo { width: 166px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(40px, 4vw + 16px, 56px); margin-bottom: 18px; }
.destaque { color: var(--azul-claro); }
.hero__sub { font-size: 18px; color: var(--texto-claro); max-width: 480px; margin-bottom: 32px; }

/* ---------- montadoras + sobre ---------- */
.sobre {
  background: var(--preto);
  color: var(--texto-claro);
  padding: 0 0 60px;
  margin-top: -1px; /* evita a linha de subpixel entre o hero e esta seção */
  border-bottom-left-radius: var(--raio-curva);
}
.marcas {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 6vw, 80px);
  margin-bottom: 70px;
}
.marca {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 7;
  padding: 30px;
  background: var(--branco);
  border-radius: 30px;
  border-bottom: 5px solid;
}
.marca img { max-height: 100%; width: auto; object-fit: contain; }
.marca--nh { border-color: #FCDA3E; }
.marca--jd { border-color: #0A701D; }
.marca--case { border-color: #C40C24; }

.sobre__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sobre__texto { font-size: 17px; }
.divisor--sobre { width: 41%; background: var(--azul-vivo); }
.sobre__foto img { width: 100%; border-bottom-right-radius: 60px; }

/* ---------- linhas de peças ---------- */
.linhas { padding: 80px 0 70px; }
.linhas__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 30px; }
.linha { flex: 0 1 calc((100% - 60px) / 3); text-align: center; }
.linha h3 { font-size: 28px; color: var(--grafite); margin-top: 6px; }
.linha .divisor { width: 30%; margin: 18px auto 12px; }

.carrossel {
  position: relative;
  border: 1px solid var(--linha);
  border-radius: 3px;
  background: var(--branco);
  overflow: hidden;
}
.carrossel__trilho {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; }
.carrossel__slide img { width: 100%; height: 100%; object-fit: contain; }
.carrossel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(7, 26, 66, .75);
  color: var(--branco);
  cursor: pointer;
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.carrossel__btn svg { width: 18px; height: 18px; }
.carrossel__btn--ant { left: 10px; }
.carrossel__btn--ant svg { transform: scaleX(-1); }
.carrossel__btn--prox { right: 10px; }
.carrossel:hover .carrossel__btn, .carrossel__btn:focus-visible { opacity: 1; }
.carrossel__btn:hover { background: var(--azul); }
.carrossel__contador {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 12px; color: var(--cinza);
  background: rgba(255,255,255,.85); padding: 1px 8px; border-radius: 10px;
}
@media (hover: none) { .carrossel__btn { opacity: 1; } }

/* ---------- tecnologia ---------- */
.tecnologia {
  position: relative;
  padding: 120px 0 50px;
  background: var(--navy) url("../img/tecnologia.webp") center / cover no-repeat;
  color: var(--texto-claro);
  border-top-right-radius: var(--raio-curva);
  overflow: hidden;
}
.tecnologia::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 38, 107, .62) 0%, var(--navy) 100%);
}
.tecnologia__inner { position: relative; max-width: 740px; text-align: center; font-size: 17px; }
.tecnologia h2 { font-size: clamp(30px, 3vw + 14px, 46px); color: var(--branco); margin-bottom: 28px; }
.tecnologia__chamada { color: var(--branco); font-weight: 600; font-size: 19px; margin-top: 8px; }

/* ---------- diferenciais ---------- */
.diferenciais {
  background: var(--navy);
  padding: 30px 0 80px;
  margin-top: -1px;
  border-bottom-right-radius: var(--raio-curva);
}
.diferenciais__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.dif {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px;
  border: 1px solid var(--azul-borda);
  border-radius: 5px;
  text-align: center;
  color: var(--texto-claro);
  font-size: 22px; font-weight: 600; line-height: 1.3;
  transition: border-color .2s ease, background .2s ease;
}
.dif:hover { border-color: var(--azul-claro); background: rgba(57, 99, 154, .12); }
.dif img { width: 80px; height: 80px; object-fit: contain; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; }
.faq h2 { font-size: clamp(30px, 3vw + 14px, 46px); color: var(--preto); }
.divisor--faq { width: 229px; max-width: 60%; margin-bottom: 36px; }
.faq__lista { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--linha); border-radius: 6px; background: var(--branco); }
.faq__item[open] { border-color: var(--azul-vivo); }
.faq__item summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-weight: 600; font-size: 18px; color: var(--grafite);
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--azul); border-bottom: 2.5px solid var(--azul);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__resposta { padding: 0 22px 8px; color: var(--cinza); }

/* ---------- rodapé ---------- */
.rodape { background: var(--cinza-claro); padding-top: 50px; color: var(--grafite); }
.rodape__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 40px; }
.rodape__logo { width: 156px; margin-bottom: 22px; }
.contatos { display: grid; gap: 9px; margin-bottom: 22px; }
.contatos li { display: flex; gap: 10px; align-items: flex-start; }
.contatos svg { width: 20px; height: 20px; flex: none; color: var(--azul-borda); margin-top: 3px; }
.contatos a { text-decoration: none; }
.contatos a:hover { color: var(--azul); }
.sociais { display: flex; gap: 10px; }
.sociais a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--azul-borda); color: var(--branco);
  transition: background .2s ease;
}
.sociais a:hover { background: var(--azul); }
.sociais svg { width: 20px; height: 20px; }
.rodape__mapa iframe { display: block; width: 100%; height: 300px; border: 0; border-radius: 6px; }
.rodape__base { border-top: 1px solid #D3D3D3; padding: 22px 0 26px; text-align: center; font-size: 14px; color: var(--cinza); }
.rodape__base p { margin: 4px 0 0; }
.credito { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.credito img { width: 45px; }
.credito strong { color: #3366FF; font-weight: 600; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whats); color: var(--branco);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.whats-flutuante svg { width: 32px; height: 32px; }
.whats-flutuante:hover { transform: scale(1.08); }

/* ---------- animações de entrada (só com JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal--fade { transform: none; transition-duration: 1.4s; }
.js .reveal.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .dif, .whats-flutuante { transition: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .linha { flex-basis: calc((100% - 30px) / 2); }
  .diferenciais__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --raio-curva: 90px; }
  body { font-size: 15px; }
  .hero { min-height: 88vh; padding: 60px 0 100px; background-image: url("../img/hero-m.webp"); }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, #000 100%); }
  .hero__sub { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .marcas { gap: 10px; margin-bottom: 44px; }
  .marca { aspect-ratio: auto; height: 72px; padding: 12px; border-radius: 16px; border-bottom-width: 4px; }
  .sobre__grid { grid-template-columns: 1fr; gap: 30px; }
  .sobre__texto { font-size: 15px; }
  .linhas { padding: 60px 0 50px; }
  .linha { flex-basis: 100%; max-width: 360px; }
  .linha h3 { font-size: 22px; }
  .tecnologia { padding: 90px 0 40px; background-image: url("../img/tecnologia-m.webp"); }
  .tecnologia__inner { font-size: 15px; }
  .diferenciais__grid { gap: 10px; }
  .dif { padding: 16px 10px; font-size: 16px; gap: 12px; }
  .dif img { width: 56px; height: 56px; }
  .btn--grande { font-size: 16px; padding: 16px 20px; }
  .faq { padding: 60px 0; }
  .faq__item summary { font-size: 16px; padding: 16px 48px 16px 16px; }
  .faq__resposta { padding: 0 16px 6px; }
  .rodape__grid { grid-template-columns: 1fr; text-align: center; }
  .rodape__logo { margin: 0 auto 22px; }
  .contatos { justify-items: center; }
  .contatos li { text-align: left; }
  .sociais { justify-content: center; }
  .rodape__base { padding-bottom: 90px; }
  .whats-flutuante { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
