/* ============================================================
   Craft Boys — inner-page section group C (Figma service / area /
   about pages, July 2026). Covers the two new section types
   (cb-split, cb-reasons) plus the small additions to shared
   sections (hero secondary button, about-audio bullets,
   cta-band photo band, areas-map neighborhood chips).

   Loaded after _base.css by the head.php glob. Tokens: craftboys.css
   (:root --cb-*). Breakpoints mirror the homepage: 1024 / 640.
   ============================================================ */

/* ----------------------------------------------------------------
   cb-hero — secondary (outline) button row
   ---------------------------------------------------------------- */
.cb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cb-hero__cta2 { min-width: 240px; }

/* ----------------------------------------------------------------
   cb-about-audio — optional bullet list under the body
   ---------------------------------------------------------------- */
.cb-about__bullets {
  list-style: none;
  margin: 4px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cb-about__bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cb-ink);
  font-weight: 600;
}
.cb-about__bullet-tick {
  flex: 0 0 auto;
  color: var(--cb-green);
  margin-top: 1px;
}

/* ================================================================
   cb-split — content + media split
   ================================================================ */
.cb-split--cream { background: #E1E4E6; }
.cb-split--light { background: var(--cb-light); }   /* main site surface #F5F5F5 */
.cb-split--dark  { background: var(--cb-dark); }

.cb-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
/* Text left · photo right */
.cb-split--reverse .cb-split__media   { order: 2; }
.cb-split--reverse .cb-split__content { order: 1; }

.cb-split__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  align-self: stretch;
  min-height: 320px;
}
.cb-split__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.cb-split__img-ph { height: 100%; min-height: 380px; border-radius: 16px; }
.cb-split__play {
  position: absolute;
  inset: 0;
  margin: auto;
  color: var(--cb-ink);
}

.cb-split__content { max-width: 560px; }
.cb-split--reverse .cb-split__content { margin-left: auto; }
.cb-split__body > p { margin: 0 0 14px; }
.cb-split__body > p:last-child { margin-bottom: 0; }

/* Figma: bullets are plain bold lines (no markers), generous line-height. */
.cb-split__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cb-split__item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cb-ink);
}
.cb-split--dark .cb-split__item { color: rgba(255, 255, 255, .88); }
.cb-split__cta { margin-top: 30px; }

/* ================================================================
   cb-reasons — reason / step / credential card grid
   ================================================================ */
.cb-reasons--cream { background: #E1E4E6; }
.cb-reasons--dark  { background: var(--cb-dark); }

.cb-reasons__head { text-align: center; max-width: 860px; margin: 0 auto; }
.cb-reasons__heading { margin-bottom: 0; }
.cb-reasons__accent { color: var(--cb-yellow); }
.cb-reasons__accent::before { content: " "; }
.cb-reasons__sub { margin: 16px auto 0; }

.cb-reasons__grid {
  display: grid;
  grid-template-columns: repeat(var(--cb-reasons-cols, 4), minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 52px);
}

.cb-reasons__card {
  border-radius: 8px;               /* Figma "Number card": 8px */
  padding: 24px;
  background: var(--cb-white);
  border: 1px solid rgba(20, 20, 20, .08);
  box-shadow: 0 18px 40px -34px rgba(20, 20, 20, .4);
}
.cb-reasons--dark .cb-reasons__card {
  background: #23343D;              /* Figma card fill */
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}

.cb-reasons__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;                      /* Figma Ellipse 3: 48×48 */
  height: 48px;
  border-radius: 50%;
  background: var(--cb-yellow);
  color: var(--cb-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  margin-bottom: 24px;
}
.cb-reasons__check {
  display: inline-flex;
  color: #207E20;                   /* Figma tick-circle green */
  margin-bottom: 16px;
}
.cb-reasons__check svg { width: 48px; height: 48px; display: block; }  /* Figma: 48px desktop */
.cb-reasons--dark .cb-reasons__check { color: #57C98A; }
@media (max-width: 640px) {
  .cb-reasons__check svg { width: 36px; height: 36px; }
}

/* Figma card titles: Roboto Condensed 21px, mixed-case (not Oswald caps) */
.cb-reasons__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  text-transform: none;
  margin: 0 0 10px;
  color: var(--cb-ink);
}
.cb-reasons--dark .cb-reasons__title { color: rgba(255, 255, 255, .9); }
.cb-reasons__text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--cb-body);
  margin: 0;
}
.cb-reasons--dark .cb-reasons__text { color: rgba(255, 255, 255, .8); }

