/* Middle group for the Healthcare landing-page clone. All rules stay hc-scoped. */

.hc-medical-services {
  overflow: hidden;
}

.hc-medical-services .hc-section-head {
  max-width: 610px;
}

.hc-medical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hc-medical-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-bottom: 18px;
  color: var(--hc-ink);
  text-decoration: none;
}

.hc-medical-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--hc-media-radius);
  background: #dce3f1;
  box-shadow: 0 14px 34px rgba(29, 46, 108, .09);
}

.hc-medical-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 33, 84, .16));
}

.hc-medical-media,
.hc-medical-media img {
  position: relative;
  width: 100%;
}

.hc-medical-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--hc-ease), filter 300ms ease;
}

.hc-medical-panel {
  position: relative;
  z-index: 2;
  display: flex;
  width: calc(100% - 24px);
  min-height: 164px;
  margin: -36px auto 0;
  padding: 21px 18px 30px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: #fff;
  box-shadow: var(--hc-shadow);
  transition: transform 220ms var(--hc-ease), box-shadow 220ms var(--hc-ease), border-color 220ms ease;
}

.hc-medical-panel .hc-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  flex-basis: 34px;
  font-size: 12px;
}

.hc-medical-title {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.hc-medical-copy {
  color: var(--hc-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.hc-medical-arrow {
  position: absolute;
  right: 15px;
  bottom: -15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(52, 79, 164, .18);
  border-radius: 50%;
  color: var(--hc-primary-dark);
  background: #fff;
  box-shadow: 0 8px 16px rgba(31, 47, 108, .12);
  font-size: 9px;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--hc-ease);
}

.hc-medical-card:hover {
  color: var(--hc-ink);
}

.hc-medical-card:hover .hc-medical-media img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.hc-medical-card:hover .hc-medical-panel {
  border-color: rgba(52, 79, 164, .25);
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(31, 47, 108, .12);
}

.hc-medical-card:hover .hc-medical-arrow {
  color: #fff;
  background: var(--hc-primary);
  transform: translateX(2px);
}

.hc-medical-card:nth-child(2) {
  transition-delay: 90ms;
}

.hc-medical-card:nth-child(3) {
  transition-delay: 180ms;
}

/* Support banner */
.hc-support {
  background: var(--hc-page);
}

.hc-support-banner {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--hc-media-radius);
  background: var(--hc-navy-deep);
  box-shadow: 0 20px 46px rgba(20, 37, 96, .14);
}

.hc-support-image,
.hc-support-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hc-support-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transition: transform 800ms var(--hc-ease);
}

.hc-support-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 28, 76, .96) 0%, rgba(11, 36, 88, .86) 35%, rgba(15, 43, 101, .42) 65%, rgba(9, 27, 73, .14) 100%),
    linear-gradient(180deg, rgba(7, 23, 65, .12), rgba(7, 23, 65, .35));
}

.hc-support-banner:hover .hc-support-image {
  transform: scale(1.018);
}

.hc-support-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 56%;
  min-height: 275px;
  padding: 44px 40px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
}

.hc-support-kicker {
  margin-bottom: 10px;
  color: #aebef7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hc-support-copy h2 {
  max-width: 340px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.hc-support-copy p {
  max-width: 340px;
  margin: 12px 0 19px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.65;
}

.hc-support-button {
  color: #fff;
  background: #4562c8;
  box-shadow: 0 10px 24px rgba(8, 23, 66, .28);
}

.hc-support-button:hover {
  color: #fff;
  background: #5570d5;
}

.hc-support-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 22%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: var(--hc-primary-dark);
  background: #fff;
  background-clip: padding-box;
  box-shadow: 0 12px 30px rgba(8, 22, 61, .26);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-50%);
  transition: transform 200ms var(--hc-ease), box-shadow 200ms ease;
}

.hc-support-play i {
  margin-left: 2px;
}

.hc-support-play:hover {
  color: var(--hc-primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 15px 34px rgba(8, 22, 61, .34);
}

/* Specialist team */
.hc-team .hc-section-head {
  max-width: 590px;
  margin-inline: auto;
}

.hc-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hc-team-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  color: var(--hc-ink);
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 47, 108, .06);
  text-decoration: none;
  transition: opacity 620ms var(--hc-ease), transform 220ms var(--hc-ease), box-shadow 220ms ease, border-color 220ms ease;
}

.hc-team-photo {
  position: relative;
  display: block;
  height: 208px;
  margin: 6px 6px 0;
  overflow: hidden;
  border-radius: 5px;
  background: #dfe7f1;
}

.hc-team-photo::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(21, 43, 121, .08));
}

.hc-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.52);
  transition: transform 420ms var(--hc-ease), filter 250ms ease;
}

.hc-team-card--one .hc-team-photo img {
  object-position: 10% 50%;
  transform-origin: 10% 50%;
}

.hc-team-card--two .hc-team-photo img {
  object-position: 36% 50%;
  transform-origin: 36% 50%;
}

.hc-team-card--three .hc-team-photo img {
  object-position: 64% 50%;
  transform-origin: 64% 50%;
}

.hc-team-card--four .hc-team-photo img {
  object-position: 90% 50%;
  transform-origin: 90% 50%;
}

.hc-team-socials {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-team-socials span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(38, 59, 130, .12);
  border-radius: 50%;
  color: var(--hc-primary-dark);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 12px rgba(22, 39, 92, .12);
  font-size: 7px;
}

