/**
 * The alternating feature-row pages — Industries (`106:14223`) and Churchill Experience
 * (`106:14028`), which Figma builds from the same block component.
 * A centered title over full-width rows, each pairing a 528px copy panel with a 1024px
 * photograph and alternating which side the photo takes.
 */

.feature-page {
  padding-block: 60px 120px;
}

/* Figma `106:14227`: the shared 50/64 section heading at -1.12px, centered. */
.feature-page__title {
  margin-bottom: 60px;
  font-size: var(--text-h2);
  line-height: 64px;
  font-weight: var(--weight-medium);
  letter-spacing: -1.12px;
  text-align: center;
  color: var(--color-grey-dark);
}

.feature-page__rows {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* 528 + 1024 of the 1552 band, kept as ratios so the pair scales together. */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 528fr) minmax(0, 1024fr);
  height: 560px;
  border-radius: var(--radius-control-lg);
  overflow: hidden;
  background: var(--color-white);
}

.feature-row__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  /* The panel is tighter against the page edge than against the photo. */
  padding: 0 60px 0 var(--space-10);
}

.feature-row__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-row__copy h2 {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 30px;
  line-height: 24px;
  font-weight: var(--weight-semibold);
  color: var(--color-grey-dark);
}

.feature-row__copy p {
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

.feature-row__cta {
  min-height: 80px;
  padding: 28px 50px;
  border-radius: var(--radius-control-lg);
  font-size: 20px;
  letter-spacing: 1.4px;
  box-shadow: 0 10px 7.5px rgba(140, 60, 103, 0.2);
}

.feature-row__media {
  overflow: hidden;
}

.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo-first blocks swap the columns and mirror the panel's padding. */
.feature-row--media-first {
  grid-template-columns: minmax(0, 1024fr) minmax(0, 528fr);
}

.feature-row--media-first .feature-row__copy {
  order: 2;
  padding: 0 var(--space-10) 0 60px;
}

.feature-row--media-first .feature-row__media {
  order: 1;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .feature-row__copy {
    gap: var(--space-8);
    padding: var(--space-8);
  }

  .feature-row--media-first .feature-row__copy {
    padding: var(--space-8);
  }

  .feature-row__copy p {
    font-size: var(--text-body);
    line-height: 28px;
  }
}

@media (max-width: 900px) {
  .feature-page {
    padding-block: var(--space-22);
  }

  /* The mobile frames align the hub title left. */
  .feature-page__title {
    margin-bottom: var(--space-8);
    line-height: normal;
    text-align: left;
  }

  .feature-page__rows {
    gap: var(--space-8);
  }

  /* Stacked, with the photo always on top whichever side it took on desktop. */
  .feature-row,
  .feature-row--media-first {
    grid-template-columns: 1fr;
    height: auto;
  }

  .feature-row__copy,
  .feature-row--media-first .feature-row__copy {
    order: 2;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5) var(--space-5);
  }

  .feature-row__media,
  .feature-row--media-first .feature-row__media {
    order: 1;
    height: 220px;
  }

  .feature-row__copy h2 {
    line-height: 32px;
  }

  /* The design keeps the button at its content width on mobile. */
  .feature-row__cta {
    width: fit-content;
    min-height: 56px;
    padding: var(--space-4) var(--space-6);
    font-size: 18px;
    letter-spacing: 1.26px;
  }
}
