/* ============================================================
   Mit Peças — site institucional
   Identidade (2026): azul-marinho #12212D + azul vivo #2BA4E0 (da logo nova).
   HTML/CSS puro, sem dependências.
   (nomes de variáveis mantidos --roxo/--vermelho por compatibilidade; valores = azul.)
   ============================================================ */
:root {
  --roxo: #12212D;
  --roxo-claro: #1c3648;
  --roxo-700: #172c3b;
  --vermelho: #2BA4E0;
  --vermelho-escuro: #1E86BC;
  --fundo: #ffffff;
  --fundo-alt: #f4f8fb;
  --linha: #e3eaef;
  --texto: #14202a;
  --texto-suave: #5a6a76;
  --branco: #ffffff;
  --whats: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1140px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --sombra-sm: 0 1px 2px rgba(16,28,38,.06), 0 1px 3px rgba(16,28,38,.05);
  --sombra: 0 4px 6px rgba(16,28,38,.05), 0 10px 24px rgba(16,28,38,.08);
  --sombra-lg: 0 18px 40px rgba(16,28,38,.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, .stat .num { font-family: var(--display); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--vermelho); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--vermelho); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .96rem; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--vermelho); color: #fff; box-shadow: 0 6px 16px rgba(43,164,224,.28); }
.btn-primary:hover { background: var(--vermelho-escuro); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43,164,224,.34); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-dark { background: var(--roxo); color: #fff; }
.btn-dark:hover { background: var(--roxo-claro); transform: translateY(-2px); }
.btn-whats { background: var(--whats); color: #fff; padding: 10px 18px; font-size: .9rem; box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.btn-whats:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,33,45,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.brand-fallback { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .5px; }
.nav { display: flex; gap: 30px; }
.nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--vermelho); transition: width .22s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 85% 10%, var(--roxo-claro) 0%, var(--roxo) 58%);
  color: #fff; padding: 96px 0 110px;
}
/* motif geométrico (formas angulares da marca) */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(43,164,224,.10) 48%, rgba(43,164,224,.10) 52%, transparent 52%),
    linear-gradient(45deg, transparent 62%, rgba(255,255,255,.04) 62%, rgba(255,255,255,.04) 66%, transparent 66%);
  background-size: 90px 90px, 120px 120px;
  opacity: .7; pointer-events: none;
}
/* divisória angular no rodapé do hero (remete às formas da logo) */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px;
  background: var(--fundo);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 62% 62%, 38% 22%, 0 64%);
  z-index: 2;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text { max-width: 620px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 20px; }
.hero .accent { color: var(--vermelho); }
.hero p { font-size: 1.14rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* visual: peça em destaque dentro de um painel de vidro */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16); border-radius: 26px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 38px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-card img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.4)); }
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px;
  background: radial-gradient(circle at 50% 40%, rgba(43,164,224,.22), transparent 62%);
}
.hero-badge {
  position: absolute; left: -14px; bottom: 26px;
  background: #fff; color: var(--texto); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--sombra-lg);
  display: flex; align-items: center; gap: 11px; font-size: .9rem; font-weight: 600;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--vermelho); flex: none; }
.hero-badge small { display: block; font-weight: 500; color: var(--texto-suave); font-size: .78rem; }

/* ===== Trust bar ===== */
.trust {
  background: var(--roxo-700); color: rgba(255,255,255,.9);
  border-top: 1px solid rgba(255,255,255,.07);
}
.trust-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 18px 0; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; color: var(--vermelho); flex: none; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--fundo-alt); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.section h2 .accent { color: var(--vermelho); }
.section-lead { color: var(--texto-suave); font-size: 1.06rem; margin-top: 14px; }

/* ===== Sobre (2 colunas + números) ===== */
.sobre-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--fundo); border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--sombra-sm);
}
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--roxo); letter-spacing: -.02em; line-height: 1; }
.stat .lbl { color: var(--texto-suave); font-size: .92rem; margin-top: 8px; }
.stat .num .accent { color: var(--vermelho); }

/* ===== Grid / Cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--fundo); border: 1px solid var(--linha);
  border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #e0d4e0; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--texto-suave); font-size: .94rem; }

/* ícone das categorias / diferenciais */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 16px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(43,164,224,.1), rgba(18,33,45,.06));
  color: var(--vermelho);
}
.icon svg { width: 25px; height: 25px; display: block; }

/* ===== Galeria de produtos ===== */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: var(--fundo); border: 1px solid var(--linha);
  border-radius: var(--radius); padding: 16px 16px 18px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #ddd1dd; }
.prod-img { background: var(--fundo-alt); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; overflow: hidden; }
.prod-img img { height: 120px; width: 100%; object-fit: contain; transition: transform .3s ease; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-nome { font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--texto); }
.prod-nome .prod-suf { font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500; color: var(--texto-suave); white-space: nowrap; }
.prod-cod { display: inline-block; align-self: flex-start; margin: 7px 0 9px; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; color: var(--vermelho); background: rgba(43,164,224,.08);
  padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.prod-apl { font-size: .86rem; color: var(--texto-suave); line-height: 1.4; margin-bottom: 14px; flex: 1; }
.prod-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--roxo); color: #fff; font-weight: 600; font-size: .88rem;
  transition: background .18s ease, transform .18s ease;
}
.prod-btn:hover { background: var(--vermelho); transform: translateY(-1px); }
.prod-btn svg { flex: none; }

/* ===== Faixa CTA ===== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--roxo) 0%, var(--roxo-claro) 100%);
  color: #fff; border-radius: 22px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--sombra-lg);
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(43,164,224,.32), transparent 70%);
  pointer-events: none;
}
.cta-band .cta-text { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; }
.cta-band .btn { position: relative; z-index: 1; }

/* ===== Contato ===== */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contato-lista { list-style: none; margin: 22px 0 28px; }
.contato-lista li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linha); color: var(--texto-suave); }
.contato-lista li svg { width: 20px; height: 20px; color: var(--vermelho); flex: none; margin-top: 2px; }
.contato-lista strong { color: var(--texto); display: block; font-weight: 600; margin-bottom: 1px; }
.mapa iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--sombra-sm); }

/* ===== Footer ===== */
.footer { background: var(--roxo); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 44px; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col p, .footer-col a { font-size: .93rem; color: rgba(255,255,255,.72); display: block; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; }
.footer-bottom a:hover { color: #fff; }

/* ===== WhatsApp flutuante ===== */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whats); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.whats-float:hover { transform: scale(1.09); }

/* ===== Header com sombra ao rolar ===== */
.header.scrolled { box-shadow: 0 6px 24px rgba(16,28,38,.18); }

/* ===== Animações de entrada ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 940px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-visual { max-width: 360px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 36px; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 70px; }
}
