/* ============================================================
   [tubos] — estilos
   Página de produto/serviço com tabelas técnicas.
   Tudo escopado em .hci-tb.
   ============================================================ */

.hci-tb {
  --hci-primary: #153377;
  --hci-text:    #272727;
  --hci-title:   #00142F;
  --hci-bg:      #ffffff;
  --hci-bg-alt:  #f5f7fb;
  --hci-border:  #e3e7ee;
  --hci-shadow:  0 6px 24px rgba(0, 20, 47, .08);

  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--hci-text);
  background: var(--hci-bg);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 32px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hci-tb *,
.hci-tb *::before,
.hci-tb *::after { box-sizing: border-box; }

.hci-tb__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Tipografia ---------- */
.hci-tb__lead,
.hci-tb__h2,
.hci-tb__h3 {
  font-family: "Neue Machina", 'Inter', system-ui, sans-serif;
  color: var(--hci-title);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 700;
  margin: 0 0 .6em;
}
.hci-tb__lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; }
.hci-tb__h2   { font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; letter-spacing: .03em; }
.hci-tb__h3   { font-size: clamp(20px, 1.8vw, 24px); text-transform: uppercase; letter-spacing: .03em; }

.hci-tb__h2::after,
.hci-tb__h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--hci-primary);
  margin-top: 12px;
  border-radius: 2px;
}

.hci-tb p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  margin: 0 0 1.1em;
  color: var(--hci-text);
}
.hci-tb p:last-child { margin-bottom: 0; }
.hci-tb strong { color: var(--hci-title); font-weight: 600; }

/* ---------- Hero (texto + imagem) ---------- */
.hci-tb__hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.hci-tb__hero-text { min-width: 0; }
.hci-tb__hero-text .hci-tb__lead { margin-bottom: .8em; }

.hci-tb__hero-media {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--hci-shadow);
  background: var(--hci-bg-alt);
}
.hci-tb__hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Section ---------- */
.hci-tb__section { margin-bottom: clamp(56px, 7vw, 96px); }
.hci-tb__section--last,
.hci-tb__section:last-child { margin-bottom: 0; }

.hci-tb__section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.hci-tb__section-head--center { text-align: center; }
.hci-tb__section-head--center .hci-tb__h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Two-col (Capacidade + Especificações) ---------- */
.hci-tb__two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ---------- Lista (Especificações) ---------- */
.hci-tb__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hci-tb__list li {
  padding: 10px 0 10px 22px;
  position: relative;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  border-bottom: 1px solid var(--hci-border);
  color: var(--hci-text);
}
.hci-tb__list li:last-child { border-bottom: none; }
.hci-tb__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 8px;
  background: var(--hci-primary);
  border-radius: 50%;
}

/* ---------- Categoria (cabeçalho da tabela) ---------- */
.hci-tb__category {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.hci-tb__category:last-child { margin-bottom: 0; }

.hci-tb__cat-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}
.hci-tb__cat-head--no-image {
  grid-template-columns: 1fr;
}
.hci-tb__cat-head .hci-tb__h3 { margin-bottom: 0; }

.hci-tb__cat-media {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--hci-shadow);
  aspect-ratio: 16 / 10;
  background: var(--hci-bg-alt);
}
.hci-tb__cat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Tabela ---------- */
/* Sem overflow no desktop — a tabela cabe no container e o "auto" estava
   reservando ~10px de gutter de scrollbar no rodapé mesmo invisível. */
.hci-tb__table-wrap {
  border-radius: 8px;
  background: var(--hci-bg);
}
.hci-tb__table-wrap:focus { outline: 2px solid var(--hci-primary); outline-offset: 2px; }

.hci-tb__table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--hci-bg);
}
.hci-tb__table thead th {
  background: var(--hci-primary);
  color: #fff;
  text-align: left;
  padding: 14px 14px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  vertical-align: middle;
}
.hci-tb__table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hci-border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--hci-text);
}
.hci-tb__table tbody tr:last-child td { border-bottom: none; padding-bottom: 8px; }
.hci-tb__table tbody tr:nth-child(even) td { background: var(--hci-bg-alt); }
.hci-tb__table tbody tr:hover td { background: rgba(21, 51, 119, .06); }

.hci-tb__td-prod  { font-weight: 600; color: var(--hci-title); white-space: nowrap; }
.hci-tb__td-diam  { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hci-tb__td-grade { font-variant-numeric: tabular-nums; }

/* ---------- Responsivo ---------- */

/* Quando a tabela passa a precisar de scroll horizontal (wrap < min-width):
   liga overflow-x: auto + scrollbar com cor da marca. */
@media (max-width: 960px) {
  .hci-tb__table-wrap {
    overflow-x: auto;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--hci-primary) var(--hci-bg-alt);
  }
  /* WebKit / Chromium / Safari */
  .hci-tb__table-wrap::-webkit-scrollbar { height: 10px; }
  .hci-tb__table-wrap::-webkit-scrollbar-track {
    background: var(--hci-bg-alt);
    border-radius: 0 0 8px 8px;
  }
  .hci-tb__table-wrap::-webkit-scrollbar-thumb {
    background: var(--hci-primary);
    border-radius: 5px;
    border: 2px solid var(--hci-bg-alt);
  }
  .hci-tb__table-wrap::-webkit-scrollbar-thumb:hover { background: var(--hci-title); }
}

/* Tablet / abaixo */
@media (max-width: 860px) {
  .hci-tb__hero,
  .hci-tb__two-col {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
    align-items: stretch;
  }
  .hci-tb__hero-media img { max-height: 420px; object-fit: cover; }

  .hci-tb__cat-head {
    grid-template-columns: 140px 1fr;
    gap: clamp(16px, 3vw, 24px);
  }

  .hci-tb__hero    { margin-bottom: clamp(48px, 7vw, 80px); }
  .hci-tb__section { margin-bottom: clamp(40px, 7vw, 64px); }
}

/* Mobile */
@media (max-width: 600px) {
  .hci-tb {
    padding: clamp(32px, 8vw, 48px) clamp(14px, 4vw, 20px);
  }
  .hci-tb__hero-media img { max-height: 300px; }

  .hci-tb__lead {
    font-size: clamp(19px, 5.5vw, 24px);
    line-height: 1.4;
  }
  .hci-tb__h2,
  .hci-tb__h3 {
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: .02em;
  }
  .hci-tb__h2::after,
  .hci-tb__h3::after { width: 40px; height: 3px; margin-top: 10px; }

  .hci-tb p,
  .hci-tb__list li { font-size: 15px; }

  .hci-tb__cat-head {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hci-tb__cat-media { aspect-ratio: 16 / 9; max-width: 360px; }

  .hci-tb__table { min-width: 720px; font-size: 13px; }
  .hci-tb__table thead th { padding: 10px 12px; }
  .hci-tb__table tbody td { padding: 10px 12px; }

  .hci-tb__hero    { margin-bottom: clamp(36px, 8vw, 56px); }
  .hci-tb__section { margin-bottom: clamp(32px, 8vw, 48px); }
  .hci-tb__category { margin-bottom: clamp(28px, 7vw, 40px); }
}
