/* Related services, integration cross-link card strip */

.sg-related-services {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--sg-line);
}

.sg-related-services__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 768px) {
  .sg-related-services__header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.sg-related-services__heading {
  max-width: 36rem;
}

.sg-related-services__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--sg-font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-blue);
}

.sg-related-services__eyebrow::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--sg-orange);
}

.sg-related-services__title {
  margin: 0 0 0.5rem;
  font-family: var(--sg-font-head);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--sg-navy);
}

.sg-related-services__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--sg-muted);
}

.sg-related-services__hub-link {
  flex-shrink: 0;
  font-family: var(--sg-font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sg-blue);
  text-decoration: none;
  white-space: nowrap;
}

.sg-related-services__hub-link:hover {
  text-decoration: underline;
}

.sg-related-services__grid {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .sg-related-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sg-related-services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sg-related-services__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sg-related-services__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 1.5rem);
  background: #fff;
  border: 1px solid var(--sg-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sg-related-services__card:hover {
  border-color: #b8d4e8;
  box-shadow: var(--sg-shadow);
}

.sg-related-services__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(4.5rem, 7vw, 5.5rem);
  height: clamp(4.5rem, 7vw, 5.5rem);
  margin-bottom: 0.375rem;
}

.sg-related-services__icon-img {
  display: block;
  width: clamp(4.5rem, 7vw, 5.5rem);
  height: clamp(4.5rem, 7vw, 5.5rem);
  object-fit: contain;
  object-position: left center;
}

.sg-related-services__icon .sg-lucide-icon {
  display: block;
  width: var(--sg-icon-size, 2rem);
  height: var(--sg-icon-size, 2rem);
  color: var(--sg-blue);
}

.sg-related-services__arrow .sg-lucide-icon {
  color: currentColor;
}

.sg-related-services__icon-placeholder {
  display: block;
  width: clamp(4.5rem, 7vw, 5.5rem);
  height: clamp(4.5rem, 7vw, 5.5rem);
  border: 1px dashed var(--sg-line);
  background: #fff;
  border-radius: 0;
}

.sg-related-services__card-title {
  margin: 0;
  font-family: var(--sg-font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sg-navy);
}

.sg-related-services__card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--sg-muted);
}

.sg-related-services__arrow {
  display: flex;
  color: var(--sg-blue);
  line-height: 1;
  margin-top: auto;
  align-items: center;
}

/* Inside split sections, full width within container */
.sg-ac-split .sg-container > .sg-related-services {
  margin-top: clamp(2rem, 4vw, 3rem);
}

body.safeguard-monitoring-page .entry-content .sg-related-services__grid,
body.safeguard-physical-security-page .entry-content .sg-related-services__grid {
  margin: 0;
  padding: 0;
  list-style: none;
}
