/* ======================================================================
   WordPress + Elementor adapter. Makes Elementor's containers and widgets
   behave like the plain HTML the design was built with.
   Classes from the design (wrap, hero__grid, help, ...) are set on Elementor
   containers and widgets under Advanced > CSS Classes.
   ====================================================================== */

/* Elementor defaults off: no container padding, no widget spacing */
.hf { --kit-widget-spacing: 0px; --widgets-spacing: 0px 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; }
.hf .e-con {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px 0px; --row-gap: 0px; --column-gap: 0px;
  --container-default-padding-top: 0px; --container-default-padding-right: 0px; --container-default-padding-bottom: 0px; --container-default-padding-left: 0px;
  --margin-top: 0px; --margin-bottom: 0px; --min-height: 0px; --border-radius: 0;
}
.hf .elementor-widget:not(:last-child) { margin-block-end: 0; }
.hf .elementor-widget-container { margin: 0; padding: 0; }
.hf .elementor-element { --flex-grow: 0; --flex-shrink: 1; }
.hf .e-con > .elementor-widget, .hf .e-con > .e-con { max-width: 100%; }

/* headings and text inherit the design's type */
.hf .elementor-widget-heading .elementor-heading-title { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; margin: 0; padding: 0; }
.hf .elementor-widget-text-editor { color: inherit; }
.hf .elementor p, .hf .elementor ul, .hf .elementor ol, .hf .elementor dl { margin-block: 0; }
.hf .elementor-widget-text-editor p + p { margin-top: .8em; }
.hf .elementor img { max-width: 100%; height: auto; }

/* flex rows the design expects (Elementor containers default to columns) */
.hf .head-row { flex-direction: row; }
@media (min-width: 1000px) { .hf .hero--full { flex-direction: row; flex-wrap: wrap; } }

