/*
 * Alf Theme — Hotforming Components We Manufacture
 * Figma node: 659:4249
 *
 * Dark (#252525) background, centred header, #0c0c0c showcase card
 * with chassis diagram + 4 chips in a 2-column grid.
 * Loaded only on the Hotforming page template.
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hf-comps {
  background-color: var(--color-dark);
  padding-block: 160px;
}

/* ── Inner wrap ──────────────────────────────────────────────────── */
.hf-comps__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.hf-comps__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: var(--header-max-width);
  /* 896px */
  width: 100%;
  text-align: center;
}

.hf-comps__title {
  font-size: var(--font-size-h2);
  /* 36px */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-bg);
  margin: 0;
}

.hf-comps__subtitle {
  font-size: var(--font-size-h4);
  /* 20px */
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-bg);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SHOWCASE CARD
   ═══════════════════════════════════════════════════════════════════ */
.hf-comps__card {
  width: 100%;
  background-color: #0c0c0c;
  border-radius: var(--radius-xl);
  /* 16px */
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
}

/* ── Chassis diagram ─────────────────────────────────────────────── */
.hf-comps__diagram {
  position: relative;
  aspect-ratio: 1054 / 382;
  background-color: var(--color-dark);
  border: 1px solid rgba(96, 102, 88, 0.3);
  border-radius: var(--radius-lg);
  /* 14px */
  overflow: hidden;
}

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

/* ── Red dot markers ─────────────────────────────────────────────── */
.hf-comps__dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.94;
  left: var(--dot-x);
  top: var(--dot-y);
  transform: translate(-50%, -50%);
}

/* ── Component chips (2-column grid) ─────────────────────────────── */
.hf-comps__chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

.hf-comps__chip {
  background-color: var(--color-dark);
  border: 1px solid rgba(96, 102, 88, 0.3);
  border-radius: 10px;
  padding: 17px;
  font-size: var(--font-size-body-sm, 14px);
  font-weight: var(--font-weight-regular);
  color: var(--color-bg);
  text-align: center;
  line-height: 1.4;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .hf-comps__chip:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 102, 88, 0.55);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hf-comps {
    padding-block: 120px;
  }

  .hf-comps__card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .hf-comps {
    padding-block: 80px;
  }

  .hf-comps__card {
    padding: 24px 16px;
  }

  .hf-comps__title {
    font-size: 28px;
  }

  .hf-comps__chips {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}