.services-page {
  overflow: hidden;
}

.services-hero {
  position: relative;
  padding: var(--subpage-hero-pad-top) 0 calc(var(--subpage-hero-pad-bottom) + 30px);
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(87, 193, 223, 0.24) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
}

.services-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--subpage-two-col-gap);
  align-items: start;
}

.services-hero-copy h1 {
  margin: var(--subpage-title-top-gap) 0 var(--subpage-title-bottom-gap);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 670px;
}

.services-hero-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.64;
  max-width: 620px;
}

.services-hero-copy .btn-row {
  margin-top: var(--subpage-hero-cta-margin);
}

.services-hero-visual {
  position: relative;
  min-height: 510px;
  border-radius: 34px;
  border: 1px solid rgba(87, 193, 223, 0.24);
  background: linear-gradient(140deg, rgba(87, 193, 223, 0.14), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px;
}

.services-hero-visual p {
  margin: 0;
  color: #5f6d7a;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.visual-box {
  position: absolute;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(87, 193, 223, 0.42), rgba(87, 193, 223, 0.14));
  border: 1px solid rgba(87, 193, 223, 0.4);
}

.visual-box-main {
  width: min(62%, 340px);
  height: min(72%, 290px);
  left: 18%;
  top: 16%;
}

.visual-box-top {
  width: min(26%, 140px);
  height: min(20%, 92px);
  right: 10%;
  top: 14%;
}

.visual-box-bottom {
  width: min(20%, 108px);
  height: min(24%, 108px);
  left: 8%;
  bottom: 12%;
}

.services-specialties {
  position: relative;
  margin-top: 0;
  padding: 64px 0 116px;
  background: linear-gradient(180deg, #4da6cb 0%, #469ec5 100%);
}

.services-specialties::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.6px);
  background-size: 18px 18px;
  pointer-events: none;
}

.services-specialties .container {
  position: relative;
  z-index: 1;
}

.services-specialties h2 {
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.65rem, 2.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specialties-grid {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 38px 20px;
}

.specialty-card {
  flex: 0 1 205px;
  width: 100%;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
  padding: 0;
}

.specialty-trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.specialty-icon {
  width: clamp(118px, 10vw, 164px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: #f7fdff;
  background: radial-gradient(circle at 35% 25%, rgba(166, 223, 245, 0.95), rgba(93, 182, 217, 0.9));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.specialty-icon .icon {
  width: clamp(2rem, 2.8vw, 3.1rem);
  height: clamp(2rem, 2.8vw, 3.1rem);
}

.specialty-trigger-copy {
  display: grid;
  justify-items: center;
}

.specialty-trigger-title {
  max-width: 180px;
  color: #f6fcff;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specialty-card > p {
  display: none;
}

.specialty-trigger:hover .specialty-icon,
.specialty-trigger:focus-visible .specialty-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.24), 0 14px 24px rgba(12, 37, 51, 0.14);
}

.specialty-trigger:hover .specialty-trigger-title,
.specialty-trigger:focus-visible .specialty-trigger-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.specialty-trigger:focus-visible {
  outline: none;
}

.specialty-icon,
.specialty-trigger-title {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, text-decoration-color 0.2s ease;
}

.doctors-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0 94px;
  background: #f7fafc;
  border-bottom: 1px solid rgba(87, 193, 223, 0.16);
}

.doctors-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(87, 193, 223, 0.2) 1px, transparent 1.45px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
}

.doctors-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px;
  align-items: start;
}

.doctors-heading {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.doctors-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doctors-heading h2 {
  margin: 0;
  color: #13202d;
  font-size: clamp(2rem, 2.8vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.doctors-heading p:last-child {
  margin: 18px 0 0;
  max-width: 34rem;
  color: #5f6c78;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 300;
}

.doctors-list {
  display: grid;
  gap: 0;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(87, 193, 223, 0.2);
  border-bottom: 1px solid rgba(87, 193, 223, 0.2);
}

.doctor-profile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(215, 233, 240, 0.9);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.doctor-profile:last-child {
  border-bottom: 0;
}

.doctor-profile:hover {
  transform: translateX(6px);
  border-color: rgba(67, 178, 211, 0.42);
}

.doctor-avatar {
  width: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, rgba(166, 223, 245, 0.92), rgba(87, 193, 223, 0.3));
  border: 1px solid rgba(67, 178, 211, 0.28);
  color: #1d6f8f;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.doctor-copy {
  min-width: 0;
}

.doctor-name {
  margin: 0;
  color: #13202d;
  font-size: clamp(1.22rem, 1.7vw, 1.65rem);
  line-height: 1.15;
  font-weight: 500;
}

.doctor-role {
  margin: 8px 0 14px;
  color: #227fa2;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor-credentials {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: #4e5b67;
  font-size: 0.97rem;
  line-height: 1.48;
}

.doctor-credentials li {
  position: relative;
  padding-left: 18px;
}

.doctor-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

body.service-overlay-open {
  overflow: hidden;
}

.service-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.service-overlay[hidden] {
  display: none !important;
}

.service-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 33, 0.54);
}

