/* Service tiles: used on the homepage and on /services/.
   Equal-height grid; the link is pinned to the bottom of every tile. */

.svc-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;               /* every tile as tall as the tallest */
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  padding: 26px 22px 22px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px -22px rgba(44, 75, 219, 0.28);
}
.svc-tile:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.svc-num {
  position: absolute;
  top: 24px;
  right: 22px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.svc-ico { width: 38px; height: 38px; color: var(--accent); margin-bottom: 8px; }

.svc-tile h3 { font-size: 1.15rem; line-height: 1.28; margin: 12px 0 8px; color: var(--ink); }
.svc-problem { color: var(--ink); font-weight: 500; font-size: 0.95rem; margin-bottom: 10px; }
.svc-covers { flex: 1; font-size: 0.93rem; line-height: 1.55; margin: 0 0 20px; color: var(--ink-soft); }

/* stretched link: the whole tile is one real <a>, no JavaScript involved */
.svc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.svc-link::after { flex: none; }
.svc-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-link:focus-visible { outline: none; }

.svc-all { margin-top: 28px; }
.svc-cred-label { margin: 22px 0 8px; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.svc-cred { list-style: none; margin: 0 0 18px; padding: 0; }
.svc-cred li { margin-bottom: 8px; font-size: 0.98rem; color: var(--ink-soft); }

/* Solutions page version: no icon, so the number sits in the flow above the title */
.svc-tiles--page .svc-tile { padding-top: 24px; }
.svc-tiles--page .svc-num { position: static; display: block; color: var(--accent); }
.svc-tiles--page .svc-tile h3 { margin-top: 14px; }

@media (max-width: 1080px) {
  .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 560px) {
  .svc-tiles { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 14px; }
  .svc-tile { padding: 22px 20px 18px; }
}
