/**
 * CBM UK About Page Premium v1.0.0
 * Theme-safe layout stylesheet.
 *
 * No global body, header, menu, logo, footer, font-family or fixed theme colour
 * selectors are used. The active website remains the source of truth for its
 * cream background, charcoal text, typography and CBM blue button styling.
 */

.cbmap-about-page,
.cbmap-about-page *,
.cbmap-about-page *::before,
.cbmap-about-page *::after {
  box-sizing: border-box;
}

.cbmap-about-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  overflow: clip;
}

.cbmap-about-page a,
.cbmap-about-page h1,
.cbmap-about-page h2,
.cbmap-about-page h3,
.cbmap-about-page p,
.cbmap-about-page li,
.cbmap-about-page span,
.cbmap-about-page strong {
  color: inherit;
  font-family: inherit;
}

.cbmap-container {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin-inline: auto;
}

.cbmap-hero {
  padding-block: 52px 56px;
}

.cbmap-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 48px;
  align-items: center;
}

.cbmap-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: .86em;
}

.cbmap-breadcrumbs a {
  text-decoration: none;
}

.cbmap-eyebrow,
.cbmap-section-kicker,
.cbmap-panel-label,
.cbmap-card-label,
.cbmap-transparency-grid span {
  display: block;
  margin: 0 0 10px;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cbmap-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.55rem, 4.2vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -.026em;
}

.cbmap-hero-intro {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.08em;
  line-height: 1.68;
}

.cbmap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.cbmap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none !important;
}

.cbmap-button-secondary {
  min-height: auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.cbmap-button svg,
.cbmap-text-link svg,
.cbmap-service-card strong svg,
.cbmap-audience-card strong svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.cbmap-hero-panel,
.cbmap-director-card,
.cbmap-principles-grid article,
.cbmap-service-card,
.cbmap-audience-card,
.cbmap-why-grid article,
.cbmap-credentials-panel,
.cbmap-transparency-grid article {
  border: 1px solid rgba(127, 127, 127, .26);
}

@supports (border-color: color-mix(in srgb, currentColor 16%, transparent)) {
  .cbmap-hero-panel,
  .cbmap-director-card,
  .cbmap-principles-grid article,
  .cbmap-service-card,
  .cbmap-audience-card,
  .cbmap-why-grid article,
  .cbmap-credentials-panel,
  .cbmap-transparency-grid article {
    border-color: color-mix(in srgb, currentColor 16%, transparent);
  }
}

.cbmap-hero-panel {
  padding: 28px;
  border-radius: 12px;
}

.cbmap-hero-panel > p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.cbmap-hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cbmap-hero-panel li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(127, 127, 127, .2);
  line-height: 1.5;
}

.cbmap-hero-panel li:last-child {
  border-bottom: 0;
}

.cbmap-hero-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  font-weight: 700;
}

.cbmap-trust-strip,
.cbmap-bordered-section,
.cbmap-transparency-section,
.cbmap-final-cta {
  border-block: 1px solid rgba(127, 127, 127, .22);
}

.cbmap-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cbmap-trust-grid span {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 13px 18px;
  border-right: 1px solid rgba(127, 127, 127, .2);
  font-size: .88em;
  font-weight: 600;
}

.cbmap-trust-grid span:first-child {
  padding-left: 0;
}

.cbmap-trust-grid span:last-child {
  border-right: 0;
}

.cbmap-trust-grid span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cbmap-main {
  margin: 0;
  padding: 0;
}

.cbmap-section {
  padding-block: 60px;
}

.cbmap-story-grid,
.cbmap-credentials-panel {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 60px;
  align-items: start;
}

.cbmap-story h2,
.cbmap-section-heading h2,
.cbmap-heading-row h2,
.cbmap-credentials-panel h2,
.cbmap-final-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -.018em;
}

.cbmap-prose p {
  max-width: 75ch;
  margin: 0 0 17px;
  line-height: 1.72;
}

.cbmap-prose p:last-child {
  margin-bottom: 0;
}

.cbmap-section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.cbmap-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 30px;
}

.cbmap-heading-row > div > p:last-child {
  max-width: 68ch;
  margin: 12px 0 0;
  line-height: 1.65;
}

