/* Redesign scoped exclusively to the services section. */
.service-shortcuts {
  position: relative;
  z-index: 2;
  padding: 68px 0 34px;
  overflow: visible;
  background: #fafcfb;
}

.services-section-head {
  display: grid;
  margin-bottom: 30px;
  gap: 22px;
}

.services-title-block h2 {
  max-width: 740px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 7.8vw, 3.7rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.services-intro {
  max-width: 430px;
  margin: 0;
  padding: 3px 0 3px 18px;
  border-left: 3px solid var(--green);
  color: #475569;
  font-size: .94rem;
  line-height: 1.7;
}

.services-card-grid {
  display: grid;
  margin-block: -12px;
  padding-block: 12px;
  overflow: visible;
  gap: 18px;
}

.service-shortcuts .service-card {
  position: relative;
  display: flex;
  min-height: 500px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgb(205 221 212 / 88%);
  border-radius: 22px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 7px 20px rgb(15 71 42 / 3%);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 350ms cubic-bezier(.22, 1, .36, 1), box-shadow 350ms cubic-bezier(.22, 1, .36, 1), border-color 350ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.js .service-shortcuts .service-card {
  will-change: transform;
}

.service-shortcuts .service-card::after {
  content: none;
}

.service-shortcuts .service-card:hover {
  z-index: 5;
  border-color: rgb(3 145 66 / 68%);
  box-shadow: 0 24px 48px rgb(10 66 34 / 14%), 0 8px 18px rgb(10 66 34 / 8%);
  transform: translateY(-8px);
}

.service-shortcuts .service-card:active {
  transform: translateY(-2px);
}

.service-shortcuts .service-card:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(16 185 129 / 15%), 0 24px 58px rgb(10 66 34 / 9%);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid rgb(3 145 66 / 8%);
  border-radius: 16px;
  color: var(--green-dark);
  background: #e9f7ef;
  box-shadow: inset 0 1px rgb(255 255 255 / 75%);
  place-items: center;
  transition: color 300ms ease, background-color 300ms ease, transform 300ms cubic-bezier(.16, 1, .3, 1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.service-icon-image {
  align-items: center;
  justify-items: center;
  overflow: hidden;
  background: rgb(234 243 234);
}

.service-icon-image img {
  display: block;
  width: 54px;
  max-width: none;
  height: 54px;
  margin: auto;
  object-fit: contain;
  object-position: center center;
}

.service-card:hover .service-icon.service-icon-image {
  background: rgb(234 243 234);
  transform: translateY(-2px);
}

.service-card:hover .service-icon {
  color: white;
  background: var(--green-dark);
  transform: translateY(-2px);
}

.service-badge {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgb(3 145 66 / 9%);
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf8f1;
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-badge svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.service-shortcuts .service-card h3 {
  max-width: 290px;
  margin: 25px 0 12px;
  color: var(--ink);
  font-size: clamp(1.32rem, 2vw, 1.58rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.service-shortcuts .service-description {
  min-height: 72px;
  margin: 0;
  color: #64748b;
  font-size: .87rem;
  line-height: 1.58;
}

.service-list {
  display: grid;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgb(220 230 223 / 82%);
  gap: 8px;
  list-style: none;
}

.service-list li {
  position: relative;
  min-height: 20px;
  padding-left: 25px;
  color: #334155;
  font-size: .82rem;
  font-weight: 580;
  line-height: 1.45;
}

.service-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  content: "✓";
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.service-requirements {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgb(3 145 66 / 12%);
  border-radius: 14px;
  color: #475569;
  background: #f1f8f4;
}

.service-requirements strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: .78rem;
  line-height: 1.35;
}

.service-requirements p {
  margin: 0;
  font-size: .73rem;
  line-height: 1.5;
}

.service-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: max-content;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 22px 0 5px;
  color: var(--green-dark);
  font-size: .87rem;
  font-weight: 750;
}

.service-cta::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms cubic-bezier(.22, 1, .36, 1);
}

.service-card:hover .service-cta::after {
  transform: scaleX(1);
}

.service-card-decoration {
  position: absolute !important;
  z-index: 0 !important;
  right: -22px;
  bottom: -32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: .28;
  background-image: radial-gradient(circle, #72bd91 1.2px, transparent 1.4px);
  background-size: 10px 10px;
  pointer-events: none;
  transform: rotate(8deg);
}

.services-continuity {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 112px;
  margin: 30px 0 -70px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid rgb(3 145 66 / 12%);
  border-radius: 22px;
  background: linear-gradient(110deg, #edf8f1, #f8fbf9 70%);
  box-shadow: 0 18px 48px rgb(15 71 42 / 7%);
  gap: 20px;
}

.services-continuity::after {
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 240px;
  height: 240px;
  border: 34px solid rgb(3 145 66 / 5%);
  border-radius: 50%;
  content: "";
}

.services-continuity p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.services-continuity p strong,
.services-continuity p span {
  display: block;
}

.services-continuity p strong {
  color: var(--green-dark);
}

.services-continuity ul {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.services-continuity li {
  position: relative;
  padding-left: 20px;
  color: #475569;
  font-size: .78rem;
  font-weight: 620;
}

.services-continuity li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
}

/* Institutional bridge between Services and About. */
.clinimed-impact-band {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(86vw, 1540px);
  margin: 28px auto 10px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgb(3 145 66 / 12%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 5% 50%, rgb(220 242 228 / 42%), transparent 31%),
    linear-gradient(105deg, #f8fbf9 0%, #fff 48%, #f5faf7 100%);
  box-shadow: 0 18px 54px rgb(15 71 42 / 6%);
  gap: clamp(24px, 3vw, 44px);
}

.clinimed-impact-band::before,
.clinimed-impact-band::after {
  position: absolute;
  z-index: 0;
  right: -165px;
  width: 390px;
  height: 390px;
  border: 46px solid rgb(62 177 104 / 16%);
  border-radius: 50%;
  content: "";
  opacity: .4;
  pointer-events: none;
}

.clinimed-impact-band::before {
  top: -245px;
}

.clinimed-impact-band::after {
  bottom: -250px;
}

.impact-band-copy,
.impact-benefit-grid {
  position: relative;
  z-index: 1;
}

.impact-band-copy {
  align-self: center;
}

.impact-band-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.impact-band-copy h3 span,
.impact-band-copy h3 strong {
  display: block;
}

.impact-band-copy h3 span {
  color: var(--green-dark);
}

.impact-band-copy h3 strong {
  color: var(--ink);
  font-weight: inherit;
}

.impact-band-copy > i {
  display: block;
  width: 55px;
  height: 3px;
  margin: 20px 0 18px;
  border-radius: 999px;
  background: var(--green);
}

.impact-band-copy > p {
  max-width: 520px;
  margin: 0;
  color: #475569;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.55;
}

.impact-benefit-grid {
  display: grid;
  align-items: stretch;
  gap: 14px;
}

.impact-benefit-card {
  display: flex;
  min-width: 0;
  min-height: 215px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 22px 16px;
  border: 1px solid rgb(0 120 70 / 14%);
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 25px rgb(0 0 0 / 4%);
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  will-change: transform;
}

.impact-benefit-card:hover {
  border-color: rgb(0 125 70 / 25%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 7%);
  transform: translateY(-4px);
}

.impact-benefit-icon {
  display: flex;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: rgb(0 140 75 / 6%);
}

.impact-benefit-icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 1.55;
}

.impact-benefit-card h4 {
  margin: 16px 0 9px;
  color: var(--green-dark);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.impact-benefit-card p {
  max-width: 245px;
  margin: 0;
  color: #475569;
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.5;
}

@media (min-width: 1180px) {
  .clinimed-impact-band {
    grid-template-columns: minmax(0, 39%) minmax(0, 61%);
    align-items: center;
  }

  .impact-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) and (max-width: 1179px) {
  .impact-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .impact-band-copy > p {
    max-width: 650px;
  }
}

@media (max-width: 719px) {
  .clinimed-impact-band {
    width: calc(100% - 40px);
    margin-top: 24px;
    padding: 22px 18px;
    border-radius: 20px;
    gap: 22px;
  }

  .impact-band-copy h3 {
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
  }

  .impact-band-copy > i {
    margin: 20px 0 18px;
  }

  .impact-benefit-grid {
    grid-template-columns: 1fr;
  }

  .impact-benefit-card {
    min-height: 200px;
    padding: 20px 16px;
  }
}

@media (min-width: 680px) {
  .services-section-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    align-items: end;
    gap: 44px;
  }

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

  .services-continuity {
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    padding: 25px 32px;
  }

  .services-continuity ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .service-shortcuts {
    padding-top: 74px;
  }

  .services-section-head {
    margin-bottom: 34px;
  }

  .services-title-block h2 {
    max-width: 760px;
  }

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

  .service-shortcuts .service-card {
    min-height: 510px;
    padding: 30px;
  }
}

@media (min-width: 1200px) {
  .services-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .service-shortcuts {
    padding: 54px 0 42px;
    overflow: hidden;
  }

  .services-section-head {
    margin-bottom: 24px;
  }

  .services-title-block h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .services-intro {
    max-width: none;
  }

  .service-shortcuts .service-card {
    min-height: 480px;
    padding: 24px;
  }

  .service-shortcuts .service-description {
    min-height: 0;
  }

  .services-continuity {
    min-height: 0;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-icon {
    transition: none;
  }

  .service-cta::after {
    transition: transform 350ms cubic-bezier(.22, 1, .36, 1) !important;
  }

  .service-shortcuts .service-card {
    transform: translateY(0) !important;
    transition: transform 350ms cubic-bezier(.22, 1, .36, 1), box-shadow 350ms cubic-bezier(.22, 1, .36, 1), border-color 350ms cubic-bezier(.22, 1, .36, 1) !important;
  }

  .service-shortcuts .service-card:hover {
    transform: translateY(-8px) !important;
  }

  .service-shortcuts .service-card:active {
    transform: translateY(-2px) !important;
  }
}
