/* ==========================================================================
   services.css — Services hub (page-services.php) + Service detail (page-service.php).
   Loaded conditionally on those templates only; dep: nexsage-layout.
   Classes copied from home.css are scoped here so they render without home.css.
   ========================================================================== */

/* ---- Service hero (dark, centred — no side panel like home hero) ---- */
.nx-svc-hub-hero,
.nx-svc-hero {
  background: var(--nx-grad-dark);
  color: #fff;
  padding-top: calc(var(--nx-header-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.nx-svc-hub-hero__inner,
.nx-svc-hero__inner { max-width: 820px; }

.nx-svc-hub-hero h1,
.nx-svc-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: .85rem 0 1.2rem;
  color: #fff;
}
/* Reusable hero sub (also used in home.css on front page — safe to duplicate) */
.nx-hero__sub {
  color: var(--nx-on-dark);
  font-size: 1.15rem;
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.nx-svc-hub-hero .nx-breadcrumbs,
.nx-svc-hero .nx-breadcrumbs {
  margin-bottom: var(--nx-s-4);
  opacity: .72;
}
@media (max-width: 640px) {
  .nx-svc-hub-hero .nx-cluster,
  .nx-svc-hero .nx-cluster { flex-direction: column; align-items: stretch; }
}

/* ---- Problem / Solution two-column split ---- */
.nx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.nx-split__col h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin: .7rem 0 .85rem;
}
.nx-split__col p { font-size: 1.05rem; line-height: 1.7; }
.nx-split__col--accent {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-left: 4px solid var(--nx-teal);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-4);
  box-shadow: var(--nx-sh-sm);
}
@media (max-width: 760px) { .nx-split { grid-template-columns: 1fr; } }

/* ---- Deliverable card ---- */
.nx-deliverable { display: flex; flex-direction: column; }
.nx-deliverable .nx-check__mark { margin-bottom: var(--nx-s-3); flex: none; width: 36px; height: 36px; }
.nx-deliverable h3 { font-size: 1.1rem; margin-bottom: .45rem; }

/* ---- Why / checklist layout (mirrors home.css for use on hub page) ---- */
.nx-why {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.nx-why__intro h2 { margin: 1rem 0; }
.nx-why__intro p { max-width: 42ch; }
.nx-why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 860px) {
  .nx-why { grid-template-columns: 1fr; }
  .nx-why__list { grid-template-columns: 1fr; }
}

/* ---- Process stepper (mirrors home.css, used in service detail dark section) ---- */
.nx-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.nx-process::before {
  content: "";
  position: absolute;
  top: 24px; left: 8%; right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, .12);
  z-index: 0;
}
.nx-process__step { position: relative; z-index: 1; text-align: center; }
.nx-process__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--nx-teal);
  color: #04282b;
  font-family: var(--nx-font-mono);
  font-weight: var(--nx-fw-bold);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto var(--nx-s-3);
}
.nx-process__step h4 { margin-bottom: .35rem; color: #fff; }
.nx-process__step p { font-size: .9rem; color: var(--nx-on-dark-muted); max-width: 18ch; margin-inline: auto; }
@media (max-width: 820px) {
  .nx-process { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nx-process::before { display: none; }
}
@media (max-width: 460px) { .nx-process { grid-template-columns: 1fr; } }

/* ---- Tool tag pill (mirrors home.css .nx-tooltag) ---- */
.nx-tooltag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem 1rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r);
  background: var(--nx-white);
  font-weight: var(--nx-fw-med);
  font-size: .92rem;
  color: var(--nx-navy-ink);
  transition:
    border-color var(--nx-dur-fast) var(--nx-ease),
    transform var(--nx-dur-fast) var(--nx-ease),
    box-shadow var(--nx-dur-fast) var(--nx-ease),
    color var(--nx-dur-fast) var(--nx-ease);
}
.nx-tooltag:hover {
  border-color: var(--nx-blue);
  transform: translateY(-2px);
  box-shadow: var(--nx-sh-sm);
  color: var(--nx-blue);
}
.nx-tooltag svg { color: var(--nx-blue); flex: none; }

/* Tools grid on service detail */
.nx-svc-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

/* ---- Blog cluster card links ---- */
.nx-svc-blog .nx-card h3 { font-size: 1.05rem; line-height: 1.45; }

/* ---- Local context note ---- */
.nx-local-note {
  font-size: .95rem;
  color: var(--nx-slate);
  max-width: 780px;
  border-left: 3px solid var(--nx-teal);
  padding-left: 1.1rem;
}
