/* HCW Hero — [hcw_hero] shortcode */
.hcw-hero {
  --hcw-ink: #013126;
  --hcw-mint: #58eda2;
  --hcw-display: "Nunito Sans", system-ui, sans-serif;
  position: relative;
  height: min(88vh, 820px);
  min-height: 560px;
  overflow: hidden;
  background: var(--hcw-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hcw-hero__media {
  position: absolute;
  inset: 0;
}

.hcw-seq__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: linear-gradient(135deg, #013126 0%, #024a38 50%, #013126 100%);
}

.hcw-seq__layer.is-on {
  opacity: 1;
}

.hcw-seq__layer > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hcw-hero__collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--hcw-ink);
  overflow: hidden;
}

.hcw-hero__collage video {
  min-width: 0;
  object-position: 50% 100%;
  transform: scale(1.12);
  transform-origin: 50% 100%;
}

.hcw-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 49, 38, 0.62) 0%, rgba(1, 49, 38, 0.25) 32%, rgba(1, 49, 38, 0) 50%),
    linear-gradient(0deg, rgba(1, 49, 38, 0.5) 0%, rgba(1, 49, 38, 0) 32%);
  pointer-events: none;
}

.hcw-hero__in {
  position: relative;
  padding-bottom: 92px;
}

.hcw-hero__card {
  max-width: 620px;
}

.hcw-hero__card > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hcw-hero__card.is-in > * {
  opacity: 1;
  transform: none;
}

.hcw-hero__card.is-in > :nth-child(2) {
  transition-delay: 0.15s;
}

.hcw-hero__card.is-in > :nth-child(3) {
  transition-delay: 0.3s;
}

.hcw-hero__card.is-in > :nth-child(4) {
  transition-delay: 0.45s;
}

.hcw-hero__h {
  font: 300 clamp(46px, 6.6vw, 98px) / 1 var(--hcw-display);
  letter-spacing: -0.01em;
}

.hcw-hero__h em {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-style: italic;
  color: var(--hcw-mint);
}

.hcw-hero__heads {
  display: grid;
}

.hcw-hero__heads .hcw-hero__h {
  grid-area: 1 / 1;
  align-self: end;
  margin: 0;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hcw-hero__heads .hcw-hero__h.is-on {
  opacity: 1;
  transform: none;
}

.hcw-hero__heads .hcw-hero__h.is-out {
  opacity: 0;
  transform: translateY(-32px);
}

.hcw-hero__h--sm {
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.2;
  font-weight: 400;
}

.hcw-hero__h--sm em {
  font-size: 1.3em;
}

.hcw-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hcw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.hcw-btn:hover {
  transform: translateY(-2px);
}

.hcw-btn--mint {
  background: var(--hcw-mint);
  color: var(--hcw-ink);
}

.hcw-btn--mint:hover {
  background: #7af3b6;
  box-shadow: 0 8px 22px rgba(88, 237, 162, 0.35);
}

.hcw-btn--ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.hcw-btn--ghost:hover {
  background: #fff;
  color: var(--hcw-ink);
}

.hcw-hero .hcw-i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hcw-hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hcw-hero__prog {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 360px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hcw-hero__prog li {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.hcw-hero__prog li i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--hcw-mint);
}

.hcw-hero__prog li.done i {
  width: 100%;
}

.hcw-hero__pause {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hcw-hero__pause .hcw-i {
  width: 16px;
  height: 16px;
}

.hcw-hero__pause .hcw-i-play,
.hcw-hero__pause.is-paused .hcw-i-pause {
  display: none;
}

.hcw-hero__pause.is-paused .hcw-i-play {
  display: block;
}

.hcw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .hcw-hero__bar {
    padding-right: 84px;
  }

  .hcw-hero {
    height: 86svh;
    min-height: 520px;
  }

  .hcw-hero__shade {
    background: linear-gradient(0deg, rgba(1, 49, 38, 0.8) 0%, rgba(1, 49, 38, 0.25) 45%, rgba(1, 49, 38, 0) 70%);
  }

  .hcw-hero__collage {
    gap: 2px;
  }

  .hcw-hero__in {
    padding-bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hcw-hero__card > * {
    opacity: 1;
    transform: none;
  }
}

/* Trust strip below hero — from healthcare-world 2/css/styles.css (.trust) */
.hcw-trust {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 22px 12px;
  background: var(--hcw-ink, #013126);
  color: #fff;
  border-radius: var(--hcw-r, 18px);
  box-shadow: 0 20px 40px rgba(1, 49, 38, 0.18);
}

.hcw-trust li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
}

.hcw-trust li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hcw-trust .hcw-i {
  width: 28px;
  height: 28px;
  color: var(--hcw-mint, #58eda2);
  stroke-width: 1.5;
  flex: none;
}

.hcw-trust b {
  display: block;
  font: 700 15px/1.4 var(--hcw-display, "Nunito Sans", system-ui, sans-serif);
}

.hcw-trust span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .hcw-trust {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }
  .hcw-trust li:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .hcw-trust {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding: 18px 4px;
  }
  .hcw-trust li {
    border-left: 0 !important;
    padding: 6px 16px;
  }
}
