/* Polish layer: brand-consistent heroes, spacing rhythm and fixes. Loaded after each page's own stylesheet. */

.svc {
    --asv-purple: #673A89; --asv-deep: #4E2C68; --asv-night: #3F2254; --asv-ink: #16131C;
    --asv-soft: #F8F6FA; --asv-mist: #F0EBF5; --asv-lilac: #C9B5E0; --asv-accent: #C9B5E0;
}

/* Hero type: calmer scale, balanced wraps */
.svc .svc-hero h1 { font-size: clamp(2.3rem, 4.7vw, 3.9rem); line-height: 1.07; text-wrap: balance; }
.svc .svc-hero .lead, .svc .svc-hero .body-copy p { max-width: 36rem; }
.svc .svc-hero__main { padding-top: 8.5rem; padding-bottom: 4rem; }
.svc .svc-hero .sb-row { margin-top: 1.8rem; }
.svc .svc-hero .lead + .lead { margin-top: 1rem; }

/* Section rhythm: heading blocks never sit on their content */
.svc .svc-sec h2 { text-wrap: balance; }
.svc .svc-sec .eyebrow + h2 { margin-top: .9rem; }
.svc .svc-sec h2 + :is(ul, ol, div, dl, figure, article):not(.body-copy) { margin-top: 2.2rem; }
.svc .svc-sec :is(ul, ol, div) + .body-copy, .svc .svc-sec :is(ul, ol) + p { margin-top: 1.6rem; }
.svc .svc-sec .body-copy p + p { margin-top: 1.2rem; }
.svc .svc-sec :is(.eqi-chips, .eap-chips, .pr-chips) { margin-block: 2rem; }

/* Pull the big two-column splits apart on wide screens */
@media (min-width: 900px) { .svc [class$="-split"], .svc [class*="-split "] { column-gap: clamp(3rem, 7vw, 6.5rem); } }

/* Related-services strip: a bit of air and depth */
.svc .more { margin-top: 4rem; }
.svc .more a { transition: background-color .25s ease, transform .25s ease; }
.svc .more a:hover { transform: translateY(-2px); }

