/* =====================  nm-services — soft ice (light)  ===================== */
.nm-services {
  --nm-ice-0: #f7fbfe;
  --nm-ice-1: #eef6fb;
  --nm-ice-2: #e3eef7;
  --nm-ink: #16324a;
  --nm-muted: #5b7388;
  --nm-line: #d4e4ef;
  --nm-card: #ffffff;
  --nm-brand: #ea580b;
  --nm-brand-soft: #fff4ec;
  --nm-frost: #3d7ea6;
  --nm-radius: 14px;
  --nm-shadow: 0 8px 24px rgba(22, 50, 74, 0.06);
  --nm-shadow-hover: 0 14px 32px rgba(22, 50, 74, 0.1);
  --nm-max: 1140px;
  --nm-gap: 12px;

  color: var(--nm-ink);
  font-family: Urbanist, "Segoe UI", system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  background: transparent !important;
}

.nm-services,
.nm-services * {
  box-sizing: border-box;
}
.nm-services :where(h1, h2, h3, p) {
  margin: 0;
}
.nm-services :where(a) {
  color: inherit;
  text-decoration: none;
}

/* Transparent section background — page shows through */
.nm-services__bg {
  display: none !important;
}

.nm-services__wrap {
  max-width: var(--nm-max);
  margin-inline: auto;
  padding: clamp(16px, 2.4vw, 28px) clamp(14px, 2vw, 22px);
}

.nm-services__header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.nm-services__kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--nm-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--nm-frost);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.nm-services__title {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--nm-ink);
}

.nm-services__subtitle {
  max-width: 58ch;
  color: var(--nm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.nm-services__grid {
  display: grid;
  gap: var(--nm-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .nm-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .nm-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .nm-services__grid {
    grid-template-columns: 1fr;
  }
}

.nm-services__card {
  position: relative;
  border-radius: var(--nm-radius);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nm-services__card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(61, 126, 166, 0.55), rgba(234, 88, 11, 0.45), transparent 85%);
  opacity: 0.85;
  pointer-events: none;
}

.nm-services__card::after {
  content: none;
}

.nm-services__cardInner {
  position: relative;
  padding: 14px 14px 12px;
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
}

.nm-services__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.nm-services__cardTitle {
  font-size: 15.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--nm-ink);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: none;
}

.nm-services__chip {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--nm-frost);
  border: 1px solid var(--nm-line);
  background: var(--nm-ice-1);
  letter-spacing: 0.02em;
}

.nm-services__cardText {
  color: var(--nm-muted);
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-services__btn {
  margin-top: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  background: var(--nm-ice-1);
  border: 1px solid var(--nm-line);
  color: var(--nm-ink);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nm-services__btnIcon {
  display: inline-block;
  transition: transform 0.18s ease;
}

.nm-services__card:hover {
  box-shadow: var(--nm-shadow-hover);
  transform: translateY(-2px);
  border-color: #b9d4e6;
}

.nm-services__card:hover .nm-services__btn {
  background: var(--nm-brand);
  border-color: var(--nm-brand);
  color: #fff;
}

.nm-services__card:hover .nm-services__btnIcon {
  transform: translateX(2px);
}

.nm-services__btn:focus-visible {
  outline: 2px solid rgba(61, 126, 166, 0.45);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .nm-services__cardText {
    -webkit-line-clamp: 4;
  }
}