.service-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(calc(100dvh - 48px), 720px);
  border-radius: 30px;
  border: 1px solid rgba(87, 193, 223, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 60px rgba(8, 17, 33, 0.22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.service-overlay.is-open .service-overlay-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 246, 250, 0.96);
  color: #245d77;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(12, 37, 51, 0.12);
}

.service-overlay-close:hover,
.service-overlay-close:focus-visible {
  background: #ffffff;
}

.service-overlay-close:focus-visible {
  outline: 2px solid rgba(87, 193, 223, 0.75);
  outline-offset: 2px;
}

.service-overlay-scroll {
  max-height: inherit;
  overflow-y: auto;
  padding: 34px 30px 30px;
}

.service-overlay-copy {
  display: grid;
  gap: 18px;
}

.service-overlay-eyebrow {
  margin-bottom: -6px;
}

.service-overlay-title {
  margin: 0;
  color: #13202d;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 15ch;
}

.service-overlay-description {
  margin: 0;
  color: #445261;
  font-size: 1rem;
  line-height: 1.64;
  max-width: 56ch;
}

.service-overlay-meta {
  border-radius: 22px;
  border: 1px solid rgba(87, 193, 223, 0.18);
  background: rgba(240, 248, 251, 0.82);
  padding: 18px 18px 18px 20px;
}

.service-overlay-list-title {
  margin: 0 0 12px;
  color: #227fa2;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.service-overlay-list {
  margin: 0;
  padding-left: 18px;
  color: #233140;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.55;
}

@media (max-width: 1199px) {
  .services-hero {
    padding-bottom: calc(var(--subpage-hero-pad-bottom) + 22px);
  }

  .services-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-hero-visual {
    min-height: 390px;
  }

  .specialties-grid {
    justify-content: center;
    gap: 32px 18px;
    margin-top: 40px;
  }

  .specialty-card {
    flex-basis: 190px;
  }

  .doctors-section {
    padding: 72px 0 80px;
  }

  .doctors-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .doctors-heading {
    position: static;
    max-width: 760px;
  }

  .doctors-list {
    max-width: 920px;
  }
}

@media (max-width: 767px) {
  .services-hero {
    padding-bottom: calc(var(--subpage-hero-pad-bottom) + 8px);
  }

  .services-hero-inner {
    gap: 14px;
  }

  .services-hero-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .services-hero-copy p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .services-hero-copy .btn-row {
    margin-top: var(--subpage-hero-cta-margin);
  }

  .services-hero-visual {
    min-height: 236px;
    border-radius: 22px;
    padding: 16px;
  }

  .services-hero-visual p {
    font-size: 0.76rem;
  }

  .visual-box-main {
    left: 20%;
    top: 18%;
  }

  .services-specialties {
    margin-top: 0;
    padding: 30px 0 52px;
  }

  .services-specialties h2 {
    font-size: 1.3rem;
  }

  .specialties-grid {
    margin-top: 20px;
    justify-content: center;
    align-items: stretch;
    gap: 14px 8px;
  }

  .specialty-card {
    flex: 0 1 calc(33.333% - 8px);
    max-width: 104px;
  }

  .specialty-trigger {
    gap: 8px;
  }

  .specialty-icon {
    width: 74px;
    border-width: 2px;
  }

  .specialty-trigger-title {
    min-height: 2.7em;
    max-width: 100px;
    font-size: 0.7rem;
    line-height: 1.12;
    letter-spacing: 0.03em;
  }

  .doctors-section {
    padding: 44px 0 50px;
  }

  .doctors-inner {
    gap: 24px;
  }

  .doctors-kicker {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .doctors-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .doctors-heading p:last-child {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .doctor-profile {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .doctor-profile:hover {
    transform: translateX(3px);
  }

  .doctor-avatar {
    width: 56px;
    font-size: 0.78rem;
  }

  .doctor-name {
    font-size: 1.08rem;
  }

  .doctor-role {
    margin: 6px 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .doctor-credentials {
    gap: 7px;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .service-overlay {
    padding: 0;
    align-items: end;
  }

  .service-overlay-panel {
    width: 100%;
    max-height: min(82dvh, 640px);
    border-radius: 28px 28px 0 0;
    transform: translateY(28px);
  }

  .service-overlay-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .service-overlay-scroll {
    padding: 22px 18px 20px;
  }

  .service-overlay-copy {
    gap: 16px;
    padding-top: 18px;
  }

  .service-overlay-title {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
    max-width: none;
  }

  .service-overlay-description,
  .service-overlay-list {
    font-size: 0.93rem;
  }

  .service-overlay-meta {
    border-radius: 18px;
    padding: 16px;
  }
}
