/* ============================================
   REVAMP JOIN HERO — 2-Column Editorial + CTAs
   ============================================ */

.rjh {
  position: relative;
  overflow: hidden;
  /* Extra top padding to clear the floating nav on the join page.
     Added on top of whatever py-* utility class the builder applies. */
  padding-top: calc(72px + var(--space-lg));
}

@media (min-width: 768px) {
  .rjh { padding-top: calc(80px + var(--space-xl)); }
}

@media (min-width: 1024px) {
  .rjh { padding-top: calc(80px + var(--space-2xl)); }
}

.rjh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 960px) {
  .rjh__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-3xl);
  }
}

.rjh__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

@media (min-width: 960px) {
  .rjh__content { gap: 28px; }
}

.rjh__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-primary);
  line-height: 1.4;
}

.rjh__heading {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0.01em;
  font-size: clamp(2.5rem, 8vw, 6rem);
  overflow-wrap: break-word;
}

.rjh__heading-line1 {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clr-primary);
}

.rjh__heading-line2 {
  display: block;
  font-weight: 400;
  color: var(--clr-primary);
  letter-spacing: 0;
  font-size: 0.9em;
  line-height: 1.0;
  margin-top: var(--space-xs);
}

.rjh__subtext {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  color: var(--clr-text-secondary);
}

@media (min-width: 1024px) {
  .rjh__subtext { font-size: 17px; }
}

/* CTAs */
.rjh__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xs);
}

.rjh__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--space-xl);
  background: var(--clr-primary);
  color: var(--clr-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rjh__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.rjh__btn-primary:focus-visible {
  outline: 2px solid var(--clr-brand-accent);
  outline-offset: 4px;
}

.rjh__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clr-primary);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: var(--space-xs);
  transition: gap 0.3s ease;
}

.rjh__btn-secondary:hover { gap: 12px; }

.rjh__btn-secondary:focus-visible {
  outline: 2px solid var(--clr-brand-accent);
  outline-offset: 4px;
}

.rjh__btn-secondary svg {
  flex-shrink: 0;
}

/* Media column */
.rjh__media {
  position: relative;
  min-width: 0;
}

@media (max-width: 959px) {
  .rjh__media { order: -1; }
}

.rjh__image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rjh__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rjh__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e2d6 0%, #d4ccbb 40%, #c9bfaa 100%);
  position: relative;
}

.rjh__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(60, 66, 46, 0.04) 10px,
      rgba(60, 66, 46, 0.04) 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(60, 66, 46, 0.04) 10px,
      rgba(60, 66, 46, 0.04) 11px
    );
}
