/* ==========================================================================
   SERVICES — Shared styles for /services and the three service detail pages.
   Requires <body class="svc-page"> (the colour tokens are scoped to it).
   Buttons .btn-primary / .btn-secondary come from hero.css.
========================================================================== */

/* ── Page-level tokens (match site palette) ───────────────────────── */
.svc-page {
  --svc-navy: #004080;
  --svc-ink: #0f172a;
  --svc-body: #475569;
  --svc-muted: #64748b;
  --svc-line: #e2e8f0;
  --svc-accent: #0072ff;
  --svc-kicker: #c2410c;   /* AA on white for small caps text */
}

/* ── Light-section buttons (same recipe as other pages) ───────────── */
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,114,255,.3); }
.btn-primary-light:focus-visible { outline: 3px solid #004080; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary-light, .btn-primary-light:hover { transition: none; transform: none; }
}

/* ── Section intro ────────────────────────────────────────────────── */
.svc-intro {
  max-width: 760px;
  margin: 56px auto 8px;
  padding: 0 24px;
  text-align: center;
}
.svc-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--svc-kicker);
  margin: 0 0 10px;
}
.svc-intro h2 {
  font-size: 28px;
  line-height: 1.25;
  color: var(--svc-navy);
  margin: 0 0 12px;
}
.svc-intro p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--svc-body);
  margin: 0;
}

/* ── Three service offerings ──────────────────────────────────────── */
.svc-offerings {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.svc-card {
  scroll-margin-top: 96px;   /* anchor targets clear the sticky navbar */
  background: #fff;
  border: 1px solid var(--svc-line);
  border-top: 4px solid var(--svc-navy);
  border-radius: 12px;
  padding: 28px 26px 26px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
}
.svc-card--managed  { border-top-color: #0072ff; }
.svc-card--packaged { border-top-color: #c2410c; }

.svc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--svc-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.svc-card--packaged .svc-card__icon { background: #fff4ed; color: #c2410c; }
.svc-card__icon svg { width: 24px; height: 24px; }

.svc-card h2 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--svc-ink);
  margin: 0 0 6px;
}
.svc-card__sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--svc-navy);
  margin: 0 0 12px;
}
.svc-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--svc-body);
  margin: 0 0 18px;
}
.svc-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--svc-muted);
  margin: 0 0 10px;
}
.svc-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.svc-card li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--svc-ink);
}
.svc-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--svc-accent);
}
.svc-card--packaged li::before { background: #c2410c; }

.svc-card__model {
  margin: auto 0 20px;          /* pushes model + CTA to the card foot */
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--svc-line);
  border-radius: 8px;
}
.svc-card__model dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--svc-muted);
  margin: 0 0 4px;
}
.svc-card__model dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--svc-ink);
}
.svc-card .btn-primary-light { align-self: flex-start; }

.svc-note {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--svc-muted);
}

