/* ============================================
   INDUSTRIES PAGE - card grid

   Photo cards: the image fades into indigo at the bottom with the sector
   name on top, then a white body with a description and focus tags. A
   sector without a photo shows an ink placeholder with its icon.
   Markup: tools/page_industries.py.
   ============================================ */

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ind-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ece9f5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 50px -44px rgba(35, 13, 79, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ind-card:hover { box-shadow: 0 34px 60px -40px rgba(35, 13, 79, 0.5); transform: translateY(-4px); }

/* ---------- Photo / placeholder ---------- */
.ind-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #230d4f 0%, #2d1a8a 60%, #3230e0 100%);
}

.ind-card__media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ind-card:hover .ind-card__media img { transform: scale(1.05); }

/* Indigo fade under the name, as in the reference */
.ind-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(45, 26, 138, 0) 40%, rgba(45, 26, 138, 0.6) 72%, #2d1a8a 100%);
}

.ind-card__placeholder {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  padding-bottom: 36px;
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(255, 102, 141, 0.35) 0%, rgba(255, 102, 141, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(118, 202, 255, 0.22) 0%, rgba(118, 202, 255, 0) 70%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(135deg, #230d4f 0%, #2d1a8a 60%, #3230e0 100%);
}

.ind-card__placeholder svg {
  width: 88px;
  height: 88px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  fill: none;
  stroke: #ffc6d5;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ind-card__title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  margin: 0;
  font: 500 22px/1.25 var(--font-display);
  color: #ffffff;
}

/* ---------- Body ---------- */
.ind-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }

.ind-card__body p {
  flex: 1;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 25px;
  color: var(--ink-muted);
}

.ind-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #efedf5;
  list-style: none;
}

.ind-card__chips li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f1fd;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--heading-strong);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 640px) {
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-card__title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ind-card,
  .ind-card__media img { transition: none; }
  .ind-card:hover,
  .ind-card:hover .ind-card__media img { transform: none; }
}
