/* Group D pages: Our Story, Contact Us, Become a Partner, Register a Referral Opportunity. */

/* ---- Numbered "what happens next" list in the Form section ---- */
.s-numlist { list-style: none; counter-reset: mrpnum; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.s-numlist li { counter-increment: mrpnum; position: relative; padding: 2px 0 0 56px; min-height: 44px; display: flex; flex-direction: column; gap: 2px; }
.s-numlist li::before { content: counter(mrpnum, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--mrp-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mrp-font-head); font-weight: 800; font-size: 16px; }
.s-numlist li:last-child::before { background: var(--mrp-green); color: var(--mrp-blue); }
.s-numlist strong { font-family: var(--mrp-font-head); font-weight: 800; color: var(--mrp-blue); font-size: 18px; line-height: 1.3; }
.s-numlist span { color: var(--mrp-muted); font-size: 17px; line-height: 1.5; }
.s--dark .s-numlist strong { color: #fff; }
.s--dark .s-numlist span { color: #DCE6EE; }

/* ---- Rich text with the heading beside the text ---- */
.s-rtsplit { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.s-rtsplit__head { flex: 1 1 360px; min-width: 0; }
.s-rtsplit__head .s-head { margin: 0; }
.s-rtsplit > .s-rich { flex: 1 1 520px; min-width: 0; margin: 0; max-width: none; }
.s-rtsplit .s-rich p { margin: 0 0 18px; }
.s-rtsplit .s-rich p:last-child { margin-bottom: 0; }

/* ---- Contact details + map ---- */
.s-contact { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.s-contact__text { flex: 1 1 420px; min-width: 0; }
.s-contact__map { flex: 1 1 420px; min-width: 0; position: relative; aspect-ratio: 4 / 3; min-height: 320px; border-radius: 18px; overflow: hidden; background: #E4ECF2; }
.s-contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s-contact__addr { font-style: normal; display: flex; flex-direction: column; gap: 6px; margin-top: 24px; color: var(--mrp-muted); }
.s-contact__addr strong { font-family: var(--mrp-font-head); font-weight: 800; font-size: 20px; color: var(--mrp-blue); }
.s-contact__addr a { color: var(--mrp-link); font-weight: 600; align-self: flex-start; min-height: 24px; }
.s-contact__btn { margin-top: 22px; }
.s-contact__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 28px; }
.s-contact__cards > div { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(4,60,99,.07); }
.s-contact__cards h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.s-contact__cards p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--mrp-muted); }

/* ---- Arrow after card links (white / light card styles) ---- */
.s-cards--white .s-card a.s-more::after, .s-cards--light .s-card a.s-more::after { content: " \2192" / ""; }

/* ---- Our Story: hero logo tile ---- */
#about-hero .s-hero__side--image { flex: 0 1 360px; aspect-ratio: 1 / 1; border-radius: 20px; background: #0F5079; border: 1px dashed #5B8BAA; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
#about-hero .s-hero__side--image img { width: 70%; max-width: 240px; height: auto; border-radius: 0; box-shadow: none; margin: auto; }

/* ---- Our Story: "For complex projects" band ---- */
#engineers .s-split__text { background: var(--mrp-blue); color: #fff; border-radius: 16px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 32px; row-gap: 0; align-items: center; }
#engineers .s-split__text > * { grid-column: 1; }
#engineers .s-split__text .s-checklist { grid-column: 2; grid-row: 1 / span 4; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
#engineers .s-eyebrow { color: var(--mrp-green); }
#engineers .s-h2 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); }
#engineers .s-split__body { color: #DCE6EE; font-size: 18px; }
#engineers .s-checklist li { padding: 8px 16px; border-radius: 999px; background: #0F5079; font-weight: 600; font-size: 15px; color: #fff; }
#engineers .s-checklist li::before { display: none; }
@media (max-width: 820px) {
  #engineers .s-split__text { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  #engineers .s-split__text .s-checklist { grid-column: 1; grid-row: auto; margin-top: 22px; }
}

/* ---- Our Story: "Explore more" tiles (first dark, second outlined) ---- */
#explore .s-cards--tiles .s-card { min-height: 260px; padding: 40px; }
#explore .s-cards--tiles .s-card h3 { font-size: clamp(26px, 3vw, 34px); max-width: 420px; }
#explore .s-card__label { font-family: var(--mrp-font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--mrp-green); }
#explore .s-cards--tiles .s-card:nth-child(2) { background: #fff; border: 1.5px solid #C5D3DD; box-shadow: none; color: var(--mrp-blue); }
#explore .s-cards--tiles .s-card:nth-child(2) h3 { color: var(--mrp-blue); }
#explore .s-cards--tiles .s-card:nth-child(2) p { color: var(--mrp-muted); }
#explore .s-cards--tiles .s-card:nth-child(2) .s-card__label { color: var(--mrp-link); }
#explore .s-cards--tiles .s-card:nth-child(2) .s-more { color: var(--mrp-link); }

/* ---- Become a Partner: "Who to introduce" ---- */
#ideal-referrals .s-split__body ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
#ideal-referrals .s-split__body li { background: var(--mrp-light); border-radius: 14px; padding: 18px 20px; color: var(--mrp-muted); font-size: 16px; line-height: 1.4; }
#ideal-referrals .s-split__body li strong { display: block; font-family: var(--mrp-font-head); font-weight: 800; font-size: 22px; color: var(--mrp-blue); margin-bottom: 4px; }
#ideal-referrals .s-split__card--dark ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; }
#ideal-referrals .s-split__card--dark li { color: #fff; }

/* ---- Text + side card / quote (used by Become a Partner) ---- */
.s-split__card { border-radius: 16px; padding: 32px; box-sizing: border-box; background: #fff; border: 1px solid var(--mrp-line); }
.s-split__card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.s-split__card--light { background: var(--mrp-light); border-color: transparent; }
.s-split__card--dark { background: var(--mrp-blue); color: #fff; border-color: transparent; }
.s-split__card--dark h3 { color: #fff; }
.s-split__quote { margin: 0; background: #fff; border-radius: 16px; padding: 28px 30px; box-shadow: 0 10px 28px rgba(4,60,99,.08); }
.s-split__quote blockquote { margin: 0; font-family: var(--mrp-font-head); font-weight: 600; font-size: 19px; line-height: 1.5; color: var(--mrp-blue); }
.s-split__quote blockquote p { margin: 0; }
.s-split__quote figcaption { margin-top: 14px; font-size: 15px; color: var(--mrp-muted); }
