/* ============================================================
   Industries Section — Grid Layout
   ============================================================ */

.industries {
  background: var(--bg-light, #f8f8f6);
  padding: 5rem 2rem 8rem;
}

.industries__wrapper {
  max-width: var(--container-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(--font-heading, "Fira Sans", sans-serif);
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--charcoal-black, #161616);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.industries__subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  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(--font-body, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem 0 ;
  order: 1;
}


.industry-card__tagline {
  font-family: var(--font-heading, "Fira Sans", sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0 0;
  align-items: flex-start;
  order: 2;
}

.industry-card__desc {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  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: 4;
}

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

/* ── 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;
  }

  .industries__title,
  .industries__sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .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%;
  }
}
