.services-page-shell {
  overflow: hidden;
  background: #ffffff;
}

.services-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.services-kicker::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  content: "";
  background: var(--forest);
}

.services-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 36px var(--site-gutter) 30px;
  background: #ffffff;
}

.services-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/sliding/h1-rev-slider-img-2.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 18%, rgba(0, 0, 0, 0.92) 34%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 18%, rgba(0, 0, 0, 0.92) 34%, #000 46%);
  pointer-events: none;
}

.services-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 28%, rgba(255, 255, 255, 0.14) 46%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.services-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.services-hero h1 {
  max-width: 520px;
  color: #15242d;
  font-size: clamp(32px, 3.15vw, 46px);
  line-height: 1.18;
}

.services-hero h1 span {
  color: var(--forest);
}

.services-hero-copy > p {
  max-width: 500px;
  margin-top: 16px;
  color: #3f5260;
  font-size: 14px;
  line-height: 1.65;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.services-page .services-hero-actions .btn {
  min-width: 170px;
  min-height: 40px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 13px;
}

.services-outline-btn {
  display: inline-flex;
  min-width: 150px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--forest);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.services-hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 620px;
  margin-top: 34px;
}

.services-hero-features article {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.services-hero-features img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.services-hero-features h2 {
  color: #15242d;
  font-size: 12px;
  line-height: 1.25;
}

.services-hero-features p {
  max-width: 122px;
  color: #51616c;
  font-size: 11px;
  line-height: 1.45;
}

.services-list-section {
  padding: 50px var(--site-gutter) 58px;
  background: #ffffff;
  height: 50vh;
  margin-top:5%;
  margin-bottom:5%;
 
}

.services-list-section.reveal-section {
  opacity: 1;
  transform: none;
  transition: none;
}

.services-list-inner {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 34px 0 44px;
}

.services-section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 22px;
  text-align: center;
}

.services-section-heading h2 {
  color: var(--forest);
  font-size: clamp(28px, 2.5vw, 36px);
}

.services-section-heading p {
  max-width: 620px;
  margin-top: 6px;
  color: #52616c;
  font-size: 13px;
}

.services-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.services-card-grid.reveal-center {
  opacity: 1;
  transform: none;
  transition: none;
}

.services-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 116px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid rgba(13, 59, 49, 0.1);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(20, 56, 59, 0.06);
  opacity: 0;
  transform: translate(var(--spread-x, 0), var(--spread-y, 0)) scale(0.9);
  transform-origin: center;
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease),
    box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
  
}


.services-card-grid .services-card:nth-child(1) {
  --spread-x: calc(150% + 60px);
  --spread-y: calc(50% + 20px);
}

.services-card-grid .services-card:nth-child(2) {
  --spread-x: calc(50% + 20px);
  --spread-y: calc(50% + 20px);
}

.services-card-grid .services-card:nth-child(3) {
  --spread-x: calc(-50% - 20px);
  --spread-y: calc(50% + 20px);
}

.services-card-grid .services-card:nth-child(4) {
  --spread-x: calc(-150% - 60px);
  --spread-y: calc(50% + 20px);
}

.services-card-grid .services-card:nth-child(5) {
  --spread-x: calc(150% + 60px);
  --spread-y: calc(-50% - 20px);
}

.services-card-grid .services-card:nth-child(6) {
  --spread-x: calc(50% + 20px);
  --spread-y: calc(-50% - 20px);
}

.services-card-grid .services-card:nth-child(7) {
  --spread-x: calc(-50% - 20px);
  --spread-y: calc(-50% - 20px);
}

.services-card-grid .services-card:nth-child(8) {
  --spread-x: calc(-150% - 60px);
  --spread-y: calc(-50% - 20px);
}

.services-section-heading.reveal-center {
  transform: translateY(22px);
  transition-duration: 680ms;
}

.services-section-heading.reveal-center.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-card-grid.is-visible .services-card {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.services-card:hover {
  border-color: rgba(54, 174, 181, 0.28);
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 18px 38px rgba(20, 56, 59, 0.12);
  transition-delay: 0ms;
}

.services-card-grid.is-visible .services-card:hover {
  transform: translateY(-4px) scale(1.025);
}

.services-hero-features .reveal-card:nth-child(1),
.services-card-grid.is-visible .services-card:nth-child(1) {
 /*  transition-delay: 80ms; */
}

.services-hero-features .reveal-card:nth-child(2),
.services-card-grid.is-visible .services-card:nth-child(2) {
 /*  transition-delay: 160ms; */
}

.services-hero-features .reveal-card:nth-child(3),
.services-card-grid.is-visible .services-card:nth-child(3) {
/*   transition-delay: 240ms; */
}

.services-hero-features .reveal-card:nth-child(4),
.services-card-grid.is-visible .services-card:nth-child(4) {
/*   transition-delay: 320ms; */
}

.services-card-grid.is-visible .services-card:nth-child(5) {
 /*  transition-delay: 120ms; */
}

.services-card-grid.is-visible .services-card:nth-child(6) {
/*   transition-delay: 200ms; */
}

.services-card-grid.is-visible .services-card:nth-child(7) {
/*   transition-delay: 280ms; */
}

.services-card-grid.is-visible .services-card:nth-child(8) {
/*   transition-delay: 360ms; */
}

.services-card span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  background: #eef9fa;
  border-radius: 50%;
}

