/*
 * Rejuvena legacy-treatment split hero.
 * Scoped to pages explicitly enabled by 84-rj-treatment-cinematic-split.php.
 */
.rjc-page .rj-tcs-hero,
.rj-tcs-hero {
  --rj-tcs-navy: #062033;
  --rj-tcs-gold: #C8A96B;
  --rj-tcs-cream: #F5F4F1;
  position: relative;
  min-height: min(760px, 92svh);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 84% 18%, rgba(200, 169, 107, .10), transparent 72%),
    #062033;
  color: var(--rj-tcs-cream) !important;
}

.rjc-page .rj-tcs-hero {
  padding: calc(var(--rjc-hdr-h, 104px) + 38px) clamp(20px, 5vw, 44px) clamp(54px, 8vh, 88px) !important;
}

.rj-tcs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(6, 32, 51, .12), transparent 60%);
}

.rj-tcs-hero .hf-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: clamp(38px, 6vw, 82px);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.rj-tcs-hero .hf-hero__content {
  min-width: 0;
}

.rj-tcs-hero .hf-eyebrow {
  display: inline-block;
  margin: 0 0 1.2rem !important;
  color: var(--rj-tcs-gold) !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .25em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rjc-page .rj-tcs-hero .hf-h1 {
  max-width: 13.2ch;
  margin: 0 0 .52em !important;
  color: var(--rj-tcs-cream) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 4.7vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.02;
  text-wrap: balance;
}

.rjc-page .rj-tcs-hero .hf-h1 em {
  color: var(--rj-tcs-gold) !important;
  font-weight: 600;
}

.rjc-page .rj-tcs-hero .hf-lede {
  max-width: 50ch;
  margin: 0 !important;
  color: rgba(245, 244, 241, .86) !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 1.28vw, 1.17rem);
  line-height: 1.68;
}

.rj-tcs-hero .hf-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.8rem 0 2rem !important;
}

.rjc-page .rj-tcs-hero .hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--rj-tcs-cream) !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, filter .2s ease, background-color .2s ease, border-color .2s ease;
}

.rjc-page .rj-tcs-hero .hf-btn--gold {
  border-color: var(--rj-tcs-gold);
  background: var(--rj-tcs-gold);
  color: var(--rj-tcs-navy) !important;
}

.rjc-page .rj-tcs-hero .hf-btn--ghost {
  border-color: rgba(245, 244, 241, .56);
  background: transparent;
  color: var(--rj-tcs-cream) !important;
}

.rjc-page .rj-tcs-hero .hf-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.rjc-page .rj-tcs-hero .hf-btn--ghost:hover {
  border-color: var(--rj-tcs-gold);
  background: rgba(245, 244, 241, .06);
}

.rjc-page .rj-tcs-hero .hf-btn:focus-visible {
  outline: 2px solid var(--rj-tcs-gold);
  outline-offset: 4px;
}

.rj-tcs-hero .hf-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: rgba(245, 244, 241, .78) !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .82rem;
  line-height: 1.45;
}

.rj-tcs-hero .hf-trust li {
  position: relative;
  margin: 0 !important;
  padding: 0 0 0 17px !important;
  color: rgba(245, 244, 241, .78) !important;
}

.rj-tcs-hero .hf-trust li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rj-tcs-gold);
  box-shadow: 0 0 10px rgba(200, 169, 107, .45);
}

.rj-tcs-hero .hf-hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.rj-tcs-hero .hf-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 107, .48);
  border-radius: 22px;
  background: var(--rj-tcs-navy);
  box-shadow: 0 38px 78px -34px rgba(0, 0, 0, .82);
}

.rj-tcs-hero .hf-photo picture,
.rj-tcs-hero .hf-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.rj-tcs-hero .hf-photo img {
  object-fit: cover;
}

.rj-tcs-hero .hf-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(6, 32, 51, .40));
}

.rj-tcs-hero .hf-seal {
  position: absolute;
  z-index: 3;
  top: -29px;
  left: -31px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(200, 169, 107, .52);
  border-radius: 50%;
  background: var(--rj-tcs-navy);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .52);
}

.rj-tcs-hero .hf-seal svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: rj-tcs-spin 22s linear infinite;
}

