/* =========================================================
   Sujok Homeo Clinic — Pain Management
   Loaded after style-v3.css and homeopathy.css. The hero layout, topics menu and two-column
   layout come from homeopathy.css unchanged; this file sets the hero's photo framing and
   title (scoped to .pm-hero) and styles the article (scoped to .pm-article).
   ========================================================= */

/* ---------- Hero ----------
   Text styled exactly as the Homeopathy hero (homeopathy.css). The people sit on the photo's
   right half, so horizontal crops keep the right side. */
.pm-hero .hp-hero-img { object-position: 100% 30%; }
/* Soft light fade behind the text, so the blurred leaf at the photo's lower left never dims it */
.pm-hero::after {
  content: ""; grid-area: 1 / 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, .45) 30%, rgba(255, 255, 255, 0) 52%);
}
.pm-hero .hp-hero-content { position: relative; z-index: 1; }
/* This photo's empty area is wider than the Homeopathy one's (the man starts at ~54%), so the
   text column can be too */
.pm-hero .hp-hero-content > * { max-width: min(600px, calc(50vw - var(--hp-text-left) - 40px)); }

/* ---------- Article ---------- */
.pm-article {
  --pm-tint: #eef5ec;          /* soft green panels (same as the other topic pages) */
  --pm-radius: 14px;
}
.pm-article .eyebrow { margin-bottom: 10px; }
.pm-article p { line-height: 1.7; }

/* Section heading with a short trailing rule, as on the other topic pages */
.pm-h3 { margin-bottom: 12px; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; color: var(--ink-900); }
.pm-h3::after {   /* the rule follows the last word, even when the heading wraps */
  content: ""; display: inline-block; width: 44px; height: 1.5px; margin-left: 16px;
  vertical-align: middle; background: var(--text-green);
}
.pm-copy { color: var(--ink-500); }

/* Introduction */
.pm-intro {
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(20px, 3vw, 36px);
  align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.pm-title { margin-bottom: 14px; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.01em; color: var(--ink-900); }
.pm-lead { font-size: 1.05rem; color: var(--ink-700); }
.pm-photo { margin: 0; overflow: hidden; border-radius: var(--pm-radius); aspect-ratio: 468 / 250; }
.pm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pm-section { padding-block: 30px; border-bottom: 1px solid var(--line); }

/* Our Approach: two cards joined by a "+" */
.pm-approach {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px;
  margin-top: 18px;
}
.pm-card { padding: 22px; background: var(--pm-tint); border-radius: var(--pm-radius); }
.pm-card .icon-circle { width: 48px; height: 48px; margin-bottom: 14px; background: #ffffff; color: var(--green-800); }
.pm-card .icon-circle .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.pm-card-title { margin-bottom: 6px; font-size: 1.1rem; line-height: 1.3; color: var(--green-800); }
.pm-card p { font-size: .95rem; line-height: 1.55; color: var(--ink-700); }
.pm-plus {
  align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #ffffff; font-size: 1.3rem; font-weight: 600; color: var(--green-800);
}

/* Integrated care + booking prompt */
.pm-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(16px, 2.4vw, 24px); margin-top: 30px;
  padding: 22px clamp(18px, 2.4vw, 28px); background: var(--pm-tint); border-radius: var(--pm-radius);
}
.pm-cta-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #ffffff; color: var(--green-800);
}
.pm-cta-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.pm-cta-title { margin-bottom: 4px; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; color: var(--ink-900); }
.pm-cta-text p { color: var(--ink-700); }
.pm-cta .btn { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* Narrower article column: the button drops under the text */
  .pm-cta { grid-template-columns: auto minmax(0, 1fr); row-gap: 16px; }
  .pm-cta .btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .pm-intro { grid-template-columns: minmax(0, 1fr); }
  .pm-photo { max-width: 560px; }
}

@media (max-width: 820px) {
  /* Hero: photo on top, text below (homeopathy.css); frame the patient and practitioner */
  .pm-hero .hp-hero-img { object-position: 85% 30%; }
  .pm-hero::after { content: none; }
  .pm-hero .hp-hero-content > * { max-width: none; }
}

@media (max-width: 640px) {
  .pm-hero .hp-hero-img { object-position: 80% 30%; }
  .pm-approach { grid-template-columns: minmax(0, 1fr); }
  .pm-plus { justify-self: center; }
  .pm-cta { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .pm-cta .btn { grid-column: auto; justify-self: stretch; justify-content: center; }
}