.cbmap-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 5px;
}

.cbmap-director-grid,
.cbmap-principles-grid,
.cbmap-service-grid,
.cbmap-transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cbmap-director-card,
.cbmap-principles-grid article,
.cbmap-service-card,
.cbmap-audience-card,
.cbmap-why-grid article,
.cbmap-transparency-grid article {
  padding: 26px;
  border-radius: 12px;
  background: transparent;
}

.cbmap-director-card h3,
.cbmap-principles-grid h3,
.cbmap-service-card h3,
.cbmap-audience-card h3,
.cbmap-why-grid h3 {
  margin: 0 0 10px;
  font-size: 1.16em;
  line-height: 1.3;
}

.cbmap-director-card p,
.cbmap-principles-grid p,
.cbmap-service-card p,
.cbmap-audience-card p,
.cbmap-why-grid p,
.cbmap-transparency-grid p {
  margin: 0;
  line-height: 1.65;
}

.cbmap-principles-grid article > span {
  display: block;
  margin-bottom: 22px;
  font-weight: 700;
  letter-spacing: .06em;
}

.cbmap-service-card,
.cbmap-audience-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  text-decoration: none !important;
  transition: transform .2s ease;
}

.cbmap-service-card:hover,
.cbmap-audience-card:hover {
  transform: translateY(-3px);
}

.cbmap-service-card strong,
.cbmap-audience-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-size: .92em;
}

.cbmap-audience-grid,
.cbmap-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cbmap-audience-card,
.cbmap-why-grid article {
  min-height: 260px;
}

.cbmap-credentials-panel {
  padding: 30px;
  border-radius: 12px;
}

.cbmap-credentials-panel p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.cbmap-transparency-grid article {
  min-height: 170px;
}

.cbmap-final-cta {
  padding-block: 54px;
}

.cbmap-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 48px;
  align-items: center;
}

.cbmap-final-cta p {
  max-width: 720px;
  margin: 14px 0 0;
  line-height: 1.65;
}

.cbmap-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cbmap-cta-actions > a:not(.cbmap-button) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  .cbmap-container {
    width: calc(100% - 40px);
  }

  .cbmap-hero-grid,
  .cbmap-story-grid,
  .cbmap-credentials-panel,
  .cbmap-cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cbmap-hero-panel {
    max-width: 720px;
  }

  .cbmap-director-grid,
  .cbmap-principles-grid,
  .cbmap-service-grid,
  .cbmap-transparency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbmap-audience-grid,
  .cbmap-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbmap-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbmap-trust-grid span:nth-child(2) {
    border-right: 0;
  }

  .cbmap-trust-grid span:nth-child(-n+2) {
    border-bottom: 1px solid rgba(127, 127, 127, .2);
  }
}

@media (max-width: 700px) {
  .cbmap-container {
    width: calc(100% - 28px);
  }

  .cbmap-hero {
    padding-block: 38px 42px;
  }

  .cbmap-section {
    padding-block: 44px;
  }

  .cbmap-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .cbmap-heading-row {
    display: block;
  }

  .cbmap-heading-row .cbmap-text-link {
    margin-top: 18px;
  }

  .cbmap-director-grid,
  .cbmap-principles-grid,
  .cbmap-service-grid,
  .cbmap-audience-grid,
  .cbmap-why-grid,
  .cbmap-transparency-grid,
  .cbmap-trust-grid {
    grid-template-columns: 1fr;
  }

  .cbmap-trust-grid span,
  .cbmap-trust-grid span:first-child {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
  }

  .cbmap-trust-grid span:last-child {
    border-bottom: 0;
  }

  .cbmap-service-card,
  .cbmap-audience-card,
  .cbmap-why-grid article {
    min-height: auto;
  }

  .cbmap-actions {
    align-items: stretch;
  }

  .cbmap-actions .cbmap-button-primary {
    width: 100%;
  }
}


