/* Section options added for the home page, service hubs and other pages (Phase 2).
   Each block says which section and option it styles. Colours and sizes come from the approved
   preview pages (mrp.css custom properties). Nothing here holds page wording. */

/* ---------- Shared: split heading, heading + button, closing text ---------- */
.s-head--split, .s-head--btn { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; }
.s-head--btn { justify-content: space-between; }
.s-head__title { flex: 1 1 480px; min-width: 0; }
.s-head--split .s-head__intro { flex: 1 1 440px; min-width: 0; }
.s-head--split .s-lead, .s-head--btn .s-lead { margin-top: 14px; }
.s-head--split .s-head__intro .s-lead { margin: 0; max-width: none; }
.s-head--split .s-head__intro .s-head__btn { margin-top: 20px; }
.s-head__btn { align-self: flex-end; }
.s--dark .s-head__btn { background: #fff; border-color: #fff; color: var(--mrp-blue); }
.s--dark .s-head__btn:hover { background: var(--mrp-green); border-color: var(--mrp-green); color: var(--mrp-blue); }
.s-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.s-foot__text { margin: 0; color: var(--mrp-muted); font-size: 18px; }
.s--dark .s-foot__text { color: #DCE6EE; }
.s-csgrid + .s-foot { margin-top: 40px; padding: 28px 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); justify-content: space-between; }
.s-csgrid + .s-foot .s-foot__text { color: #fff; font-family: var(--mrp-font-head); font-weight: 800; font-size: 22px; line-height: 1.3; }

/* ---------- 1 Hero ---------- */
.s-hero--wm::before { content: ""; position: absolute; left: -90px; bottom: -110px; width: 360px; height: 360px; background: url("../img/mrp-symbol.png") no-repeat center / contain; opacity: .08; pointer-events: none; }
.s-hero .mrp-wrap { position: relative; }
.s-hero .s-hero__title--xl { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; }
p.s-hero__sub { margin: 18px 0 0; font-family: var(--mrp-font-head); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: #fff; }
.s-hero__highlights { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.s-hero__highlights li::before { content: "✓"; margin-right: 8px; color: var(--mrp-green); font-weight: 800; }
p.s-hero__note { margin: 22px 0 0; font-family: var(--mrp-font-head); font-weight: 700; font-size: 17px; color: #fff; }
.s-hero--light p.s-hero__sub, .s-hero--light p.s-hero__note { color: var(--mrp-blue); }
.s-hero--solo .s-hero__text { flex-basis: 760px; }
.s-hero__side--image { flex-basis: 460px; }
.s-hero__card { padding: 30px; }
.s-hero__kicker { margin: 0 0 8px; font-family: var(--mrp-font-head); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mrp-link); }
.s-hero__card .s-hero__cardtitle { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.s-hero__card .s-hero__cardtext { margin: 0 0 14px; color: var(--mrp-muted); }
.s-hero__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--mrp-text, #1B2B38); }
.s-hero__checks li { display: flex; gap: 10px; align-items: flex-start; }
.s-hero__checks svg { flex: 0 0 20px; margin-top: 3px; color: var(--mrp-green-text); }
.s-hero__card .s-hero__cardbtn { margin-top: 22px; }
.s-hero__card .s-hero__cardnote { margin: 14px 0 0; font-size: 15px; color: var(--mrp-muted); }
.s-hero__stats { margin: 0; display: grid; gap: 18px; }
.s-hero__stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--mrp-line); }
.s-hero__stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
.s-hero__stats dt { color: var(--mrp-muted); font-size: 16px; }
.s-hero__stats dd { margin: 0; font-family: var(--mrp-font-head); font-weight: 800; font-size: 34px; line-height: 1.05; color: var(--mrp-blue); }

/* Client-story carousel (home hero). Script: assets/js/mrp.js */
.s-stories { flex: 0 1 400px; display: flex; flex-direction: column; gap: 16px; }
.s-story { min-height: 480px; box-sizing: border-box; background: #fff; color: var(--mrp-blue); text-decoration: none; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; }
.s-story[hidden] { display: none; }
.s-story img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: center 40%; border-radius: 0; box-shadow: none; }
.s-story__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.s-story__label { font-family: var(--mrp-font-head); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mrp-link); }
.s-story__title { font-family: var(--mrp-font-head); font-weight: 800; font-size: 22px; line-height: 1.25; }
.s-story__nums { display: flex; gap: 28px; padding-top: 4px; }
.s-story__nums > span { display: flex; flex-direction: column; }
.s-story__nums b { font-family: var(--mrp-font-head); font-weight: 800; font-size: 30px; line-height: 1.05; }
.s-story__nums small { font-size: 14px; color: var(--mrp-muted); }
.s-story__more { margin-top: auto; font-family: var(--mrp-font-head); font-weight: 800; font-size: 16px; color: var(--mrp-link); }
.s-story:hover .s-story__more { text-decoration: underline; }
.s-stories__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-stories__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.s-stories__arrow:hover { background: rgba(255,255,255,.14); }
.s-stories__dots { display: flex; align-items: center; gap: 2px; }
.s-stories__dots button { width: 28px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.s-stories__dots button span { display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.7); transition: width .2s ease; }
.s-stories__dots button[aria-pressed="true"] span { width: 22px; background: var(--mrp-green); }
.s-stories__count { font-family: var(--mrp-font-head); font-weight: 700; font-size: 14px; color: #DCE6EE; min-width: 72px; text-align: center; }
@media (max-width: 640px) { .s-story { min-height: 0; } .s-stories { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .s-stories__dots button span { transition: none; } }

/* ---------- 2 Stats ---------- */
.s-stats b { font-size: 44px; }
.s--light.s--tight:has(> .mrp-wrap > .s-stats) { border-bottom: 1px solid #E1E8EE; }
.s--dark .s-stats span { color: #DCE6EE; }

/* ---------- 4 Cards: styles ---------- */
.s-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.s-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.s-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .s-cols-3, .s-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 680px) { .s-cols-2, .s-cols-3, .s-cols-4 { grid-template-columns: minmax(0, 1fr) !important; } }
.s-card__label { font-family: var(--mrp-font-head); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mrp-link); }
.s-card--featured { border: 2px solid var(--mrp-green); box-shadow: 0 14px 34px rgba(4,60,99,.12); }
.s-card__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.s-card__list li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #C5D3DD; font-weight: 600; font-size: 15px; color: var(--mrp-blue); }
.s--dark .s-card__list li { background: #fff; }
/* grey cards */
.s-cards--light .s-card { background: var(--mrp-light); border: 0; box-shadow: none; border-radius: 18px; padding: 36px; gap: 14px; }
.s--light .s-cards--light .s-card { background: #fff; box-shadow: 0 10px 28px rgba(4,60,99,.08); }
.s-cards--light .s-icon { width: 56px; height: 56px; border-radius: 14px; color: #fff; }
.s-cards--light .s-card h3 { font-size: 24px; }
.s-cards--light .s-card p { font-size: 17px; }
/* outlined cards */
.s-cards--outline .s-card { background: transparent; border: 1.5px solid var(--mrp-line); box-shadow: none; }
/* dark tiles: the whole card is a link */
.s-cards--tiles .s-card { position: relative; min-height: 260px; box-sizing: border-box; padding: 32px; gap: 20px; border: 0; border-radius: 18px; background: radial-gradient(120% 140% at 15% -10%, var(--mrp-blue-2) 0%, var(--mrp-blue) 55%); color: #fff; text-decoration: none; box-shadow: 0 16px 36px rgba(4,60,99,.22); transition: transform .15s ease, box-shadow .15s ease; }
.s-cards--tiles a.s-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(4,60,99,.3); }
.s-cards--tiles .s-icon { width: 68px; height: 68px; border-radius: 18px; background: var(--mrp-green); color: var(--mrp-blue); }
.s-cards--tiles .s-icon svg { width: 34px; height: 34px; }
.s-cards--tiles .s-card h3, .s--dark .s-cards--tiles .s-card h3, .s--light .s-cards--tiles .s-card h3 { color: #fff; font-size: 24px; line-height: 1.2; }
.s-cards--tiles .s-card p { color: #DCE6EE; font-size: 17px; line-height: 1.5; flex-grow: 1; }
.s-cards--tiles .s-more, .s--dark .s-cards--tiles .s-more { margin-top: auto; padding: 0; display: inline-flex; gap: 8px; align-items: center; font-family: var(--mrp-font-head); font-weight: 800; font-size: 16px; color: var(--mrp-green); }
.s-cards--tiles .s-card:focus-visible { outline: 3px solid var(--mrp-green); outline-offset: 3px; }
/* columns with a line on top */
.s-cards--rule .s-card, .s-cards--rule_green .s-card { background: transparent; border: 0; border-top: 4px solid var(--mrp-blue); border-radius: 0; box-shadow: none; padding: 20px 0 0; }
.s-cards--rule_green .s-card { border-top-color: var(--mrp-green); }
.s--light .s-cards--rule .s-card, .s--light .s-cards--rule_green .s-card { background: transparent; box-shadow: none; }
.s-cards--rule h3, .s-cards--rule_green h3 { font-size: 21px; }
.s-cards--rule p, .s-cards--rule_green p { margin: 0; }
.s--dark .s-cards--rule .s-card, .s--dark .s-cards--rule_green .s-card { color: #fff; }
.s--dark .s-cards--rule h3, .s--dark .s-cards--rule_green h3 { color: #fff; }
.s--dark .s-cards--rule p, .s--dark .s-cards--rule_green p { color: #DCE6EE; }
/* see-through cards on a dark background */
.s-cards--glass .s-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); box-shadow: none; color: #fff; }
.s--dark .s-cards--glass .s-card h3 { color: #fff; }
.s-cards--glass .s-card p { color: #DCE6EE; }
.s--dark .s-cards--glass .s-more { color: var(--mrp-green); }

/* ---------- 5 Steps: styles ---------- */
.s-steps--hl li:last-child::before { background: var(--mrp-green); color: var(--mrp-blue); }
.s-steps--light li { background: var(--mrp-light); box-shadow: none; border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.s--light .s-steps--light li { background: #fff; box-shadow: 0 10px 28px rgba(4,60,99,.08); }
.s-steps--light li h3 { margin: 6px 0 0; font-size: 21px; }
.s-steps--glass li, .s--dark .s-steps--glass li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); box-shadow: none; color: #fff; }
.s--dark .s-steps--glass h3 { color: #fff; }
.s--dark .s-steps--glass p { color: #DCE6EE; }
.s-steps--glass.s-steps--hl li:last-child::before, .s-steps--glass li::before { background: var(--mrp-green); color: var(--mrp-blue); }

/* ---------- 8 Case studies: three-up grid ---------- */
.s-csgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.s-csgrid__card { display: flex; flex-direction: column; background: #fff; color: var(--mrp-blue); text-decoration: none; border-radius: 16px; overflow: hidden; transition: transform .15s ease; }
.s-csgrid__card:hover { transform: translateY(-3px); }
.s-csgrid__card:focus-visible { outline: 3px solid var(--mrp-green); outline-offset: 3px; }
.s-csgrid__card img { display: block; width: 100%; height: 200px; object-fit: cover; object-position: center 38%; }
.s-csgrid__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.s-csgrid__label { font-family: var(--mrp-font-head); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mrp-link); }
.s-csgrid__title { font-family: var(--mrp-font-head); font-weight: 800; font-size: 20px; line-height: 1.3; }
.s-csgrid__result { font-size: 15px; color: var(--mrp-muted); }
.s-csgrid__more { margin-top: auto; padding-top: 8px; font-family: var(--mrp-font-head); font-weight: 800; font-size: 15px; color: var(--mrp-link); }
.s-feature__more { font-family: var(--mrp-font-head); font-weight: 800; color: var(--mrp-link); }

/* ---------- 13 Video cards: follow links ---------- */
.s-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -16px 0 28px; font-family: var(--mrp-font-head); font-weight: 700; font-size: 15px; }
.s-follow span { color: var(--mrp-muted); }
.s-follow a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid #C5D3DD; text-decoration: none; color: var(--mrp-blue); }
.s-follow a:hover { border-color: var(--mrp-link); color: var(--mrp-link); }

/* ---------- 15 Call-to-action: gradient band and green bar with an icon ---------- */
.s--cta-gradient { background: radial-gradient(120% 140% at 15% -10%, var(--mrp-blue-2) 0%, var(--mrp-blue) 55%); }
.s-cta__text { display: flex; align-items: center; gap: 18px; flex: 1 1 480px; min-width: 0; }
.s-cta__icon { flex: 0 0 56px; height: 56px; border-radius: 14px; background: var(--mrp-blue); color: var(--mrp-green); display: flex; align-items: center; justify-content: center; }
.s--cta-callout .s-cta h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; }
.s--cta-callout .s-cta p { margin-top: 4px; }
.s--cta-callout.s--tight { padding: 36px 0; }

/* ---------- Added after the first review ---------- */
/* 4 Cards: five per row */
.s-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .s-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 900px) { .s-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .s-cols-5 { grid-template-columns: minmax(0, 1fr) !important; } }
/* Links typed inside card text */
.s-card p a, .s-hero__checks a, .s-hero__cardnote a, .s-card__list a { color: var(--mrp-link); text-decoration: underline; text-underline-offset: 2px; }
.s--dark .s-card p a { color: var(--mrp-link); }
.s-cards--tiles p a, .s-cards--glass p a { color: var(--mrp-green); }
/* 7 Table: second line under a label ("Label // detail") */
.s-cell__sub { display: block; margin-top: 2px; font-family: var(--mrp-font-body); font-weight: 400; font-size: 15px; color: var(--mrp-muted); }
/* 15 CTA: small label */
.s-cta .s-eyebrow { margin-bottom: 6px; }
.s--cta-callout .s-cta .s-eyebrow { color: var(--mrp-blue); }
/* 16 Form: note under the form */
.s-formgrid__form { flex: 1 1 440px; min-width: 0; }
.s-formgrid__form .s-form { width: 100%; box-sizing: border-box; }
.s-form__footnote { margin-top: 14px; font-size: 15px; color: var(--mrp-muted); }
.s-form__footnote p { margin: 0 0 8px; }
.s-form__footnote a { color: var(--mrp-link); }
/* 21 Contact: hours line */
.s-contact__hours { display: block; }
/* 22 Page tabs */
.s-subnav { background: #fff; border-bottom: 1px solid #E1E8EE; }
.s-subnav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 6px; font-family: var(--mrp-font-head); font-weight: 700; font-size: 15px; }
.s-subnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--mrp-blue); text-decoration: none; }
.s-subnav a:hover { background: var(--mrp-light); }
.s-subnav a[aria-current="page"] { background: #E6EFF5; }

.s-hero__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.s-hero--light .s-hero__note a { color: var(--mrp-link); }