/* Trailing yellow CTA card (last grid cell) */
.cb-reasons__ctacard {
  border-radius: 8px;
  padding: 24px;
  background: var(--cb-yellow);
  color: var(--cb-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 100%;
  transition: background .18s ease, transform .18s ease;
}
.cb-reasons__ctacard:hover { background: var(--cb-yellow-2); transform: translateY(-2px); }
.cb-reasons__ctacard-arrow { align-self: flex-end; }
.cb-reasons__ctacard-label {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  font-size: 28px;                  /* Figma: Roboto Condensed 28px */
  line-height: 1.4;
}

/* Stat strip (same shape as the hero trust bar) */
.cb-reasons__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: clamp(34px, 4vw, 56px);
}
.cb-reasons__stat {
  padding: 4px 26px;
  border-left: 1px solid rgba(20, 20, 20, .12);
}
.cb-reasons__stat:first-child { border-left: 0; padding-left: 0; }
.cb-reasons--dark .cb-reasons__stat { border-left-color: rgba(255, 255, 255, .2); }
.cb-reasons__stat-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cb-reasons__stat-big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  color: var(--cb-ink);
}
.cb-reasons--dark .cb-reasons__stat-big { color: var(--cb-white); }
.cb-reasons__stars { color: var(--cb-yellow); font-size: 14px; letter-spacing: 1px; }
.cb-reasons__stat-small,
.cb-reasons__stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cb-body);
}
.cb-reasons--dark .cb-reasons__stat-small,
.cb-reasons--dark .cb-reasons__stat-label { color: rgba(255, 255, 255, .7); }
.cb-reasons__stat-label { margin-top: 8px; }
.cb-reasons__stat-brand { margin-top: 6px; }
.cb-reasons--dark .cb-reasons__stat-brand { color: var(--cb-white); }

.cb-reasons__cta { text-align: center; margin-top: clamp(30px, 3.5vw, 44px); }

/* ================================================================
   cb-cta-band — optional background photo band
   ================================================================ */
/* Figma "Rectangle 26": centered copy over a 640px photo, flat 50% wash +
   a bottom fade to #1C272E. */
.cb-cta-band--photo {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cb-cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cb-cta-band__bg-img { width: 100%; height: 100%; object-fit: cover; }
.cb-cta-band__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 39, 46, 0) 50%, #1C272E 100%),
    linear-gradient(0deg, rgba(28, 39, 46, .5), rgba(28, 39, 46, .5));
}
.cb-cta-band--photo .cb-cta-band__inner {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  max-width: 890px;              /* wider CTA band on desktop */
  text-align: center;
  align-items: center;
}
@media (max-width: 720px) {
  .cb-cta-band--photo { min-height: 480px; }
  .cb-cta-band--photo .cb-cta-band__inner { max-width: none; }
}

/* Photo band, "photo subject left · text right" (Figma /about/ van band).
   The text sits in a 500px column pushed to the right; the photo is anchored
   left so the van stays in view, and the shade darkens toward the right. */
