/* ============================================================
   [conexoes] — estilos
   Página de produto/serviço. Tudo escopado em .hci-cx.
   Mesmo sistema de tokens/tipografia de [valvulas] e [tubos].
   ============================================================ */

.hci-cx {
  --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-cx *,
.hci-cx *::before,
.hci-cx *::after { box-sizing: border-box; }

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

/* ---------- Tipografia ---------- */
.hci-cx__lead,
.hci-cx__h2,
.hci-cx__h3,
.hci-cx__h4 {
  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-cx__lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; }
.hci-cx__h2   { font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; letter-spacing: .03em; }
.hci-cx__h3   { font-size: clamp(18px, 1.6vw, 22px); }
.hci-cx__h4   { font-size: clamp(16px, 1.3vw, 19px); letter-spacing: 0; margin-bottom: 8px; }

.hci-cx__h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--hci-primary);
  margin-top: 14px;
  border-radius: 2px;
}

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

/* ---------- Hero (texto + imagem) ---------- */
.hci-cx__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-cx__hero-text { min-width: 0; }
.hci-cx__hero-text .hci-cx__lead { margin-bottom: .8em; }

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

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

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

/* ---------- Row (imagem + texto) ---------- */
.hci-cx__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hci-cx__row--reverse .hci-cx__media   { order: 2; }
.hci-cx__row--reverse .hci-cx__content { order: 1; }

/* Cada row de "Soluções especiais" abaixo da anterior */
.hci-cx__row--solution + .hci-cx__row--solution {
  margin-top: clamp(40px, 5vw, 72px);
}

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

/* ---------- Portfólio (2 cards com cabeçalho imagem+título) ---------- */
.hci-cx__portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.hci-cx__cat {
  background: var(--hci-bg-alt);
  border-top: 4px solid var(--hci-primary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hci-cx__cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--hci-shadow);
}
.hci-cx__cat-media {
  margin: 0;
  background: var(--hci-bg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hci-cx__cat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hci-cx__cat-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hci-cx__cat-body .hci-cx__h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hci-border);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(15px, 1.2vw, 18px);
  margin: 0;
}
.hci-cx__cat-types {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.65;
  color: var(--hci-text);
  margin: 0;
}
.hci-cx__cat-note {
  font-size: clamp(13px, .95vw, 14px);
  color: var(--hci-primary);
  font-weight: 600;
  margin: 0;
}

/* ---------- Especificações (fact list) ---------- */
.hci-cx__specs {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hci-border);
}
.hci-cx__spec {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--hci-border);
}
.hci-cx__spec-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--hci-primary);
  padding-top: 4px;
}
.hci-cx__spec-value {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--hci-text);
}
.hci-cx__spec-list {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
}
.hci-cx__spec-list li + li { margin-top: 4px; }

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

/* Tablet / abaixo */
@media (max-width: 860px) {
  .hci-cx__hero,
  .hci-cx__row {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
    align-items: stretch;
  }
  .hci-cx__row--reverse .hci-cx__media   { order: 0; }
  .hci-cx__row--reverse .hci-cx__content { order: 0; }

  .hci-cx__hero-media img,
  .hci-cx__media img { max-height: 420px; object-fit: cover; }

  .hci-cx__portfolio { grid-template-columns: 1fr; }

  .hci-cx__spec {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

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

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

  .hci-cx p,
  .hci-cx__spec-value { font-size: 15px; }

  .hci-cx__section { margin-bottom: clamp(32px, 8vw, 48px); }
  .hci-cx__hero    { margin-bottom: clamp(36px, 8vw, 56px); }
}
