/*
 * Alf Theme — Product Design: Industry 4.0 Section
 * Figma node: 1589:2197
 *
 * Variant of the FSS Process section (product-design-process.css): same
 * card ↔ detail-panel click interaction, on a dark background, with
 * icon+title-only cards and a detail panel holding a single text pill
 * (no icon) stacked above one photo.
 *
 * Background: #252525 (dark)
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.pd-industry4 {
  background-color: var(--color-dark);
  padding: var(--section-pad-desktop) 0;
}

.pd-industry4__wrap {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-desktop);
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.pd-industry4__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-title-gap);
  align-items: center;
  text-align: center;
  max-width: var(--header-max-width);
  width: 100%;
}

.pd-industry4__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  color: var(--color-bg);
  margin: 0;
}

.pd-industry4__subtitle {
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-regular);
  line-height: normal;
  color: var(--color-bg);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS ROW
   ═══════════════════════════════════════════════════════════════════ */
.pd-industry4__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  align-items: stretch;
  width: 100%;
}

.pd-industry4__card {
  flex: 1 0 0;
  min-width: 200px;
  height: 100px;
  box-sizing: border-box;
  display: flex;
  padding: 16px 12px;
  border-radius: var(--radius-xl);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.pd-industry4__card:hover,
.pd-industry4__card:focus-visible,
.pd-industry4__card.is-active {
  background-color: var(--color-darker);
}

.pd-industry4__card:hover .pd-industry4__card-title,
.pd-industry4__card:focus-visible .pd-industry4__card-title,
.pd-industry4__card.is-active .pd-industry4__card-title {
  color: var(--color-bg);
}

.pd-industry4__card-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
}

.pd-industry4__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
}

.pd-industry4__card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.pd-industry4__card-title {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  color: var(--color-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-normal);
}

/* ── Mobile-fused detail ───────────────────────────────────────────
   Hidden by default (desktop/tablet use the shared panel below instead).
   Enabled only below the single-column breakpoint — see RESPONSIVE. ── */
.pd-industry4__mobile-detail {
  display: none;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PANEL
   ═══════════════════════════════════════════════════════════════════ */
.pd-industry4__panels {
  width: 100%;
}

.pd-industry4__panel {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-desktop);
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-darker);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  box-shadow: var(--shadow-card);
}

.pd-industry4__pill {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-dark);
  border-radius: var(--radius-2xl);
  padding: 16px 24px;
}

.pd-industry4__pill-text {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-light);
  line-height: normal;
  color: var(--color-bg);
  margin: 0;
}

.pd-industry4__photo-wrap {
  width: 100%;
  height: 299px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  background-color: var(--color-bg);
}

.pd-industry4__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-industry4__photo-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-grey);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pd-industry4 {
    padding: var(--section-pad-tab-landscape) 0;
  }

  .pd-industry4__panel {
    padding: 40px 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .pd-industry4 {
    padding: var(--spacing-between-sections-mobile) 0;
  }

  .pd-industry4__header {
    gap: var(--section-gap-mobile);
  }

  .pd-industry4__title {
    font-size: var(--font-size-h2-mobile);
  }

  .pd-industry4__subtitle {
    font-weight: var(--font-weight-light);
  }

  .pd-industry4__cards {
    flex-direction: column;
  }

  .pd-industry4__card {
    min-width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--color-grey);
  }

  .pd-industry4__card.is-active {
    padding: 24px 16px;
    border: none;
  }

  .pd-industry4__card-row {
    gap: 16px;
  }

  .pd-industry4__card-title {
    white-space: normal;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
  }

  .pd-industry4__card.is-active .pd-industry4__card-title {
    font-size: var(--font-size-body-md);
    font-weight: var(--font-weight-semibold);
  }

  /* ── Accordion swap: detail fuses into the active card itself instead
     of appearing in a shared panel below the row. ── */
  .pd-industry4__panels {
    display: none;
  }

  .pd-industry4__mobile-detail.is-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .pd-industry4__mobile-detail .pd-industry4__photo-wrap {
    height: auto;
    aspect-ratio: 544 / 304;
  }
}
