/* =========================================================
   v1.3.72 — Services + Process Modernization

   Scope:
   - Services and Process public pages only
   - Loaded after checkout.css to avoid cascade conflicts
   - Preserves the site-wide font system and mobile baseline
========================================================= */

/* ---------- Shared page hero treatment ---------- */

.services-v2-page .services-v2-hero,
.process-v2-page .process-v2-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(47, 125, 211, 0.16), transparent 24rem),
    radial-gradient(circle at 10% 88%, rgba(232, 214, 168, 0.22), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8f7f2 100%);
  border-bottom: 1px solid rgba(223, 228, 234, 0.9);
}

.services-v2-page .services-v2-hero::before,
.process-v2-page .process-v2-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -210px;
  border-radius: 50%;
  border: 1px solid rgba(47, 125, 211, 0.15);
  box-shadow:
    0 0 0 42px rgba(47, 125, 211, 0.03),
    0 0 0 84px rgba(47, 125, 211, 0.025);
}

.services-v2-hero-grid,
.process-v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}

.services-v2-hero-copy,
.process-v2-hero-copy {
  max-width: 720px;
}

.services-v2-hero-copy h1,
.process-v2-hero-copy h1 {
  margin: 10px 0 22px;
  max-width: 780px;
}

.services-v2-hero-copy > p:last-of-type,
.process-v2-hero-copy > p:last-of-type {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.75;
}

.services-v2-hero-actions,
.process-v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Hero visual panels ---------- */

.services-v2-hero-panel,
.process-v2-map {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(30, 58, 95, 0.98), rgba(17, 24, 39, 0.99));
  color: #ffffff;
  box-shadow:
    0 30px 70px rgba(17, 24, 39, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.services-v2-hero-panel::before,
.process-v2-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.services-v2-panel-heading,
.process-v2-map-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.services-v2-panel-heading span,
.process-v2-map-heading span {
  color: #a9cff8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-v2-panel-heading strong,
.process-v2-map-heading strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 620;
  line-height: 1.16;
  letter-spacing: -0.026em;
}

.services-v2-hero-matrix {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.services-v2-hero-matrix > div {
  display: grid;
  align-content: start;
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.services-v2-hero-matrix span {
  margin-bottom: 18px;
  color: #e8d6a8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.services-v2-hero-matrix strong {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 680;
}

.services-v2-hero-matrix small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ---------- Services jump navigation ---------- */

.services-v2-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
  padding: 14px;
  border: 1px solid rgba(223, 228, 234, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(12px);
}

.services-v2-jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(223, 228, 234, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-2);
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.services-v2-jump-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 125, 211, 0.34);
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* ---------- Services showcase stack ---------- */

.services-v2-page .service-detail-stack {
  gap: 24px;
  margin-top: 54px;
}

.services-v2-page .service-detail {
  --service-accent: #2f7dd3;
  --service-tint: rgba(47, 125, 211, 0.075);
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.1fr) minmax(210px, 0.78fr) minmax(220px, 0.82fr) minmax(150px, auto);
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(223, 228, 234, 0.98);
  border-radius: 28px;
  background:
    linear-gradient(135deg, var(--service-tint), transparent 35%),
    rgba(255, 255, 255, 0.97);
  box-shadow:
    0 18px 52px rgba(17, 24, 39, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.services-v2-page .service-detail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--service-accent);
}

.services-v2-page .service-detail::after {
  content: attr(data-service-number);
  position: absolute;
  top: 14px;
  right: 24px;
  color: color-mix(in srgb, var(--service-accent) 11%, transparent);
  font-size: clamp(4.6rem, 8vw, 7.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.services-v2-page .service-detail:nth-child(2),
.services-v2-page .service-detail:nth-child(5) {
  --service-accent: #1e3a5f;
  --service-tint: rgba(30, 58, 95, 0.07);
}

.services-v2-page .service-detail:nth-child(3),
.services-v2-page .service-detail:nth-child(7) {
  --service-accent: #b58b32;
  --service-tint: rgba(232, 214, 168, 0.22);
}

.services-v2-page .service-detail:nth-child(4),
.services-v2-page .service-detail:nth-child(6) {
  --service-accent: #1f5fa8;
  --service-tint: rgba(31, 95, 168, 0.075);
}

.services-v2-page .service-detail > * {
  position: relative;
  z-index: 1;
}

.services-v2-page .service-detail-main .card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--service-accent) 10%, white);
  color: var(--service-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.services-v2-page .service-detail-main h3 {
  margin: 18px 0 12px;
  max-width: 520px;
  font-size: clamp(1.45rem, 2.15vw, 2rem);
  line-height: 1.14;
}

.services-v2-page .service-detail-main p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.services-v2-page .service-detail-list {
  align-self: stretch;
  padding: 18px;
  border: 1px solid rgba(223, 228, 234, 0.92);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.88);
}

.services-v2-page .service-detail-list h4 {
  margin-bottom: 12px;
  color: var(--service-accent);
}

.services-v2-page .service-detail-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-v2-page .service-detail-list li {
  position: relative;
  padding-left: 18px;
  color: #495160;
}

.services-v2-page .service-detail-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--service-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--service-accent) 10%, transparent);
}

