/* Compact services grid — 2026-09-02 redesign
   Uniform tile heights, tight 4-col desktop → 2-col tablet → 1-col mobile.
   Replaces the old 2+3 solutions-grid with bullet lists.
*/

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .625rem;
  }
}

/* Mobile: KEEP 2 columns, just make the tiles compact.
   Single-column made the section way too tall — 8 cards became 8 screens.
   Compact 2-col fits all 8 in ~2 screens. */
@media (max-width: 520px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .svc-tile {
    padding: 1rem .75rem .875rem;
    min-height: 0;
    border-radius: 12px;
  }
  .svc-tile__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: .625rem;
  }
  .svc-tile__icon svg {
    width: 16px;
    height: 16px;
  }
  .svc-tile__title {
    font-size: .9375rem;
    line-height: 1.2;
    margin-bottom: .25rem;
  }
  .svc-tile__desc {
    font-size: .75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .5);
    /* clamp to 3 lines so tile heights stay uniform */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .svc-tile__link {
    margin-top: .75rem;
    padding-top: .625rem;
    font-size: .75rem;
  }
  .svc-tile__link svg {
    width: 12px;
    height: 12px;
  }
  .svc-tile__badge {
    top: 8px;
    right: 8px;
    padding: .15rem .4rem;
    font-size: 8px;
    letter-spacing: .08em;
  }
}

.svc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025) 0%, rgba(255, 255, 255, .01) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  min-height: 220px;
}

.svc-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .3);
  background: linear-gradient(180deg, rgba(37, 99, 235, .05) 0%, rgba(255, 255, 255, .01) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25), 0 0 0 1px rgba(37, 99, 235, .15);
}

.svc-tile__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: .25rem .55rem;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary-bright, #7ba8ff);
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 100px;
  white-space: nowrap;
}

.svc-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .1);
  border: 1px solid rgba(37, 99, 235, .18);
  color: var(--color-primary-bright, #7ba8ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  transition: background .2s ease, transform .18s ease;
}
.svc-tile:hover .svc-tile__icon {
  background: rgba(37, 99, 235, .2);
  transform: scale(1.05);
}

.svc-tile__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 .375rem;
}

.svc-tile__desc {
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .58);
  margin: 0 0 auto;
}

.svc-tile__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  padding-top: .875rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-primary-bright, #7ba8ff);
  transition: gap .2s ease, color .2s ease;
}
.svc-tile:hover .svc-tile__link {
  gap: .625rem;
  color: #fff;
}
.svc-tile__link svg {
  transition: transform .2s ease;
}
.svc-tile:hover .svc-tile__link svg {
  transform: translateX(2px);
}

/* Featured tile — subtle blue tint */
.svc-tile--featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, .08) 0%, rgba(37, 99, 235, .02) 100%);
  border-color: rgba(37, 99, 235, .22);
}
.svc-tile--featured .svc-tile__icon {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .3);
}

/* Hide the old solutions-grid rules on this page — belt and suspenders */
.solutions-grid--carousel .sol-card__items {
  display: none;
}

.solutions-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
