/* ==========================================================================
   FutureNowRx V3: V1 sections and colours, product photography instead of
   the 3D models, and full-bleed product scenes on the hero cards.
   Loads after styles.css and only overrides it.
   ========================================================================== */

/* ---------- Hero cards: product scene fills the card ---------- */
.hcard__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center 70% / cover no-repeat;
  transition: transform 1.2s var(--ease-out);
}
.hcard:hover .hcard__photo { transform: scale(1.04); }
.hcard--wm .hcard__photo { background-image: url(../img/editorial/hero-semaglutide-dark.webp); }
.hcard--hair .hcard__photo { background-image: url(../img/editorial/hero-tretinoin-dark.webp); }
.hcard--sh .hcard__photo { background-image: url(../img/editorial/hero-tadalafil-dark.webp); }

/* dark scenes: soft shade on the left and bottom keeps the white text and button clear */
.hcard--wm::before, .hcard--hair::before, .hcard--sh::before {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(4, 16, 28, .62) 0%, rgba(4, 16, 28, .3) 38%, rgba(4, 16, 28, 0) 62%),
    linear-gradient(0deg, rgba(4, 16, 28, .5) 0%, rgba(4, 16, 28, 0) 32%);
}
.hcard .hcard__text, .hcard .hcard__cta { position: relative; z-index: 2; }
.hcard__title, .hcard__sub, .hcard__cta { text-shadow: 0 1px 14px rgba(0, 0, 0, .3); }
.hcard--wm .hcard__cta i, .hcard--hair .hcard__cta i, .hcard--sh .hcard__cta i {
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Product photography (cards, minis, treatments page) ---------- */
/* transparent cut-outs: no filters, sized with breathing room above and below */
.v2-prod { filter: none !important; transform: none !important; }
.tx__media .v2-prod { height: 236px; width: auto; margin: 6px auto 14px; }
.sk__media .v2-prod { height: 236px; width: auto; margin: 6px auto 14px; }
.minis .v2-prod.mini__vial { height: 128px; width: auto; margin: -8px -6px -10px; }
.titem .v2-prod { object-fit: cover; }
@media (max-width: 640px) {
  .tx__media .v2-prod { height: 210px; margin: 4px auto 10px; }
  .sk__media .v2-prod { height: 210px; margin: 4px auto 10px; }
  .minis .v2-prod.mini__vial { height: 112px; margin: -8px 0 -6px; }
}

/* ---------- Treatment cards: short description + "Read more" (Karpa claim-free copy) ---------- */
.tx__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 246, 240, .78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tx__more {
  margin-top: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.tx__more:hover { text-decoration-thickness: 2px; }
.tx__more:focus-visible, .tx__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
/* light sections and the skincare slider */
.wm--sky .tx__desc, .wm--sand .tx__desc, .sk .tx__desc { color: var(--ink-70); }
.wm--sky .tx__more, .sk .tx__more { color: var(--teal); }
.wm--sand .tx__more { color: var(--charcoal); }
.sk .tx__desc { margin-top: 10px; }
.sk .tx__more { align-self: flex-start; }
/* the card is no longer one big link, so its CTA is a link of its own */
.tx__link, .sk__link { text-decoration: none; width: 100%; }

/* role disclosure under "How it works" */
.hiw__copy .hiw__role { margin-top: 10px; max-width: 420px; font-size: 13px; line-height: 1.5; opacity: .7; }

/* ---------- Treatment popup ---------- */
.txm {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--ivory);
  color: var(--charcoal);
  box-shadow: 0 40px 80px -30px rgba(0, 14, 30, .6);
  overflow: auto;
  overscroll-behavior: contain;
}
.txm::backdrop { background: rgba(0, 18, 38, .55); backdrop-filter: blur(6px); }
.txm[open] { animation: modal-in .6s var(--ease-out); }
.txm[open]::backdrop { animation: fade-in .4s ease-out; }
.txm.is-closing { animation: modal-out .3s ease-in forwards; }
.txm.is-closing::backdrop { animation: fade-out .3s ease-in forwards; }
.txm__inner { position: relative; display: grid; grid-template-columns: 280px 1fr; }
.txm__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 26, 53, .06);
  transition: background-color .2s, transform .4s var(--ease-out);
}
.txm__close:hover { background: rgba(0, 26, 53, .12); transform: rotate(90deg); }
.txm__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.txm__media {
  display: grid;
  place-items: center;
  padding: 28px 12px;
  background: radial-gradient(70% 60% at 50% 55%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%), #EFE9E0;
}
.txm__media img { width: 100%; max-width: 260px; height: auto; }
.txm__body { padding: 40px 36px 34px; }
.txm__tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(3, 68, 94, .08);
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
}
.txm__title {
  margin-top: 14px;
  padding-right: 40px;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.txm__meta { margin-top: 6px; font-size: var(--fs-body-sm); color: var(--ink-70); }
.txm__desc { margin-top: 16px; font-size: 16px; line-height: 1.6; }
.txm__label { margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); }
.txm__formlist { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.txm__formlist li { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(0, 26, 53, .07); }
.txm__formname { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.txm__badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 131, 75, .12);
  color: #7A5C2E;
  font-size: 11.5px;
  font-weight: 500;
}
.txm__formtext { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.txm__note {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(3, 68, 94, .06);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-70);
}
.txm__role { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-70); }
.txm__actions { margin-top: 22px; }
.txm__cta { width: 100%; justify-content: space-between; padding-left: 26px; }
.txm__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .txm__inner { grid-template-columns: 1fr; }
  .txm__media { padding: 22px 12px 8px; }
  .txm__media img { max-width: 180px; }
  .txm__body { padding: 22px 22px 26px; }
  .txm__title { font-size: 27px; padding-right: 0; }
}

/* ---------- Logo 5C (ring lockup, about 4:1): taller than the old one-line wordmark ---------- */
.logo__img { height: 50px; }
.footer .logo__img { height: 60px; }
.goals__bar .logo__img { height: 44px; }
@media (max-width: 960px) { .logo__img { height: 42px; } }
@media (max-width: 640px) { .logo__img { height: 38px; } }
