/* =============================================================================
   Hotforming — Equipment Section
   Figma nodes: 659:4953 (desktop) / 663:6086 (mobile)
   Prefix: hf-equip
   ============================================================================= */

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.hf-equip {
  background: var(--color-bg, #f8faf0);
  padding-block: 160px;
  padding-inline: var(--section-pad-desktop, 120px);
}

/* ── Inner container ──────────────────────────────────────────────────────── */
.hf-equip__inner {
  max-width: var(--section-max-width, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Section header ───────────────────────────────────────────────────────── */
.hf-equip__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hf-equip__eyebrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary, #cd261d);
  margin: 0;
}

.hf-equip__title {
  font-size: var(--font-size-h2, 36px);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-dark, #252525);
  margin: 0;
  line-height: 1.2;
}

.hf-equip__sub {
  font-size: 20px;
  font-weight: 400;
  color: #373737;
  margin: 0;
  line-height: 1.5;
}

/* ── Row layouts ──────────────────────────────────────────────────────────── */
.hf-equip__row {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Row with card flanked by two photos (Furnace System) */
.hf-equip__row--center {
  /* align-items: center; */
  flex-wrap: wrap;
}

/* ── Photo panel ──────────────────────────────────────────────────────────── */
.hf-equip__photo {
  flex: 1 0 0;
  min-width: 0;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  /* border-radius: 4px; */
}

.hf-equip__row--center .hf-equip__photo {
  height: 442px;
  flex: 1 0 0;
  min-width: 0;
}

.hf-equip__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hf-equip__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 37, 37, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

/* ── White card ───────────────────────────────────────────────────────────── */
.hf-equip__card {
  flex: 1 0 0;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.hf-equip__row--center .hf-equip__card {
  min-width: 340px;
}

/* ── Icon box ─────────────────────────────────────────────────────────────── */
.hf-equip__icon-box {
  width: 48px;
  height: 48px;
  background: var(--color-primary, #cd261d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hf-equip__icon-box img {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Card text ────────────────────────────────────────────────────────────── */
.hf-equip__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark, #252525);
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

.hf-equip__card-desc {
  font-size: 16px;
  font-weight: 300;
  color: #373737;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

/* ── Bullet list ──────────────────────────────────────────────────────────── */
.hf-equip__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hf-equip__bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hf-equip__bullet-dot {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary, #cd261d);
  line-height: 20px;
  flex-shrink: 0;
}

.hf-equip__bullet span:last-child {
  font-size: 16px;
  font-weight: 400;
  color: #373737;
  line-height: 1.5;
  flex: 1;
}

/* ── Responsive: tablet (≤ 1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hf-equip {
    padding-block: 120px;
    padding-inline: 60px;
  }

  .hf-equip__row--center .hf-equip__card {
    min-width: 280px;
  }
}

/* ── Responsive: mobile (≤ 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hf-equip {
    padding-block: 80px;
    padding-inline: var(--section-pad-mobile, 16px);
  }

  .hf-equip__title {
    font-size: 32px;
  }

  .hf-equip__sub {
    font-size: 18px;
  }

  /* All rows stack vertically: photo on top, card below */
  .hf-equip__row,
  .hf-equip__row--card-left,
  .hf-equip__row--card-right,
  .hf-equip__row--center {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  /* Photo always appears first on mobile */
  .hf-equip__row--card-left .hf-equip__card {
    order: 2;
  }

  .hf-equip__row--card-left .hf-equip__photo {
    order: 1;
  }

  .hf-equip__photo {
    min-height: 372px;
    height: 372px;
    flex: none;
  }

  .hf-equip__row--center .hf-equip__photo {
    height: 372px;
    flex: none;
  }

  /* Hide the second/right photo on mobile for the center row */
  .hf-equip__row--center .hf-equip__photo+.hf-equip__card+.hf-equip__photo {
    display: none;
  }

  .hf-equip__card {
    flex: none;
    min-width: 0;
  }

  .hf-equip__row--center .hf-equip__card {
    min-width: 0;
  }
}