/*
Theme Name: Injet Industrial
Theme URI: https://injet.tech
Author: NMS / SITEDEV
Description: Tema industrial de alta performance para a Injet (manutenção de injetoras termoplásticas e HPDC). Dark, direto, sem enfeite.
Version: 1.2.9
Requires at least: 6.0
License: proprietary
Text Domain: injet
*/

:root {
  --bg: #14161a;
  --bg-2: #1a1d22;
  --bg-3: #20242a;
  --line: #2b3038;
  --text: #eceef1;
  --muted: #9aa2ad;
  --accent: #d62424;
  --accent-hover: #e63a3a;
  --max: 1200px;
  --radius: 6px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
.hero-grid > *, .about-grid > *, .contact-grid > * { min-width: 0; }
.hero-media img, .about-media img { width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 { font-size: clamp(38px, 4.6vw, 64px); }
.h1-line { display: block; }
@media (min-width: 961px) {
  .h1-line { white-space: nowrap; }
}
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; font-weight: 600; }

p { margin: 0 0 16px; max-width: 65ch; }

.lead { color: var(--muted); font-size: 19px; max-width: 58ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid #4a5058; color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.hero h1 { max-width: 14ch; text-wrap: balance; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.btn-primary { color: #fff; }
.main-nav a.btn-primary:hover { color: #fff; }

/* foco de teclado visível */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* âncora não esconde sob nav sticky */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-grid > div:first-child { min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead { margin-bottom: 32px; }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-eyebrow {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  text-wrap: balance;
}

/* ---------- sections ---------- */
.section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding: 40px 0; }
#servicos { padding-top: 40px; padding-bottom: 40px; }
/* ritmo: seções alternam superfícies (dark confortável, anti-halation) */
.section-alt { background: var(--bg-2); }

.section-head { margin-bottom: 32px; }
.section-head--split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: end;
}
.section-head--split .lead { max-width: 48ch; margin-bottom: 0; }

/* services: rows editorial com hover (padrao hover-reveal list) */
.service-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 7fr) minmax(0, 5fr) 28px;
  gap: 24px;
  align-items: end;
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  transition: background .25s ease, padding-left .25s ease;
  min-height: 128px;
}
.service-row:hover { background: var(--bg-2); padding-left: 24px; }
.service-row--icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(214, 36, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row--icon svg { width: 24px; height: 24px; stroke: var(--accent-hover); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-row--icon, .service-row--arrow { align-self: center; }
.service-row--arrow {
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
  font-size: 22px;
  line-height: 1;
}
.service-row:hover .service-row--arrow { opacity: 1; transform: none; color: var(--accent-hover); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.service-row h3 { margin: 0; font-size: 26px; line-height: 1.15; }
.service-row p { margin: 0; color: var(--muted); max-width: 42ch; font-size: 16px; position: relative; top: 12.7px; }
.service-num {
  font-family: 'Barlow Condensed';
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-right: 0;
}

/* proof band */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-cell { background: var(--bg-2); padding: 32px; }
.proof-cell .big {
  font-family: 'Barlow Condensed';
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-cell span { color: var(--muted); font-size: 15px; }

/* clients */
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.clients-strip--center { justify-content: center; }
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.clients-strip img {
  height: 64px;
  width: auto;
  background: #f4f4f4;
  padding: 14px 22px;
  border-radius: var(--radius);
  transition: transform .2s;
}
.clients-strip img:hover { transform: translateY(-2px); }

/* about split */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media img { border-radius: var(--radius); border: 1px solid var(--line); }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.contact-list .label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-list a { font-weight: 600; font-size: 18px; }
.contact-list a:hover { color: var(--accent-hover); }

/* barra de emergência */
.emergency-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 11px 12px;
  transition: opacity .25s ease;
}
.emergency-bar a { color: #fff; white-space: nowrap; text-decoration: none; font-size: clamp(11px, 3.2vw, 14px); }
.emergency-bar a b { font-weight: 700; }
.emergency-bar a span { font-weight: 400; }
.emergency-bar.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 960px) {
  .emergency-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 11px 8px calc(11px + env(safe-area-inset-bottom, 0px)); }
  .emergency-bar.is-hidden { opacity: 1; pointer-events: auto; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- contact (padrão Split-With-Details: form card + coluna de canais) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { margin-bottom: 24px; }
.contact-channels {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-channel {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.contact-channel--urgent {
  background: rgba(214, 36, 36, 0.06);
  border: 1px solid rgba(214, 36, 36, 0.35);
  border-radius: var(--radius);
  padding: 24px !important;
}

.contact-channel--icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(214, 36, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel--icon svg { width: 24px; height: 24px; stroke: var(--accent-hover); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-channel h3 { font-size: 18px; margin: 0 0 4px; font-family: 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; }
.contact-channel p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.contact-channel a { font-weight: 600; font-size: 17px; color: var(--text); }
.contact-channel a:hover { color: var(--accent-hover); }
.contact-channel--static { font-weight: 600; font-size: 17px; }
.contact-channel .channel-note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* form orçamento rápido */
.rfq { margin: 0; }
.rfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rfq label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.rfq input, .rfq textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid #4a5058;
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.rfq input:focus, .rfq textarea:focus { outline: 2px solid var(--accent-hover); outline-offset: 1px; border-color: var(--muted); }
.rfq input::placeholder, .rfq textarea::placeholder { color: #6b7280; }
.rfq textarea { min-height: 96px; resize: vertical; }
.rfq-note { color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 640px) { .rfq-row { grid-template-columns: 1fr; } }

/* footer */
.site-footer { padding: 48px 0; color: var(--muted); font-size: 14px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer img { height: 28px; opacity: 0.8; }

/* trust strip dentro do hero (prova above the fold) */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-trust .trust-badge { display: inline-flex; align-items: center; background: #f4f4f4; padding: 6px 12px; border-radius: 4px; }
.hero-trust .trust-badge img { display: block; height: 18px; width: auto; }
.hero-trust span { color: var(--muted); font-size: 14px; }
.hero-trust .hero-trust--more { white-space: nowrap; }

/* ritmo 8px: seções 96/64 já são múltiplos; interno normalizado */
.service-row { padding: 24px 0; } /* era 28 */
.section-head { margin-bottom: 32px; } /* era 48 */
.about-grid img, .hero-media img { max-height: 640px; object-fit: cover; }
@media (max-width: 960px) {
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 32px; padding-top: 20px; }
  .hero-trust .hero-trust--label { width: 100%; }
  .hero-trust .trust-badge img { height: 20px; }
}
@media (max-width: 960px) {
  .about-grid img, .hero-media img { max-height: 420px; }
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .contact-channel:first-child { padding-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-media { max-height: 420px; }
  .proof-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; gap: 8px 16px; border-left: 3px solid var(--accent); padding-left: 16px; align-items: start; min-height: 0; }
  .service-row p { grid-column: 2; top: 0; }
  .service-row--icon { width: 40px; height: 40px; align-self: start; }
  .service-row--arrow { display: none; }
  .section-head--split { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .clients-strip img { height: 44px; }
}
@media (max-width: 880px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================================
   SHIELD: blinda a front page contra CSS global do kit Elementor
   (site antigo injeta h1{Heebo 68px} e a{cor branca} DEPOIS do
   tema, vencendo por ordem). Escopado em body.home: paginas
   antigas do Elementor nao sao afetadas. Reverter: remover.
   ============================================================ */
body.home h1, body.home h2, body.home h3 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  font-weight: 700;
  text-transform: uppercase;
}
body.home h1 { font-size: clamp(38px, 4.6vw, 64px); }
body.home h2 { font-size: clamp(30px, 4vw, 52px); }
body.home h3 { font-size: 22px; font-weight: 600; }
body.home .contact-channel h3 {
  font-size: 18px; font-weight: 500;
  font-family: 'Barlow', sans-serif;
  text-transform: none; letter-spacing: 0;
}
body.home p, body.home li { font-family: 'Barlow', system-ui, sans-serif; }
body.home a { color: inherit; text-decoration: none; }
body.home .btn {
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600; font-size: 16px;
  font-family: 'Barlow', system-ui, sans-serif;
  display: inline-block;
  text-decoration: none;
}
body.home .btn-primary { background: #d62424; color: #fff; }
body.home .btn-ghost { border: 1px solid #4a5058; color: #eceef1; }
body.home .main-nav a { color: #9aa2ad; font-weight: 500; font-size: 15px; }
body.home .main-nav a.btn-primary { color: #fff; }
body.home .contact-channel a { font-weight: 600; font-size: 17px; color: #eceef1; }
body.home .emergency-bar a { color: #fff; }
body.home { background: #14161a; color: #eceef1; }
body.home h1, body.home h2, body.home h3 { color: inherit; }
body.home .contact-channel h3 { color: #eceef1; }

/* ---------- img-slider: slides horizontais dentro dos boxes de foto ---------- */
.img-slider { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.img-slider--track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.img-slider--track img { flex: 0 0 100%; min-width: 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slider--dots {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: 8px; justify-content: center; z-index: 2;
}
.img-slider--dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, 0.45); cursor: pointer;
  transition: background .2s, transform .2s;
}
.img-slider--dots button.on { background: #fff; transform: scale(1.2); }
.img-slider--dots button:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.img-slider--count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(16, 18, 22, 0.72); color: #eceef1;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.img-slider:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .img-slider--track { transition: none; }
}
