/* become-partner.css — /about/become-our-partner page.
 *
 * Builds on the shared .about-redesign base (typography, .ab-wrap,
 * .ab-section, .ab-eyebrow, .ab-intro__*, .ab-h2) from about-style-green.css.
 * Adds the application layout, reassurance list and team contact cards.
 *
 * Button text colours use !important to beat the legacy
 * `.entry-content a:not(.mfn-link):not(.button)` colour rule combined in
 * after this file.
 */

.bp-page {
  --bp-accent: var(--color-accent);
  --bp-ink: #1a1a1a;
}

/* --- Intro ---------------------------------------------------------- */
.bp-intro__inner {
  max-width: 820px;
}

.bp-intro__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* --- Buttons -------------------------------------------------------- */
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 15px 28px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--motion-duration-fast) var(--motion-ease-out),
              background-color var(--motion-duration-fast) var(--motion-ease-out),
              color var(--motion-duration-fast) var(--motion-ease-out);
}

/* Lift / gloss handled by the shared motion block in components.css. */

.bp-btn--primary {
  background: var(--bp-accent);
  color: #10130a !important;
}

.bp-btn--primary:hover {
  background: var(--color-accent-hover);
  color: #10130a !important;
}

.bp-btn--outline {
  border: 1.5px solid rgba(26, 26, 26, 0.25);
  color: var(--bp-ink) !important;
}

.bp-btn--outline:hover {
  border-color: var(--bp-ink);
  background: var(--bp-ink);
  color: #fff !important;
}

/* --- Apply: copy + form card --------------------------------------- */
.bp-apply {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.bp-reassure {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.bp-reassure li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--bp-ink);
}

.bp-reassure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310130a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.bp-formcard {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* --- Team contact cards -------------------------------------------- */
.bp-team__head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.bp-team {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.bp-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
  padding: clamp(28px, 4vw, 44px) var(--space-lg);
  background: #fff;
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
  border-radius: var(--radius-md);
}

/* Avatar — initials <span> (placeholder) or <img class="bp-person__photo"> (real photo).
   <picture> is display:contents so the inner <img> becomes the flex child and inherits
   the sizing/margin below exactly as the <span> does. Photo sources are pre-cropped to
   a square by optimize-images.mjs, so object-fit just guards against any ratio drift. */
.bp-person picture {
  display: contents;
}
.bp-person__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-full);
  object-fit: cover;
  background: linear-gradient(155deg, var(--bp-accent) 0%, var(--color-accent-hover) 100%);
  color: #10130a;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bp-person__name {
  font-size: 19px;
  font-weight: 600;
  color: var(--bp-ink);
}

.bp-person__role {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--main-color);
}

.bp-person__link {
  margin-top: var(--space-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--main-color);
}

.bp-person__link:hover {
  color: var(--main-color) !important;
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 880px) {
  .bp-apply {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bp-team {
    grid-template-columns: 1fr;
  }
  .bp-intro__ctas .bp-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