.services-v2-page .service-link {
  justify-self: stretch;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #1e3a5f;
  border-radius: 15px;
  background: linear-gradient(135deg, #111827, #1e3a5f);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

.services-v2-page .service-link:hover {
  border-color: #2f7dd3;
  background: linear-gradient(135deg, #1e3a5f, #1f5fa8);
  color: #ffffff;
}

/* ---------- Services supporting sections ---------- */

.services-v2-page .service-fit {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 125, 211, 0.22), transparent 24rem),
    linear-gradient(135deg, #111827, #1e3a5f);
  color: #ffffff;
  border: 0;
}

.services-v2-page .service-fit .center-heading h2,
.services-v2-page .service-fit .center-heading p {
  color: #ffffff;
}

.services-v2-page .service-fit .center-heading > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.services-v2-page .service-fit .eyebrow {
  color: #a9cff8;
}

.services-v2-page .service-fit .fit-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.services-v2-page .service-fit .fit-card h3,
.services-v2-page .service-fit .fit-card li {
  color: #ffffff;
}

.services-v2-page .service-process {
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 125, 211, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff, #f8f7f2);
}

.services-v2-page .service-process .readiness-list > div {
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
}

/* ---------- Process hero map ---------- */

.process-v2-map-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-v2-map-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.065);
}

.process-v2-map-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(169, 207, 248, 0.14);
  color: #a9cff8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-v2-map-list strong {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 650;
}

/* ---------- Process stage lane ---------- */

.process-v2-page .process-v2-lane {
  position: relative;
  gap: 22px;
  max-width: 1020px;
  margin-top: 58px;
}

.process-v2-page .process-v2-lane::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 63px;
  width: 2px;
  background:
    linear-gradient(
      to bottom,
      rgba(47, 125, 211, 0.15),
      rgba(47, 125, 211, 0.65),
      rgba(232, 214, 168, 0.8)
    );
}

.process-v2-page .process-step {
  --stage-accent: #2f7dd3;
  position: relative;
  z-index: 1;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 132px;
  padding: 28px 32px;
  border: 1px solid rgba(223, 228, 234, 0.98);
  border-radius: 26px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--stage-accent) 8%, white), #ffffff 46%);
  box-shadow:
    0 18px 46px rgba(17, 24, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.process-v2-page .process-step:nth-child(2),
.process-v2-page .process-step:nth-child(5) {
  --stage-accent: #1e3a5f;
}

.process-v2-page .process-step:nth-child(3),
.process-v2-page .process-step:nth-child(6) {
  --stage-accent: #b58b32;
}

.process-v2-page .process-step::after {
  content: "Stage " attr(data-stage);
  position: absolute;
  top: 20px;
  right: 24px;
  color: color-mix(in srgb, var(--stage-accent) 42%, #ffffff);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.process-v2-page .process-step > span {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 8px solid #ffffff;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--stage-accent), #111827);
  color: #ffffff;
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--stage-accent) 26%, transparent),
    0 0 0 1px color-mix(in srgb, var(--stage-accent) 20%, transparent);
}

