/* WS-B homepage (index.php) family CSS - v20261030. Uses jeevisha-ui.css tokens. All selectors are .hm-* scoped. */

.hm { overflow-x: clip; }

/* ---- HERO ---------------------------------------------------------------- */
.hm-hero { position: relative; display: flex; align-items: center; min-height: clamp(560px, 82vh, 760px); padding: 190px 0 120px; background: #e9edf3; overflow: hidden; isolation: isolate; }
.hm-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #e9edf3; }
/* light overlay only for text contrast (poster stays clearly visible on the right) */
.hm-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,.45) 65%, rgba(255,255,255,.08) 100%); }
.hm-hero__inner { position: relative; }
.hm-hero__content { max-width: 800px; }
/* Brand line: "Jeevisha Pain Management Center, Pune" as a brand identity element (not an H1). */
.hm-hero__brand { display: inline-block; margin: 0 0 1.1rem; padding: .55em 1.1em .55em 1em;
  font-family: var(--jv-font-head); font-size: clamp(1.05rem, .82rem + .95vw, 1.6rem); font-weight: 700; line-height: 1.25;
  letter-spacing: .045em; text-transform: uppercase; color: var(--jv-blue);
  background: rgba(255,255,255,.82); border-left: 5px solid var(--jv-green); border-radius: 0 12px 12px 0;
  box-shadow: 0 6px 22px rgba(13,27,74,.10); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hm-hero__brand-name { white-space: normal; }
.hm-hero__brand-place { color: var(--jv-green-700); white-space: nowrap; }
.hm-hero__title.jv-h1 { margin: 0 0 .35em; color: var(--jv-navy); text-wrap: balance; }
.hm-hero__sub { font-size: var(--jv-fs-lead); line-height: 1.55; color: var(--jv-ink); font-weight: 500; margin: 0 0 1.6rem; max-width: 34em; }
.hm-hero__cta .jv-btn { box-shadow: 0 4px 14px rgba(13,27,74,.12); }
.hm-btn-solid-outline { background: #fff; }
.hm-btn-solid-outline:hover { background: var(--jv-blue); }

/* ---- TRUST STRIP --------------------------------------------------------- */
.hm-trust { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 8px; }
.hm-stats { gap: clamp(10px, 2vw, 20px); }
.hm-stat.jv-stat { box-shadow: var(--jv-shadow-lg); border: 1px solid var(--jv-line); padding: 24px 12px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hm-stat .jv-stat__num { color: var(--jv-blue) !important; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem) !important; line-height: 1.1; margin: 0; padding: 0; }
.hm-stat .jv-stat__num span { color: var(--jv-blue) !important; font-size: inherit !important; font-family: inherit; font-weight: 700; }
.hm-stat .liquid-animator-numbers li { color: var(--jv-blue) !important; }
.hm-stat .jv-stat__label { display: block; margin: 8px 0 0; padding: 0; color: var(--jv-muted) !important; font-size: .78rem; }

/* ---- CONDITIONS ---------------------------------------------------------- */
.hm-cond-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.hm-cond { position: relative; padding: 0; overflow: hidden; }
.hm-cond .jv-card__img { margin: 0 0 16px; aspect-ratio: 3 / 2; border-radius: 0; }
.hm-cond .jv-card__title, .hm-cond .jv-card__text, .hm-cond .jv-card__link { margin-left: 20px; margin-right: 20px; }
.hm-cond .jv-card__title { text-transform: uppercase; font-size: 1rem !important; letter-spacing: .01em; overflow-wrap: break-word; hyphens: auto; }
.hm-cond .jv-card__text { font-size: .95rem; margin-bottom: 14px; overflow-wrap: break-word; }
.hm-cond .jv-card__link { margin-bottom: 20px; align-self: flex-start; }
.hm-cond .jv-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.hm-cond .jv-card__link:focus-visible { outline: none; }
.hm-cond:focus-within { box-shadow: 0 0 0 3px var(--jv-green), var(--jv-shadow-lg); }
@media (max-width: 991.98px) { .hm-cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .hm-cond-grid { gap: 10px; }
  .hm-cond .jv-card__img { margin-bottom: 12px; }
  .hm-cond .jv-card__title, .hm-cond .jv-card__text, .hm-cond .jv-card__link { margin-left: 12px; margin-right: 12px; }
  .hm-cond .jv-card__title { font-size: .84rem !important; line-height: 1.3 !important; }
  .hm-cond .jv-card__text { font-size: .86rem; line-height: 1.5; }
  .hm-cond .jv-card__link { font-size: .9rem; margin-bottom: 14px; }
}

/* ---- DOCTOR -------------------------------------------------------------- */
.hm-doctor .jv-doctor__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; width: 100%; height: auto; box-shadow: var(--jv-shadow-lg); border-radius: var(--jv-radius); }
.hm-doctor .jv-h2 { margin-bottom: .25em; }
.hm-creds.jv-doctor__creds { margin: 0 0 1.1em; font-size: 1.05rem; line-height: 1.6; }
.hm-doctor .jv-prose { max-width: 60ch; }
.hm-doctor .jv-btn-row { margin-top: 8px; }
@media (max-width: 991.98px) { .hm-doctor .jv-doctor__photo { max-width: 380px; margin: 0 auto; } }

/* ---- TREATMENTS ---------------------------------------------------------- */
.hm-treat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-treat { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; background: #fff; border: 1px solid var(--jv-line); border-radius: var(--jv-radius-sm); box-shadow: var(--jv-shadow); color: var(--jv-navy); font-family: var(--jv-font-head); font-weight: 600; font-size: .98rem; line-height: 1.3; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hm-treat i { color: var(--jv-green-700); font-size: 1.4rem; flex: 0 0 auto; }
.hm-treat:hover { border-color: var(--jv-green); box-shadow: var(--jv-shadow-lg); transform: translateY(-2px); color: var(--jv-blue); }
@media (max-width: 991.98px) { .hm-treat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hm-treat-grid { gap: 10px; } .hm-treat { padding: 12px 12px; font-size: .88rem; min-height: 60px; } }

/* ---- ABOUT --------------------------------------------------------------- */
.hm-about__photo img { width: 100%; height: auto; border-radius: var(--jv-radius); box-shadow: var(--jv-shadow-lg); display: block; max-height: 640px; object-fit: cover; }
.hm-about .jv-h2 { margin-bottom: .6em; }
.hm-lead-quote { margin: 0 0 1.2em; padding: 18px 22px; border-left: 5px solid var(--jv-green); background: #fff; border-radius: 0 var(--jv-radius) var(--jv-radius) 0; box-shadow: var(--jv-shadow); }
.hm-lead-quote p { margin: 0; font-size: 1.1rem; line-height: 1.65; color: var(--jv-blue); }
.hm-lead-quote a { color: var(--jv-green-700); text-decoration: underline; text-underline-offset: 2px; }
.hm-about__goal { color: var(--jv-ink); margin-bottom: 1.4rem; }

/* ---- VIDEOS -------------------------------------------------------------- */
.hm-videos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 24px); }
.hm-videos .video-item { flex: 0 0 calc((100% - 2 * clamp(14px, 2vw, 24px)) / 3); min-width: 0; display: flex; }
.hm-videos .video-card { width: 100%; background: #fff; border: 1px solid var(--jv-line); border-radius: var(--jv-radius); box-shadow: var(--jv-shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.hm-videos .video-card:hover, .hm-videos .video-card:focus-within { box-shadow: var(--jv-shadow-lg); transform: translateY(-3px); }
.hm-videos .video-card-frame-wrap { position: relative; background: #000; line-height: 0; aspect-ratio: 16 / 9; cursor: pointer; overflow: hidden; }
.hm-videos .video-card-frame-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-videos .video-card-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.hm-videos .video-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(13, 27, 74, .78); display: flex; align-items: center; justify-content: center; }
.hm-videos .video-play-icon svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.hm-videos .yt-lite:focus-visible { outline: 3px solid var(--jv-green); outline-offset: -3px; }
.hm-videos .video-caption { padding: 14px 16px 18px; }
.hm-videos .video-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 4px 11px; border-radius: 999px; background: var(--jv-green-50); color: var(--jv-green-700); }
.hm-videos .video-caption h3 { font-family: var(--jv-font-head); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--jv-navy); margin: 10px 0 0; }
.hm-videos__all { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 991.98px) { .hm-videos .video-item { flex-basis: calc((100% - clamp(14px, 2vw, 24px)) / 2); } }
@media (max-width: 575.98px) {
  /* mobile: swipe row */
  .hm-videos { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; margin-right: calc(-1 * var(--jv-gutter)); padding-right: var(--jv-gutter); }
  .hm-videos .video-item { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---- RECENT UPDATES ------------------------------------------------------ */
.hm-news__row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; align-items: flex-start; }
.hm-news__item { flex: 0 0 min(500px, 86vw); scroll-snap-align: start; }
.hm-news__item .updates-card { background: #fff; border: 1px solid var(--jv-line); border-radius: var(--jv-radius); box-shadow: var(--jv-shadow); overflow: hidden; }
.hm-news__item .updates-frame { line-height: 0; background: #fff; }
.hm-news__item .updates-frame iframe { width: 100%; display: block; border: 0; }
.hm-news__item .updates-frame.image-frame img { width: 100%; height: auto; display: block; }
.hm-news__item .updates-caption { padding: 14px 18px 16px; font-family: var(--jv-font-head); font-weight: 600; font-size: 1rem; color: var(--jv-navy); }
.hm-news__item:nth-child(n+4) { flex-basis: min(340px, 78vw); }

/* ---- VISIT --------------------------------------------------------------- */
.hm-visit .jv-info li { font-size: 1.05rem; }
.hm-visit .jv-btn-row { margin-bottom: 1.2rem; }
.hm-nearby { margin: 0; color: var(--jv-muted); }
.hm-nearby a { color: var(--jv-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hm-visit .jv-map { aspect-ratio: auto; min-height: 340px; }
.hm-visit .jv-map iframe { min-height: 340px; }

/* ---- FINAL CTA ----------------------------------------------------------- */
.hm-final { padding-top: clamp(32px, 5vw, 56px); }
.hm-final .jv-cta .jv-h2 { color: #fff !important; margin-bottom: 1.1em; }
.hm-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.85); }
.hm-btn-ghost:hover { background: #fff; color: var(--jv-blue) !important; }

/* ---- MOBILE HERO --------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hm-hero { min-height: 0; padding: 140px 0 96px; }
  .hm-hero__shade { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.82) 60%, rgba(255,255,255,.7) 100%); }
  .hm-hero__inner { padding-left: 16px; padding-right: 16px; }
  .hm-hero__content { text-align: center; }
  .hm-hero__sub { margin-left: auto; margin-right: auto; }
  .hm-hero__cta { justify-content: center; }
  .hm-hero__cta .jv-btn { width: 100%; }
  .hm-trust { margin-top: -48px; }
}
@media (prefers-reduced-motion: reduce) { .hm *, .hm *::before { transition: none !important; } }
