/* ===========================================================
   SERVICES
   -----------------------------------------------------------
   Text-led. No stock photography: the previous version used
   generic desk-and-monitor imagery that added length without
   adding meaning.

   Bands, typography and cards come from page-system.css.
   =========================================================== */


/* ===========================================================
   INDEX
   A jump list so a visitor can reach the practice they came
   for without scrolling through the other three.
   =========================================================== */

.service-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--page-line);
}

.service-index-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 24px 22px 0;
  margin-right: 24px;
  border-right: 1px solid var(--page-line);
  transition:
    opacity 200ms var(--page-ease),
    transform 200ms var(--page-ease);
}

.service-index-item:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

@media (hover: hover) and (pointer: fine) {
  .service-index-item:hover {
    opacity: 0.72;
    transform: translateY(-2px);
  }
}

.service-index-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--page-orange);
}

.service-index-name {
  color: var(--page-navy);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-index-meta {
  color: var(--page-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}


/* ===========================================================
   SERVICE SECTION
   Sticky aside on the left, capabilities on the right. The
   aside holds position while the capabilities scroll past,
   which keeps the reader oriented in a long page.
   =========================================================== */



@media (min-width: 1024px) {
  #corporate-schemes .service-aside {
    top: 105px;
  }
}

/*
 * Only the advisory section carries icons. Scoping the grid
 * here stops the other three sections from reserving an empty
 * icon column.
 */
#financial-advisory .service-capability {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 20px;
  align-items: start;
}

.service-capability-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--page-radius);
  background: rgba(3, 54, 105, 0.06);
  color: var(--page-navy);
}

#financial-advisory .service-capability h3,
#financial-advisory .service-capability p {
  grid-column: 2;
}

.page-band-ink .service-capability {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}



/* ===========================================================
   CONNECTED APPROACH
   =========================================================== */

.service-process .page-section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.service-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--page-line);
}

.service-process-grid::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;

  width: 25%;
  height: 2px;

  background: var(--page-orange);
}

.service-process-step {
  position: relative;
  min-width: 0;
  padding: 26px 28px 10px 0;
  margin-right: 28px;
  border-right: 1px solid var(--page-line);
}

.service-process-step:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.service-process-num {
  display: block;
  margin-bottom: 18px;
  color: var(--page-orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
}

.service-process-step h3 {
  margin: 0 0 10px;
  color: var(--page-navy);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.service-process-step p {
  margin: 0;
  color: var(--page-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--page-line);
}

.service-proof-row span {
  color: var(--page-navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.service-proof-row span:not(:last-child)::after {
  content: "|";
  display: inline-block;
  margin: 0 18px;
  color: rgba(3, 54, 105, 0.28);
  font-weight: 400;
}

/* ===========================================================
   CLOSING ACTIONS
   =========================================================== */

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1023px) {
  .service-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-index-item:nth-child(2n) {
    border-right: 0;
    margin-right: 0;
  }

  .service-index-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--page-line);
  }

  .service-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-process-step:nth-child(2) {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .service-process-step:nth-child(-n + 2) {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--page-line);
  }

  .service-process-step:nth-child(n + 3) {
    padding-top: 26px;
  }
}

@media (max-width: 767px) {
  .service-index {
    grid-template-columns: minmax(0, 1fr);
  }

  #financial-advisory::after,
  #corporate-schemes::after {
    right: 12px;
    bottom: 10px;
    font-size: 7rem;
  }

  .service-index-item {
    padding: 20px 0;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--page-line);
  }


  .service-cta-actions .page-button {
    width: 100%;
  }
    .service-process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-process-step,
  .service-process-step:nth-child(2),
  .service-process-step:nth-child(n + 3) {
    padding: 22px 0;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid var(--page-line);
  }

  .service-process-step:last-child {
    border-bottom: 0;
  }

  .service-process-num {
    margin-bottom: 12px;
  }

  .service-proof-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-top: 24px;
  }

  .service-proof-row span:not(:last-child)::after {
    content: none;
  }
}

/* ===========================================================
   CLOSING CTA
   =========================================================== */

.service-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /*
   * Extra bottom padding so the buttons clear the newsletter
   * card that overlaps the top of the footer.
   */
  padding-bottom: calc(var(--page-section-space) + 48px);
}

.service-cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.service-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.22;
}

.service-aside-media {
  margin: 26px 0 0;
  overflow: hidden;
  border-radius: var(--page-radius);
  aspect-ratio: 16 / 10;
  background: var(--page-surface);
}

.service-aside-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms var(--page-ease);
}

@media (hover: hover) and (pointer: fine) {
  .service-aside-media:hover img {
    transform: scale(1.03);
  }
}

/* ===========================================================
   LIGHT SECTION VISUAL DEPTH
   =========================================================== */

#financial-advisory {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-image:
    radial-gradient(
      circle at 4% 22%,
      rgba(246, 134, 52, 0.07) 0,
      rgba(246, 134, 52, 0.025) 18%,
      transparent 38%
    ),
    radial-gradient(
      circle at 92% 82%,
      rgba(3, 54, 105, 0.055) 0,
      transparent 32%
    );
}

#financial-advisory::after {
  content: "01";
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 18px;
  z-index: 0;

  color: rgba(3, 54, 105, 0.035);
  font-family: var(--font-mono);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;

  pointer-events: none;
  user-select: none;
}

#financial-advisory > .page-shell {
  position: relative;
  z-index: 1;
}
#corporate-schemes {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

#corporate-schemes::before {
  content: "";
  position: absolute;
  top: 55px;
  right: -40px;

  width: 420px;
  height: 320px;

  background-image:
    radial-gradient(
      circle,
      rgba(3, 54, 105, 0.09) 1px,
      transparent 1.2px
    );

  background-size: 22px 22px;

  -webkit-mask-image:
    radial-gradient(circle at center, black 10%, transparent 72%);
  mask-image:
    radial-gradient(circle at center, black 10%, transparent 72%);

  opacity: 0.65;

  pointer-events: none;
}

#corporate-schemes::after {
  content: "04";
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 18px;
  z-index: 0;

  color: rgba(3, 54, 105, 0.035);
  font-family: var(--font-mono);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;

  pointer-events: none;
  user-select: none;
}

#corporate-schemes > .page-shell {
  position: relative;
  z-index: 1;
}

.service-process {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(246, 134, 52, 0.075),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      #f7f9fb 0%,
      #ffffff 52%,
      #faf8f5 100%
    );
}

