/*
 * profile-speaker.css — Toro Legal Marketing
 *
 * People CPT single (single-people.php). Closing "speaker" CTA band
 * beneath the Experience section. Photo card left (speaking photo with
 * a soft spectrum-glow overlay), copy + primary CTA right.
 *
 * Figma node 513:7705. Cream surface, bottom-aligned columns. The
 * spectrum glow is a CSS overlay (not baked into the asset) per the
 * asset pipeline rule.
 */

.tlm-profile-speaker {
  background: var(--color-cream);
  padding-block: var(--space-3xl);
}

.tlm-profile-speaker__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* --- Photo card --- */

.tlm-profile-speaker__visual {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 575 / 735;
}

.tlm-profile-speaker__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Placeholder state — navy-tint card with a centred speaker icon, for
   profiles without a real speaking photo yet. */
.tlm-profile-speaker__visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--color-navy-tint);
  color: var(--color-navy-faint);
}

/* --- Copy column --- */

.tlm-profile-speaker__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

/* Paragraphs + CTA group — bottom-aligns to the photo at desktop. */
.tlm-profile-speaker__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.tlm-profile-speaker__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h2-mobile);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
  text-wrap: balance;
}

.tlm-profile-speaker__lead {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
}

.tlm-profile-speaker__cta {
  margin-top: var(--space-xs);
}

/* --- Tablet: body type bumps to 18 --- */

@media (min-width: 768px) {
  .tlm-profile-speaker__lead {
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-tight);
  }
}

/* --- Desktop: photo left, copy right. Heading pinned top, paragraphs +
   CTA bottom-aligned to the photo. --- */

@media (min-width: 1024px) {
  .tlm-profile-speaker {
    padding-block: var(--space-5xl);
  }

  .tlm-profile-speaker__inner {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-4xl);
  }

  .tlm-profile-speaker__visual {
    flex: 0 0 575px;
    max-width: 575px;
  }

  .tlm-profile-speaker__copy {
    flex: 1 1 0;
    min-width: 0;
    gap: var(--space-lg);
    padding-top: var(--space-xl);
  }

  .tlm-profile-speaker__heading {
    font-size: var(--text-h2);
  }

  /* Push the paragraphs + CTA to the bottom of the column so they line
     up with the foot of the photo. */
  .tlm-profile-speaker__body {
    margin-top: auto;
    gap: var(--space-lg);
  }
}