/* ===== PRisMA: deep brand purple, radar glows ===== */
.svc--prisma .pr-hero {
    --bg: #3F2254; --fg: #fff; --muted: rgba(255,255,255,.78); --line: rgba(255,255,255,.16);
    --accent: #C9B5E0; --accent-ink: #fff; --on-accent: #3F2254;
    background: radial-gradient(60rem 36rem at 80% 30%, rgba(103,58,137,.45), transparent 70%), linear-gradient(160deg, #3F2254, #3F2254);
    color: #fff;
}
.svc--prisma .pr-hero h1 { color: #fff; }
.svc--prisma .pr-hero h1 > span { color: var(--asv-lilac); }
.svc--prisma .pr-hero .eyebrow { color: var(--asv-lilac); }
.svc--prisma .pr-hero .sb--solid { background: #fff; color: #4E2C68; }
.svc--prisma .pr-hero .sb--solid:hover { background: var(--asv-mist); }
.svc--prisma .pr-hero .sb--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.svc--prisma .pr-hero .sb--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.svc--prisma .pr-hero figure { box-shadow: 0 40px 90px -30px rgba(22,19,28,.6); }
.svc--prisma .hero-strip { background: rgba(255,255,255,.04); }
.svc--prisma .pr-hero::before { opacity: .35; }


/* ===== EQ ===== */
.svc--eq .eqi-cta { background: #3F2254; }
.svc--eq .eqi-band { bottom: 5rem; height: 6.5rem; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #16131C 70%); mask-image: linear-gradient(90deg, transparent 38%, #16131C 70%); }
.svc--eq .eqi-hero { background: linear-gradient(180deg, #F8F6FA, #F0EBF5); }
.svc--eq .eqi-demo { border-color: #4E2C68; box-shadow: 10px 10px 0 #4E2C68; }
.svc--eq .eqi-reflect { background: #3F2254; }
.svc--eq .eqi-chips li { border-color: #4E2C68; }
.svc--eq .eqi-bubble--out { background: var(--asv-accent); color: #16131C; }
.svc--eq .eqi-demo[data-state="notice"] .eqi-bubble--out { background: #673A89; color: #fff; }
.svc--eq .eqi-demo[data-state="choose"] .eqi-bubble--out { background: #673A89; color: #fff; }
.svc--eq .eqi-range span:first-child { color: #673A89; }

/* ===== AI: no scan bar across the headline ===== */

/* ===== Peer: network lives on the right, never behind the headline ===== */
.svc--peer .peer-hero::after { display: none; }
.svc--peer .peer-net { -webkit-mask-image: linear-gradient(90deg, transparent 38%, #16131C 72%); mask-image: linear-gradient(90deg, transparent 38%, #16131C 72%); }
.svc--peer .peer-hero { background: linear-gradient(180deg, #F8F6FA, #F0EBF5); }

/* ===== Team: blocks in brand colours, no shapes over copy ===== */
.svc--team .tbd-shape--c, .svc--team .tbd-shape--t { display: none; }
.svc--team .tbd-hero { background: linear-gradient(180deg, #F8F6FA, #F0EBF5); }
.svc--team .tbd-tag { background: var(--asv-accent); }

/* ===== EAP: lilac route card, no blob ===== */
.svc--eap .eap-hero { background: linear-gradient(180deg, #F8F6FA, #F0EBF5); }
.svc--eap .eap-route { background: linear-gradient(145deg, #F0EBF5, #F8F6FA); border: 1px solid #C9B5E0; }

/* ===== PTP ===== */
.svc--ptp .trn-hero { background: linear-gradient(180deg, #F8F6FA, #F0EBF5); }

/* ===== Therapy: photograph in an arch ===== */
.svc--therapy .thr-hero { background: linear-gradient(180deg, #F8F6FA, #F0EBF5); }
@media (min-width: 960px) {
    .svc--therapy .thr-hero .svc-hero__main > .svc-w { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: center; }
    .svc--therapy .thr-hero .svc-hero__main > .svc-w > :not(.thr-photo) { grid-column: 1; }
    .svc--therapy .thr-photo { grid-column: 2; grid-row: 1 / span 4; }
}
.thr-photo { position: relative; margin: 0 auto; width: min(100%, 26rem); aspect-ratio: 4 / 5; border-radius: 999px 999px 1.2rem 1.2rem; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(78,44,104,.45); order: 5; }
.thr-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(78,44,104,.35)); z-index: 1; pointer-events: none; }
.thr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; display: block; transform: scale(1.04); }
@media (max-width: 959px) { .thr-photo { width: min(100%, 20rem); margin-top: 2.5rem; } }
.svc--therapy .thr-hero::after { content: ""; position: absolute; right: 8%; top: 18%; width: 24rem; height: 30rem; border-radius: 999px 999px 0 0; background: #F0EBF5; z-index: 0; transform: translate(2.2rem, 1.6rem); opacity: .7; }
@media (max-width: 959px) { .svc--therapy .thr-hero::after { display: none; } }

/* Team: hint text must clear the rotated card stack */
.svc--team .tbd-deck { gap: 3.2rem; }
.svc--team .tbd-deck__stack { margin-bottom: 1rem; }

/* ---- Round 3: rhythm + visibility fixes ---- */

/* PTP: let the certificate card show below the ticket instead of hiding behind it */
.svc--ptp .trn-stage { padding-bottom: 5.5rem; }
.svc--ptp .trn-back { inset: 3rem -1rem 0 2.4rem; }

/* Peer: wider visible network */
.svc--peer .peer-net { -webkit-mask-image: linear-gradient(90deg, transparent 30%, #16131C 62%); mask-image: linear-gradient(90deg, transparent 30%, #16131C 62%); }


/* Therapy: bands instead of one long pale sheet */
.svc--thr, .svc--therapy { --band-dark: #3F2254; }
.thr-sec { border-top: 0; }
.thr-steps-sec { background: #F0EBF5; }
.thr-sec:nth-of-type(5) { background: #3F2254; --fg: #fff; --muted: rgba(255,255,255,.82); --line: rgba(255,255,255,.2); --accent: #C9B5E0; color: #fff; }
.thr-sec:nth-of-type(5) h2, .thr-sec:nth-of-type(5) h3 { color: #fff; }
.thr-sec:nth-of-type(5) .thr-label { color: #C9B5E0; }
.thr-sec:nth-of-type(7) { background: #F0EBF5; }
.thr-close { background: #3F2254; border-top: 0; padding: 5rem 0 4rem; --fg: #fff; --muted: rgba(255,255,255,.82); --line: rgba(255,255,255,.2); --accent: #C9B5E0; color: #fff; }
.thr-close .thr-label { color: #C9B5E0; }
.thr-close .sb--solid { background: #fff; color: #3F2254; }
.thr-close .sb--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.thr-close .more a { background: #3F2254; }

/* Extra photos on PRisMA / PTP */
.svc--prisma .pr-why .svc-photo--col, .svc--ptp-training .trn-learn .svc-photo--col, .trn-learn .svc-photo--col { margin-top: 2rem; }
.trn-cert__row { display: grid; gap: 2rem; align-items: center; }
.trn-cert__row .svc-photo--inline { margin-top: 0; }
@media (min-width: 900px) { .trn-cert__row { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