.services-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.services-card h3 {
  color: #15242d;
  font-size: 15px;
  line-height: 1.25;
}

.services-card p {
  margin-top: 8px;
  color: #4f6070;
  font-size: 12px;
  line-height: 1.55;
}

.services-care-banner {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(300px, 0.78fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  margin: 28px calc(var(--site-gutter) * -1) 0;
  overflow: hidden;
  background: var(--forest);
  border-radius: 0;
}

.services-care-banner-copy {
  padding: 44px clamp(56px, 7vw, 118px);
  color: #ffffff;
}

.services-care-banner-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.services-care-banner-copy h2 {
  max-width: 420px;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.18;
}

.services-care-banner-copy p {
  max-width: 460px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.65;
}

.services-care-banner-copy a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 18px;
  color: var(--forest);
  background: #ffffff;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
}

.services-care-banner > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}

.services-page .footer {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .services-hero {
    min-height: auto;
  }

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

  .services-card-grid .services-card:nth-child(1) {
    --spread-x: calc(50% + 20px);
    --spread-y: calc(150% + 60px);
  }

  .services-card-grid .services-card:nth-child(2) {
    --spread-x: calc(-50% - 20px);
    --spread-y: calc(150% + 60px);
  }

  .services-card-grid .services-card:nth-child(3) {
    --spread-x: calc(50% + 20px);
    --spread-y: calc(50% + 20px);
  }

  .services-card-grid .services-card:nth-child(4) {
    --spread-x: calc(-50% - 20px);
    --spread-y: calc(50% + 20px);
  }

  .services-card-grid .services-card:nth-child(5) {
    --spread-x: calc(50% + 20px);
    --spread-y: calc(-50% - 20px);
  }

  .services-card-grid .services-card:nth-child(6) {
    --spread-x: calc(-50% - 20px);
    --spread-y: calc(-50% - 20px);
  }

  .services-card-grid .services-card:nth-child(7) {
    --spread-x: calc(50% + 20px);
    --spread-y: calc(-150% - 60px);
  }

  .services-card-grid .services-card:nth-child(8) {
    --spread-x: calc(-50% - 20px);
    --spread-y: calc(-150% - 60px);
  }

  .services-care-banner {
    grid-template-columns: 1fr;
  }

  .services-care-banner > img {
    min-height: 240px;
    order: -1;
  }
}

@media (max-width: 760px) {
  .services-hero {
    min-height: 520px;
    align-items: start;
    padding: 30px 18px 28px;
  }

  .services-hero::before {
    background-position: 38% center;
    background-size: auto 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .services-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.62) 44%, rgba(255, 255, 255, 0.08) 100%);
  }

  .services-hero-copy {
    display: grid;
    min-height: calc(520px - 58px);
    align-content: start;
    padding-bottom: 145px;
  }

  .services-hero h1 {
    max-width: 330px;
    font-size: 31px;
  }

  .services-hero-copy > p {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.55;
  }

  .services-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .services-page .services-hero-actions .btn,
  .services-outline-btn {
    width: 100%;
  }

  .services-hero-features,
  .services-card-grid {
    grid-template-columns: 1fr;
  }

  .services-hero-features {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    max-width: 330px;
    margin-top: 0;
    padding-top: 0;
  }

  .services-hero-features article {
    grid-template-columns: 32px 1fr;
    justify-items: start;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .services-hero-features img {
    width: 28px;
    height: 28px;
    grid-row: 1 / 3;
  }

  .services-hero-features h2 {
    font-size: 11px;
  }

  .services-hero-features p {
    max-width: none;
    font-size: 10px;
    line-height: 1.32;
  }

  .services-card-grid .services-card {
    --spread-x: 0;
    --spread-y: 28px;
    opacity: 1;
    transform: none;
  }

  .services-list-section {
    padding: 32px 18px 44px;
  }

  .services-list-inner {
    min-height: auto;
    align-content: start;
    padding: 34px 0 36px;
  }

  .services-card {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    min-height: auto;
    padding: 18px;
  }

  .services-card span {
    width: 58px;
    height: 58px;
  }

  .services-card img {
    width: 36px;
    height: 36px;
  }

  .services-care-banner {
    margin: 42px -18px 0;
  }

  .services-care-banner-copy {
    padding: 28px 26px;
  }

  .services-care-banner-copy h2 {
    font-size: 24px;
  }

  .services-care-banner-copy a {
    width: 100%;
  }
}