.rj-tcs-hero .hf-seal__txt {
  fill: var(--rj-tcs-gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.rj-tcs-hero .hf-seal__core {
  position: absolute;
  inset: 0;
  width: 29px;
  height: 29px;
  margin: auto;
  border: 6px solid rgba(200, 169, 107, .15);
  border-radius: 50%;
  background: var(--rj-tcs-gold);
  box-shadow: 0 0 18px rgba(200, 169, 107, .42);
}

@keyframes rj-tcs-spin {
  to { transform: rotate(360deg); }
}

.rj-tcs-hero .hf-card {
  position: absolute;
  z-index: 3;
  right: -14px;
  bottom: 23px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid rgba(200, 169, 107, .52);
  border-radius: 14px;
  background: rgba(6, 32, 51, .86);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rj-tcs-hero .hf-card__stars {
  color: var(--rj-tcs-gold) !important;
  font-size: .82rem;
  letter-spacing: 1px;
  line-height: 1.2;
}

.rj-tcs-hero .hf-card__txt,
.rj-tcs-hero .hf-card__txt strong {
  color: var(--rj-tcs-cream) !important;
  font-family: "Inter", system-ui, sans-serif;
}

.rj-tcs-hero .hf-card__txt {
  font-size: .73rem;
}

.rj-tcs-hero .hf-card__txt strong {
  font-size: .86rem;
}

.rj-tcs-hero.hf-hero--no-media .hf-hero__inner {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
}

.rj-tcs-hero.hf-hero--no-media .hf-h1 {
  max-width: 15ch;
}

/* Placeholder-media policy: keep only verified clinical/patient imagery visible. */
.rj-treatment-split-upgraded .rj-photo-needed,
.rj-treatment-split-upgraded figure:has(.rj-photo-needed),
.rj-treatment-split-upgraded .rjc-ba:not(:has(img)),
.rj-treatment-split-upgraded .rjc-cards:has(.rj-photo-needed):not(:has(img)) {
  display: none !important;
}

.rj-treatment-split-upgraded .rjc-lede-grid:has(> figure .rj-photo-needed) {
  grid-template-columns: minmax(0, 720px) !important;
  justify-content: center !important;
}

@media (max-width: 860px) {
  .rjc-page .rj-tcs-hero {
    min-height: 0;
    padding-top: calc(var(--rjc-hdr-h, 104px) + 32px) !important;
    padding-bottom: clamp(46px, 8vh, 64px) !important;
  }

  .rj-tcs-hero .hf-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: clamp(32px, 7vw, 46px);
  }

  .rjc-page .rj-tcs-hero .hf-h1 {
    max-width: 15ch;
    font-size: clamp(2.45rem, 8vw, 3.6rem);
  }

  .rjc-page .rj-tcs-hero .hf-lede {
    max-width: 52ch;
    font-size: 1rem;
  }

  .rj-tcs-hero .hf-cta,
  .rj-tcs-hero .hf-trust {
    justify-content: flex-start;
  }

  .rj-tcs-hero .hf-hero__media {
    justify-self: start;
    max-width: 380px;
  }

  .rj-tcs-hero .hf-seal {
    top: -17px;
    left: -12px;
    width: 88px;
    height: 88px;
  }

  .rj-tcs-hero .hf-seal__txt {
    font-size: 9px;
    letter-spacing: .8px;
  }

  .rj-tcs-hero .hf-card {
    right: -7px;
    bottom: 16px;
    padding: 10px 13px;
  }
}

@media (max-width: 540px) {
  .rjc-page .rj-tcs-hero {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .rjc-page .rj-tcs-hero .hf-h1 {
    max-width: none;
    font-size: clamp(2.25rem, 11.2vw, 3rem);
    line-height: 1.01;
  }

  .rj-tcs-hero .hf-cta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .rjc-page .rj-tcs-hero .hf-btn {
    width: 100%;
  }

  .rj-tcs-hero .hf-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px 14px;
  }

  .rj-tcs-hero .hf-hero__media {
    width: calc(100% - 8px);
    max-width: 360px;
    margin-left: 8px;
  }

  .rj-tcs-hero .hf-card {
    right: -4px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rj-tcs-hero .hf-seal svg { animation: none; }
  .rjc-page .rj-tcs-hero .hf-btn { transition: none; }
}
