/* ========================================
   HOME — INDUSTRIES WE SERVE SECTION
   4-column card grid. Enqueued after main style.
======================================== */

.home-industries {
  padding: 4rem 0;
  background: #f5f7fc;
}

/* ---- Section head ---- */
.home-industries .hind-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c8861d;
  margin-bottom: 0.6rem;
}

.home-industries .hind-eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: #c8861d;
  vertical-align: middle;
  margin-right: 0.6rem;
}

.home-industries .hind-heading {
  color: var(--blue);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.home-industries .hind-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 2.5rem;
}

/* ---- Grid ---- */
.home-industries .hind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #e3e6ee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.home-industries .hind-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 2.25rem;
  border-top: 1px solid #e3e6ee;
  border-left: 1px solid #e3e6ee;
  transition: background 0.18s ease;
}

/* Remove outer-edge borders (grid wrapper supplies them) */
.home-industries .hind-card:nth-child(-n + 4) {
  border-top: 0;
}
.home-industries .hind-card:nth-child(4n + 1) {
  border-left: 0;
}

.home-industries .hind-card:hover {
  background: #f8fafd;
}

.home-industries .hind-num {
  display: block;
  color: #aeb6cc;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.home-industries .hind-title {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
}

.home-industries .hind-card-desc {
  color: var(--text-gray);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.home-industries .hind-link {
  margin-top: auto;
  color: var(--blue);
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

/* Stretch the arrow link over the whole card so the entire tile is clickable */
.home-industries .hind-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-industries .hind-link:focus-visible {
  outline: none;
}

.home-industries .hind-card:has(.hind-link:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.home-industries .hind-card:hover .hind-link {
  color: #c8861d;
}

/* Move the hover shift onto the icon: a transform on the link itself would
   turn it into the containing block for its stretched ::after overlay. */
.home-industries .hind-link i {
  display: inline-block;
  transition: transform 0.18s ease;
}

.home-industries .hind-card:hover .hind-link i {
  transform: translate(2px, -2px);
}

/* ---- Responsive ---- */
@media screen and (max-width: 1100px) {
  .home-industries .hind-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-industries .hind-card:nth-child(-n + 4) {
    border-top: 1px solid #e3e6ee;
  }
  .home-industries .hind-card:nth-child(4n + 1) {
    border-left: 1px solid #e3e6ee;
  }
  .home-industries .hind-card:nth-child(-n + 3) {
    border-top: 0;
  }
  .home-industries .hind-card:nth-child(3n + 1) {
    border-left: 0;
  }
}

@media screen and (max-width: 820px) {
  .home-industries .hind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-industries .hind-card:nth-child(-n + 3) {
    border-top: 1px solid #e3e6ee;
  }
  .home-industries .hind-card:nth-child(3n + 1) {
    border-left: 1px solid #e3e6ee;
  }
  .home-industries .hind-card:nth-child(-n + 2) {
    border-top: 0;
  }
  .home-industries .hind-card:nth-child(2n + 1) {
    border-left: 0;
  }
}

@media screen and (max-width: 520px) {
  .home-industries {
    padding: 2.75rem 0;
  }
  .home-industries .hind-heading {
    font-size: 1.6rem;
  }
  .home-industries .hind-grid {
    grid-template-columns: 1fr;
  }
  .home-industries .hind-card {
    border-left: 0 !important;
  }
  .home-industries .hind-card:nth-child(-n + 2) {
    border-top: 1px solid #e3e6ee;
  }
  .home-industries .hind-card:first-child {
    border-top: 0;
  }
}
