/* =============================================================================
   Hotforming — Strategic Alliance Section  (Figma 659:4825 / 663:5881)
   Beige bg · centred header · logo row · machinery photo · 3-column cards
   ============================================================================= */

/* ── Section shell ─────────────────────────────────────────────────────────── */
.hf-alliance {
  background-color: var(--color-beige, #f0f0e3);
  padding: 100px 120px;
}

.hf-alliance__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.hf-alliance__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  max-width: 896px;
  width: 100%;
}

.hf-alliance__eyebrow {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark, #252525);
  margin: 0;
  letter-spacing: 0.05em;
}

.hf-alliance__heading {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-dark, #252525);
  margin: 0;
}

.hf-alliance__sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark, #252525);
  margin: 0;
}

/* ── Logo row ──────────────────────────────────────────────────────────────── */
.hf-alliance__logos {
  display: flex;
  align-items: center;
  gap: 68px;
  flex-shrink: 0;
}

.hf-alliance__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hf-alliance__logo--alf {
  width: 220px;
  height: 100px;
}

.hf-alliance__logo--alf img {
  /* ALF logo is taller than wide — contain within the box */
  max-width: 105px;
  max-height: 100px;
  object-fit: contain;
}

.hf-alliance__logo--handshake {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

.hf-alliance__logo--handshake img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hf-alliance__logo--apt {
  width: 220px;
  height: 100px;
}

.hf-alliance__logo--apt img {
  max-width: 220px;
  max-height: 100px;
  object-fit: contain;
}

/* ── Machinery photo ───────────────────────────────────────────────────────── */
.hf-alliance__photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 853 / 413;
}

.hf-alliance__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Bottom block ──────────────────────────────────────────────────────────── */
.hf-alliance__bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.hf-alliance__bottom-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: 9px 53px;
  width: 100%;
  box-sizing: border-box;
}

.hf-alliance__sub-heading {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-dark, #252525);
  margin: 0;
}

.hf-alliance__sub-body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark, #252525);
  margin: 0;
}

/* ── Cards row ─────────────────────────────────────────────────────────────── */
.hf-alliance__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

/* ── Single card ────────────────────────────────────────────────────────────── */
.hf-alliance__card {
  flex: 1 0 0;
  min-width: 170px;
  background-color: var(--color-beige, #f0f0e3);
  border: 1.271px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.hf-alliance__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  flex-shrink: 0;
}

/* Red rounded square housing the icon */
.hf-alliance__card-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary, #cd261d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-alliance__card-icon-wrap img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.hf-alliance__card-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-dark, #252525);
  margin: 0;
  white-space: nowrap;
}

.hf-alliance__card-body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark, #252525);
  margin: 0;
}

/* ── Responsive — tablet (≤ 900px) ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hf-alliance {
    padding: 80px 48px;
  }

  .hf-alliance__heading {
    font-size: 30px;
  }

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

  .hf-alliance__logos {
    gap: 36px;
  }

  .hf-alliance__logo--alf,
  .hf-alliance__logo--apt {
    width: 160px;
    height: 75px;
  }

  .hf-alliance__logo--handshake {
    width: 70px;
    height: 70px;
  }

  .hf-alliance__bottom-header {
    padding: 9px 24px;
  }
}

/* ── Responsive — mobile (≤ 600px) ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hf-alliance {
    padding: 64px 16px;
  }

  .hf-alliance__inner {
    gap: 32px;
  }

  .hf-alliance__heading {
    font-size: 26px;
    line-height: 1.2;
  }

  .hf-alliance__sub {
    font-size: 16px;
  }

  /* Logo row: smaller on mobile (matches Figma 663:5885 — 343px wide) */
  .hf-alliance__logos {
    gap: 34px;
  }

  .hf-alliance__logo--alf,
  .hf-alliance__logo--apt {
    width: 112px;
    height: 51px;
  }

  .hf-alliance__logo--alf img {
    max-width: 53px;
    max-height: 51px;
  }

  .hf-alliance__logo--apt img {
    max-width: 112px;
    max-height: 51px;
  }

  .hf-alliance__logo--handshake {
    width: 51px;
    height: 51px;
  }

  .hf-alliance__photo {
    border-radius: 8px;
  }

  .hf-alliance__bottom-header {
    padding: 9px 16px;
  }

  .hf-alliance__sub-heading {
    font-size: 20px;
  }

  .hf-alliance__sub-body {
    font-size: 16px;
  }

  .hf-alliance__cards {
    flex-direction: column;
    gap: 12px;
  }

  .hf-alliance__card {
    min-width: unset;
    flex: none;
    width: 100%;
  }
}