/* ============================================================
   CUSTOM CODE REMEDIATION service page. Same "service page" shell
   as pi-po-migration.css (kept as its own file, one per page,
   matching the live KloudData theme's page-wise CSS convention),
   with .code-transform in place of .diff-rail.
   ============================================================ */
.svc-hero-simple{
  /* No background of its own -- the body's ambient hero-background-1.png
     (see main.css) shows through here, same as it does on every page. */
  position: relative; overflow: hidden;
  padding: 140px 24px 64px; text-align: center;
}
@media (max-width: 1024px){ .svc-hero-simple{ padding: 120px 24px 48px; } }
@media (max-width: 640px){ .svc-hero-simple{ padding: 100px 20px 40px; } }
.svc-hero-inner{ position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.svc-hero-title{
  /* font-size/line-height intentionally not set here -- inherits the
     sitewide h1 scale from main.css. */
  letter-spacing: -1.5px;
  color: var(--text-primary); margin: 0 0 20px; text-wrap: balance;
}
.svc-hero-lede{ font-size: 16px; line-height: 1.6; max-width: 56ch; margin: 0 auto 28px; }

/* max-width itself now comes from main.css's shared .section-head rule
   (940px desktop / 720px tablet / 100% mobile) -- kept as an empty
   selector here only if a future page-specific override is needed. */
.section-head.centered{ margin-inline: auto; text-align: center; }
.section-head.centered p{ margin-inline: auto; }
.section-head.centered .kicker{ justify-content: center; display: flex; }

.why-now{ background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-now .inner{ max-width: 760px; margin: 0 auto; }
.why-now p{ font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.why-now p:last-child{ margin-bottom: 0; }
.why-now strong{ color: var(--text-primary); }

/* Restores the top padding main.css's `main section + section` rule
   zeroes by default (see main.css) -- "Four stages, one Z-object at a
   time." wants its own breathing room below the why-now band above it,
   same as .proof-band/.why-now/.lanes-section restore theirs elsewhere. */
#how{ padding-top: 96px; }
@media (max-width: 768px){ #how{ padding-top: 64px; } }

.stages{ max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px){ .stages{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .stages{ grid-template-columns: 1fr; } }
.stage{
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  /* Grid items default to min-width:auto, which lets wide unbreakable
     content (e.g. .code-transform's overflow-x:auto lines) pull one
     card's minimum width above its 1fr track -- same fix as
     pi-po-migration.css's .stage, applied here defensively too. */
  min-width: 0;
}
.stage:hover{ transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,40,120,0.15); border-color: var(--border-active); }
.stage-icon{ width: 44px; height: 44px; border-radius: 999px; background: var(--accent-blue-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stage-icon svg{ width: 22px; height: 22px; stroke: var(--accent-blue); fill: none; stroke-width: 1.8; }
.stage-num{ font-size: 11.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stage h3{ margin: 0; letter-spacing: -0.005em; color: var(--text-primary); }
.stage p{ font-size: 16px; line-height: 1.6; margin: 0; }
.stage-detail{ font-size: 12px; color: var(--accent-blue); background: var(--accent-blue-glow); border-radius: var(--radius-sm); padding: 8px 11px; line-height: 1.5; margin-top: auto; }

.doc-split{ max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px){ .doc-split{ grid-template-columns: 1fr; } }
.doc-card{
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 32px);
}
.doc-card ul{ margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 16px; line-height: 1.9; }
.doc-card li strong{ color: var(--text-primary); }

/* Closing CTA band -- see main.css's shared .cta-band component (matches
   the live site's home-final-cta.php dark navy/radial-glow card exactly),
   enqueued on every page rather than redefined per page template. */

/* ---------- signature: code transform (Remediate stage) ---------- */
.code-transform{
  margin-top: 10px; background: #0B1733;
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 11px; line-height: 1.7;
  overflow-x: auto;
}
.code-transform .before{ color: #ff9d8a; }
.code-transform .after{ color: #8fe0b4; }
.code-transform .comment{ color: rgba(255,255,255,0.4); }
