/* Shared hub service link card grid (Monitoring + Physical Security hubs) */

.sg-hub-services__grid,
.sg-monitoring-services__grid,
.sg-ps-services__grid {
  display: grid;
  gap: 0.875rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.sg-hub-services__card,
.sg-monitoring-services__card,
.sg-ps-services__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: clamp(1.125rem, 2vw, 1.5rem);
  background: #fff;
  border: 1px solid var(--sg-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.sg-hub-services__card:hover,
.sg-monitoring-services__card:hover,
.sg-ps-services__card:hover {
  border-color: #b8d4e8;
  background: var(--sg-blue-wash);
}

.sg-hub-services__title,
.sg-monitoring-services__title,
.sg-ps-services__title {
  margin: 0;
  font-family: var(--sg-font-head);
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 700;
  color: var(--sg-navy);
  line-height: 1.3;
  padding-right: 1.5rem;
}

.sg-hub-services__desc,
.sg-monitoring-services__desc,
.sg-ps-services__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sg-muted);
}

.sg-hub-services__chevron,
.sg-monitoring-services__chevron,
.sg-ps-services__chevron {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  font-size: 1.25rem;
  color: var(--sg-blue);
  line-height: 1;
}

@media (min-width: 640px) {
  .sg-hub-services__grid,
  .sg-monitoring-services__grid,
  .sg-ps-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sg-hub-services__grid,
  .sg-monitoring-services__grid,
  .sg-ps-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hub + spoke process strip overrides */
body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-steps__list,
body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-steps__list,
body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-steps__list {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-step-card,
body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-step-card,
body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-step-card {
  padding: 1.5rem 1rem 1.25rem;
}

body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-step-card__num,
body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-step-card__num,
body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-step-card__num {
  position: static;
  margin: 0 0 0.875rem;
  flex-shrink: 0;
}

body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-step-card__title,
body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-step-card__title,
body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-step-card__title {
  width: 100%;
}

body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-step-card__desc,
body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-step-card__desc,
body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-step-card__desc {
  max-width: none;
}

@media (min-width: 1024px) {
  body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-steps__list,
  body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-steps__list,
  body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-steps__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.safeguard-monitoring-page .sg-monitoring-process .sg-alarm-steps__list::before,
  body.safeguard-monitoring-page .sg-monitoring-how-it-works .sg-alarm-steps__list::before,
  body.safeguard-physical-security-page .sg-physical-security-process .sg-alarm-steps__list::before {
    top: 2.5rem;
  }
}
