/* =========================================================================
   GLP-1 — page-specific sections beyond Phero/Bio/Pathway.
   Enqueued as smudgechild-glp1-sections, only on templates/glp1.php.
   ========================================================================= */

/* ─────────────────────────────────────────────────────────────────────────
   REVEAL-ON-SCROLL — base rule + stagger steps.
   Bio Blocks, Clinical Pathway and Clinical Evidence mark elements .reveal;
   this is the page-wide base rule for them on this template (custom.css's
   version is scoped to .faqs-section).
   ───────────────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════ CLINICAL EVIDENCE (stat cards) ═══════════════════ */
.evidence { position: relative; background: var(--bg); padding: clamp(72px, 11vh, 140px) 0 clamp(140px, 19vh, 230px); }
/* dark half of the connector, overlying the bottom of the evidence section, meeting the seam */
.evidence__connector {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 1.5px; height: clamp(80px, 12vh, 130px);
  background: linear-gradient(180deg, rgba(12,12,13,0) 0%, rgba(12,12,13,0.4) 55%, rgba(12,12,13,0.7) 100%);
}
.evidence__inner { width: min(1240px, 92vw); margin: 0 auto; }
.evidence__head { max-width: 760px; margin: 0 auto clamp(40px, 5.4vh, 60px); text-align: center; }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.ev-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(240px, 26vh, 300px); padding: clamp(34px, 3.2vw, 46px) clamp(24px, 2.2vw, 32px);
  border-radius: 20px; background: #ffffff; border: 1px solid var(--line);
  box-shadow: 0 26px 60px -44px rgba(12, 12, 13, 0.3);
}
.ev-card__num {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; line-height: 0.95;
  font-size: clamp(44px, 4.6vw, 62px); color: var(--accent); margin: 0 0 14px;
}
.ev-card__label { font-family: var(--sans); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.5; color: var(--ink); margin: 0; max-width: 26ch; text-wrap: pretty; }
.ev-card__cite { margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.evidence__foot { margin: clamp(26px, 3.4vh, 36px) 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); text-align: center; }
@media (max-width: 880px) { .ev-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Lumart, 13 Nov (phones): the two GLP-1 blocks use the Hormones page's
   card layout (hormones-sections.css): a wide rounded picture in the page
   gutter, then a short centred title and grey text, and one button, after
   the last block. */
@media (max-width: 860px) {
  .bio.bio { padding-top: 28px; padding-bottom: 28px; }
  .bio .bio__inner { gap: 22px; }
  .bio .bio__media { width: 100%; aspect-ratio: 3 / 2; max-height: none; margin: 0; border-radius: 16px; box-shadow: none; }
  .bio .bio__copy, .bio.bio--mirror .bio__copy { text-align: center; }
  .bio.bio .section-title.bio__title { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
  .bio .bio__body { font-size: 17px; line-height: 1.45; color: var(--ink-soft); margin: 10px auto 0; max-width: 34ch; }
  .bio:has(+ .bio) .bio__actions { display: none; }
  .bio .bio__actions { justify-content: center; }
}
/* the phone-only button at the end of the last block (glp1-sections.js), and
   the points centred like the rest of the card, without the side marks */
.bio__actions--end { display: none; }
@media (max-width: 860px) {
  .bio .bio__actions.bio__actions--end { display: flex; margin-top: 28px; }
  .bio .bio__points { align-items: center; text-align: center; gap: 18px; margin-top: 26px; }
  .bio .bio__point { display: block; max-width: 34ch; }
  .bio .bio__mark { display: none; }
}
/* Lumart, 13 Nov: more room between the hero and the first card on phones. */
@media (max-width: 860px) {
  .phero + .bio.bio { padding-top: 64px; }
}

/* Lumart, 15 Nov 12:39 (phones): the evidence cards are smaller and take the
   For employers stat cards' look (fine grain, deep OUTLIV orange, warm glow),
   one surface across the stack: each card shows its third of the gradients. */
@media (max-width: 880px) {
  .ev-grid { gap: 8px; max-width: 520px; }
  .ev-card {
    --g: 8px;
    min-height: 0; padding: 20px 20px 18px; align-items: flex-start; text-align: left;
    border: 0; box-shadow: none; overflow: hidden; color: #fff;
    background-color: #a8390a;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 90% 70% at 18% 100%, rgba(255, 150, 90, 0.55) 0%, rgba(255, 150, 90, 0) 70%),
      linear-gradient(165deg, #c4470e 0%, #a2380a 55%, #7d2a05 100%);
    background-size: 180px 180px, 100% calc(300% + 2 * var(--g)), 100% calc(300% + 2 * var(--g));
  }
  .ev-card:nth-child(1) { background-position: 0 0, 0 0, 0 0; }
  .ev-card:nth-child(2) { background-position: 0 0, 0 50%, 0 50%; }
  .ev-card:nth-child(3) { background-position: 0 0, 0 100%, 0 100%; }
  .ev-card__num { color: #fff; font-size: 40px; margin: 0 0 8px; }
  .ev-card__label { color: #fff; font-size: 15px; line-height: 1.42; max-width: none; }
  .ev-card__cite { color: rgba(255, 255, 255, 0.72); padding-top: 14px; font-size: 10.5px; }
}

/* Lumart, 17 Nov (desktop): the same card design as phones (fine grain, deep
   OUTLIV orange, warm glow, white text, left aligned). Side by side, each card
   shows its third of one surface, left to right. */
@media (min-width: 881px) {
  .ev-grid { gap: 12px; }
  .ev-card {
    --g: 12px;
    align-items: flex-start; text-align: left;
    padding: clamp(28px, 2.6vw, 36px);
    border: 0; box-shadow: none; overflow: hidden; color: #fff;
    background-color: #a8390a;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 70% 90% at 12% 100%, rgba(255, 150, 90, 0.55) 0%, rgba(255, 150, 90, 0) 70%),
      linear-gradient(105deg, #c4470e 0%, #a2380a 55%, #7d2a05 100%);
    background-size: 180px 180px, calc(300% + 2 * var(--g)) 100%, calc(300% + 2 * var(--g)) 100%;
  }
  .ev-card:nth-child(1) { background-position: 0 0, 0 0, 0 0; }
  .ev-card:nth-child(2) { background-position: 0 0, 50% 0, 50% 0; }
  .ev-card:nth-child(3) { background-position: 0 0, 100% 0, 100% 0; }
  .ev-card__num { color: #fff; }
  .ev-card__label { color: #fff; }
  .ev-card__cite { color: rgba(255, 255, 255, 0.72); }
}

/* Lumart, 4 Dec: the doctor card's shadow was cut off at the bottom. Each
   section is its own layer (footer.css: position:relative; z-index:1, white
   background), and the shadow reaches further than the mirror block's short
   bottom padding, so the next block painted over it. Lift that block above
   the next one. */
.bio.bio--mirror { z-index: 2; }
/* Lumart, 4 Dec 09:45: the evidence cards use his burnt-orange texture (the
   same one as the For Employers risk cards), still one surface across the
   three on desktop (left to right); on phones each card shows the whole texture. */
.ev-card {
  background-color: #a8390a;
  background-image: linear-gradient(rgba(20, 10, 6, 0.18), rgba(20, 10, 6, 0.18)), url("../images/risk-cards-orange.webp");
  background-repeat: no-repeat;
}
@media (min-width: 881px) {
  .ev-card { background-size: 100% 100%, calc(300% + 2 * var(--g)) 100%; }
  .ev-card:nth-child(1) { background-position: 0 0, 0 0; }
  .ev-card:nth-child(2) { background-position: 0 0, 50% 0; }
  .ev-card:nth-child(3) { background-position: 0 0, 100% 0; }
}
@media (max-width: 880px) {
  .ev-card { background-size: 100% 100%, cover; background-position: 0 0, center; }
}
