/**
 * CP · Media Callout — self-contained, token-driven, scoped under .cp-media-callout.
 * Reproduces the "Who We Are" section (text + image) from the approved homepage.
 */
.cp-media-callout {
  --mc-fg: var(--wp--preset--color--text);
  --mc-primary: var(--wp--preset--color--primary);
  --mc-primary-hover: #B21527;
  --mc-bg: #FFF9F0;
  --mc-white: var(--wp--preset--color--white);
  --mc-border: #E5E3DF;
  --mc-max: 1180px;
  --mc-r-md: 8px;
  background: var(--mc-bg);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 80px);
}
.cp-media-callout.is-surface-white { background: var(--mc-white); }
.cp-media-callout.is-surface-cream { background: var(--mc-bg); }
.cp-media-callout .head { max-width: var(--mc-max); margin: 0 auto; }
/* With the photo layout, the heading runs to the same 1100px as the grid under
   it (the Playbook's .head and .media-grid are both var(--content-max)), so the
   eyebrow, heading and copy share one left edge. At 1180px the heading started
   40px left of the copy (client review 2026-10-06). */
.cp-media-callout.is-layout-media-grid .head { max-width: 1100px; }
.cp-media-callout .eyebrow {
  font-family: var(--wp--preset--font-family--roboto); font-weight: 600; font-size: 11px;
  line-height: 24px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mc-fg); margin: 0;
}
.cp-media-callout .head h2 {
  font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; color: var(--mc-fg); margin: 11px 0 0;
}
.cp-media-callout .head h2 em { font-style: normal; color: var(--mc-primary); }
.cp-media-callout .who__grid {
  max-width: var(--mc-max); margin: 24px auto 0;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start;
}
.cp-media-callout .who__body p { font-family: var(--wp--preset--font-family--roboto); font-size: 16px; line-height: 27.2px; color: var(--mc-fg); margin: 0; }
.cp-media-callout .who__body p + p { margin-top: 16px; }
.cp-media-callout .who__callout { display: flex; align-items: center; justify-content: center; padding: 8px 0; align-self: center; }
.cp-media-callout .who__callout-img { display: block; width: 100%; max-width: 320px; height: auto; }

/* media-grid layout — a bordered (optionally square) photo beside prose.
   Ported from the .media-grid* rules on the approved About page. */
/* 1100px, the Playbook's inner-page measure (its .media-grid is
   var(--content-max)); the 1180px --mc-max is the homepage callout's. */
.cp-media-callout .media-grid {
  max-width: 1100px; margin: 24px auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
}
.cp-media-callout .media-grid--compact { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.cp-media-callout .media-grid__img {
  width: 100%; height: auto; border-radius: var(--mc-r-md); border: 1px solid var(--mc-border);
}
.cp-media-callout .media-grid__img--square { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.cp-media-callout .media-grid .prose { margin-top: 0; }
.cp-media-callout .media-grid .prose p {
  font-family: var(--wp--preset--font-family--roboto); font-size: 16px; line-height: 27.2px;
  color: var(--mc-fg); margin: 0;
}
.cp-media-callout .media-grid .prose p + p { margin-top: 16px; }
/* Image on the right: swap the column order and mirror the compact ratio. */
.cp-media-callout .media-grid--image-right { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
/* Order the grid ITEM, not the <img>: an image optimiser (ShortPixel on WP Engine)
   wraps the <img> in a <picture>, which then becomes the grid item and ignored an
   order set on the <img>, leaving the photo on the left (client audit, 2026-09-22). */
.cp-media-callout .media-grid--image-right > :not(.prose) { order: 2; }
.cp-media-callout .media-grid--image-right > .prose { order: 1; }
/* Wide (is-media-wide): the Playbook's regular .media-grid, photo on the right
   at 0.85fr (483px at full width; the compact column capped it at 360px, client
   audit 2026-10-06, item 5). */
.cp-media-callout .media-grid--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
.cp-media-callout .media-grid--wide > :not(.prose) { order: 2; }
.cp-media-callout .media-grid--wide > .prose { order: 1; }
.cp-media-callout .media-grid > picture { display: block; min-width: 0; }
.cp-media-callout .media-grid > picture > img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .cp-media-callout .who__grid { grid-template-columns: 1fr; gap: 32px; }
  .cp-media-callout .media-grid,
  .cp-media-callout .media-grid--compact,
  .cp-media-callout .media-grid--image-right,
  .cp-media-callout .media-grid--wide { grid-template-columns: 1fr; gap: 24px; }
  .cp-media-callout .media-grid > :not(.prose) { order: 2; }
  .cp-media-callout .media-grid > .prose { order: 1; }
}

/* Optional red-check list in the media-grid prose column. */
.cp-media-callout .warranty__list { margin-top: 18px; display: flex; flex-direction: column; }
.cp-media-callout .warranty__item {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-family: var(--wp--preset--font-family--roboto); font-weight: 500; font-size: 16px; color: #1C1C1C;
}
.cp-media-callout .warranty__check {
  width: 18px; height: 18px; flex-shrink: 0; background: var(--mc-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mc-white); font-size: 11px; font-weight: 700; line-height: 1;
}

/* Optional CTA under the media-grid copy (Playbook: "Powered by Canter"). */
.cp-media-callout .media-grid__cta { margin-top: 24px; }
.cp-media-callout .btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--roboto); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border: 0; border-radius: 4px; text-decoration: none;
}
.cp-media-callout .btn--primary { background: var(--mc-primary); color: var(--mc-white); }
.cp-media-callout .btn--primary:hover { background: var(--mc-primary-hover); }
