/* HospitalCare360 — premium home hero carousel */

.hc-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #0b1f24;
}

.hc-carousel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.hc-carousel__viewport {
  position: absolute;
  inset: 0;
}

.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  pointer-events: none;
}
.hc-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hc-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6.5s ease-out;
}
.hc-slide.is-active .hc-slide__img {
  transform: scale(1);
}

.hc-slide__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 36, 0.62) 0%, rgba(11, 31, 36, 0.28) 36%, rgba(11, 31, 36, 0.78) 70%, rgba(11, 31, 36, 0.94) 100%),
    linear-gradient(90deg, rgba(9, 84, 86, 0.45) 0%, transparent 50%);
  pointer-events: none;
}

.hc-slide__copy {
  position: absolute;
  left: clamp(1.25rem, 5vw, 4rem);
  right: clamp(1.25rem, 5vw, 4rem);
  bottom: clamp(5.25rem, 11vh, 7.25rem);
  z-index: 2;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.hc-slide.is-active .hc-slide__copy {
  opacity: 1;
  transform: translateY(0);
}
.hc-slide__num {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4a35a;
  font-weight: 600;
}
.hc-slide__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hc-slide__copy p {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}
.hc-slide__cta {
  display: inline-flex;
  margin-top: 1rem;
  color: #e8f6f6;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(20, 163, 168, 0.55);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hc-slide__cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hc-hero__stage {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 9rem) 1.5rem 2rem;
  text-align: center;
  pointer-events: none;
}
.hc-hero__stage .hero__cta,
.hc-hero__stage a {
  pointer-events: auto;
}
.hc-hero__stage .hero__brand {
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.hc-hero__stage .hero__content {
  max-width: none;
  padding: 0;
  margin: 0 auto;
}
.hc-hero__stage .hero__cta {
  justify-content: center;
}

.hc-carousel__ui {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hc-carousel__btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 31, 36, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hc-carousel__btn:hover {
  border-color: #14a3a8;
  background: rgba(13, 115, 119, 0.35);
  transform: scale(1.05);
}
.hc-carousel__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.hc-carousel__dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hc-carousel__dots button.is-active {
  width: 1.45rem;
  background: #14a3a8;
}

/* Capability cards with image thumbs */
.hc-caps {
  padding: 4.5rem 0 5rem;
  background: #0b1f24;
  color: #e8f6f6;
}
.hc-caps .section-head h2 { color: #fff; }
.hc-caps .section-head p { color: rgba(232, 246, 246, 0.72); }
.hc-caps__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4a35a;
  font-weight: 600;
}
.hc-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.hc-cap {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  min-height: 280px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.hc-cap:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(20, 163, 168, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
.hc-cap__thumb {
  display: block;
  height: 120px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.88);
  transition: filter 0.35s ease, transform 0.5s ease;
}
.hc-cap:hover .hc-cap__thumb {
  filter: saturate(1.05) brightness(1);
  transform: scale(1.03);
}
.hc-cap__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.hc-cap__num {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #c4a35a;
  font-weight: 600;
}
.hc-cap h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.hc-cap p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(232, 246, 246, 0.7);
  flex: 1;
}
.hc-cap__go {
  font-size: 0.82rem;
  font-weight: 600;
  color: #14a3a8;
}

@media (max-width: 1100px) {
  .hc-cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hc-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hc-cap-grid { grid-template-columns: 1fr; }
  .hc-slide__copy p { display: none; }
  .hc-hero__stage .hero__lead { display: none; }
  .hc-cap:hover { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hc-slide,
  .hc-slide__img,
  .hc-slide__copy,
  .hc-cap {
    transition: none !important;
    animation: none !important;
  }
}