/* ── How we work ──────────────────────────────────────────────────── */
.svc-process {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.svc-process__head { text-align: center; margin: 0 auto 28px; max-width: 700px; }
.svc-process__head h2 { font-size: 26px; color: var(--svc-navy); margin: 0 0 8px; }
.svc-process__head p { font-size: 15.5px; line-height: 1.65; color: var(--svc-body); margin: 0; }

.svc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: svc-step;
}
.svc-step {
  counter-increment: svc-step;
  background: #fff;
  border: 1px solid var(--svc-line);
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.svc-step::before {
  content: counter(svc-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--svc-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.svc-step h3 { font-size: 17px; color: var(--svc-ink); margin: 0 0 6px; }
.svc-step p  { font-size: 14.5px; line-height: 1.6; color: var(--svc-body); margin: 0; }

.svc-cta { margin-top: 72px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .svc-offerings { grid-template-columns: 1fr; max-width: 680px; }
  .svc-steps { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .svc-intro { margin-top: 40px; }
  .svc-intro h2 { font-size: 24px; }
  .svc-card { padding: 24px 20px 22px; }
  .svc-card .btn-primary-light { align-self: stretch; }
  .svc-process { margin-top: 56px; }
  .svc-cta { margin-top: 56px; }
}

/* ==========================================================================
   SERVICE DETAIL PAGES — /services/saas, /services/managed-services,
   /services/packaged-outputs. Everything above this line is the original
   /services overview styling, moved here unchanged.
========================================================================== */

/* ── Light secondary button (pairs with .btn-primary-light) ───────────── */
.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  color: var(--svc-navy);
  border: 2px solid var(--svc-navy);
  transition: background .15s ease;
}
.btn-secondary-light:hover { background: #f0f4ff; }
.btn-secondary-light:focus-visible { outline: 3px solid #004080; outline-offset: 3px; }

/* Text link to a dedicated service page, under a card's CTA */
.svc-card__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--svc-navy);
  text-decoration: none;
}
.svc-card__more:hover { text-decoration: underline; }
.svc-card__actions { display: flex; flex-direction: column; align-items: flex-start; }

/* ── Breadcrumb (sits inside the dark hero) ───────────────────────────── */
.svc-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.svc-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.45); }
.svc-crumbs a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.svc-crumbs a:hover { color: #fff; }
.svc-crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ── Generic page section ─────────────────────────────────────────────── */
.svc-section {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.svc-section__head {
  max-width: 740px;
  margin: 0 auto 28px;
  text-align: center;
}
.svc-section__head h2 {
  font-size: 28px;
  line-height: 1.25;
  color: var(--svc-navy);
  margin: 0 0 10px;
}
.svc-section__head p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--svc-body);
  margin: 0;
}

/* ── Tiles ────────────────────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.svc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.svc-tile {
  background: #fff;
  border: 1px solid var(--svc-line);
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.svc-tile h3 {
  font-size: 17px;
  line-height: 1.35;
  color: var(--svc-ink);
  margin: 0 0 8px;
}
.svc-tile p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--svc-body);
  margin: 0;
}
.svc-tile p + p,
.svc-tile p + .svc-list { margin-top: 10px; }

/* Module tiles (Packaged Outputs) — colour-coded top border */
.svc-tile--module { border-top: 4px solid var(--svc-navy); }
.svc-tile--asset    { border-top-color: #c2410c; }
.svc-tile--risk     { border-top-color: #0072ff; }
.svc-tile--training { border-top-color: #0f766e; }
.svc-tile__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--svc-muted);
  margin: 0 0 6px;
}

/* ── Bulleted list (same marker as the overview cards) ────────────────── */
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-list li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 7px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--svc-ink);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--svc-accent);
}

/* ── Steps: variant for 4–6 step processes ────────────────────────────── */
.svc-steps--flow { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ── Callout (governance and scope notes) ─────────────────────────────── */
.svc-callout {
  max-width: 880px;
  margin: 0 auto;
  background: #f0f6ff;
  border: 1px solid #d6e4fb;
  border-left: 4px solid var(--svc-navy);
  border-radius: 10px;
  padding: 22px 26px;
}
.svc-callout h2,
.svc-callout h3 {
  font-size: 18px;
  color: var(--svc-ink);
  margin: 0 0 8px;
}
.svc-callout p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--svc-body);
  margin: 0;
}
.svc-callout p + p { margin-top: 10px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.svc-faq { max-width: 820px; margin: 0 auto; }
.svc-faq details {
  background: #fff;
  border: 1px solid var(--svc-line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.svc-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: #002b5c;
  line-height: 1.45;
}
.svc-faq summary:focus-visible { outline: 3px solid #004080; outline-offset: 3px; border-radius: 4px; }
.svc-faq details p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

/* ── Adjacent service models ──────────────────────────────────────────── */
.svc-related__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--svc-line);
  border-top: 4px solid var(--svc-navy);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.svc-related__card--managed  { border-top-color: #0072ff; }
.svc-related__card--packaged { border-top-color: #c2410c; }
.svc-related__card--overview { border-top-color: var(--svc-muted); }
.svc-related__card:hover { box-shadow: 0 10px 24px rgba(15,23,42,.10); transform: translateY(-2px); }
.svc-related__card:focus-visible { outline: 3px solid #004080; outline-offset: 3px; }
.svc-related__card strong { font-size: 17px; color: var(--svc-ink); margin: 0 0 6px; }
.svc-related__card span { font-size: 14.5px; line-height: 1.6; color: var(--svc-body); }
.svc-related__card em {
  margin-top: auto;
  padding-top: 12px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--svc-navy);
}
@media (prefers-reduced-motion: reduce) {
  .svc-related__card, .svc-related__card:hover { transition: none; transform: none; }
}

/* ── Responsive (detail pages) ────────────────────────────────────────── */
@media (max-width: 980px) {
  .svc-grid, .svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .svc-section { margin-top: 56px; }
  .svc-section__head h2 { font-size: 24px; }
  .svc-grid, .svc-grid--2, .svc-grid--4 { grid-template-columns: 1fr; }
  .svc-steps--flow { grid-template-columns: 1fr; }
  .svc-callout { padding: 20px; }
  .btn-secondary-light { align-self: stretch; }
}
