/* ==========================================================================
   /services V2 - SAM Capabilities Hub
   Loaded ONLY by resources/views/service/lists.blade.php. Every rule is scoped
   under .svcHub so nothing here can reach another page.
   ========================================================================== */
.svcHub {
    --hub-ink: #0F172A; --hub-body: #334155; --hub-muted: #5B6474;
    --hub-rule: #E3E7ED; --hub-wash: #F5F7FA; --hub-red: #B3202A; --hub-red-dk: #8E1820;
    --hub-navy: #0F1E33; --hub-focus: #2E63B8;
    --hub-gap: clamp(1rem, .6rem + 1.6vw, 1.75rem);
    --hub-section: clamp(3.5rem, 2rem + 5vw, 6.5rem);
    color: var(--hub-body);
}
.svcHub *, .svcHub *::before, .svcHub *::after { box-sizing: border-box; }
.svcHub h1, .svcHub h2, .svcHub h3 { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--hub-ink); text-transform: none; }
.svcHub p { margin: 0; }
.svcHub a { text-decoration: none; }
.svcHub a:focus-visible, .svcHub button:focus-visible { outline: 3px solid var(--hub-focus); outline-offset: 3px; border-radius: 6px; }
.svcHub .svcHub__icon { display: block; flex: none; }

/* ---------------------------------------------------------- section rhythm */
.svcHub__section { padding: var(--hub-section) 0 0; }
.svcHub__section--last { padding-bottom: var(--hub-section); }
.svcHub__head { display: grid; gap: .75rem 3rem; margin-bottom: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
@media (min-width: 992px) { .svcHub__head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.svcHub__eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hub-red); margin-bottom: .75rem !important; }
.svcHub__h2 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); max-width: 22ch; text-wrap: balance; }
.svcHub__intro { font-size: 1.0625rem; line-height: 1.65; color: var(--hub-muted); max-width: 52ch; }
.svcHub__headLink, .svcHub__textLink {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; font-weight: 600; color: var(--hub-ink);
    border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.svcHub__headLink:hover, .svcHub__textLink:hover { color: var(--hub-red); }

/* ------------------------------------------------------------------ buttons */
.svcHub__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.svcHub__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px;
    padding: .8rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.2;
    border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.svcHub__btn--primary { background: var(--hub-red); border-color: var(--hub-red); color: #fff; }
.svcHub__btn--primary:hover { background: var(--hub-red-dk); border-color: var(--hub-red-dk); color: #fff; }
.svcHub__btn--ghost { background: #fff; border-color: #CBD2DC; color: var(--hub-ink); }
.svcHub__btn--ghost:hover { border-color: var(--hub-ink); color: var(--hub-ink); }
@media (max-width: 479.98px) { .svcHub__actions .svcHub__btn { flex: 1 1 100%; } }

/* --------------------------------------------------------------------- hero */
.svcHub__hero { background: linear-gradient(180deg, var(--hub-wash) 0, #fff 100%); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 clamp(3rem, 2rem + 3vw, 4.75rem); border-bottom: 1px solid var(--hub-rule); }
.svcHub__crumbs { margin: 0 0 clamp(1.75rem, 1rem + 2.5vw, 3rem) !important; font-size: .875rem; }
.svcHub__heroGrid { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 992px) { .svcHub__heroGrid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.2fr); } }
.svcHub__h1 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2.25rem, 1.2rem + 4vw, 4.15rem); max-width: 17ch; text-wrap: balance; }
.svcHub__lede { margin-top: 1.5rem !important; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; max-width: 56ch; color: var(--hub-body); }
.svcHub__hero .svcHub__actions { margin-top: 2rem; }
.svcHub__proof { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 0; font-size: .9375rem; font-weight: 600; color: var(--hub-ink); }
.svcHub__proof li { padding: 0 1rem; border-left: 1px solid #C9D0DA; line-height: 1.3; }
.svcHub__proof li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 575.98px) {
    .svcHub__proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; }
    .svcHub__proof li { padding: 0; border-left: 0; }
}
.svcHub__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.svcHub__index { background: #fff; border: 1px solid var(--hub-rule); border-top: 3px solid var(--hub-red); border-radius: 4px 4px 14px 14px; padding: .5rem 1.5rem; }
.svcHub__index ol { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.svcHub__index li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .15rem 0; padding: 1.1rem 0; border-top: 1px solid var(--hub-rule); counter-increment: idx; }
.svcHub__index li:first-child { border-top: 0; }
.svcHub__index li::before { content: counter(idx, decimal-leading-zero); grid-row: span 2; font-size: .8125rem; font-weight: 700; color: var(--hub-red); padding-top: .3rem; }
.svcHub__idxLabel { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--hub-ink); line-height: 1.3; }
.svcHub__idxPhrase { font-size: .9375rem; color: var(--hub-muted); line-height: 1.5; }

/* ----------------------------------------------------------- outcome router */
.svcHub__router { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .svcHub__router { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .svcHub__router { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .svcHub__router { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.svcHub__route {
    height: 100%; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.35rem 1.25rem;
    background: var(--hub-wash); border: 1px solid transparent; border-radius: 14px; color: var(--hub-body);
    transition: border-color .15s;
}
.svcHub__route:hover { border-color: var(--hub-red); color: var(--hub-body); }
.svcHub__route .svcHub__icon { color: var(--hub-red); margin-bottom: .35rem; }
.svcHub__route h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.svcHub__route p { font-size: .9rem; line-height: 1.55; color: var(--hub-muted); }
.svcHub__arrow { margin-top: auto; padding-top: .75rem; display: inline-flex; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hub-rule); align-items: center; justify-content: center; color: var(--hub-ink); }
.svcHub__arrow svg { transition: transform .15s; }
.svcHub__route:hover .svcHub__arrow { border-color: var(--hub-red); color: var(--hub-red); }
.svcHub__route:hover .svcHub__arrow svg { transform: translateX(2px); }
@media (min-width: 1200px) { .svcHub__arrow { margin-top: auto; } }
.svcHub__route .svcHub__arrow { padding-top: 0; margin-top: auto; }

/* ------------------------------------------------------ capability families */
/* Editorial chapters: each family is a full-width band - number, heading and
   description on the left, its services on the right. Grouped and support
   chapters sit on a tint so the five read as a sequence, not a card wall. */
.svcHub__capabilities { padding-bottom: 0; }
.svcHub__capNav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--hub-rule); }
.svcHub__capNav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.svcHub__capNav ul::-webkit-scrollbar { display: none; }
.svcHub__capNav li { flex: none; }
.svcHub__capNav a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.1rem; font-weight: 600; font-size: 1rem; color: var(--hub-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.svcHub__capNav li:first-child a { padding-left: 0; }
.svcHub__capNav a:hover { color: var(--hub-ink); }
.svcHub__capNav a[aria-current="true"] { color: var(--hub-ink); border-bottom-color: var(--hub-red); }

.svcHub__chapter { scroll-margin-top: 56px; padding: clamp(2.5rem, 1.75rem + 2.5vw, 4rem) 0; border-bottom: 1px solid var(--hub-rule); }
.svcHub__chapter--tone { background: var(--hub-wash); }
.svcHub__chapterGrid { display: grid; gap: 1.75rem 4rem; }
@media (min-width: 992px) { .svcHub__chapterGrid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.svcHub__chapterNum { font-size: .875rem; font-weight: 800; letter-spacing: .04em; color: var(--hub-red); margin-bottom: 1rem !important; display: flex; align-items: center; gap: .75rem; }
.svcHub__chapterNum::after { content: ""; width: 40px; height: 2px; background: var(--hub-red); }
.svcHub__famHead { display: flex; align-items: center; gap: .7rem; }
.svcHub__famHead .svcHub__icon { color: var(--hub-red); }
.svcHub__chapter h3 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.svcHub__chapter--lead h3 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); }
.svcHub__famDesc { margin-top: 1rem !important; font-size: 1rem; line-height: 1.65; color: var(--hub-muted); max-width: 42ch; }
.svcHub__famCta { margin-top: 1.5rem !important; }
.svcHub__famCta a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--hub-red); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.svcHub__famCta a:hover { color: var(--hub-red-dk); }
.svcHub__chapterBody--groups { display: grid; gap: 1.75rem 2rem; }
@media (min-width: 768px) { .svcHub__chapterBody--groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svcHub__groupLabel { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--hub-ink); margin-bottom: .35rem !important; }
.svcHub__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hub-rule); }
.svcHub__links li { border-bottom: 1px solid var(--hub-rule); break-inside: avoid; }
@media (min-width: 768px) { .svcHub__links--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.svcHub__links a, .svcHub__plain { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .7rem 0; font-size: 1rem; line-height: 1.35; }
.svcHub__links a { color: var(--hub-ink); font-weight: 600; }
.svcHub__linkText small { display: block; margin-top: .15rem; font-size: .875rem; font-weight: 400; color: var(--hub-muted); }
.svcHub__links a svg { flex: none; color: #9AA3B0; transition: transform .15s, color .15s; }
.svcHub__links a:hover { color: var(--hub-red); }
.svcHub__links a:hover svg { color: var(--hub-red); transform: translateX(3px); }
.svcHub__plain { color: var(--hub-body); font-weight: 500; }
.svcHub__plain::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C3CAD4; flex: none; margin-right: 5px; }
.svcHub__chapter--lead .svcHub__links a { font-size: 1.0625rem; }

/* ------------------------------------------------------------ selected work */
.svcHub__work { display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.5rem) var(--hub-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .svcHub__work { grid-template-columns: repeat(3, minmax(0, 1fr)); } .svcHub__case--lead { grid-column: 1 / -1; } }
.svcHub__case { display: flex; flex-direction: column; gap: 1rem; min-width: 0; margin: 0; }
@media (min-width: 768px) { .svcHub__case--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; } }
.svcHub__shot { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; border: 1px solid var(--hub-rule); background: var(--hub-wash); }
.svcHub__case--lead .svcHub__shot { aspect-ratio: 16 / 10; }
.svcHub__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.svcHub__stack { display: inline-block; margin-bottom: .6rem !important; padding: .2rem .6rem; border-radius: 999px; background: var(--hub-wash); border: 1px solid var(--hub-rule); font-size: .8125rem; font-weight: 600; color: var(--hub-ink); }
.svcHub__case--lead .svcHub__stack { background: #FBEAEC; border-color: #F2C4C9; color: var(--hub-red-dk); }
.svcHub__case h3 { margin: 0 0 .45rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.svcHub__case--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.svcHub__case p { font-size: .9375rem; line-height: 1.6; color: var(--hub-muted); }
.svcHub__case--lead p { font-size: 1.0625rem; }
.svcHub__case .svcHub__textLink { margin-top: 1rem; font-size: .9375rem; }

/* ------------------------------------------------------------------ process */
/* One connected line: vertical on mobile, 3 + 3 on tablet, a single run of six on desktop. */
.svcHub__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.svcHub__step { counter-increment: step; position: relative; padding: 0 0 1.75rem 2.75rem; }
.svcHub__step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; border: 2px solid var(--hub-red); color: var(--hub-red); font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.svcHub__step::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2rem; bottom: 0; width: 2px; background: var(--hub-rule); }
.svcHub__step:last-child { padding-bottom: 0; }
.svcHub__step:last-child::after { display: none; }
.svcHub__step h3 { margin: .3rem 0 .35rem; font-size: 1.0625rem; font-weight: 700; }
.svcHub__step p { font-size: .9375rem; line-height: 1.55; color: var(--hub-muted); max-width: 34ch; }
@media (min-width: 768px) {
    .svcHub__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
    .svcHub__step { padding: 3rem 1rem 0 0; }
    .svcHub__step::before { top: 0; left: 0; }
    .svcHub__step::after { display: block; left: 2rem; right: 0; top: calc(1rem - 1px); bottom: auto; width: auto; height: 2px; }
    .svcHub__step:nth-child(3n)::after, .svcHub__step:last-child::after { display: none; }
    .svcHub__step:last-child { padding-bottom: 0; }
}
@media (min-width: 1200px) {
    .svcHub__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .svcHub__step:nth-child(3n)::after { display: block; }
    .svcHub__step:last-child::after { display: none; }
}

/* --------------------------------------------------------------- industries */
/* Supporting, not another directory: compact rows with one line of context. */
.svcHub__industries { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .svcHub__industries { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svcHub__industry { height: 100%; display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--hub-rule); border-radius: 12px; background: #fff; color: var(--hub-ink); transition: border-color .15s; }
.svcHub__industry .svcHub__icon { color: var(--hub-red); margin-bottom: .25rem; }
.svcHub__indName { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.svcHub__indLine { font-size: .875rem; line-height: 1.5; color: var(--hub-muted); }
a.svcHub__industry:hover { border-color: var(--hub-red); }
a.svcHub__industry:hover .svcHub__indName { color: var(--hub-red); }

/* --------------------------------------------------------------- technology */
.svcHub__techWrap { display: grid; gap: 2rem 4rem; }
@media (min-width: 992px) { .svcHub__techWrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .svcHub__techWrap .svcHub__head { margin-bottom: 0; } }
.svcHub__techGroups { display: grid; gap: 1.25rem; }
.svcHub__techGroup { display: grid; gap: .6rem; }
@media (min-width: 576px) { .svcHub__techGroup { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: start; } }
.svcHub__techName { font-size: .875rem; font-weight: 700; color: var(--hub-ink); padding-top: .6rem; }
.svcHub__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.svcHub__chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .9rem; border: 1px solid var(--hub-rule); border-radius: 10px; background: #fff; font-size: .9375rem; font-weight: 600; color: var(--hub-ink); }
.svcHub__chip img { width: 20px; height: 20px; object-fit: contain; }
a.svcHub__chip:hover { border-color: var(--hub-red); color: var(--hub-red); }

/* -------------------------------------------------------------- closing CTA */
.svcHub__cta { background: var(--hub-navy); color: #fff; border-radius: 20px; padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 3vw, 4rem); display: grid; gap: 1.75rem 3rem; }
@media (min-width: 992px) { .svcHub__cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.svcHub__cta .svcHub__eyebrow { color: #F4A9B0; }
.svcHub__cta h2 { color: #fff; margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem); }
.svcHub__cta p { margin-top: .9rem !important; color: #C8D1DE; font-size: 1.0625rem; line-height: 1.6; max-width: 48ch; }
.svcHub__cta .svcHub__btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.svcHub__cta .svcHub__btn--ghost:hover { border-color: #fff; color: #fff; }
.svcHub__cta a:focus-visible { outline-color: #fff; }
.svcHub__trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: #C8D1DE; }
.svcHub__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.svcHub__trust svg { color: #7FD1A0; }
@media (min-width: 992px) { .svcHub__ctaActions { justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) { .svcHub * { transition: none !important; } }

/* V2.1 fix: the theme colours li directly, which beat the colour inherited from the list */
.svcHub .svcHub__cta .svcHub__trust li { color: #C8D1DE; }

/* V2.2: the technology heading column no longer stretches to the list height (it opened a gap between heading and intro); on desktop it stays in view beside the longer grouped list */
.svcHub .svcHub__techWrap { align-items: start; }
@media (min-width: 992px) { .svcHub .svcHub__techWrap > .svcHub__head { position: sticky; top: 1.5rem; } }

/* V2.1 fix: breadcrumb home icon was a 15px tap target - enlarge the hit area, not the icon */
.svcHub .svcHub__crumbs li:first-child a { display: inline-flex; align-items: center; justify-content: center; padding: 8px; margin: -8px; }
.svcHub a:focus-visible,.svcHub button:focus-visible{outline:2px solid #B3202A!important;outline-offset:3px;transition:none}/* svc-focus-fix */
