/* ==========================================================================
   Jeevisha UI foundation v1 (2026-10-30)
   Loaded on every page AFTER theme.min.css / seo.css (header.php, includes/head-common.php).
   - Tokens are taken from the approved benchmark (best-knee-pain-treatment-in-wakad.php).
   - All components are namespaced .jv-* so they never collide with theme or page-local CSS.
   - Global element rules are deliberately minimal (font loading/stack, focus, images).
   Page families add family CSS in assets/css/ds/<family>.css using these tokens.
   ========================================================================== */

:root {
  /* brand */
  --jv-blue: #233f92;          /* primary */
  --jv-blue-700: #1a2f6f;      /* hover */
  --jv-navy: #0d1b4a;          /* dark sections / titles */
  --jv-blue-500: #4f6bbf;
  --jv-blue-50: #f4f7ff;
  --jv-green: #89c043;         /* accent only - never white text on it (2.2:1) */
  --jv-green-700: #3f6f12;     /* accessible green for white text (5.9:1) */
  --jv-green-50: #edf5e3;
  /* neutrals */
  --jv-ink: #1b1f2b;           /* body text */
  --jv-muted: #545b70;         /* secondary text (7:1) */
  --jv-line: #e2e6f0;
  --jv-bg: #ffffff;
  --jv-bg-soft: #f7f9fc;
  --jv-star: #f5a623;
  /* type */
  --jv-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --jv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jv-fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --jv-fs-h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
  --jv-fs-h3: clamp(1.15rem, 1.05rem + .45vw, 1.375rem);
  --jv-fs-lead: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  --jv-fs-body: 1.0625rem;     /* 17px */
  --jv-fs-small: .875rem;
  /* layout */
  --jv-container: 1200px;
  --jv-gutter: clamp(16px, 4vw, 32px);
  --jv-section: clamp(48px, 7vw, 96px);
  --jv-radius: 14px;
  --jv-radius-sm: 8px;
  --jv-shadow: 0 6px 24px rgba(13, 27, 74, .08);
  --jv-shadow-lg: 0 14px 40px rgba(13, 27, 74, .14);
  --jv-bar-h: 0px;             /* mobile contact bar height, set by WS-A */
}

/* ---- global, minimal ---------------------------------------------------- */
body { font-family: var(--jv-font-body); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--jv-green); outline-offset: 2px; }

/* ---- layout ------------------------------------------------------------- */
.jv-container { width: 100%; max-width: var(--jv-container); margin: 0 auto; padding: 0 var(--jv-gutter); box-sizing: border-box; }
.jv-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.jv-section { padding: var(--jv-section) 0; }
.jv-section--soft { background: var(--jv-bg-soft); }
.jv-section--tint { background: linear-gradient(135deg, var(--jv-blue-50) 0%, var(--jv-green-50) 100%); }
.jv-section--dark { background: var(--jv-navy); color: #fff; }
.jv-section--dark .jv-h2, .jv-section--dark .jv-h3 { color: #fff; }
.jv-grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.jv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .jv-grid--3, .jv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .jv-grid--2, .jv-grid--3 { grid-template-columns: 1fr; } }
.jv-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 991.98px) { .jv-split { grid-template-columns: 1fr; } }

