/* =========================================================
   Sujok Homeo Clinic — Homeopathy page (homepopathy.pdf)
   Loaded after style-v3.css, which provides the header, footer, colour and type
   tokens, eyebrow, icon and button styles. Every rule here is scoped to
   .homeo-page so no other page is affected.
   ========================================================= */

.homeo-page {
  --hp-menu-w: 300px;                       /* Health Topics column */
  --hp-gutter: clamp(32px, 3.4vw, 48px);    /* fixed space between menu and article */
  --hp-tint: #eef5ec;                       /* pale green bands */
  --hp-radius: 16px;
}
.homeo-page .eyebrow { margin-bottom: 12px; }
.homeo-page .text-green { color: var(--text-green); }

/* ---------- Hero ----------
   Photo and text share one grid cell. The photo fills the band (cover); its left 44% is
   empty, and the text column is capped so it always ends before the remedies begin. */
.hp-hero {
  --hp-text-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: grid; min-height: clamp(320px, 27vw, 420px);
  background: #f6f3ec; overflow: hidden;
}
.hp-hero-img {
  grid-area: 1 / 1; contain: size; aspect-ratio: auto;   /* fills the band without setting its height */
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 62%;
}
.hp-hero-content { grid-area: 1 / 1; align-self: center; padding-block: 44px; }
.hp-hero-content > * { max-width: min(520px, calc(44vw - var(--hp-text-left) - 40px)); }
.hp-hero-title { margin-bottom: 16px; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink-900); }
.hp-hero-title .text-green { display: block; }
.hp-hero-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-700); }

/* ---------- Two-column layout: menu column + article column ---------- */
.hp-layout {
  display: grid; grid-template-columns: var(--hp-menu-w) minmax(0, 1fr);
  column-gap: var(--hp-gutter); align-items: start;
  padding-block: clamp(32px, 3.5vw, 48px) clamp(64px, 7vw, 96px);
}

/* ---------- Health Topics menu ---------- */
.hp-topics {
  overflow: hidden; background: #ffffff; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(23, 61, 43, .08), 0 1px 3px rgba(20, 32, 58, .05);
}
.hp-topics-head {
  padding: 26px 96px 26px 26px;
  background: url("../images/homeopathy/topics-leaf.jpg") right center / auto 100% no-repeat,
              linear-gradient(135deg, #eef6ea 0%, #e6f1e0 100%);
}
.hp-topics-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text-green);
}
.hp-topics-kicker::after { content: ""; width: 40px; height: 1.5px; background: currentColor; }
.hp-topics-title { margin-bottom: 10px; font-size: 2.1rem; line-height: 1.05; color: var(--ink-900); }
.hp-topics-intro { font-size: .9rem; line-height: 1.5; color: var(--ink-700); }

