/* R10 approved homepage Services index and final CTA/footer styling. */
.b-services-index {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  color: var(--p-ink);
}

.b-services-index__panel {
  position: relative;
  isolation: isolate;
  min-height: clamp(640px, 76vh, 760px);
  overflow: hidden;
  border-radius: 0;
  border-top: 1px solid var(--p-line);
  background: var(--p-pale);
}

.b-services-index__art {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.b-services-index__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.24;
  filter: grayscale(20%) contrast(1.14);
}

.b-services-index__content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  width: min(100%, 1440px);
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding: clamp(64px, 7vw, 96px) clamp(24px, 8vw, 120px) clamp(52px, 5.5vw, 80px);
}

.b-services-index__eyebrow {
  margin: 0 0 12px;
  color: var(--p-focus);
  font-family: var(--b-font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.b-services-index__title {
  max-width: 15ch;
  margin: 0 0 16px;
  color: var(--p-ink);
  font-family: var(--b-font-display);
  font-size: clamp(3rem, 5.8vw, 5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
}

.b-services-index__intro {
  max-width: 46ch;
  margin: 0;
  color: var(--p-on-pale-muted);
  font-family: var(--b-font-body);
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
}

.b-services-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 6vw, 92px);
  row-gap: 16px;
  margin-top: clamp(28px, 3.5vw, 48px);
  counter-reset: vrb-svc;
}

.b-services-index__row {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--p-line);
  color: var(--p-ink);
  font-family: var(--b-font-body);
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  counter-increment: vrb-svc;
}

.b-services-index__row:focus-visible,
.b-services-index__all .btn:focus-visible {
  outline: 3px solid var(--p-focus);
  outline-offset: 5px;
}

.b-services-index__arrow {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--p-dark);
  color: var(--p-on-dark);
  transition: transform .25s var(--ease-button-in, cubic-bezier(.72, .01, 0, 1)), background-color .22s ease;
}

.b-services-index__arrow svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.b-services-index__row:hover .b-services-index__arrow,
.b-services-index__row:focus-visible .b-services-index__arrow {
  transform: translateX(3px);
}

.b-services-index__all {
  margin: 30px 0 0;
}

.b-services-index__all .btn {
  --btn-focus: var(--p-focus);
}

/* The saved page content includes whitespace between PHP templates. Keep the
   home closing surfaces edge-to-edge in the existing page palette. */
.b-main.b-page--home ~ .site-footer {
  border-top: 0;
}

@media (max-width: 900px) {
  .b-services-index__panel {
    min-height: 0;
  }

  .b-services-index__content {
    min-height: 0;
    padding: 68px clamp(24px, 7vw, 56px) 56px;
  }

  .b-services-index__title {
    font-size: clamp(2.75rem, 8vw, 4rem);
  }

  .b-services-index__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    margin-top: 30px;
  }

  .b-services-index__row {
    min-height: 68px;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  }
}

@media (max-width: 767px) {
  .b-services-index__panel {
    border-radius: 0 0 24px 24px;
  }

  .b-services-index__content {
    padding: 60px 22px 48px;
  }

  .b-services-index__title {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 10.5vw, 3.25rem);
  }

  .b-services-index__intro {
    font-size: 1.05rem;
  }

  .b-services-index__list {
    margin-top: 26px;
  }

  .b-services-index__row {
    min-height: 64px;
    gap: 12px;
    font-size: 1rem;
  }

  .b-services-index__arrow {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* Full-viewport services sheet and progressive CTA/footer reveal. The sheet is
   measured against the sticky header; its CTA and footer remain normal content
   underneath it and are never fixed or clipped. */
@media (min-width: 1280px) and (min-height: 800px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced {
    overflow: visible;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-active {
    background: var(--p-dark);
  }

  body.b-services-reveal-active .b-capsule {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index {
    position: sticky;
    z-index: 20;
    top: var(--b-services-sticky-top, 100px);
    transform: translate3d(0, var(--b-services-index-lift, 0px), 0);
    will-change: transform;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__panel {
    height: calc(100vh - var(--b-services-sticky-top, 100px));
    min-height: calc(100vh - var(--b-services-sticky-top, 100px));
    height: calc(100svh - var(--b-services-sticky-top, 100px));
    min-height: calc(100svh - var(--b-services-sticky-top, 100px));
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__content {
    width: min(100%, 1680px);
    padding: clamp(44px, 5.5vh, 72px) clamp(36px, 7vw, 136px);
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__eyebrow,
  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__title,
  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__intro {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__title {
    margin-bottom: 14px;
    font-size: clamp(4rem, 7vw, 7.5rem);
    line-height: .94;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__intro {
    margin-inline: auto;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__list {
    width: 100%;
    column-gap: clamp(48px, 6vw, 100px);
    row-gap: clamp(14px, 2vh, 22px);
    margin-top: clamp(32px, 4.8vh, 58px);
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__row {
    min-height: clamp(76px, 9vh, 92px);
    font-size: clamp(1.25rem, 1.7vw, 1.9rem);
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__arrow {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-services-index__all {
    display: flex;
    justify-content: center;
    margin-top: clamp(22px, 3.4vh, 36px);
  }

  body.b-services-reveal-enabled .b-main.b-page--home.b-services-reveal-enhanced .b-cta-band {
    position: relative;
    z-index: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .b-services-index__arrow {
    transition: none;
  }
}
