/* ============================================================
   Industries Section — Grid Layout (Image cards)
   ============================================================ */

.industries {
  background: var(--clr-white, #fafbfd);
  padding: 5rem 2rem 8rem;
}

.industries__wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Header ── */
.industries__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  padding-top: 1rem;
}

.industries__title {
  font-family: var(--ff-primary, "Fira Sans", sans-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 700;
  color: #161616;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.industries__subtitle {
  font-family: var(--ff-primary, "Fira Sans", sans-serif);
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 500px;
}

/* ── Cards Grid ── */
.industries__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Cards ── */
.industry-card {
  position: relative;
  flex: 0 0 calc(20% - 0.8rem);
  max-width: calc(20% - 0.8rem);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: #1a1a2e;
}

.industry-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.industry-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

.industry-card:hover .industry-card__image img {
  filter: blur(4px) brightness(0.5);
  transform: scale(1.05);
}

.industry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  transition: background 0.4s ease;
}

.industry-card:hover .industry-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.industry-card__content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
}

.industry-card__title {
  font-family: var(--ff-primary, "Fira Sans", sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  order: 1;
}

.industry-card__desc {
  font-family: var(--ff-primary, "Inter", sans-serif);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease,
    margin 0.35s ease;
  order: 2;
}

.industry-card:hover .industry-card__desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.6rem;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .industry-card {
    flex: 0 0 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
  }
}

@media (max-width: 900px) {
  .industries {
    padding: 3rem 1.5rem;
  }

  .industries__header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .industry-card {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .industry-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
