/**
 * CraftMarket – About page (page-about.php, template-parts/about/*). Prefix .cmab-.
 * Hero beside a staggered mosaic of makers at work, story + timeline, values, how makers join
 * (a tinted band), makers (shared .cma-card), one card per audience.
 * Every grid declares minmax(0, …) columns (framework 5.13).
 */

/* ---------- Hero ---------- */
/* Heading band: the same tinted strip as the generic page heading (.craftmarket-page-head). */
.cmab-hero { padding-block: 40px 44px; border-bottom: 1px solid var(--border-default); background: var(--bg-section); }
.cmab-hero.has-breadcrumbs { padding-top: 0; }
.cmab-hero .craftmarket-breadcrumbs { padding-block: 28px 24px; }
.craftmarket-about-page .craftmarket-section.cmab-story { padding-top: 40px; }
.cmab-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.cmab-hero__inner.is-text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.cmab-hero__head { margin-bottom: 26px; }
.cmab-hero__head .craftmarket-section-head__title { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.05; }
.cmab-hero__head .craftmarket-section-head__title em { color: var(--color-primary); }
.cmab-hero__head .craftmarket-section-head__text { max-width: 52ch; font-size: 17px; line-height: 1.65; }
.cmab-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.cmab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--border-default); }
.cmab-stats__item { display: grid; gap: 4px; min-width: 0; padding-inline: 20px; border-inline-start: 1px solid var(--border-default); }
.cmab-stats__item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.cmab-stats__value { color: var(--text-heading); font-family: var(--font-heading); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: var(--heading-weight); line-height: 1; font-variant-numeric: tabular-nums; }
.cmab-stats__label { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.4; }

/* Three upright photos, the middle one set lower, like prints pinned on a studio wall. */
.cmab-hero__mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; padding-bottom: 48px; }
.cmab-hero__mosaic--1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; padding-bottom: 0; }
.cmab-hero__mosaic--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmab-hero__photo { aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-subtle); box-shadow: var(--shadow-md); }
.cmab-hero__mosaic--3 .cmab-hero__photo:nth-child(2) { transform: translateY(48px); }
.cmab-hero__mosaic--2 .cmab-hero__photo:nth-child(2) { transform: translateY(40px); }
.cmab-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Story ---------- */
.cmab-story__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 56px; }
.cmab-story__media { position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-subtle); }
.craftmarket-section .cmab-story__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmab-story__body { display: grid; gap: 22px; min-width: 0; }
.cmab-story__body .craftmarket-section-head { margin-bottom: 0; }
.cmab-story__text { color: var(--text-body); font-size: 16px; line-height: 1.75; }
.cmab-story__text p { margin: 0 0 1em; }
.cmab-story__text > :last-child { margin-bottom: 0; }
.cmab-timeline { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.cmab-timeline__item { position: relative; display: grid; grid-template-columns: minmax(0, 72px) minmax(0, 1fr); gap: 20px; padding-bottom: 22px; }
.cmab-timeline__item::before { content: ""; position: absolute; top: 8px; bottom: 0; inset-inline-start: 87px; width: 1px; background: var(--border-default); }
.cmab-timeline__item:last-child { padding-bottom: 0; }
.cmab-timeline__item:last-child::before { display: none; }
.cmab-timeline__item::after { content: ""; position: absolute; top: 5px; inset-inline-start: 83px; width: 9px; height: 9px; border: 2px solid var(--color-primary); border-radius: 50%; background: var(--bg-page); }
.cmab-timeline__year { color: var(--color-primary); font-size: 14px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cmab-timeline__body { display: grid; gap: 2px; min-width: 0; padding-inline-start: 18px; }
.cmab-timeline__title { color: var(--text-heading); font-family: var(--font-heading); font-size: 18px; font-weight: var(--heading-weight); line-height: 1.3; }
.cmab-timeline__text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ---------- Values ---------- */
.cmab-values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cmab-value { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 28px 24px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-card); }
.cmab-value__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; background: var(--color-primary-light, var(--bg-subtle)); color: var(--color-primary); }
.cmab-value__title { margin: 0; font-size: 20px; line-height: 1.25; }
.cmab-value__text { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* ---------- How makers join (tinted band) ---------- */
.craftmarket-section.cmab-process { background: var(--bg-section); }
.cmab-process__inner { display: grid; gap: 8px; }
.cmab-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cmab-step { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; padding-top: 22px; border-top: 2px solid var(--border-strong); }
.cmab-step:first-child { border-top-color: var(--color-primary); }
.cmab-step__num { color: var(--color-primary); font-family: var(--font-heading); font-size: 34px; font-weight: var(--heading-weight); line-height: 1; font-variant-numeric: tabular-nums; }
.cmab-step__title { color: var(--text-heading); font-size: 17px; font-weight: 600; }
.cmab-step__text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ---------- Makers ---------- */
.cmab-makers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Call to action ---------- */
.cmab-cta__title { margin: 0 0 24px; font-size: clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.cmab-cta__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cmab-cta__card { display: grid; align-content: start; justify-items: start; gap: 10px; min-width: 0; padding: 30px 28px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-card); }
.cmab-cta__card:first-child { border-color: transparent; background: var(--color-primary-light, var(--bg-section)); }
.cmab-cta__name { margin: 0; font-size: 22px; }
.cmab-cta__text { margin: 0 0 8px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ---------- Rhythm (tablet up): 70px between boxes, 70px inside the band ---------- */
@media (min-width: 768px) {
  .craftmarket-about-page .craftmarket-section { padding-block: 35px; }
  .craftmarket-about-page .craftmarket-section.cmab-hero { padding-block: 64px 70px; }
  .craftmarket-about-page .craftmarket-section.cmab-hero.has-breadcrumbs { padding-top: 0; }
  .craftmarket-about-page .craftmarket-section.cmab-story { padding-top: 70px; }
  .cmab-hero .craftmarket-breadcrumbs { padding-block: 36px 24px; }
  .craftmarket-about-page .craftmarket-section.cmab-values { padding-bottom: 70px; }
  .craftmarket-about-page .craftmarket-section.cmab-process { padding-block: 70px; }
  .craftmarket-about-page .craftmarket-section.cmab-makers { padding-top: 70px; }
  .craftmarket-about-body .craftmarket-footer { margin-top: 35px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .cmab-hero__inner { gap: 32px; }
  .cmab-values__grid, .cmab-steps, .cmab-makers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmab-story__inner { gap: 36px; }
}
@media (max-width: 960px) {
  .cmab-hero__inner, .cmab-story__inner { grid-template-columns: minmax(0, 1fr); }
  .cmab-hero__mosaic { padding-bottom: 32px; }
  .cmab-hero__mosaic--3 .cmab-hero__photo:nth-child(2) { transform: translateY(32px); }
  .cmab-story__media { position: static; aspect-ratio: 16 / 10; }
  .cmab-cta__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cmab-stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cmab-stats__item { grid-template-columns: minmax(0, 90px) minmax(0, 1fr); align-items: baseline; gap: 12px; padding-inline: 0; border-inline-start: 0; }
  .cmab-hero__mosaic { gap: 8px; }
  .cmab-values__grid, .cmab-steps { grid-template-columns: minmax(0, 1fr); }
  .cmab-makers__grid { gap: 12px; }
  .cmab-value, .cmab-cta__card { padding: 22px 20px; }
}
