*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: oklch(9% 0.01 250);
  --black-mid: oklch(13% 0.01 250);
  --black-card: oklch(11% 0.008 250);
  --white: oklch(94% 0.005 80);
  --white-dim: oklch(70% 0.005 80);
  --white-muted: oklch(45% 0.005 80);
  --red: oklch(42% 0.20 22);
  --red-bright: oklch(52% 0.22 22);
  --red-glow: oklch(42% 0.20 22 / 0.35);
  --copper: oklch(62% 0.13 52);
  --border: oklch(20% 0.008 250);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── HEADER ── */
header {
  background: oklch(9% 0.01 250 / 0.97);
  border-bottom: 1px solid var(--border);
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 44px; width: auto; }
.back-btn {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--white); }
.back-btn::before { content: '←'; font-size: 16px; }

/* ── MAIN / TITULOS ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}
.manual-body { max-width: 780px; margin: 0 auto; }
.page-eyebrow {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--red-bright); }
h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 48px;
}
h1 span { color: var(--red-bright); }

/* ── INTRO INSTITUCIONAL ── */
.intro-institucional {
  background: var(--black-mid);
  border: 1px solid var(--border);
  padding: 40px 44px;
  margin-bottom: 56px;
}
.intro-institucional h2 {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.intro-institucional p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  margin-bottom: 16px;
}
.intro-institucional p:last-child { margin-bottom: 0; }

/* ── SECOES DO MANUAL ── */
.manual-section {
  border-left: 2px solid var(--border);
  padding-left: 32px;
  margin-bottom: 48px;
  transition: border-color 0.2s;
}
.manual-section:hover { border-color: var(--red); }
.manual-section h2 {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.manual-section p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  margin-bottom: 12px;
}
.manual-section p:last-child { margin-bottom: 0; }
.manual-section ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manual-section ul li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  padding-left: 20px;
  position: relative;
}
.manual-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red-bright);
  font-size: 12px;
}
.manual-tabela { width: 100%; border-collapse: collapse; margin-top: 8px; }
.manual-tabela th, .manual-tabela td {
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
}
.manual-tabela th { color: var(--white); font-weight: 500; width: 40%; }

/* ── IMAGENS DENTRO DE UMA SECAO (ex: diagramas de ligacao) ── */
.manual-section-imagens {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 24px;
}
.manual-section-imagens figure {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 16px;
  max-width: 320px;
}
.manual-section-imagens img {
  display: block;
  width: 100%;
  height: auto;
}
.manual-section-imagens figcaption {
  margin-top: 10px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white-muted);
  text-align: center;
}

/* ── HERO DO PRODUTO (imagem no topo do manual) ── */
.manual-hero {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.manual-hero img {
  width: 280px;
  max-width: 100%;
  height: auto;
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 24px;
}

/* ── BOTAO IMPRIMIR ── */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white) !important;
  border: none;
  padding: 13px 28px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 40px;
}
.print-btn:hover { background: var(--red-bright); }

/* ── BUSCA (Central de Manuais) ── */
.manuais-search { margin-bottom: 40px; }
.manuais-search input {
  width: 100%;
  background: var(--black-mid);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
}
.manuais-search input::placeholder { color: var(--white-muted); }
.manuais-search input:focus { outline: none; border-color: var(--red); }

/* ── GRID DE CARDS (Central de Manuais) ── */
.manuais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.manual-card {
  background: var(--black-card);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}
.manual-card:hover { background: oklch(14% 0.01 250); }
.manual-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 40px;
  transition: transform 0.5s ease, filter 0.3s;
  display: block;
}
.manual-card:hover .manual-card-img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 8px 40px oklch(42% 0.20 22 / 0.3));
}
.manual-card-info {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
}
.manual-card-cat {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 6px;
}
.manual-card-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.05;
}
.manual-card-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-muted);
  font-size: 16px;
  transition: all 0.2s;
  opacity: 0;
}
.manual-card:hover .manual-card-arrow { opacity: 1; background: var(--red); border-color: var(--red); color: var(--white); }
.manuais-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--white-muted);
  font-family: var(--font-cond);
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* ── HUB DE SUPORTE ── */
.suporte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.suporte-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, background 0.2s;
}
.suporte-card:hover { border-color: var(--red); background: oklch(14% 0.01 250); }
.suporte-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 10px;
}
.suporte-card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--white-dim);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--white-muted);
}
footer span { color: var(--red-bright); }

/* ── IMPRESSAO ── */
@media print {
  header, .back-btn, .print-btn, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: 100%; padding: 0; }
  .manual-hero img { border-color: #ccc; }
  .manual-section { border-left-color: #ccc; }
  .manual-section-imagens figure { border-color: #ccc; background: #fff; }
  .manual-section h2, h1, .page-eyebrow, .intro-institucional h2 { color: #000 !important; }
  .manual-section p, .manual-section ul li, .intro-institucional p, .manual-tabela td, .manual-tabela th, .manual-section-imagens figcaption { color: #222 !important; }
  a { color: #000 !important; text-decoration: underline; }
}

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .manuais-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .manuais-grid { grid-template-columns: 1fr; }
  main { padding: 60px 24px 80px; }
  header { padding: 0 24px; }
  .manual-hero { flex-direction: column; align-items: flex-start; }
}