.hp-topic-list { padding: 12px 12px 14px; }
.hp-topic-list li + li .hp-topic { border-top: 1px solid var(--line); }
.hp-topic {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 10px;
  font-size: .98rem; color: var(--ink-700);
}
.hp-topic-icon {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-50); color: var(--ink-900);
}
.hp-topic-icon .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.hp-topic-chevron { margin-left: auto; color: var(--ink-500); transition: transform .2s, color .2s; }
a.hp-topic { border-radius: 10px; transition: background-color .2s, color .2s, border-color .2s; }
.hp-topic-icon { transition: background-color .2s, color .2s; }
/* Hover / keyboard focus: pale green row, green text and icon, chevron nudges right */
a.hp-topic:not(.is-active):hover,
a.hp-topic:not(.is-active):focus-visible { background: #e9f3e6; color: var(--green-800); border-top-color: transparent; }
a.hp-topic:not(.is-active):hover .hp-topic-icon,
a.hp-topic:not(.is-active):focus-visible .hp-topic-icon { background: #ffffff; color: var(--green-800); }
a.hp-topic:hover .hp-topic-chevron,
a.hp-topic:focus-visible .hp-topic-chevron { color: currentColor; transform: translateX(3px); }
.hp-topic-list li:has(a.hp-topic:hover) + li .hp-topic { border-top-color: transparent; }
.hp-topic.is-active, a.hp-topic.is-active:hover {
  background: var(--green-800); color: #ffffff; font-weight: 600; border-top-color: transparent;
}
.hp-topic.is-active .hp-topic-icon { background: rgba(255, 255, 255, .16); color: #ffffff; }
.hp-topic.is-active .hp-topic-chevron { color: #ffffff; }
/* Only the two lines touching the active row are hidden (its own top line and the next row's);
   every other divider stays visible */
.hp-topic-list .hp-topic.is-active,
.hp-topic-list li:has(.is-active) + li .hp-topic { border-top-color: transparent; }

/* Toggle shown only on tablet and phone (homeopathy.js) */
.hp-topics-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 20px;
  border: 0; border-top: 1px solid var(--line); background: #ffffff;
  font: inherit; font-weight: 600; color: var(--ink-900); text-align: left; cursor: pointer;
}
.hp-topics-toggle[hidden] { display: none; }
.hp-topics-toggle .icon { color: var(--green-800); }
.hp-topics-chevron { margin-left: auto; transition: transform .2s; }
.hp-topics-toggle[aria-expanded="true"] .hp-topics-chevron { transform: rotate(180deg); }

/* ---------- Article ---------- */
.hp-article { min-width: 0; color: var(--ink-500); }
.hp-article p { line-height: 1.7; }
.hp-article-head { margin-bottom: 20px; }
.hp-title { font-size: clamp(2.3rem, 3.6vw, 3.2rem); line-height: 1.08; color: var(--ink-900); }

.hp-h2 { margin-bottom: 14px; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; color: var(--ink-900); }
.hp-h2 .text-green { display: block; }
.hp-h3 { margin-bottom: 18px; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.2; color: var(--ink-900); }
.hp-h3--rule { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; color: var(--green-800); }
.hp-h3--rule::after { content: ""; flex: none; width: 48px; height: 1.5px; background: var(--text-green); }
.hp-h4 { margin-bottom: 6px; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink-900); }
.hp-lead { font-size: 1.05rem; color: var(--ink-500); }
.hp-sub { margin-bottom: 22px; }
.hp-num { margin-right: 8px; color: var(--text-green); font-family: var(--font-serif); font-weight: 700; }

.hp-photo { margin: 0; overflow: hidden; border-radius: var(--hp-radius); box-shadow: 0 10px 26px rgba(20, 50, 34, .08); }
.hp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Introduction */
.hp-intro {
  display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: clamp(24px, 3vw, 36px);
  align-items: center; padding-bottom: 32px; margin-bottom: 30px; border-bottom: 1px solid var(--line);
}
.hp-prose p + p { margin-top: 14px; }
.hp-intro-photo { aspect-ratio: 460 / 235; }

/* Key features */
.hp-block { margin-bottom: 30px; }
.hp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-features li { padding-inline: clamp(12px, 1.6vw, 22px); }
.hp-features li:first-child { padding-left: 0; }
.hp-features li + li { border-left: 1px solid var(--line); }
.hp-features .icon-circle { width: 54px; height: 54px; margin-bottom: 12px; }
.hp-features p { font-size: var(--fs-small); line-height: 1.5; }

/* Holistic band */
.hp-band {
  display: grid; grid-template-columns: minmax(0, 236px) minmax(0, 220px) minmax(0, 1fr);
  align-items: center; column-gap: clamp(20px, 2.6vw, 32px); overflow: hidden;
  margin-bottom: clamp(48px, 5vw, 64px); padding-right: 28px; background: var(--hp-tint); border-radius: var(--hp-radius);
}
.hp-band-img { width: 100%; height: 100%; min-height: 116px; object-fit: cover; }
.hp-band-title { font-size: 1.35rem; line-height: 1.25; color: var(--green-800); }
.hp-band-title span { display: block; }
.hp-band-title::after { content: ""; display: block; width: 48px; height: 1.5px; margin-top: 14px; background: var(--text-green); }
.hp-band p { padding-block: 20px; font-size: .95rem; line-height: 1.6; color: var(--ink-700); }

/* What is Unitary Homeopathy? */
.hp-unitary-intro {
  display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); align-items: center;
  gap: 24px; margin-bottom: 28px;
}
.hp-unitary-img {
  display: block; width: 100%; height: auto; border-radius: 0 var(--hp-radius) var(--hp-radius) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hp-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hp-principles li { padding-inline: clamp(12px, 1.4vw, 22px); }
.hp-principles li:first-child { padding-left: 0; }
.hp-principles li + li { border-left: 1px solid var(--line); }
.hp-principle-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hp-principle-head .icon-circle { width: 52px; height: 52px; }
.hp-principle-head .hp-h4 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 1.12rem; line-height: 1.25; }
.hp-principle-head .hp-num { display: block; margin: 0 0 2px; font-size: 1rem; }
.hp-principles p { font-size: .95rem; line-height: 1.65; }

/* The Vital Force */
.hp-vital {
  display: grid; grid-template-columns: minmax(0, 276px) minmax(0, 1fr) minmax(0, 190px);
  align-items: center; column-gap: clamp(20px, 2.6vw, 32px); overflow: hidden;
  margin-block: clamp(36px, 4vw, 52px); padding-right: 28px; background: var(--hp-tint); border-radius: var(--hp-radius);
}
.hp-vital-img { width: 100%; height: 100%; min-height: 174px; object-fit: cover; }
.hp-vital-body { padding-block: 26px; }
.hp-vital-body .hp-h2 { margin-bottom: 10px; }
.hp-vital-body p:last-child { font-size: .95rem; color: var(--ink-700); }
.hp-quote { margin: 0; padding-block: 20px; text-align: center; color: var(--green-800); }
.hp-quote .icon { width: 40px; height: 40px; margin-bottom: 8px; stroke-width: 1.2; }
.hp-quote p { font-family: var(--font-serif); font-style: italic; font-size: 1rem; line-height: 1.5; }
.hp-quote p::before { content: "“ "; }
.hp-quote p::after { content: "”"; }

/* Preparation */
.hp-prep { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); gap: clamp(24px, 3vw, 36px); align-items: end; }
.hp-prep .hp-h2 { font-size: clamp(1.5rem, 2vw, 1.8rem); }
.hp-prep-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.hp-prep-item { display: flex; align-items: flex-start; gap: 14px; padding-right: clamp(12px, 1.6vw, 22px); }
.hp-prep-item + .hp-prep-item { padding: 0 0 0 clamp(12px, 1.6vw, 22px); border-left: 1px solid var(--line); }
.hp-prep-item .icon-circle { width: 54px; height: 54px; }
.hp-prep-item .hp-h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.12rem; }
.hp-prep-item .hp-num { margin-right: 6px; }
.hp-prep-item p { font-size: .92rem; line-height: 1.6; }
.hp-prep-photo { aspect-ratio: 335 / 184; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hp-features, .hp-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hp-features li:nth-child(odd), .hp-principles li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hp-band { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .hp-band p { grid-column: 2; padding-top: 0; }
  .hp-band-img { grid-row: span 2; }
  .hp-band-title { padding-top: 22px; }
  .hp-vital { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .hp-vital-img { grid-row: span 2; }
  .hp-quote { grid-column: 2; padding-top: 0; text-align: left; }
  .hp-quote .icon { display: none; }
  .hp-prep { grid-template-columns: minmax(0, 1fr); }
  .hp-prep-photo { max-width: 460px; }
}

@media (max-width: 900px) {
  /* Menu stacks above the article and collapses behind a toggle */
  .hp-layout { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .hp-topics-head { padding: 20px 96px 20px 20px; }
  .hp-topics-title { font-size: 1.7rem; }
  .hp-intro, .hp-unitary-intro { grid-template-columns: minmax(0, 1fr); }
  .hp-intro-photo { max-width: 560px; }
  .hp-unitary-img { max-width: 520px; border-radius: var(--hp-radius); -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 820px) {
  /* Hero: photo on top, heading below */
  .hp-hero { min-height: 0; }
  .hp-hero-img { grid-area: auto; contain: none; height: auto; aspect-ratio: 16 / 7; object-position: 92% 55%; }
  .hp-hero-content { grid-area: auto; padding-block: 24px 4px; }
  .hp-hero-content > * { max-width: none; }
}

@media (max-width: 640px) {
  .hp-features, .hp-principles, .hp-prep-items { grid-template-columns: minmax(0, 1fr); }
  .hp-features li, .hp-principles li { padding: 0; border-left: 0; }
  .hp-features li + li, .hp-principles li + li { padding-top: 22px; border-top: 1px solid var(--line); }
  .hp-features li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .hp-features .icon-circle { grid-row: span 2; margin-bottom: 0; }
  .hp-prep-item + .hp-prep-item { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .hp-band, .hp-vital { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .hp-band-img, .hp-vital-img { grid-row: auto; aspect-ratio: 16 / 7; height: auto; min-height: 0; }
  .hp-band-title, .hp-band p, .hp-vital-body, .hp-quote { grid-column: auto; padding-inline: 20px; }
  .hp-quote { padding-bottom: 22px; }
  .hp-hero-img { aspect-ratio: 4 / 3; object-position: 78% 60%; }
}
