/* home-showcase.css - the solution finder in home-showcase.php */

.hnx {
  padding: 104px 80px;
  background: #000;
  color: #fff;
}

.hnx__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.hnx ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hnx a {
  color: inherit;
  text-decoration: none;
}

.hnx a:focus-visible,
.hnx button:focus-visible {
  outline: 3px solid #4da3ff;
  outline-offset: 3px;
}

.hnx__title {
  max-width: 760px;
  margin: 0 0 56px;
  font-size: 56px;
  font-weight: 500;
  line-height: 62px;
  letter-spacing: -1.8px;
}

/* ---------- Solution finder ---------- */
.hnx-finder {
  background: #000;
  color: #fff;
}

.hnx-finder__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hnx-finder__tabs button {
  margin: 0 0 -1px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #8d98a8;
  font: inherit;
  font-size: 19px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
}

.hnx-finder__tabs button:hover,
.hnx-finder__tabs button[aria-selected="true"] {
  color: #fff;
}

.hnx-finder__tabs button[aria-selected="true"] {
  border-bottom-color: #4da3ff;
}

.hnx-finder__panel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hnx .hnx-finder__panel a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  padding: 32px;
  border-radius: 12px;
  background: #14171c;
  transition: background 0.25s, color 0.25s;
}

.hnx .hnx-finder__panel a:hover {
  background: #fff;
  color: #000;
}

.hnx-finder__name {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.hnx-finder__text {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 25px;
  opacity: 0.8;
}

.hnx-finder__go {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hnx {
    padding: 80px 48px;
  }

  .hnx__title {
    margin-bottom: 40px;
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -1.2px;
  }

  .hnx-finder__panel ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hnx .hnx-finder__panel a {
    min-height: 0;
  }
}

@media (max-width: 599px) {
  .hnx {
    padding: 56px 16px;
  }

  .hnx__title {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hnx * {
    transition: none !important;
  }
}

/* Phones: tabs in a compact 2 x 2 grid */
@media (max-width: 599px) {
  .hnx-finder__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-bottom: 0;
  }

  .hnx-finder__tabs button {
    padding-bottom: 10px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    font-size: 15px;
    line-height: 20px;
    text-align: left;
  }
}
