/* Individual service pages (/how-we-help/<service>/).
   These deliberately do NOT reuse the How we help explorer's pale .service-panel.
   The explorer is the overview; each service page is its own destination and leads with
   a dark photographic hero in the same idiom as the homepage. Page chrome, buttons and
   the navy sibling cards still come from icg.css. */

/* ---------- dark photographic hero ---------- */

.service-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 580px;
  background: var(--ink);
  color: white;
}
.service-hero-stage { position: absolute; inset: 0; z-index: -1; }
.service-hero-stage img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(32,59,92,.97), rgba(32,59,92,.62) 52%, rgba(32,59,92,.3)),
    linear-gradient(90deg, rgba(32,59,92,.9), rgba(32,59,92,.12) 72%);
}
/* Oversized service number, ghosted into the photograph. */
.service-hero-mark {
  position: absolute;
  z-index: -1;
  right: 2vw;
  bottom: -.18em;
  font-size: clamp(190px, 27vw, 430px);
  font-weight: 200;
  line-height: .8;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.065);
  pointer-events: none;
  user-select: none;
}
.service-hero-body { position: relative; padding-block: clamp(90px, 9vw, 130px) clamp(34px, 3.4vw, 48px); }
.service-hero .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 9px; }
.service-hero h1 {
  max-width: 16ch;
  margin-block: 22px 0;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 200;
  line-height: 1.07;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.service-hero h1 em { display: block; font-style: normal; color: #cfe0ee; }
.service-hero-intro { max-width: 54ch; margin-top: 26px; color: #dbe4ee; font-size: 16px; line-height: 1.8; }
.service-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Fact strip pinned to the base of the hero. */
.service-hero-facts {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--line-white);
}
.service-hero-facts > div { padding: 22px 0 26px; }
.service-hero-facts > div + div { padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line-white); }
.service-hero-facts b { display: block; color: white; font-size: clamp(19px, 1.9vw, 26px); font-weight: 300; line-height: 1.15; }
.service-hero-facts span { display: block; margin-top: 7px; color: #a9bccf; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- lead statement with figures ---------- */

.service-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 78px); align-items: start; }
.service-lead h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 300; line-height: 1.18; }
.service-lead > div > p { margin-top: 20px; color: var(--slate); line-height: 1.85; }
.service-stats { border-top: 1px solid var(--ink); }
.service-stat { padding-block: 19px; border-bottom: 1px solid var(--line); }
.service-stat b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 200; line-height: 1; color: var(--ink); }
.service-stat span { display: block; margin-top: 8px; color: var(--slate); font-size: 13px; line-height: 1.6; }

/* ---------- custom diagram on navy ---------- */

.service-figure { margin: 0; padding: clamp(26px, 4vw, 58px); background: var(--ink); color: white; }
.service-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.service-figure figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-white); color: #a9bccf; font-size: 13px; line-height: 1.7; }
.diagram-label { font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; fill: #a9bccf; }
.diagram-name { font-family: var(--font); font-size: 15px; font-weight: 600; fill: white; }
.diagram-value { font-family: var(--font); font-size: 13px; font-weight: 400; fill: var(--accent); }
.diagram-rule { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.diagram-bar-track { fill: rgba(255,255,255,.09); }
.diagram-bar { fill: var(--accent); }
.diagram-bar-target { fill: none; stroke: #e4be7d; stroke-width: 1.5; stroke-dasharray: 3 3; }
.diagram-node { fill: #e4be7d; }
.diagram-path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.diagram-path-soft { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.3; stroke-dasharray: 5 6; }

/* ---------- photograph beside copy ---------- */

.service-photo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; border: 1px solid var(--line); }
.service-photo-split.is-reversed .service-photo { order: 2; }
.service-photo { position: relative; min-height: 430px; overflow: hidden; background: var(--navy-pale); }
.service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-photo figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px;
  color: white;
  font-size: 13px;
  line-height: 1.6;
  background: linear-gradient(0deg, rgba(32,59,92,.94), transparent);
}
.service-photo-copy { padding: clamp(26px, 3.6vw, 54px); background: var(--bg-soft); }
.service-photo-copy h2 { font-size: clamp(25px, 2.7vw, 36px); font-weight: 300; line-height: 1.2; }
.service-photo-copy p { margin-top: 16px; color: var(--slate); line-height: 1.8; font-size: 15px; }
.service-photo-copy .text-link { margin-top: 22px; }

/* ---------- numbered process ---------- */

.service-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.service-step { counter-increment: step; min-width: 0; padding: clamp(22px, 2.6vw, 34px); background: white; }
.service-step::before { content: '0' counter(step); display: block; margin-bottom: 18px; color: var(--navy-light); font-size: 34px; font-weight: 200; line-height: 1; }
.service-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.service-step p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.7; }

/* ---------- offers ---------- */

.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-cards.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-item { min-width: 0; padding: clamp(20px, 2.4vw, 30px); background: white; border: 1px solid #d5e0ea; border-top: 3px solid var(--navy-light); }
.service-item h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.service-item p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.75; }
.service-item p + p { margin-top: 10px; }
.service-item .text-link { margin-top: 16px; font-size: 9px; }

/* ---------- checklist ---------- */

.service-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.service-split h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 300; line-height: 1.18; }
.service-split > div > p { margin-top: 20px; color: var(--slate); line-height: 1.8; }
.service-checklist > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); list-style: none; }
.service-checklist > li:last-child { border-bottom: 1px solid var(--line); }
.service-checklist .diamond { margin-top: .55em; background: var(--accent); }
.service-checklist strong { display: block; font-size: 16px; font-weight: 600; }
.service-checklist span { display: block; margin-top: 4px; color: var(--slate); font-size: 14px; line-height: 1.7; }

/* ---------- people, with portraits ---------- */

.service-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-bio { min-width: 0; background: white; border: 1px solid #d5e0ea; }
.service-bio-portrait { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; background: var(--navy-pale); }
.service-bio > div { padding: clamp(16px, 2vw, 24px); }
.service-bio h3 { margin: 0; font-size: 17px; font-weight: 600; }
.service-bio .service-bio-role { display: block; margin-top: 3px; color: var(--navy-light); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.service-bio p { margin: 12px 0 0; color: var(--slate); font-size: 14px; line-height: 1.7; }

/* ---------- sibling services ---------- */
/* .service-grid / .service-card are the homepage's navy panels, reused verbatim. */

.service-siblings { background: var(--bg-soft); }
.service-siblings .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .service-hero { min-height: 520px; }
  .service-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .service-lead,
  .service-split { grid-template-columns: minmax(0, 1fr); }
  .service-photo-split { grid-template-columns: minmax(0, 1fr); }
  .service-photo-split.is-reversed .service-photo { order: 0; }
  .service-photo { min-height: 320px; }
  .service-siblings .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-hero-facts { grid-auto-flow: row; grid-auto-columns: auto; }
  .service-hero-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-white); }
  .service-hero-facts > div { padding-block: 16px; }
}
@media (max-width: 600px) {
  .service-hero { min-height: 480px; }
  .service-hero h1 { max-width: none; }
  .service-hero-mark { font-size: 150px; right: -.06em; }
  .service-steps-grid,
  .service-people-grid,
  .service-cards,
  .service-cards.is-four,
  .service-siblings .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .service-hero-body > * { animation: enter .9s var(--ease) both; }
  .service-hero-body > h1 { animation-delay: .07s; }
  .service-hero-body > .service-hero-intro { animation-delay: .14s; }
  .service-hero-body > .service-hero-actions { animation-delay: .21s; }
}
