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

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

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

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

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

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

/* ---------- Hero ---------- */
.hci-fl__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-fl__hero-text { min-width: 0; }
.hci-fl__hero-text .hci-fl__lead { margin-bottom: .8em; }

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

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

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

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

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

/* ---------- Lista de tipos (portfólio) ---------- */
.hci-fl__types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.hci-fl__types li {
  position: relative;
  padding: 10px 12px 10px 28px;
  font-size: clamp(15px, 1.05vw, 17px);
  color: var(--hci-text);
  background: var(--hci-bg-alt);
  border-left: 3px solid var(--hci-primary);
  border-radius: 2px;
  font-weight: 500;
}
.hci-fl__types li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--hci-primary);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ---------- Especificações (fact list) ---------- */
.hci-fl__specs {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hci-border);
}
.hci-fl__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-fl__spec-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--hci-primary);
  padding-top: 4px;
}
.hci-fl__spec-value {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--hci-text);
}

/* ---------- Flanges especiais (cards 2x2) ---------- */
.hci-fl__special-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.hci-fl__special {
  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-fl__special:hover {
  transform: translateY(-3px);
  box-shadow: var(--hci-shadow);
}
.hci-fl__special-media {
  margin: 0;
  background: var(--hci-bg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hci-fl__special-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hci-fl__special-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hci-fl__special-body .hci-fl__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-fl__special-specs {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hci-fl__special-spec {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.hci-fl__special-spec dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--hci-primary);
}
.hci-fl__special-spec dd {
  margin: 0;
  font-size: clamp(14px, .98vw, 15px);
  color: var(--hci-text);
  line-height: 1.55;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .hci-fl__hero,
  .hci-fl__row {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
    align-items: stretch;
  }
  .hci-fl__row--reverse .hci-fl__media   { order: 0; }
  .hci-fl__row--reverse .hci-fl__content { order: 0; }

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

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

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

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

@media (max-width: 600px) {
  .hci-fl {
    padding: clamp(32px, 8vw, 48px) clamp(14px, 4vw, 20px);
  }
  .hci-fl__hero-media img,
  .hci-fl__media img { max-height: 300px; }

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

  .hci-fl p,
  .hci-fl__spec-value { font-size: 15px; }

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

  .hci-fl__special-spec {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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