:root {
  --mdv-blue: #173b68;
  --mdv-blue-soft: #edf4fb;
  --mdv-cyan: #0891b2;
  --mdv-text: #12233f;
  --mdv-muted: #5d6b82;
  --mdv-border: #dbe7f5;
  --mdv-shadow: 0 28px 70px -42px rgba(18, 35, 63, .42);
}

* { box-sizing: border-box; }

body {
  background: #fff;
  color: var(--mdv-text);
  font-family: var(--font-family--inter);
  margin: 0;
}

.services-page { overflow: hidden; }

.services-hero-area {
  background: linear-gradient(180deg, rgba(18, 35, 63, .82), rgba(18, 35, 63, .66)), url("../images/hero-card-2.webp") center / cover no-repeat;
  color: #fff;
}

.topbar {
  left: 0;
  position: fixed;
  top: 18px;
  width: 100%;
  z-index: 20;
}

.services-nav { padding: 0; }

.services-nav-inner,
.services-nav-links,
.services-brand,
.services-hero-actions,
.services-nav-cta,
.services-button,
.services-button-secondary {
  align-items: center;
  display: flex;
}

.services-nav-inner {
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(31, 95, 163, .16);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(9, 33, 58, .16);
  color: #102a43;
  gap: 20px;
  justify-content: space-between;
  padding: 12px 14px;
}