/* ---- typography (opt-in) ------------------------------------------------ */
.jv h1, .jv-h1, .jv-h2, .jv-h3 { font-family: var(--jv-font-head) !important; color: var(--jv-navy); letter-spacing: -.01em; margin: 0 0 .5em; }
.jv-h1 { font-size: var(--jv-fs-h1) !important; line-height: 1.15 !important; font-weight: 700 !important; color: var(--jv-blue); }
.jv-h2 { font-size: var(--jv-fs-h2) !important; line-height: 1.2 !important; font-weight: 700 !important; }
.jv-h3 { font-size: var(--jv-fs-h3) !important; line-height: 1.3 !important; font-weight: 600 !important; }
.jv-h2 span, .jv-h1 span { color: var(--jv-green-700); }
.jv-lead { font-size: var(--jv-fs-lead); line-height: 1.6; color: var(--jv-muted); }
.jv-prose { font-size: var(--jv-fs-body); line-height: 1.75; color: var(--jv-ink); }
.jv-prose p, .jv-prose ul, .jv-prose ol { margin: 0 0 1.1em; }
.jv-prose h2 { font-family: var(--jv-font-head) !important; font-size: var(--jv-fs-h2) !important; line-height: 1.25 !important; font-weight: 700 !important; color: var(--jv-navy); margin: 1.6em 0 .6em; }
.jv-prose h3 { font-family: var(--jv-font-head) !important; font-size: var(--jv-fs-h3) !important; line-height: 1.35 !important; font-weight: 600 !important; color: var(--jv-blue); margin: 1.4em 0 .5em; }
.jv-prose ul { list-style: none; padding-left: 0; }
.jv-prose ul > li { position: relative; padding-left: 1.6em; margin-bottom: .5em; }
.jv-prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--jv-green); }
.jv-prose ol { padding-left: 1.4em; }
.jv-prose ol > li { margin-bottom: .5em; padding-left: .2em; }
.jv-prose a { color: var(--jv-blue); text-decoration: underline; text-underline-offset: 2px; }
.jv-prose img { border-radius: var(--jv-radius); margin: 1em 0; }
.jv-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; display: block; overflow-x: auto; }
.jv-prose th, .jv-prose td { border: 1px solid var(--jv-line); padding: .6em .8em; text-align: left; vertical-align: top; }
.jv-prose th { background: var(--jv-blue-50); color: var(--jv-navy); }
.jv-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jv-green-700); background: var(--jv-green-50); border-radius: 999px; padding: .4em 1em; margin-bottom: 1rem; }
.jv-section--dark .jv-eyebrow { color: var(--jv-navy); background: var(--jv-green); }
.jv-center { text-align: center; }
.jv-section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }

