/* ═══════════════════ SHARED "BIO" SECTION (copy | media, repeatable) ═══════════════════
   Used on GLP-1 (Intro + Biological Approach) and Hormone Optimisation
   (Men / Women / Thyroid). Only copy, media, mirror state and the
   points-vs-CTA choice differ per block (ACF, group_bio_blocks.json). */

.bio { background: #ffffff; padding: clamp(72px, 11vh, 140px) 0; }
.bio__inner {
  width: min(1240px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: clamp(40px, 6vw, 92px);
}
.bio__copy { max-width: 560px; }
.bio__title { margin-top: 0; }
.bio__body { margin-top: 20px; max-width: 52ch; }

.bio__points { list-style: none; margin: clamp(30px, 4vh, 44px) 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(20px, 2.6vh, 28px); }
.bio__point { display: flex; align-items: flex-start; gap: 16px; }
.bio__mark { flex: none; width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.bio__point-title { font-family: var(--sans); font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 5px; }
.bio__point-text { font-family: var(--sans); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

.bio__media {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
  background: #e7e4dd; border: 1px solid var(--line); box-shadow: 0 40px 90px -52px rgba(12,12,13,0.4);
}
.bio__media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.bio__actions { margin-top: clamp(28px, 3.6vh, 40px); }

/*
 * Mirror variant: media left, copy right. Adjacent-section padding collapses
 * into a single gap via the sibling selector below.
 */
.bio--mirror { padding-bottom: clamp(36px, 5vh, 64px); }
.bio--mirror + .bio { padding-top: clamp(36px, 5vh, 64px); }
.bio--mirror .bio__inner { grid-template-columns: 0.98fr 1.02fr; }

@media (max-width: 880px) {
  .bio__inner, .bio--mirror .bio__inner { grid-template-columns: 1fr; gap: clamp(32px, 5vh, 48px); }
  .bio__copy { max-width: none; }
  .bio--mirror .bio__copy { text-align: left; }
  .bio__media { order: -1; aspect-ratio: 4 / 5; max-height: 460px; }
  .bio__title { text-wrap: balance; }
}

/* Phones: block titles keep the site's 32px section-heading size (they're
   excluded from the global h2 rule so the Hormones page can set its own). */
@media (max-width: 860px) {
  .bio .section-title.bio__title { font-size: 32px; }
}

/* Lumart, 12 Nov: no thin border around the bio pictures. */
.bio__media { border: 0; }

/* Lumart, 15 Nov (GLP-1, phones), after Everlab: heading, text and button
   left aligned, then the second heading and text, then the three points as
   swipeable picture cards with the heading and line under each picture.
   inc/bio-section.php renders .bio-m on GLP-1 only; desktop is unchanged. */
.bio-m { display: none; }
@media (max-width: 860px) {
  .bio--has-m { display: none; }
  .bio-m { display: block; background: #fff; padding: 64px 0 72px; }
  .bio-m__head { padding: 0 22px; text-align: left; }
  .bio-m__title { font-family: var(--sans); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: balance; }
  .bio-m__sub { font-family: var(--sans); font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); margin: 14px 0 0; text-wrap: pretty; }
  .bio-m__cta { display: inline-flex; margin-top: 24px; }
  .bio-m__head--2 { margin-top: 56px; }
  .bio-m__title2 { font-family: var(--sans); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin: 0; text-wrap: balance; }
  .bio-m__cards {
    list-style: none; margin: 28px 0 0; padding: 0 22px; display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 22px; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .bio-m__cards::-webkit-scrollbar { display: none; }
  .bio-m__card { flex: none; width: 80vw; max-width: 340px; scroll-snap-align: start; }
  .bio-m__pic { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #e7e4dd; }
  .bio-m__pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .bio-m__h { font-family: var(--sans); font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 16px 0 6px; text-align: left; }
  .bio-m__p { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 0; text-align: left; text-wrap: pretty; }
}
/* Lumart, 15 Nov: the GLP-1 phone intro's heading, text and button centred. */
@media (max-width: 860px) {
  .bio-m__head { text-align: center; }
  .bio-m__sub { margin-left: auto; margin-right: auto; max-width: none; }
  .bio-m__cards { margin-top: 44px; }
}

/* Dylan, 25 Nov: the women's hormone photo is tall; keep her face in the card's crop. */
img[src*="hormone-intro-women"] { object-position: 50% 30%; }
img[src*="hormone-intro-thyroid"] { object-position: 66% 45%; }