.services-brand {
  color: #102a43;
  font-family: var(--font-family--poopins);
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo-crop {
  align-items: center;
  display: inline-flex;
  height: 38px;
  max-width: 48vw;
  overflow: hidden;
  width: 219px;
}

.services-brand-logo {
  display: block;
  height: auto;
  width: min(210px, 58vw);
}

.services-nav .services-brand-logo {
  filter: drop-shadow(0 3px 8px rgba(9, 33, 58, .12));
  flex: 0 0 auto;
  max-width: none;
  object-fit: contain;
  width: 219px;
}

.services-nav-links {
  color: rgba(16, 42, 67, .78);
  gap: 22px;
}

.services-nav-link {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.services-nav-link:hover { color: #1f5fa3; }

.services-nav-cta,
.services-button,
.services-button-secondary {
  border-radius: 999px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.services-nav-cta {
  background: #2d86cf;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 28px rgba(45, 134, 207, .25);
  color: #fff;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
}

.services-nav-cta svg {
  height: 18px;
  width: 18px;
}

.services-button {
  background: linear-gradient(135deg, #fff, #dff4ff);
  box-shadow: 0 22px 40px -28px rgba(0, 0, 0, .65);
  color: var(--mdv-blue);
  padding: 1rem 1.35rem;
}

.services-button-secondary {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  padding: 1rem 1.35rem;
}

.services-nav-cta:hover,
.services-button:hover,
.services-button-secondary:hover {
  transform: translateY(-2px);
}

.services-nav-cta:hover { background: #2578bd; }

.services-hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  min-height: 720px;
  padding: 6rem 0 5rem;
}

.services-kicker {
  color: #8ee7ff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.services-title {
  color: #fff;
  display: grid;
  gap: .5rem;
  font-family: var(--font-family--poopins);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .98;
  margin: 0;
  max-width: 880px;
}

.services-title-main {
  display: block;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

.services-title-solution {
  color: #8ee7ff;
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  letter-spacing: -.02em;
  line-height: 1.08;
  max-width: 720px;
}

.services-lead {
  color: rgba(255, 255, 255, .86);
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 1.4rem 0 0;
  max-width: 720px;
}

.services-hero-actions {
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.services-hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 1.6rem;
  box-shadow: var(--mdv-shadow);
  color: var(--mdv-text);
  overflow: hidden;
}

.services-video-card {
  background: #102948;
  min-height: 260px;
  padding: 1.2rem;
  position: relative;
}

.services-video-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-video-frame {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  min-height: 96px;
  overflow: hidden;
}

.services-video-frame img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.services-video-caption {
  background: #fff;
  border-radius: 1.1rem;
  bottom: 1rem;
  color: var(--mdv-blue);
  font-weight: 700;
  left: 1rem;
  padding: .8rem .95rem;
  position: absolute;
  right: 1rem;
}

.services-panel-body { padding: 1.25rem; }

.services-panel-title,
.services-card-title,
.services-section-title,
.services-result-value,
.services-compare-title {
  color: var(--mdv-text);
  font-family: var(--font-family--poopins);
  font-weight: 600;
}

.services-panel-title {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.services-panel-copy,
.services-card-copy,
.services-section-copy,
.services-story p,
.services-faq-copy,
.services-compare-list li {
  color: var(--mdv-muted);
  line-height: 1.75;
}

.services-section { padding: 5.5rem 0; }
.services-section.alt { background: linear-gradient(180deg, #f8fbff, #fff); }

.services-section-head {
  margin: 0 auto 2rem;
  max-width: 780px;
  text-align: center;
}

.services-section-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  margin: 0;
}

.services-section-copy {
  font-size: 1rem;
  margin: 1rem auto 0;
  max-width: 700px;
}

.services-impact-grid,
.services-problem-grid,
.services-service-grid,
.services-results-grid,
.services-faq-grid {
  display: grid;
  gap: 1rem;
}

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

.services-pill {
  background: #fff;
  border: 1px solid var(--mdv-border);
  border-radius: 999px;
  color: var(--mdv-blue);
  font-size: .9rem;
  font-weight: 700;
  padding: .85rem 1rem;
  text-align: center;
}

.services-impact-line {
  background: linear-gradient(135deg, var(--mdv-blue), #1f5fa3);
  border-radius: 1.4rem;
  color: #fff;
  font-family: var(--font-family--poopins);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.16;
  margin-top: 1.1rem;
  padding: 2rem;
  text-align: center;
}

.services-problem-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.services-problem-carousel { min-width: 0; }

.services-problem-viewport {
  border-radius: 1.35rem;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.services-problem-track {
  min-height: 380px;
  position: relative;
}

.services-problem-track .services-card {
  left: 50%;
  min-height: 310px;
  opacity: .68;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(.72);
  transition: left 1s ease, opacity 1s ease, transform 1s ease, width 1s ease, filter 1s ease;
  width: 36%;
  will-change: left, opacity, transform, width;
}

.services-problem-track .services-card-number {
  height: 3rem;
  width: 3rem;
}

.services-problem-track .services-card-title {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.08;
  max-width: 580px;
}

.services-problem-track .services-card-copy {
  font-size: 1.08rem;
  max-width: 560px;
}

.services-problem-track .services-card.is-active {
  filter: none;
  left: 50%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  width: 62%;
  z-index: 5;
}

.services-problem-track .services-card.is-left,
.services-problem-track .services-card.is-right {
  filter: saturate(.9);
  opacity: .82;
  transform: translate(-50%, -50%) scale(.82);
  width: 44%;
  z-index: 3;
}

.services-problem-track .services-card.is-left { left: 22%; }
.services-problem-track .services-card.is-right { left: 78%; }

.services-problem-track .services-card.is-far-left,
.services-problem-track .services-card.is-far-right {
  filter: saturate(.75);
  opacity: .48;
  transform: translate(-50%, -50%) scale(.64);
  width: 32%;
  z-index: 1;
}

.services-problem-track .services-card.is-far-left { left: 4%; }
.services-problem-track .services-card.is-far-right { left: 96%; }
.services-problem-track .services-card:not(.is-active) .services-card-copy { display: none; }
.services-problem-track .services-card:not(.is-active) .services-card-title { font-size: clamp(1rem, 1.7vw, 1.45rem); }

.services-problem-visual {
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid var(--mdv-border);
  border-radius: 1.35rem;
  box-shadow: 0 20px 50px -38px rgba(18, 35, 63, .36);
  min-height: 310px;
  overflow: hidden;
  position: relative;
}

.services-problem-image {
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: translateX(1.5rem) scale(1.02);
  transition: opacity 1s ease, transform 1s ease;
}

.services-problem-image.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.services-problem-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.services-problem-image-caption {
  background: rgba(16, 41, 72, .88);
  border-radius: 1rem;
  bottom: 1rem;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  left: 1rem;
  line-height: 1.45;
  padding: .85rem 1rem;
  position: absolute;
  right: 1rem;
}

.services-card {
  background: #fff;
  border: 1px solid var(--mdv-border);
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px -38px rgba(18, 35, 63, .36);
  padding: 1.2rem;
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s ease;
}

.services-service-grid .services-card.is-emphasized {
  background: linear-gradient(180deg, #fff, #edf8ff);
  border-color: #8ec5ee;
  box-shadow: 0 28px 65px -36px rgba(18, 35, 63, .55);
  transform: translateY(-7px);
}

.services-card-number {
  align-items: center;
  background: var(--mdv-blue-soft);
  border-radius: .9rem;
  color: var(--mdv-cyan);
  display: inline-flex;
  font-weight: 800;
  height: 2.4rem;
  justify-content: center;
  margin-bottom: .9rem;
  width: 2.4rem;
}

.services-card-title {
  font-size: 1.02rem;
  margin-bottom: .45rem;
}

.services-card-copy {
  font-size: .92rem;
  margin: 0;
}

.services-patient-flow {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-patient-step {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--mdv-border);
  border-radius: 1.35rem;
  padding: 1.4rem;
  text-align: center;
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease, color .45s ease, transform .45s ease;
}

.services-patient-step.is-emphasized {
  background: linear-gradient(135deg, #173b68, #1f5fa3);
  border-color: #173b68;
  box-shadow: 0 24px 55px -34px rgba(18, 35, 63, .55);
  color: #fff;
  transform: translateY(-6px);
}

.services-solution {
  align-items: stretch;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.services-flow {
  background: #102948;
  border-radius: 1.5rem;
  color: #fff;
  display: grid;
  gap: .65rem;
  padding: 1.4rem;
}

.services-flow-step {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  padding: .9rem 1rem;
}

.services-flow-arrow {
  color: #8ee7ff;
  font-weight: 800;
  text-align: center;
}

.services-benefits {
  background: #fff;
  border: 1px solid var(--mdv-border);
  border-radius: 1.5rem;
  display: grid;
  gap: .9rem;
  padding: 1.5rem;
}

.services-benefit {
  align-items: flex-start;
  color: var(--mdv-muted);
  display: flex;
  gap: .75rem;
  line-height: 1.65;
}

.services-benefit:before {
  background: var(--mdv-cyan);
  border-radius: 50%;
  content: "";
  flex: 0 0 .55rem;
  height: .55rem;
  margin-top: .55rem;
  width: .55rem;
}

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

.services-story {
  background: linear-gradient(135deg, #102948, #173b68);
  border-radius: 1.7rem;
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  padding: 2rem;
}

.services-story h2,
.services-story p,
.services-story li { color: #fff; }

.services-story-list {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-story-list li {
  background: rgba(255, 255, 255, .1);
  border-radius: .95rem;
  padding: .8rem .9rem;
}

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

.services-result {
  border-left: 3px solid var(--mdv-cyan);
  padding: .5rem 0 .5rem 1rem;
}

.services-result-value { font-size: 1.08rem; }

.services-compare {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-compare-card {
  background: #fff;
  border: 1px solid var(--mdv-border);
  border-radius: 1.45rem;
  padding: 1.45rem;
}

.services-compare-card.featured {
  background: linear-gradient(180deg, #173b68, #102948);
  border-color: #173b68;
}

.services-compare-card.featured .services-compare-title,
.services-compare-card.featured li { color: #fff; }

.services-compare-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.services-compare-list {
  display: grid;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-testimonial-space {
  background: #fff;
  border: 1px dashed #adc7e5;
  border-radius: 1.5rem;
  color: var(--mdv-muted);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1.25rem;
}

.services-testimonial-item {
  background: #f8fbff;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.services-plan-cta {
  background: #fff;
  padding: 3rem 0 0;
}

.services-plan-cta-card {
  align-items: center;
  background: linear-gradient(135deg, #102948, #173b68);
  border-radius: 1.5rem;
  color: #fff;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.6rem;
}

.services-plan-cta-title {
  color: #fff;
  font-family: var(--font-family--poopins);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
}

.services-plan-cta-copy {
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
  margin: .55rem 0 0;
  max-width: 660px;
}

.services-plan-cta-button {
  background: #fff;
  border-radius: 999px;
  color: var(--mdv-blue);
  flex: 0 0 auto;
  font-weight: 800;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.services-plan-cta-button:hover {
  box-shadow: 0 20px 35px -28px rgba(0, 0, 0, .75);
  transform: translateY(-2px);
}

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

.services-faq-item {
  background: #fff;
  border: 1px solid var(--mdv-border);
  border-radius: 1.2rem;
  padding: 1.15rem;
}

.services-faq-question {
  color: var(--mdv-text);
  font-weight: 800;
  margin-bottom: .45rem;
}

.services-final {
  background: linear-gradient(135deg, #102948, #173b68);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.services-final h2 {
  color: #fff;
  font-family: var(--font-family--poopins);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  margin: 0 auto;
  max-width: 850px;
}

.services-final p {
  color: rgba(255, 255, 255, .82);
  line-height: 1.75;
  margin: 1rem auto 0;
  max-width: 760px;
}

.services-footer {
  background: #071a2f;
  color: rgba(255, 255, 255, .82);
  padding: 4rem 0 2rem;
}

.services-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .7fr));
}

.services-footer-title {
  color: #fff;
  font-family: var(--font-family--poopins);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .9rem;
}

.services-footer a {
  color: rgba(255, 255, 255, .76);
  display: block;
  margin-bottom: .65rem;
  text-decoration: none;
}

.services-footer a:hover { color: #fff; }

.services-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2rem;
  padding-top: 1.4rem;
}

@media screen and (max-width: 991px) {
  .services-nav-links {
    display: none;
  }

  .services-hero,
  .services-solution,
  .services-problem-grid,
  .services-story,
  .services-footer-grid {
    grid-template-columns: 1fr;
  }

  .services-plan-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-impact-grid,
  .services-patient-flow,
  .services-service-grid,
  .services-results-grid,
  .services-testimonial-space,
  .services-faq-grid,
  .services-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .services-problem-track .services-card,
  .services-problem-visual {
    min-height: 280px;
  }

  .services-problem-track .services-card.is-active { width: 68%; }
  .services-problem-track .services-card.is-left,
  .services-problem-track .services-card.is-right { width: 46%; }
  .services-problem-track .services-card.is-far-left,
  .services-problem-track .services-card.is-far-right { width: 34%; }
}

@media screen and (max-width: 640px) {
  .topbar { top: 10px; }

  .services-nav-inner { padding: 10px; }

  .brand-logo-crop {
    height: 34px;
    max-width: none;
    width: min(197px, 44vw);
  }

  .services-nav .services-brand-logo {
    width: min(197px, 44vw);
  }

  .services-nav-cta {
    font-size: 13px;
    min-height: 40px;
    padding: 0 12px;
  }

  .services-impact-grid,
  .services-problem-grid,
  .services-patient-flow,
  .services-service-grid,
  .services-results-grid,
  .services-testimonial-space,
  .services-faq-grid,
  .services-compare {
    grid-template-columns: 1fr;
  }

  .services-section { padding: 4rem 0; }

  .services-story,
  .services-impact-line {
    padding: 1.35rem;
  }

  .services-problem-viewport,
  .services-problem-track {
    min-height: 340px;
  }

  .services-problem-track .services-card.is-active { width: 78%; }
  .services-problem-track .services-card.is-left { left: 16%; }
  .services-problem-track .services-card.is-right { left: 84%; }
  .services-problem-track .services-card.is-far-left,
  .services-problem-track .services-card.is-far-right {
    opacity: .34;
    width: 36%;
  }
}