/* ---- buttons ------------------------------------------------------------ */
.jv-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent; font-family: var(--jv-font-head); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none !important; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.jv-btn:hover { transform: translateY(-1px); box-shadow: var(--jv-shadow); }
.jv-btn--primary { background: var(--jv-blue); color: #fff !important; }
.jv-btn--primary:hover { background: var(--jv-blue-700); }
.jv-btn--green { background: var(--jv-green-700); color: #fff !important; }
.jv-btn--green:hover { background: #335b0e; }
.jv-btn--outline { background: transparent; color: var(--jv-blue) !important; border-color: var(--jv-blue); }
.jv-btn--outline:hover { background: var(--jv-blue); color: #fff !important; }
.jv-btn--light { background: #fff; color: var(--jv-blue) !important; }
.jv-btn--whatsapp { background: #128c4b; color: #fff !important; }   /* 4.9:1 */
.jv-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.jv-center .jv-btn-row, .jv-btn-row--center { justify-content: center; }
@media (max-width: 575.98px) { .jv-btn-row--stack .jv-btn { width: 100%; } }

/* ---- hero --------------------------------------------------------------- */
.jv-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0; background: linear-gradient(135deg, #ffffff 0%, var(--jv-blue-50) 60%, var(--jv-green-50) 100%); }
.jv-hero .jv-h1 { margin-bottom: .4em; }
.jv-hero__media img, .jv-hero__media video { width: 100%; border-radius: var(--jv-radius); box-shadow: var(--jv-shadow-lg); object-fit: cover; }
.jv-breadcrumb { font-size: var(--jv-fs-small); color: var(--jv-muted); margin-bottom: 1rem; }
.jv-breadcrumb a { color: var(--jv-blue); }

/* ---- cards -------------------------------------------------------------- */
.jv-card { background: #fff; border: 1px solid var(--jv-line); border-radius: var(--jv-radius); box-shadow: var(--jv-shadow); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s, transform .2s, border-color .2s; }
.jv-card:hover { box-shadow: var(--jv-shadow-lg); transform: translateY(-2px); border-color: var(--jv-green); }
.jv-card__img { margin: calc(-1 * clamp(20px, 2.4vw, 28px)) calc(-1 * clamp(20px, 2.4vw, 28px)) 18px; border-radius: var(--jv-radius) var(--jv-radius) 0 0; overflow: hidden; aspect-ratio: 4 / 3; }
.jv-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jv-card__title { font-family: var(--jv-font-head) !important; font-size: 1.15rem !important; line-height: 1.35 !important; font-weight: 600 !important; color: var(--jv-navy); margin: 0 0 .5em; overflow-wrap: anywhere; }
.jv-card__text { color: var(--jv-muted); font-size: .98rem; line-height: 1.65; margin: 0 0 1em; }
.jv-card__link { margin-top: auto; font-weight: 600; color: var(--jv-blue); text-decoration: none; }
.jv-card__link::after { content: " \2192"; }
.jv-icon { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--jv-blue-50); color: var(--jv-blue); font-size: 22px; margin-bottom: 14px; }

/* ---- stats -------------------------------------------------------------- */
.jv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jv-stat { text-align: center; background: #fff; border-radius: var(--jv-radius); box-shadow: var(--jv-shadow); padding: 22px 12px; }
.jv-stat__num { font-family: var(--jv-font-head); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 700; color: var(--jv-blue); line-height: 1.1; }
.jv-stat__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--jv-muted); margin-top: 6px; }
@media (max-width: 767.98px) { .jv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- doctor block ------------------------------------------------------- */
.jv-doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.jv-doctor__photo img { width: 100%; border-radius: var(--jv-radius); box-shadow: var(--jv-shadow-lg); }
.jv-doctor__creds { font-weight: 600; color: var(--jv-green-700); margin: -.2em 0 1em; }
@media (max-width: 991.98px) { .jv-doctor { grid-template-columns: 1fr; } .jv-doctor__photo { max-width: 420px; } }

/* ---- FAQ accordion (assets/js/jeevisha-ui.js wires .jv-faq__q buttons) -- */
.jv-faq { max-width: 860px; margin: 0 auto; }
.jv-faq__item { border: 1px solid var(--jv-line); border-radius: var(--jv-radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.jv-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 18px 20px; font-family: var(--jv-font-head); font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--jv-navy); cursor: pointer; }
.jv-faq__q::after { content: "+"; flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--jv-green-700); transition: transform .2s; }
.jv-faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.jv-faq__a { padding: 0 20px 18px; color: var(--jv-ink); line-height: 1.7; }
.jv-faq__a[hidden] { display: none; }

/* ---- timeline / journey ------------------------------------------------- */
.jv-steps { counter-reset: jvstep; display: grid; gap: 18px; }
.jv-step { position: relative; padding: 20px 20px 20px 76px; background: #fff; border-radius: var(--jv-radius); box-shadow: var(--jv-shadow); }
.jv-step::before { counter-increment: jvstep; content: counter(jvstep); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--jv-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--jv-font-head); }

/* ---- testimonials / media ----------------------------------------------- */
.jv-quote { background: #fff; border-radius: var(--jv-radius); box-shadow: var(--jv-shadow); padding: 24px; height: 100%; }
.jv-quote__stars { color: var(--jv-star); letter-spacing: 2px; }
.jv-quote__text { color: var(--jv-ink); line-height: 1.7; }
.jv-quote__name { font-weight: 700; color: var(--jv-navy); margin-top: 12px; }
.jv-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.jv-scroller > * { scroll-snap-align: start; }
.jv-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--jv-radius); overflow: hidden; background: #000; }
.jv-video iframe, .jv-video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---- CTA band ----------------------------------------------------------- */
.jv-cta { background: linear-gradient(135deg, var(--jv-blue) 0%, var(--jv-navy) 100%); color: #fff; border-radius: var(--jv-radius); padding: clamp(28px, 5vw, 56px); text-align: center; }
.jv-cta .jv-h2 { color: #fff; }
.jv-cta p { color: rgba(255, 255, 255, .9); }

/* ---- info / NAP --------------------------------------------------------- */
.jv-info { list-style: none; padding: 0; margin: 0 0 1.2em; }
.jv-info li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; line-height: 1.55; }
.jv-info i { color: var(--jv-green-700); width: 20px; text-align: center; margin-top: 3px; }
.jv-map { border-radius: var(--jv-radius); overflow: hidden; box-shadow: var(--jv-shadow); aspect-ratio: 4 / 3; }
.jv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- utilities ---------------------------------------------------------- */
.jv-mt-0 { margin-top: 0 !important; }
.jv-mb-0 { margin-bottom: 0 !important; }
.jv-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   WS-A additions (2026-10-30)
   ========================================================================== */

/* ---- global safety layer ------------------------------------------------ */
table { max-width: 100%; }
iframe, embed, object { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }
.main-footer a, .main-footer p, .main-footer li { overflow-wrap: anywhere; }

/* ---- global focus states ------------------------------------------------ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--jv-green); outline-offset: 2px; }
.jv-contactbar a:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* ---- contact bar: bottom bar < 992px, small floating stack >= 992px ---------- */
.jv-contactbar { position: fixed; z-index: 1000; display: flex; }
.jv-contactbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-decoration: none; font-family: var(--jv-font-body); font-weight: 600; line-height: 1;
  -webkit-tap-highlight-color: transparent; transition: filter .15s ease, transform .15s ease; }
.jv-contactbar__btn:hover, .jv-contactbar__btn:focus { color: #fff; text-decoration: none; filter: brightness(1.1); }
.jv-contactbar__btn i { font-size: 20px; line-height: 1; }
.jv-contactbar__btn--call { background: var(--jv-navy); }
.jv-contactbar__btn--wa { background: #0b7a3e; }
.jv-contactbar__btn--book { background: var(--jv-blue); }

@media (max-width: 991.98px) {
  :root { --jv-bar-h: calc(56px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--jv-bar-h); }
  .jv-contactbar { left: 0; right: 0; bottom: 0; height: var(--jv-bar-h); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--jv-navy); box-shadow: 0 -4px 16px rgba(13, 27, 74, .25); }
  .jv-contactbar__btn { flex: 1 1 0; min-width: 0; height: 56px; font-size: 15px; border-right: 1px solid rgba(255, 255, 255, .18); }
  .jv-contactbar__btn:last-child { border-right: 0; }
  /* hide while the mobile menu is open */
  body.jv-nav-open .jv-contactbar { display: none; }
}
@media (max-width: 340px) { .jv-contactbar__btn { font-size: 13px; gap: 5px; } .jv-contactbar__btn i { font-size: 17px; } }

@media (min-width: 992px) {
  .jv-contactbar { right: 16px; bottom: 20px; flex-direction: column; gap: 10px; }
  .jv-contactbar__btn { position: relative; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 6px 16px rgba(13, 27, 74, .3); }
  .jv-contactbar__btn span { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); padding: 7px 12px;
    border-radius: 8px; background: var(--jv-navy); font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
  .jv-contactbar__btn:hover span, .jv-contactbar__btn:focus-visible span { opacity: 1; }
  .jv-contactbar__btn:hover { transform: scale(1.06); }
  .jv-contactbar__btn--call { background: var(--jv-blue); }
  .jv-contactbar__btn--book { background: var(--jv-green-700); }
}
@media print { .jv-contactbar { display: none; } }

/* ---- footer ------------------------------------------------------------- */
footer.main-footer.jv-footer { background: linear-gradient(180deg, var(--jv-navy) 0%, #14286b 100%); color: #e8ecf8; padding: 0; font-size: 1rem; line-height: 1.6; }
.jv-footer__main { max-width: var(--jv-container); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--jv-gutter) clamp(24px, 4vw, 40px); box-sizing: border-box; }
.jv-footer__grid { display: grid; gap: 32px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jv-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .jv-footer__grid { grid-template-columns: .9fr .8fr .9fr 1.6fr; } }
.jv-footer__col { min-width: 0; }
footer.jv-footer .widget-title { font-family: var(--jv-font-head); font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 1rem; line-height: 1.3; }
.jv-footer__list { list-style: none; margin: 0; padding: 0; }
.jv-footer__list li { margin: 0 0 .6rem; color: #e8ecf8; }
footer.jv-footer a:not(.btn) { color: #fff; font-size: 1rem; font-weight: 500; text-decoration: none; }
footer.jv-footer a:not(.btn):hover { color: var(--jv-green); text-decoration: underline; }
.jv-footer__list a { display: inline-block; padding: 4px 0; }
.jv-footer__contact b { color: #fff; font-weight: 600; }
.jv-footer__social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.jv-footer__social li { margin: 0; }
footer.jv-footer .jv-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 1.25rem; }
footer.jv-footer .jv-footer__social a:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.jv-footer__bar { border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .18); }
.jv-footer__bar-inner { max-width: var(--jv-container); margin: 0 auto; padding: 18px var(--jv-gutter); box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.jv-footer__bar p { margin: 0; color: #e8ecf8; font-size: .9375rem; }
.jv-footer__bar b { color: #fff; }
.jv-footer__legal a { margin: 0 8px; padding: 6px 0; display: inline-block; }
.jv-footer__legal a:first-child { margin-left: 0; }
.jv-footer__brand img { background: #fff; padding: 12px 16px; border-radius: var(--jv-radius-sm); box-sizing: content-box; max-width: calc(100% - 32px); }
.jv-footer__contact a { padding: 0; display: inline; }
