/* Healthcare industry page + healthcare case study. Uses build-services.css tokens (--bs-*). */
.hc { --hc-teal: #0f766e; --hc-teal-soft: #e6f6f4; --hc-ok: #1aa66b; }

/* ---------- Hero: animated patient visit ---------- */
.hc-visit { position: relative; overflow: hidden; border: 1px solid rgba(15, 42, 67, .12); border-radius: 18px; background: #fff; box-shadow: 0 30px 70px rgba(16, 35, 63, .16), 0 6px 18px rgba(16, 35, 63, .06); font-size: .8rem; color: var(--bs-navy); }
.hc-visit-bar { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-bottom: 1px solid var(--bs-line); background: #f8fbfd; font-size: .76rem; color: var(--bs-muted); }
.hc-visit-bar strong { flex: 1; min-width: 0; overflow: hidden; color: var(--bs-navy); white-space: nowrap; text-overflow: ellipsis; }
.hc-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--hc-teal); color: #fff; font-size: .9rem; }
.hc-livepill { display: inline-flex; align-items: center; gap: .35rem; color: var(--hc-teal); font-weight: 600; white-space: nowrap; }
.hc-livepill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hc-ok); animation: hc-pulse 1.8s infinite; }
@keyframes hc-pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 166, 107, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(26, 166, 107, 0); } }
.hc-visit-body { padding: 1rem; background: #f4f9fb; }
.hc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.hc-stats div { padding: .55rem .65rem; border: 1px solid var(--bs-line); border-radius: 10px; background: #fff; }
.hc-stats small { display: block; color: var(--bs-muted); font-size: .66rem; }
.hc-stats b { font-size: 1.05rem; }
.hc-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.hc-steps li { display: flex; align-items: center; gap: .35rem; padding: .45rem .5rem; border: 1px solid var(--bs-line); border-radius: 9px; background: #fff; color: var(--bs-muted); font-size: .7rem; font-weight: 600; white-space: nowrap; animation: hc-step 16s infinite; }
.hc-steps li i { font-size: .9rem; }
.hc-steps li:nth-child(2) { animation-delay: 4s; } .hc-steps li:nth-child(3) { animation-delay: 8s; } .hc-steps li:nth-child(4) { animation-delay: 12s; }
@keyframes hc-step { 0%, 24% { border-color: var(--hc-teal); background: var(--hc-teal-soft); color: var(--hc-teal); } 26%, 100% { border-color: var(--bs-line); background: #fff; color: var(--bs-muted); } }
.hc-progress { height: 3px; margin: -.45rem 0 .8rem; border-radius: 3px; background: var(--bs-line); overflow: hidden; }
.hc-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--hc-teal), #2dd4bf); transform-origin: left; animation: hc-prog 16s linear infinite; }
@keyframes hc-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hc-stage-wrap { position: relative; height: 180px; }
.hc-stage { position: absolute; inset: 0; padding: .85rem .95rem; border: 1px solid var(--bs-line); border-radius: 12px; background: #fff; opacity: 0; transform: translateY(8px); animation: hc-stage 16s infinite; }
.hc-stage:nth-child(2) { animation-delay: 4s; } .hc-stage:nth-child(3) { animation-delay: 8s; } .hc-stage:nth-child(4) { animation-delay: 12s; }
@keyframes hc-stage { 0% { opacity: 0; transform: translateY(8px); } 3%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-6px); } }
.hc-stage-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.hc-stage-head strong { font-size: .9rem; }
.hc-tag { padding: .15rem .5rem; border-radius: 999px; background: var(--hc-teal-soft); color: var(--hc-teal); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.hc-rows { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.hc-rows li { display: flex; justify-content: space-between; gap: .75rem; padding: .32rem 0; border-bottom: 1px dashed #e3edf3; color: var(--bs-muted); font-size: .74rem; }
.hc-rows li:last-child { border-bottom: 0; }
.hc-rows b { color: var(--bs-navy); font-weight: 600; text-align: right; }
.hc-done { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; color: var(--hc-ok); font-size: .72rem; font-weight: 600; }
.hc-visit-foot { display: flex; justify-content: flex-end; padding: .45rem .9rem; border-top: 1px solid var(--bs-line); background: #fff; color: #8a9aab; font-size: .66rem; }

/* ---------- Journey ---------- */
.hc-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hc-journey li { position: relative; padding: 1.25rem 1.1rem; border: 1px solid var(--bs-line); border-radius: 16px; background: #fff; }
.hc-journey li::after { content: "\F285"; position: absolute; top: 1.6rem; right: -.95rem; z-index: 1; color: #9fb3c4; font-family: "bootstrap-icons"; font-size: .9rem; }
.hc-journey li:last-child::after { display: none; }
.hc-journey-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: .75rem; border-radius: 12px; background: var(--hc-teal-soft); color: var(--hc-teal); font-size: 1.25rem; }
.hc-journey small { display: block; margin-bottom: .2rem; color: var(--hc-teal); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hc-journey h3 { margin: 0 0 .4rem; color: var(--bs-navy); font-size: 1.05rem; }
.hc-journey p { margin: 0; color: var(--bs-muted); font-size: .9rem; line-height: 1.55; }

/* ---------- Product duo ---------- */
.hc-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hc-product { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--bs-line); border-radius: 18px; background: #fff; }
.hc-product.is-main { border-color: rgba(15, 118, 110, .45); box-shadow: 0 16px 40px rgba(15, 118, 110, .1); }
.hc-product-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.hc-product-top .hc-journey-icon { margin: 0; }
.hc-product h3 { margin: 0; color: var(--bs-navy); font-size: 1.2rem; }
.hc-product-top div > span { display: block; color: var(--bs-muted); font-size: .82rem; }
.hc-product > p { color: var(--bs-muted); line-height: 1.6; }
.hc-product ul { display: grid; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.hc-product li { display: flex; gap: .5rem; color: var(--bs-ink); font-size: .92rem; line-height: 1.45; }
.hc-product li i { color: var(--hc-ok); }
.hc-product .hc-product-link { margin-top: auto; color: var(--hc-teal); font-weight: 700; text-decoration: none; }
.hc-product .hc-product-link:hover { text-decoration: underline; }
.hc-livebadge { margin-left: auto; padding: .2rem .55rem; border-radius: 999px; background: #e3f6ec; color: #13804f; font-size: .72rem; font-weight: 700; }

/* ---------- Gallery ---------- */
.hc-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 1rem; margin: 0; padding: .25rem .1rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; scrollbar-width: thin; }
.hc-gallery figure { margin: 0; scroll-snap-align: start; }
.hc-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--bs-line); border-radius: 14px; background: #eef4f8; box-shadow: 0 10px 26px rgba(16, 35, 63, .08); }
.hc-gallery figcaption { margin-top: .55rem; color: var(--bs-muted); font-size: .86rem; line-height: 1.45; }
.hc-gallery-note { margin: .25rem 0 0; color: #8a9aab; font-size: .8rem; }

/* ---------- Proof band ---------- */
.hc-proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 22px; background: linear-gradient(135deg, #0d2b3e, #0f4c5c); color: #d8e8ef; }
.hc-proof h2 { color: #fff; }
.hc-proof .bs-label { color: #6fe0d2; }
.hc-proof p { color: #c6d8e1; line-height: 1.65; }
.hc-proof a.hc-proof-link { color: #6fe0d2; font-weight: 700; }
.hc-clients { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.hc-clients li { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.hc-clients .hc-mono { display: inline-grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #2dd4bf; color: #0d2b3e; font-weight: 800; }
.hc-clients strong { display: block; color: #fff; }
.hc-clients span { color: #b7cbd5; font-size: .86rem; }
.hc-clients em { margin-left: auto; padding: .18rem .55rem; border-radius: 999px; background: rgba(45, 212, 191, .16); color: #6fe0d2; font-size: .72rem; font-style: normal; font-weight: 700; }

/* ---------- Trust list ---------- */
.hc-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.hc-trust li { display: flex; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--bs-line); border-radius: 14px; background: #fff; }
.hc-trust i { flex: 0 0 auto; color: var(--hc-teal); font-size: 1.35rem; }
.hc-trust strong { display: block; margin-bottom: .2rem; color: var(--bs-navy); }
.hc-trust span { color: var(--bs-muted); font-size: .9rem; line-height: 1.5; }

/* ---------- Case study ---------- */
.hc-facts { padding: 1.4rem; border: 1px solid var(--bs-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(16, 35, 63, .12); }
.hc-facts-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--bs-line); }
.hc-facts-head .hc-mono { display: inline-grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--hc-teal); color: #fff; font-size: 1.1rem; font-weight: 800; }
.hc-facts-head strong { display: block; color: var(--bs-navy); font-size: 1.05rem; }
.hc-facts-head span { color: var(--bs-muted); font-size: .86rem; }
.hc-facts dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; }
.hc-facts dt { color: var(--bs-muted); font-size: .86rem; font-weight: 500; }
.hc-facts dd { margin: 0; color: var(--bs-navy); font-size: .9rem; font-weight: 600; }
.hc-facts-modules { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.hc-facts-modules span { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; background: var(--hc-teal-soft); color: var(--hc-teal); font-size: .78rem; font-weight: 600; }
.hc-story p { max-width: 46rem; }
.hc-story p { color: var(--bs-ink); font-size: 1.02rem; line-height: 1.75; }
.hc-note { padding: .9rem 1.1rem; border-left: 3px solid var(--hc-teal); border-radius: 0 12px 12px 0; background: var(--hc-teal-soft); color: var(--bs-ink); font-size: .92rem; line-height: 1.6; }

@media (max-width: 991.98px) {
  .hc-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-journey li:nth-child(2)::after { display: none; }
  .hc-proof { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .hc-products, .hc-trust { grid-template-columns: 1fr; }
  .hc-gallery { grid-auto-columns: 86%; }
}
@media (max-width: 575.98px) {
  .hc-journey { grid-template-columns: 1fr; }
  .hc-journey li::after { display: none; }
  .hc-steps li { justify-content: center; padding: .45rem .2rem; }
  .hc-steps li span { display: none; }
  .hc-stage-wrap { height: 196px; }
  .hc-stats b { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hc *, .hc *::before, .hc-visit *, .hc-visit *::before { animation: none !important; }
  .hc-stage:first-child { opacity: 1; transform: none; }
  .hc-steps li:first-child { border-color: var(--hc-teal); background: var(--hc-teal-soft); color: var(--hc-teal); }
  .hc-progress span { transform: scaleX(.25); }
}
