/* ==========================================================================
   Jivara Heart Institute — inner pages
   Builds on home.css (tokens, header, footer, buttons, cards). Loaded on all pages except the homepage.
   ========================================================================== */

/* ---------- Page hero ---------- */
.jh-pagehero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; color: #fff; background:
	radial-gradient(900px 480px at 92% 0%, rgba(12, 186, 163, .22), rgba(12, 186, 163, 0) 60%),
	radial-gradient(800px 460px at 0% 100%, rgba(30, 90, 180, .35), rgba(30, 90, 180, 0) 60%),
	var(--jh-deep); }
.jh-pagehero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.jh-pagehero__mark { position: absolute; right: 4%; top: 50%; transform: translateY(-46%); height: 125% !important; width: auto; opacity: .1; z-index: -1; pointer-events: none; }
.jh-pagehero__body { position: relative; padding-top: calc(96px + clamp(40px, 5vw, 80px)); padding-bottom: clamp(80px, 9vw, 128px); }
.jh-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13.5px; color: #AFC0D4; }
.jh-crumbs a:hover { color: #fff; }
.jh-crumbs .ico { font-size: 14px; opacity: .6; }
.jh-crumbs span { color: #fff; }
.jh-pagehero__title { margin-top: 18px; max-width: 920px; font-family: var(--jh-head); font-weight: 500; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.jh-pagehero__title em { font-style: normal; color: var(--jh-teal-light); }
.jh-pagehero__lead { margin-top: 24px; max-width: 640px; font-size: 18px; line-height: 1.65; color: #C3CFDE; text-wrap: pretty; }
.jh-pagehero__ecg { position: absolute; left: 0; right: 0; bottom: 28px; width: 100%; height: 64px; fill: none; stroke: var(--jh-teal); stroke-width: 1.6; opacity: .35; pointer-events: none; }

/* ---------- Section modifiers ---------- */
.jh-section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.jh-section--overlap { position: relative; z-index: 3; margin-top: -72px; padding-top: 0; }
.jh-section--flush-top { padding-top: 0; }
.jh-gap-top { padding-top: clamp(16px, 2vw, 24px); }
.jh-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.jh-btn--outline { padding: 0 24px; border-color: #CBD5E1; color: var(--jh-navy); background: #fff; }
.jh-note { display: flex; align-items: center; justify-content: center; gap: 8px; text-wrap: pretty; }
.jh-note .ico { color: var(--jh-teal-text); font-size: 16px; }

.jh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 80px; align-items: start; }
.jh-lead { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--jh-ink); }
.jh-prose > p:not(.jh-eyebrow):not(.jh-lead) { margin-top: 16px; font-size: 16.5px; line-height: 1.75; color: var(--jh-body); }

/* ---------- About: values, vision & mission ---------- */
.jh-values { display: grid; gap: 14px; }
.jh-value { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--jh-soft); transition: background .3s, box-shadow .3s, transform .3s var(--jh-ease); }
.jh-value:hover { background: #fff; box-shadow: 0 20px 44px rgba(0, 26, 61, .08); }
.jh-value__icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--jh-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.jh-value h3 { font-family: var(--jh-head); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.jh-value p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--jh-body); }

.jh-mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.jh-mv__card { position: relative; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--jh-line); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.jh-mv__card--dark { background: var(--jh-navy); border-color: var(--jh-navy); color: #fff; }
.jh-mv__mark { position: absolute; right: -40px; bottom: -60px; height: 280px !important; width: auto; opacity: .14; pointer-events: none; }
.jh-mv__icon { width: 52px; height: 52px; border-radius: 14px; background: #E7F6F3; color: var(--jh-teal-text); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.jh-mv__card--dark .jh-mv__icon { background: var(--jh-teal); color: var(--jh-deep); }
.jh-mv__text { position: relative; font-family: var(--jh-head); font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }

/* ---------- Our Centre: features ---------- */
.jh-feature-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.jh-feature .jh-spec__mark { opacity: .06; }
.jh-feature { position: relative; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--jh-line); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--jh-ease), box-shadow .3s var(--jh-ease); }
.jh-feature:hover { box-shadow: 0 24px 50px rgba(0, 26, 61, .08); }
.jh-feature__icon { position: relative; width: 54px; height: 54px; border-radius: 16px; background: var(--jh-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 60px 0 8px; }
.jh-feature h3 { font-family: var(--jh-head); font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.jh-feature p { font-size: 15px; line-height: 1.6; color: var(--jh-body); }

/* ---------- Specialities ---------- */
.jh-specblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px 64px; padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--jh-line); }
.jh-specblock:first-child { border-top: 0; padding-top: 0; }
.jh-specblock__head { position: relative; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.jh-specblock__num { font-family: var(--jh-head); font-size: 44px; letter-spacing: -.04em; color: #C3CEDC; line-height: 1; }
.jh-specblock__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--jh-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.jh-specblock h2 { font-family: var(--jh-head); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.jh-specblock__head p { max-width: 440px; font-size: 16.5px; line-height: 1.7; color: var(--jh-body); }
.jh-speclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; align-content: start; }
.jh-speclist li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--jh-soft); transition: background .3s, box-shadow .3s; }
.jh-speclist li:hover { background: #fff; box-shadow: 0 18px 40px rgba(0, 26, 61, .08); }
.jh-speclist__check { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--jh-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.jh-speclist__check .ico { stroke-width: 3; }
.jh-speclist strong { display: block; font-family: var(--jh-head); font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.jh-speclist li span:not(.jh-speclist__check) { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--jh-body); }

/* ---------- Coming-soon panel ---------- */
.jh-soonpanel { position: relative; overflow: hidden; max-width: 920px; margin: 0 auto; background: #fff; border-radius: 28px; padding: clamp(36px, 5vw, 64px); box-shadow: 0 30px 80px rgba(0, 26, 61, .14); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.jh-soonpanel__mark { position: absolute; right: -50px; bottom: -70px; height: 280px !important; width: auto; opacity: .07; pointer-events: none; }
.jh-soonpanel__icon { width: 72px; height: 72px; border-radius: 22px; background: var(--jh-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 6px; }
.jh-soonpanel h2 { max-width: 640px; font-family: var(--jh-head); font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.jh-soonpanel p { max-width: 560px; font-size: 16.5px; line-height: 1.7; color: var(--jh-body); }
.jh-soonpanel__actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- FAQ ---------- */
.jh-faq { display: flex; flex-direction: column; gap: 12px; }
.jh-faq details { border-radius: 18px; background: var(--jh-soft); border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.jh-faq details[open] { background: #fff; border-color: var(--jh-line); box-shadow: 0 18px 44px rgba(0, 26, 61, .07); }
.jh-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-family: var(--jh-head); font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.jh-faq summary::-webkit-details-marker { display: none; }
.jh-faq__toggle { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--jh-line); }
.jh-faq__toggle::before, .jh-faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--jh-navy); transform: translate(-50%, -50%); transition: transform .3s var(--jh-ease); }
.jh-faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.jh-faq details[open] .jh-faq__toggle { background: var(--jh-navy); border-color: var(--jh-navy); }
.jh-faq details[open] .jh-faq__toggle::before, .jh-faq details[open] .jh-faq__toggle::after { background: #fff; }
.jh-faq details[open] .jh-faq__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.jh-faq details p { padding: 0 24px 24px; font-size: 15.5px; line-height: 1.7; color: var(--jh-body); }

.jh-emergency { margin-top: 32px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: #FFF4F2; border: 1px solid #FFD9D2; }
.jh-emergency__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #B42318; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.jh-emergency strong { display: block; font-family: var(--jh-head); font-size: 17px; font-weight: 500; color: #7A1A12; }
.jh-emergency div > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: #7A1A12; }
.jh-emergency a { font-weight: 700; text-decoration: underline; }

/* ---------- Contact ---------- */
.jh-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 72px; align-items: start; }
.jh-contact__cards { margin-top: 32px; display: grid; gap: 12px; }
.jh-contact__cards li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--jh-soft); font-size: 15px; line-height: 1.55; color: var(--jh-body); }
.jh-contact__cards li > span { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--jh-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.jh-contact__cards strong { display: block; margin-bottom: 2px; font-family: var(--jh-head); font-size: 17px; font-weight: 500; color: var(--jh-ink); }
.jh-contact__phone { display: inline-block; padding: 6px 0; font-family: var(--jh-head); font-size: 18px; font-weight: 600; color: var(--jh-navy); letter-spacing: -.01em; }
.jh-contact__phone:hover { color: var(--jh-teal-text); }
.jh-contact__em { background: #FFF4F2 !important; }
.jh-contact__em > span { background: #B42318 !important; }
.jh-contact__em a { color: #B42318; font-weight: 700; }
.jh-contact__form { background: #fff; border: 1px solid var(--jh-line); border-radius: 28px; padding: clamp(28px, 3.5vw, 44px); box-shadow: 0 30px 80px rgba(0, 26, 61, .10); scroll-margin-top: 110px; }
.jh-contact__form > h3 { font-family: var(--jh-head); font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.jh-contact__form > p { margin-top: 6px; font-size: 14px; color: var(--jh-body); }

/* ---------- Enquiry form ---------- */
.jh-form { margin-top: 24px; }
.jh-form .notice { margin: 0 0 18px; }
.jh-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.jh-field--full { grid-column: 1 / -1; }
.jh-field textarea { width: 100%; border: 1px solid #E1E6EE; border-radius: 12px; background: #F6F8FB; padding: 14px 16px; font: inherit; font-size: 15px; font-weight: 400; color: var(--jh-ink); resize: vertical; transition: border-color .2s, background .2s; }
.jh-field textarea:focus { outline: none; border-color: var(--jh-teal); background: #fff; }
.jh-field textarea::placeholder { color: #8B95A5; }
.jh-submit--block { margin-top: 20px; width: 100%; height: 58px; }
.jh-form__note { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--jh-body); text-align: center; }
.jh-form__note .ico { color: #B42318; }

/* ---------- Generic content (page.php / index.php) ---------- */
.jh-content { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--jh-body); }
.jh-content > * + * { margin-top: 1.1em; }
.jh-content h2, .jh-content h3 { font-family: var(--jh-head); font-weight: 500; letter-spacing: -.03em; color: var(--jh-ink); line-height: 1.15; margin-top: 1.6em; }
.jh-content h2 { font-size: 32px; }
.jh-content h3 { font-size: 24px; }
.jh-content a:not(.jh-btn) { color: var(--jh-teal-text); text-decoration: underline; }
.jh-content ul { list-style: disc; padding-left: 1.3em; }
.jh-content ol { list-style: decimal; padding-left: 1.3em; }
.jh-content img { border-radius: 18px; }
.jh-post + .jh-post { padding-top: 24px; border-top: 1px solid var(--jh-line); }

/* ---------- CTA band (above footer) ---------- */
.jh-ctaband { padding: clamp(64px, 7vw, 104px) 0; border-top: 1px solid var(--jh-line); }
.jh-ctaband__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.jh-ctaband__inner > div:first-child { flex: 1 1 560px; min-width: 0; }
.jh-ctaband__title { margin-top: 16px; max-width: 720px; font-family: var(--jh-head); font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.jh-ctaband__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (min-width: 700px) and (max-width: 1099px) {
	.jh-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.jh-pagehero { border-radius: 20px; }
	.jh-pagehero__body { padding-top: calc(80px + 32px); padding-bottom: 96px; }
	.jh-pagehero__lead { font-size: 16.5px; }
	.jh-pagehero__mark { opacity: .06; }
	.jh-section--overlap { margin-top: -56px; }
	.jh-faq summary { font-size: 16.5px; padding: 18px; }
	.jh-faq details p { padding: 0 18px 18px; }
	.jh-feature__icon { margin-top: 40px; }
}