/* CBM About visual alignment v1.1 */
.cbmap-about-page {
  --cbm-ink: #2d3339;
  --cbm-navy: #12395b;
  --cbm-slate: #46545f;
  --cbm-blue: #159ed1;
  --cbm-sky: #edf7fb;
  --cbm-cream: #faf6ef;
  --cbm-warm: #f2ecdf;
  color: var(--cbm-ink);
  background: var(--cbm-cream);
}
.cbmap-about-page h1,
.cbmap-about-page h2,
.cbmap-about-page h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cbm-navy);
  text-wrap: balance;
}
.cbmap-about-page p,
.cbmap-about-page li,
.cbmap-about-page a,
.cbmap-about-page span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.cbmap-eyebrow,
.cbmap-section-kicker,
.cbmap-panel-label,
.cbmap-card-label {
  color: #087da8;
  letter-spacing: .15em;
}
.cbmap-hero {
  background: linear-gradient(118deg, var(--cbm-cream) 0%, #f6f4ed 48%, var(--cbm-sky) 100%);
  border-bottom: 1px solid rgba(18,57,91,.12);
  position: relative;
}
.cbmap-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(35vw, 470px);
  background: radial-gradient(circle at 60% 34%, rgba(21,158,209,.13), transparent 68%);
  pointer-events: none;
}
.cbmap-hero h1 { color: var(--cbm-navy); font-weight: 600; }
.cbmap-hero-panel {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(18,57,91,.14);
  box-shadow: 0 22px 55px rgba(18,57,91,.10);
  backdrop-filter: blur(8px);
}
.cbmap-button-primary {
  background: var(--cbm-blue);
  border-color: var(--cbm-blue);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(21,158,209,.22);
}
.cbmap-button-primary:hover { background: #087da8; border-color: #087da8; }
.cbmap-button-secondary { color: var(--cbm-navy) !important; border-color: rgba(18,57,91,.28); }
.cbmap-trust-strip { background: #fff; border-color: rgba(18,57,91,.12); }
.cbmap-main > .cbmap-section { border-color: rgba(18,57,91,.12); }
.cbmap-main > .cbmap-section:nth-child(1) { background: var(--cbm-cream); }
.cbmap-main > .cbmap-section:nth-child(2) { background: var(--cbm-sky); }
.cbmap-main > .cbmap-section:nth-child(3) { background: var(--cbm-warm); }
.cbmap-main > .cbmap-section:nth-child(4) { background: var(--cbm-slate); color: #fff; }
.cbmap-main > .cbmap-section:nth-child(5) { background: var(--cbm-sky); }
.cbmap-main > .cbmap-section:nth-child(6) { background: var(--cbm-cream); }
.cbmap-main > .cbmap-section:nth-child(4) h2,
.cbmap-main > .cbmap-section:nth-child(4) h3 { color: #fff; }
.cbmap-main > .cbmap-section:nth-child(4) .cbmap-section-kicker,
.cbmap-main > .cbmap-section:nth-child(4) .cbmap-card-label { color: #79d7f4; }
.cbmap-principles-grid article,
.cbmap-service-card,
.cbmap-why-grid article,
.cbmap-transparency-grid article {
  background: rgba(255,255,255,.84);
  border-color: rgba(18,57,91,.13);
  box-shadow: 0 15px 38px rgba(18,57,91,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cbmap-principles-grid article:hover,
.cbmap-service-card:hover,
.cbmap-why-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(21,158,209,.4);
  box-shadow: 0 20px 42px rgba(18,57,91,.11);
}
.cbmap-main > .cbmap-section:nth-child(4) .cbmap-audience-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.cbmap-main > .cbmap-section:nth-child(4) .cbmap-audience-card h3 { color: #fff; }
.cbmap-text-link { color: var(--cbm-navy) !important; text-decoration-color: var(--cbm-blue); }
.cbmap-main > .cbmap-section:nth-child(4) .cbmap-text-link { color: #fff !important; }
.cbmap-final-cta {
  background: linear-gradient(120deg, var(--cbm-navy), var(--cbm-slate));
  color: #fff;
  border-top: 4px solid var(--cbm-blue);
}
.cbmap-final-cta h2,
.cbmap-final-cta h3 { color: #fff; }
.cbmap-final-cta .cbmap-section-kicker { color: #79d7f4; }
@media (max-width: 700px) {
  .cbmap-hero::before { width: 70vw; opacity: .7; }
  .cbmap-hero-panel { backdrop-filter: none; }
  .cbmap-main > .cbmap-section { padding-block: 50px; }
}