.hc-team-info {
  display: block;
  padding: 14px 10px 16px;
  text-align: center;
}

.hc-team-info strong,
.hc-team-info small {
  display: block;
}

.hc-team-info strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hc-team-info small {
  margin-top: 4px;
  color: var(--hc-muted);
  font-size: 8px;
  font-weight: 600;
}

.hc-team-card:hover {
  border-color: rgba(52, 79, 164, .24);
  color: var(--hc-ink);
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(31, 47, 108, .11);
}

.hc-team-card:hover .hc-team-photo img {
  filter: saturate(1.05);
  transform: scale(1.57);
}

/* Best-care split */
.hc-best-care {
  background: var(--hc-page);
}

.hc-best-care-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 34px;
  align-items: end;
}

.hc-best-care-content .hc-lead {
  max-width: 430px;
}

.hc-best-care-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--hc-media-radius);
  background: #dce4ee;
  box-shadow: 0 18px 38px rgba(31, 47, 108, .1);
}

.hc-best-care-video img,
.hc-best-care-video-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hc-best-care-video img {
  object-fit: cover;
  object-position: center;
  transition: transform 650ms var(--hc-ease);
}

.hc-best-care-video-shade {
  background: linear-gradient(90deg, rgba(18, 38, 93, .12), rgba(18, 38, 93, .02) 58%, rgba(18, 38, 93, .18));
}

.hc-best-care-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: var(--hc-primary-dark);
  background: #fff;
  background-clip: padding-box;
  box-shadow: 0 10px 25px rgba(12, 28, 76, .2);
  font-size: 11px;
  transform: translate(-50%, -50%);
  transition: transform 200ms var(--hc-ease);
}

.hc-best-care-play i {
  margin-left: 2px;
}

.hc-best-care-caption {
  position: absolute;
  left: 14px;
  bottom: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 39, 104, .82);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}

.hc-best-care-video:hover img {
  transform: scale(1.035);
}

.hc-best-care-video:hover .hc-best-care-play {
  transform: translate(-50%, -50%) scale(1.09);
}

.hc-care-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hc-care-tile {
  position: relative;
  display: flex;
  min-height: 154px;
  padding: 18px 16px 17px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  color: var(--hc-ink);
  background: #fff;
  text-decoration: none;
  transition: opacity 620ms var(--hc-ease), border-color 180ms ease, transform 180ms var(--hc-ease), box-shadow 180ms ease;
}

.hc-care-tile-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--hc-primary);
  font-size: 11px;
}

.hc-care-tile strong {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hc-care-tile small {
  max-width: 145px;
  padding-right: 4px;
  color: var(--hc-muted);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.55;
}

.hc-care-tile-arrow {
  position: absolute;
  right: 13px;
  bottom: 13px;
  color: var(--hc-primary);
  font-size: 9px;
}

.hc-care-tile--selected {
  border-color: var(--hc-primary);
  color: #fff;
  background: linear-gradient(145deg, var(--hc-primary), var(--hc-primary-dark));
  box-shadow: 0 16px 30px rgba(38, 59, 130, .22);
}

.hc-care-tile--selected .hc-care-tile-icon {
  color: var(--hc-primary-dark);
  background: #fff;
}

.hc-care-tile--selected small,
.hc-care-tile--selected .hc-care-tile-arrow {
  color: rgba(255, 255, 255, .74);
}

.hc-care-tile:hover {
  border-color: rgba(52, 79, 164, .32);
  color: var(--hc-ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(31, 47, 108, .1);
}

.hc-care-tile--selected:hover {
  color: #fff;
  box-shadow: 0 20px 34px rgba(38, 59, 130, .28);
}

@media (max-width: 960px) {
  .hc-medical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-medical-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }

  .hc-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hc-team-photo {
    height: 260px;
  }

  .hc-best-care-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hc-care-tile {
    min-height: 145px;
  }
}

@media (max-width: 700px) {
  .hc-medical-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hc-medical-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .hc-medical-panel {
    min-height: 150px;
  }

  .hc-support-banner,
  .hc-support-copy {
    min-height: 330px;
  }

  .hc-support-image {
    object-position: 64% center;
  }

  .hc-support-shade {
    background: linear-gradient(90deg, rgba(8, 27, 74, .94), rgba(10, 34, 84, .75) 72%, rgba(10, 34, 84, .34));
  }

  .hc-support-copy {
    width: 78%;
    padding: 34px 28px;
  }

  .hc-support-play {
    right: 22px;
    bottom: 22px;
    top: auto;
    transform: none;
  }

  .hc-support-play:hover {
    transform: scale(1.08);
  }

  .hc-team-photo {
    height: 230px;
  }

  .hc-care-tile-grid {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .hc-team-grid,
  .hc-care-tile-grid {
    grid-template-columns: 1fr;
  }

  .hc-team-card {
    width: min(100%, 330px);
    justify-self: center;
  }

  .hc-team-photo {
    height: 310px;
  }

  .hc-support-copy {
    width: 88%;
    padding: 32px 22px;
  }

  .hc-support-copy h2 {
    font-size: 1.75rem;
  }

  .hc-care-tile {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-medical-card,
  .hc-team-card,
  .hc-care-tile { transition-delay: 0ms !important; }
}