.process-v2-page .process-step h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.process-v2-page .process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Process supporting sections ---------- */

.process-v2-page .process-v2-readiness {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(47, 125, 211, 0.18), transparent 24rem),
    linear-gradient(135deg, #111827, #1e3a5f);
  color: #ffffff;
  border: 0;
}

.process-v2-page .process-v2-readiness h2,
.process-v2-page .process-v2-readiness p,
.process-v2-page .process-v2-readiness .readiness-list span {
  color: #ffffff;
}

.process-v2-page .process-v2-readiness .eyebrow,
.process-v2-page .process-v2-readiness .readiness-list strong {
  color: #a9cff8;
}

.process-v2-page .process-v2-readiness .readiness-list > div {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.process-v2-page .process-v2-deliverables {
  background:
    radial-gradient(circle at 10% 10%, rgba(232, 214, 168, 0.2), transparent 24rem),
    linear-gradient(180deg, #ffffff, #f8f7f2);
}

.process-v2-page .process-v2-deliverables .summary-card {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
  border-radius: 25px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.07);
}

.process-v2-page .process-v2-deliverables .summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2f7dd3, #e8d6a8);
}

.process-v2-page .process-v2-rules {
  background: #eef3f8;
}

.process-v2-page .process-v2-rules .fit-card {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.065);
}

.process-v2-page .process-v2-rules .fit-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #2f7dd3;
}

.process-v2-page .process-v2-rules .fit-card.careful::before {
  background: #b58b32;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services-v2-hero-grid,
  .process-v2-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-v2-hero-panel,
  .process-v2-map {
    max-width: 760px;
  }

  .services-v2-page .service-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .services-v2-page .service-detail-main {
    grid-column: 1 / -1;
  }

  .services-v2-page .service-link {
    justify-self: start;
    width: auto;
  }
}

@media (max-width: 760px) {
  .services-v2-hero-grid,
  .process-v2-hero-grid {
    gap: 34px;
  }

  .services-v2-hero-actions,
  .process-v2-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .services-v2-hero-actions .btn,
  .process-v2-hero-actions .btn {
    width: 100%;
  }

  .services-v2-hero-panel,
  .process-v2-map {
    padding: 22px;
    border-radius: 23px;
  }

  .services-v2-hero-matrix {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-v2-hero-matrix > div {
    min-height: auto;
  }

  .services-v2-jump-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
    padding: 11px;
    border-radius: 19px;
  }

  .services-v2-jump-nav a {
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

  .services-v2-page .service-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 22px 22px 26px;
    border-radius: 23px;
  }

  .services-v2-page .service-detail-main {
    grid-column: auto;
  }

  .services-v2-page .service-detail::after {
    top: 16px;
    right: 16px;
    font-size: 4.6rem;
  }

  .services-v2-page .service-link {
    width: 100%;
  }

  .process-v2-page .process-v2-lane {
    margin-top: 42px;
  }

  .process-v2-page .process-v2-lane::before {
    left: 45px;
  }

  .process-v2-page .process-step {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 20px;
    border-radius: 23px;
  }

  .process-v2-page .process-step > span {
    width: 50px;
    height: 50px;
    border-width: 6px;
    border-radius: 16px;
  }

  .process-v2-page .process-step::after {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin-bottom: -20px;
  }
}

@media (max-width: 520px) {
  .services-v2-jump-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-v2-page .service-detail {
    padding: 21px 18px 19px 22px;
  }

  .services-v2-page .service-detail-list {
    padding: 16px;
  }

  .process-v2-page .process-v2-lane::before {
    display: none;
  }

  .process-v2-page .process-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-v2-page .process-step::after {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .services-v2-jump-nav a:hover,
  .services-v2-page .service-detail:hover,
  .process-v2-page .process-step:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-v2-jump-nav a,
  .services-v2-page .service-detail,
  .services-v2-page .service-link,
  .process-v2-page .process-step {
    transition: none;
  }
}
