/*
 * profile.css — Toro Legal Marketing
 *
 * People CPT single (single-people.php). Cream hero: copy column left
 * (name, role, optional intro, contact rows, CTA) + photo card right.
 *
 * Figma: node 513:7787 (Light Option). Contact-row treatment mirrors
 * the design's 48px grey-100 chip + navy Carbon icon, uppercase label,
 * value, hairline divider between rows.
 *
 * Section padding follows the locked mobile standard; the hero clears
 * the fixed navbar at the top.
 */

.tlm-profile-hero {
  background: var(--color-cream);
  /* padding-top is a literal navbar-clearance value (not on the spacing
     scale) so the content clears the fixed transparent navbar overlaying
     the .tlm-page-header; padding-bottom uses a scale token. Mobile now
     leads with the photo, which sat too tight under the menu at 110;
     matched to the other mobile heroes (156). */
  padding-block: 156px var(--space-2xl);
}

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

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

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

.tlm-profile-hero__identity {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.tlm-profile-hero__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h1-mobile);          /* 44 mobile */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
}

.tlm-profile-hero__role {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);                 /* 18 */
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
  opacity: 0.9;
}

.tlm-profile-hero__intro {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-sans);
  font-size: var(--text-lg);                 /* 18 */
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy-muted);
}

/* --- Contact rows --- */

.tlm-profile-hero__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 26rem;                          /* ~411px Figma content width */
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Hairline divider between rows (not after the last). */
.tlm-profile-hero__row + .tlm-profile-hero__row {
  border-top: 1px solid var(--color-navy-divider);
  padding-top: var(--space-md);
}

.tlm-profile-hero__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Grey-100 circle + navy Carbon icon — the Figma "Dark Gray" chip. */
.tlm-profile-hero__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-xl);                    /* 48 */
  height: var(--space-xl);
  border-radius: var(--radius-pill);
  background-color: var(--color-grey-100);
  color: var(--color-navy);
}

.tlm-profile-hero__row-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.tlm-profile-hero__row-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);                 /* 14 */
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-button);    /* 0.1em — Figma 1.4px/14px */
  text-transform: uppercase;
  color: var(--color-navy);
}

.tlm-profile-hero__row-value {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);                 /* 18 */
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
}

/* Inherits the global hyperlink + 70%-navy hover-underline from
   base.css; regular weight so the value reads consistently. */
.tlm-profile-hero__row-link {
  font-weight: var(--weight-regular);
}

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

.tlm-profile-hero__visual {
  margin: 0;
  width: 100%;
  /* Mobile: photo first, above the name + contact copy. Desktop keeps
     the DOM order (copy left, photo right) via order:0 at 1024. */
  order: -1;
  background: var(--color-cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 590 / 606;                   /* Figma card ratio */
}

.tlm-profile-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Placeholder state — centred icon on a grey-tint card. */
.tlm-profile-hero__visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-100);
  color: var(--color-navy-faint);
}

@media (min-width: 768px) {
  .tlm-profile-hero {
    padding-block: 160px var(--space-4xl);     /* navbar clearance + 80 bottom */
  }
}

/* --- Desktop: two columns, copy left, photo right --- */

@media (min-width: 1024px) {
  .tlm-profile-hero {
    padding-block: 180px var(--space-4xl);     /* matches the Figma 1440 frame top inset */
  }

  .tlm-profile-hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3xl);
  }

  .tlm-profile-hero__copy {
    flex: 0 1 571px;                          /* Figma copy column */
    gap: var(--space-2xl);
  }

  .tlm-profile-hero__name {
    font-size: var(--text-display);          /* 72 desktop */
    line-height: var(--leading-snug);        /* 1.3 — Figma 90/72 */
  }

  .tlm-profile-hero__role {
    font-size: var(--text-xl);               /* 20 desktop, Figma role */
  }

  .tlm-profile-hero__intro {
    font-size: var(--text-xl);               /* 20 desktop, Figma intro */
  }

  .tlm-profile-hero__visual {
    order: 0;                                 /* row layout: photo right */
    flex: 0 0 590px;                          /* Figma photo column */
    max-width: 590px;
  }
}
