/* ============================================================
   [qualidade] — estilos
   Cores e fontes da marca; tudo escopado em .hci-qd
   Mesmo padrão visual de [jateamento-e-pintura] / [usinagem]
   ============================================================ */

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

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

/* ---------- Tipografia ---------- */
.hci-qd__lead,
.hci-qd__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-qd__lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; }
.hci-qd__h3   { font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; letter-spacing: .02em; }
.hci-qd__h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--hci-primary);
  margin-top: 14px;
  border-radius: 2px;
}

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

/* ---------- Intro ---------- */
.hci-qd__intro {
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.hci-qd__sub {
  color: var(--hci-text);
  font-size: clamp(15px, 1.1vw, 17px);
  margin: 0;
}

/* ---------- Rows (imagem + texto) ---------- */
.hci-qd__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.hci-qd__row:last-child { margin-bottom: 0; }
.hci-qd__row--reverse .hci-qd__media   { order: 2; }
.hci-qd__row--reverse .hci-qd__content { order: 1; }

.hci-qd__media {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--hci-shadow);
  background: var(--hci-bg-alt);
}
.hci-qd__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.hci-qd__content { min-width: 0; }

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

/* Tablet / abaixo: colunas empilham, imagem volta a ser larga e centralizada */
@media (max-width: 860px) {
  .hci-qd__row {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
  }
  .hci-qd__row--reverse .hci-qd__media   { order: 0; }
  .hci-qd__row--reverse .hci-qd__content { order: 0; }

  .hci-qd__media img { max-height: 420px; }

  .hci-qd__intro { margin-bottom: clamp(36px, 6vw, 56px); }
  .hci-qd__row   { margin-bottom: clamp(36px, 6vw, 56px); }
}

/* Mobile: imagem mais baixa, paddings e gaps menores */
@media (max-width: 600px) {
  .hci-qd {
    padding: clamp(32px, 8vw, 48px) clamp(14px, 4vw, 20px);
  }
  .hci-qd__media img { max-height: 300px; }

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

  .hci-qd p { font-size: 15px; }

  .hci-qd__intro { margin-bottom: clamp(28px, 8vw, 40px); }
  .hci-qd__row   { margin-bottom: clamp(28px, 8vw, 40px); }
}