/* image widgets that fill their box */
.hf-fill, .hf-fill > .elementor-widget-container { height: 100%; }
.hf-fill img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
@media (min-width: 1000px) { .hf .hero__bg { position: absolute; inset: 0; z-index: 0; } }
@media (max-width: 999px) { .hf .hero__bg { position: relative; inset: auto; height: 320px; width: 100%; } .hf .hero__scrim { height: 320px; } }
.hf .hero__bg img { object-position: 78% 30%; }
.hf .help__img, .hf .why__photo, .hf .post__img { overflow: hidden; }
.hf .final__photo { position: relative; }
.hf .final__photo > .hf-fill { position: absolute; inset: 0; }
.hf .final__photo .final__bubble { z-index: 2; }
.hf .final__photo > .elementor-widget-html { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hf .why__visual > .elementor-widget-html { position: static; }
.hf .page-hero__photo { overflow: hidden; }

/* hero */
.hf .hero__actions p, .hf-btns p { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hf .hero__side-wrap { align-self: end; }
.hf .hero--full > .elementor-widget-html { position: static; }

/* buttons written as plain links in text widgets: icons drawn with CSS */
.ico-wa::before, .final__phone::before, .link-arrow::after {
  content: ""; flex: none; display: inline-block; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.ico-wa::before { --m: url(icons/whatsapp-logo.svg); width: 22px; height: 22px; }
.final__phone::before { --m: url(icons/phone.svg); width: 22px; height: 22px; }
.link-arrow::after { --m: url(icons/arrow-right.svg); width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow .ico { display: none; }
.hf .elementor a.btn { text-decoration: none; }
.hf .elementor a.btn--wa, .hf .elementor a.btn--wa:hover { color: #fff; }
.hf .elementor a.btn--light { color: var(--ultra); }

/* text widgets inside design blocks */
.hf .step__d { color: var(--ink-2); font-size: 18px; max-width: 34ch; }
.hf .step:nth-child(2) .step__d { color: var(--ink-2); }
.hf .help__body .hf-text { color: var(--ink-2); font-size: 16px; flex: 1; }
.hf .hosp__copy .hf-text { color: #C9D4F5; font-size: 18px; max-width: 46ch; }
.hf .final__copy .hf-text { color: #DCE4FA; font-size: 19px; max-width: 40ch; }
.hf .why__lede, .hf .lede-2, .hf .head-row__aside { display: block; }

/* blog teaser counts */
.posts--n2 { grid-template-columns: 1fr 1fr !important; }
.posts--n3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 759px) { .posts--n2, .posts--n3 { grid-template-columns: 1fr !important; } }

/* WordPress menu inside the pill header */
.site-head .nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.site-head .nav li { display: contents; }
@media (max-width: 899px) { .site-head .nav ul { display: flex; flex-direction: column; } }

/* hero entrance: hide before the animation runs (same as the data-attribute rules) */
.js:not(.is-export):not(.reduced):not(.no-anim) .hf-hero-title,
.js:not(.is-export):not(.reduced):not(.no-anim) .hf-hero-in { opacity: 0; }
.js:not(.is-export):not(.reduced):not(.no-anim) .hf-hero-photo:not(.hero__bg) { clip-path: inset(100% 0 0 0 round 44px); }
.js:not(.is-export):not(.reduced):not(.no-anim) .hero__bg.hf-hero-photo { opacity: 0; }
.js:not(.is-export):not(.reduced):not(.no-anim) .hf-split { visibility: hidden; }
.hf-editing .hf-hero-title, .hf-editing .hf-hero-in, .hf-editing .hf-split, .hf-editing [data-hero-chat],
.hf-editing [data-hero-float], .hf-editing [data-hero-capsule] { opacity: 1 !important; visibility: visible !important; }
.hf-editing .hf-hero-photo { clip-path: none !important; opacity: 1 !important; }

/* ======================================================================
   Blog templates (home.php, single.php, archive.php)
   ====================================================================== */
.hf-blog .page-hero, .hf-post .page-hero { margin-bottom: 0; }
.hf-post__meta { margin-top: 18px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.hf-post__img { max-width: 960px; margin: -40px auto 0; padding-inline: var(--gutter); position: relative; z-index: 2; }
.hf-post__img img { width: 100%; height: auto; border-radius: 28px 28px 28px 8px; box-shadow: 0 24px 50px rgba(5,38,154,.12); }
.hf-content { max-width: 720px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter); font-size: 18px; line-height: 1.75; color: var(--ink); }
.hf-content > * + * { margin-top: 1.1em; }
.hf-content h2 { font: 400 clamp(26px, 3vw, 34px)/1.2 var(--serif); color: var(--ultra); margin-top: 1.8em; }
.hf-content h3 { font: 600 21px/1.3 var(--sans); margin-top: 1.5em; }
.hf-content a { color: var(--btn); font-weight: 600; }
.hf-content ul, .hf-content ol { padding-left: 1.3em; list-style: revert; }
.hf-content blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--soft); border-radius: 18px 18px 18px 6px; border: 0; }
.hf-content img { border-radius: 18px; }
.hf-post__cta { max-width: 720px; margin: 0 auto clamp(56px, 7vw, 96px); padding: 0 var(--gutter); }
.hf-post__cta .blog-aside { position: static; }
.hf-pager { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.hf-pager .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--card-line); text-decoration: none; color: var(--ink); font-weight: 600; }
.hf-pager .page-numbers.current { background: var(--ultra); border-color: var(--ultra); color: #fff; }
.hf-empty { padding: 40px; text-align: center; color: var(--ink-2); }

/* fixes from the test install */
.hf .hero--full .hero__grid { z-index: 2; }
.hf .hero__float { z-index: 3; }
.hf .help__img.hf-fill, .hf .why__photo.hf-fill, .hf .deliver__photo.hf-fill { height: auto; }
.hf .help__img.hf-fill > .elementor-widget-container, .hf .why__photo.hf-fill > .elementor-widget-container, .hf .deliver__photo.hf-fill > .elementor-widget-container { height: 100%; }
.hf .help__img.hf-fill img { aspect-ratio: 4 / 3; }

/* ======================================================================
   Step 3 (20 Nov 2026): condition explorer, facts band, hospital feature cards
   ====================================================================== */

/* condition explorer */
.cx { display: grid; gap: 20px; background: var(--white); border: 1px solid var(--card-line); border-radius: 28px 28px 28px var(--tail); padding: clamp(18px, 3vw, 32px); box-shadow: 0 20px 44px rgba(5,38,154,.06); }
@media (min-width: 960px) { .cx { grid-template-columns: 300px 1fr; gap: 40px; } }
.cx__tabs { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.cx__tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; font: 500 15px/1.2 var(--sans); color: var(--ink); background: var(--soft); border: 1px solid var(--card-line); border-radius: 999px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.cx__tab .ico { width: 20px; height: 20px; color: var(--ultra); }
.cx__tab:hover { border-color: #B9CDEA; }
.cx__tab[aria-selected="true"] { background: var(--ultra); border-color: var(--ultra); color: var(--white); }
.cx__tab[aria-selected="true"] .ico { color: var(--white); }
@media (max-width: 959px) { .cx__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .cx__tab { flex: none; } }
.cx__panel[hidden] { display: none; }
.cx__panel { animation: cxIn .35s ease both; }
@keyframes cxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cx__panel { animation: none; } }
.cx__t { font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--serif); color: var(--ultra); }
.cx__lede { margin-top: 8px; color: var(--ink-2); }
.cx__cols { margin-top: 20px; display: grid; gap: 22px; }
@media (min-width: 700px) { .cx__cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
.cx__cols h4 { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.cx__cols ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cx__cols li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.cx__cols li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--orange); }
.cx__cols .cx__q li::before { background: var(--sky); }
.cx__foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cx__note { font-size: 14px; color: var(--ink-2); }

/* facts band */
.facts-band { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--card-line); border: 1px solid var(--card-line); border-radius: 24px 24px 24px var(--tail); overflow: hidden; text-align: left; }
@media (min-width: 900px) { .facts-band { grid-template-columns: repeat(4, 1fr); } }
.facts-band > div { background: var(--white); padding: 24px 22px; }
.facts-band b { display: block; font: 400 clamp(32px, 3.4vw, 46px)/1 var(--serif); color: var(--ultra); }
.facts-band b small { font-size: .45em; color: var(--orange); margin-left: 2px; }
.facts-band span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* hospital feature cards */
.hosp__feats { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 4px; }
.hosp__feats > div { padding: 16px 16px 14px; border-radius: 18px 18px 18px var(--tail); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.hosp__feats b { display: block; font: 600 16px/1.3 var(--sans); color: var(--white); }
.hosp__feats span { display: block; margin-top: 4px; font-size: 14.5px; color: #C9D4F5; }
@media (max-width: 480px) { .hosp__feats { grid-template-columns: 1fr; } }

/* ======================================================================
   Step 4 (20 Nov 2026): About page
   ====================================================================== */
.about-why { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about-why { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.about-why__photo { aspect-ratio: 4 / 4.4; border-radius: var(--frame); overflow: hidden; }
.about-why .hf-text p + p, .duo__card p + p { margin-top: .9em; }
.about-why .hf-text { color: var(--ink-2); font-size: 18px; margin-top: 18px; }
.supply-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .supply-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .supply-grid { grid-template-columns: repeat(4, 1fr); } }
.supply-card { padding: 26px 24px; background: var(--white); border: 1px solid var(--card-line); border-radius: 24px 24px 24px var(--tail); display: grid; gap: 10px; align-content: start; }
.supply-card .help__ico { margin-bottom: 4px; }
.supply-card h3 { font: 400 22px/1.2 var(--serif); color: var(--ultra); }
.supply-card p { color: var(--ink-2); font-size: 16px; }
.duo { display: grid; gap: 16px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 20px; } }
.duo__card { padding: clamp(26px, 3.5vw, 40px); border-radius: 28px 28px 28px var(--tail); background: var(--white); border: 1px solid var(--card-line); }
.duo__card h2 { font: 400 clamp(26px, 2.8vw, 34px)/1.15 var(--serif); color: var(--ultra); margin-bottom: 14px; }
.duo__card p { color: var(--ink-2); font-size: 17px; }
.duo__card--navy { background: linear-gradient(160deg, #06289F 0%, #031B6E 100%); border-color: transparent; }
.duo__card--navy h2 { color: var(--white); }
.duo__card--navy p, .duo__card--navy li { color: #C9D4F5; }
.duo__card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.duo__card li { display: flex; gap: 10px; color: var(--ink-2); }
.duo__card li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--orange); }
.duo__card .btn { margin-top: 22px; }
.vision { background: var(--soft); padding-block: clamp(64px, 8vw, 104px); text-align: center; }
.vision__text { font: 400 clamp(24px, 2.7vw, 36px)/1.35 var(--serif); color: var(--ultra); max-width: 32ch; margin-inline: auto; }
.vision__text .said { background-image: none; background-color: var(--btn); color: var(--white); }
.duo__card--navy li { color: #DCE4FA; }
.vision .h2 { margin-bottom: 20px; }
.hf .vision .vision__text { max-width: 32ch; margin: 20px auto 0; color: var(--ultra); }
.hf .vision .vision__text p { max-width: 34ch; margin-inline: auto; }