.cb-cta-band--right .cb-cta-band__bg-img { object-position: left center; }
.cb-cta-band--right .cb-cta-band__shade {
  background:
    linear-gradient(180deg, rgba(28, 39, 46, 0) 58%, #1C272E 100%),
    linear-gradient(90deg, rgba(28, 39, 46, .10) 0%, rgba(28, 39, 46, .16) 40%, rgba(28, 39, 46, .68) 82%);
}
.cb-cta-band--right .cb-cta-band__inner {
  /* span the full band (override .cb-container's auto-centering, which otherwise
     shrink-wraps the inner inside the section's flex column) and pin the text
     column to the right edge */
  max-width: none;
  margin-inline: 0;
  align-self: stretch;
  padding-inline: clamp(24px, 6vw, 132px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;        /* push the text column to the right */
  text-align: center;
}
.cb-cta-band--right .cb-cta-band__inner > * {
  width: 100%;
  max-width: 500px;             /* Figma text frame */
  margin-inline: 0;
}
.cb-cta-band--right .cb-cta-band__actions { justify-content: center; }
@media (max-width: 860px) {
  /* Too narrow to overlay — STACK: the whole van as a full-width image on top,
     copy below on the dark section background. Overlaying the text was cropping
     and hiding the van on phones. */
  .cb-cta-band--right {
    display: block;
    min-height: 0;
    background: #1C272E;
    overflow: hidden;
  }
  .cb-cta-band--right .cb-cta-band__bg {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1280 / 596;      /* the van photo's own ratio → full van, no crop */
  }
  .cb-cta-band--right .cb-cta-band__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .cb-cta-band--right .cb-cta-band__shade { display: none; }
  .cb-cta-band--right .cb-cta-band__inner {
    position: relative;
    max-width: none;
    align-items: center;
    padding: 30px 24px 8px;
  }
  .cb-cta-band--right .cb-cta-band__inner > * { max-width: 520px; margin-inline: auto; }
}

/* ================================================================
   cb-areas-map — "map + neighborhood chips" layout (single city page)
   ================================================================ */
.cb-amap--chips .cb-amap__layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}
.cb-amap--chips .cb-amap__mapcol { order: -1; min-height: 0; }   /* map on the left */
/* Figma frame: 600×800 portrait map; chips column vertically centred beside it */
.cb-amap--chips .cb-amap__map {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  max-height: 760px;
}
.cb-amap__chips-col { align-self: center; }
.cb-amap__chips-col .cb-h2 { margin-top: 6px; }
.cb-amap__chips-col .cb-eyebrow { color: #23343D; }       /* Figma eyebrow ink */
.cb-amap__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
/* Figma chip: white, 4px radius, 12×24 padding, Roboto Condensed 16/500 + ▸ caret */
.cb-amap__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--cb-radius);
  background: var(--cb-white);
  border: 1px solid rgba(20, 20, 20, .05);
  box-shadow: 0 10px 26px -22px rgba(20, 20, 20, .5);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cb-ink);
  text-decoration: none;
}
.cb-amap__chip::after {                                    /* the Figma ▸ */
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: .85;
}
.cb-amap__chip--link { transition: border-color .16s ease, color .16s ease; }
.cb-amap__chip--link:hover { border-color: var(--cb-yellow); color: var(--cb-yellow-2); }
.cb-amap__chips-div {
  height: 1px;
  background: #CCCCCC;                                     /* Figma Vector 8 */
  margin: 26px 0 20px;
}
.cb-amap__chips2-h { margin-bottom: 0; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cb-reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-reasons__stats {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 22px 0;
  }
  .cb-reasons__stat { padding: 4px 22px; }
  .cb-reasons__stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .cb-amap--chips .cb-amap__layout { grid-template-columns: 1fr; }
  .cb-amap__chips-col { align-self: start; }
  /* stacked: drop the portrait aspect so the full-width map stays a sane, touch-
     friendly height (bigger tap targets, easier to pan) */
  .cb-amap--chips .cb-amap__map { aspect-ratio: auto; height: 460px; max-height: none; }
}
@media (max-width: 640px) {
  .cb-amap--chips .cb-amap__map { height: 400px; }
  .cb-amap__chip { padding: 11px 20px; }
}

@media (max-width: 768px) {
  .cb-split__grid { grid-template-columns: 1fr; gap: 26px; }
  /* Photo always on top on mobile, regardless of desktop side */
  .cb-split--reverse .cb-split__media,
  .cb-split__media { order: -1; }
  .cb-split--reverse .cb-split__content,
  .cb-split__content { order: 0; max-width: none; margin-left: 0; }
  .cb-split__media { min-height: 240px; }
  .cb-split__img { min-height: 240px; }
}

@media (max-width: 640px) {
  .cb-hero__actions { flex-direction: column; align-items: stretch; }
  .cb-hero__cta2 { width: 100%; min-width: 0; }

  .cb-reasons__grid { grid-template-columns: 1fr; gap: 16px; }
  .cb-reasons__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }

  .cb-about__bullets { margin-bottom: 22px; }
}
