/* ==========================================================================
   Additions to the original stylesheet (style.css stays unchanged).
   New CMS section types and the fixes requested in the October 2026 review.
   ========================================================================== */

/* ---------- Home hero: H1 above a smaller headline ---------- */
.hero .hero-h1 {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-family: var(--display); font-stretch: 108%; font-weight: 600;
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.2; letter-spacing: 0;
  color: var(--green);
}
.hero .hero-h1::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.hero .hero-title {
  margin: 0 0 26px;
  font-family: var(--display); font-stretch: 112%; font-weight: 600;
  font-size: clamp(32px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance; color: var(--white);
}
.hero .hero-title em { font-style: normal; color: var(--green); }

/* ---------- Why Xylem: full-width tile ---------- */
.why-tile--full { grid-column: 1 / -1; }

/* ---------- Service panel: heading spacing ---------- */
.svc-panel .panel-main > h2 { margin: 0 0 18px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; }
.svc-panel .panel-main > .panel-label { margin-top: 28px; }

/* ---------- Related links: tag pill width, card surface, no underlined titles ---------- */
.split-head > .split-tag { justify-self: start; align-self: end; }
.rel { text-decoration: none; color: inherit; }
.section:not(.section--white) .rel { background: var(--white); border: 1px solid var(--line-light); }
.rel h3 { color: var(--ink); }
.rel:hover h3 { color: var(--brand); }

/* ---------- Steps: duration badge and deliverables ---------- */
.os-tag {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 9px;
  border-radius: 999px; background: rgba(121, 179, 152, .16);
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep);
}
.section--ink .os-tag { color: var(--green); background: rgba(121, 179, 152, .14); }
.os-points-label { margin-top: 12px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.os-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.os-points li { position: relative; padding-left: 14px; font-size: 14.5px; color: var(--muted); }
.os-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@media (max-width: 560px) { .os-points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photo + text ---------- */
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.mt-grid--reverse .mt-photo { order: 2; }
.mt-photo { margin: 0; aspect-ratio: 4 / 3.4; border-radius: 22px 22px 96px 22px; overflow: hidden; background: var(--ink); }
.mt-grid--reverse .mt-photo { border-radius: 22px 22px 22px 96px; }
.mt-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-copy h2 { margin: 18px 0 20px; font-size: clamp(30px, 3.4vw, 48px); max-width: 18ch; }
.mt-copy .prose p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.mt-copy .prose p + p { margin-top: 14px; }
.mt-copy .prose strong { color: var(--ink); }
.mt-copy .prose a { color: var(--brand); }
.mt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) {
  .mt-grid { grid-template-columns: minmax(0, 1fr); }
  .mt-grid--reverse .mt-photo { order: 0; }
}

/* ---------- Text cards ---------- */
.rc-grid { display: grid; gap: clamp(16px, 2vw, 26px); margin-top: clamp(24px, 2.6vw, 38px); }
.rc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rc-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 34px); border-radius: 18px; }
.rc-card h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.18; letter-spacing: -0.01em; }
.rc-body p { font-size: 16px; line-height: 1.6; }
.rc-body p + p, .rc-body ul + p, .rc-body p + ul { margin-top: 12px; }
.rc-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rc-body li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.55; }
.rc-body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.rc-card--light { background: var(--white); border: 1px solid var(--line-light); }
.section--white .rc-card--light { background: var(--paper); }
.rc-card--light h3 { color: var(--ink); }
.rc-card--light .rc-body { color: var(--muted); }
.rc-card--light .rc-body strong { color: var(--ink); }
.rc-card--gradient { color: var(--white); background: linear-gradient(165deg, #3E8F6E 0%, #2C6E86 42%, #274385 100%); box-shadow: 0 18px 40px -24px rgba(27, 47, 94, .55); }
.rc-card--gradient .rc-body { color: rgba(255, 255, 255, .88); }
.rc-card--gradient .rc-body li::before { background: var(--white); }
.rc-card--dark { color: var(--white); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.rc-card--dark .rc-body { color: var(--muted-dark); }
@media (max-width: 1080px) { .rc-grid--3, .rc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rc-grid--2, .rc-grid--3, .rc-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Text + highlight panel ---------- */
.rs-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(8px, 1vw, 16px); }
.split-head + .rs-grid { margin-top: clamp(24px, 2.6vw, 38px); }
.rs-main h2 { margin-bottom: 20px; font-size: clamp(26px, 2.8vw, 40px); }
.rs-main .prose p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.rs-main .prose p + p, .rs-main .prose ul + p, .rs-main .prose p + ul { margin-top: 14px; }
.rs-main .prose strong { color: var(--ink); }
.rs-main .prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rs-main .prose li { position: relative; padding-left: 20px; font-size: 16.5px; color: var(--ink); }
.rs-main .prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.rs-panel {
  position: relative; overflow: hidden; padding: clamp(26px, 3vw, 40px); border-radius: 22px; color: var(--white);
  background: linear-gradient(150deg, #3E8F6E 0%, #22507A 45%, #1B2F5E 100%);
}
.rs-panel h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.15; margin-bottom: 16px; }
.rs-body p { color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.6; }
.rs-body p + p, .rs-body ul + p, .rs-body p + ul { margin-top: 12px; }
.rs-body strong { color: var(--white); }
.rs-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rs-body li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.rs-body li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, .18) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.5l2.6 2.6L11 4.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px no-repeat;
}
@media (max-width: 900px) { .rs-grid { grid-template-columns: minmax(0, 1fr); } }
