/* ─── CONTENT BUILDER — FLEXIBLE LAYOUTS ─────────────────────── */

/* ── Shared background modifiers ─────────────────────────────── */
.cb-bg--white { background: #fff; }
.cb-bg--gray  { background: var(--gray-bg); }
.cb-bg--dark  { background: var(--dark); color: #fff; }
.cb-bg--blue  { background: var(--blue); color: #fff; }

.cb-bg--dark .section-label,
.cb-bg--blue .section-label { color: rgba(255,255,255,0.7); }

.cb-bg--dark .section-underline,
.cb-bg--blue .section-underline { background: rgba(255,255,255,0.4); }

.cb-bg--dark .section-title,
.cb-bg--blue .section-title { color: #fff; }

/* ─────────────────────────────────────────────────────────────── */
/* LAYOUT: HERO BANNER                                             */
/* ─────────────────────────────────────────────────────────────── */
.cb-hero {
  position: relative;
  padding: 160px 0 100px;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.cb-hero--white { background-color: #fff; color: var(--text); }
.cb-hero--gray  { background-color: var(--gray-bg); color: var(--text); }
.cb-hero--blue  { background-color: var(--blue); color: #fff; }
.cb-hero--dark  { background-color: var(--dark); color: #fff; }

.cb-hero--has-image { color: #fff; }

.cb-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.cb-hero__container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.cb-hero .section-label { color: rgba(255,255,255,0.75); }
.cb-hero--white .section-label,
.cb-hero--gray .section-label { color: var(--blue); }

.cb-hero .section-underline { background: rgba(255,255,255,0.4); }
.cb-hero--white .section-underline,
.cb-hero--gray .section-underline { background: var(--blue); }

.cb-hero__heading {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 20px 0 24px;
}

.cb-hero--white .cb-hero__heading,
.cb-hero--gray .cb-hero__heading { color: var(--dark); }

.cb-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 36px;
}

.cb-hero--white .cb-hero__sub,
.cb-hero--gray .cb-hero__sub { opacity: 1; color: #475569; }

.cb-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────── */
/* LAYOUT: TEXT BLOCK                                              */
/* ─────────────────────────────────────────────────────────────── */
.cb-text-block {
  padding: 80px 0;
}

.cb-text-block__container {
  max-width: 820px;
}

.cb-text-block--center .cb-text-block__container {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cb-text-block--center .section-header {
  align-items: center;
}

.cb-text-block__heading {
  margin-bottom: 28px;
}

.cb-text-block__body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

.cb-bg--dark .cb-text-block__body,
.cb-bg--blue .cb-text-block__body { color: rgba(255,255,255,0.8); }

.cb-text-block__body p { margin-bottom: 1em; }
.cb-text-block__body p:last-child { margin-bottom: 0; }
.cb-text-block__body ul,
.cb-text-block__body ol {
  margin: 0.75em 0 0.75em 1.5em;
  list-style: disc;
}
.cb-text-block__body ol { list-style: decimal; }
.cb-text-block__body li { margin-bottom: 0.4em; }
.cb-text-block__body a { color: var(--blue); text-decoration: underline; }
.cb-text-block__body strong { color: inherit; font-weight: 700; }

/* ─────────────────────────────────────────────────────────────── */
/* LAYOUT: IMAGE + TEXT                                            */
/* ─────────────────────────────────────────────────────────────── */
.cb-image-text {
  padding: 80px 0;
}

.cb-image-text__container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.cb-image-text--img-right .cb-image-text__container {
  grid-template-columns: 1.1fr 1fr;
}

.cb-image-text--img-right .cb-image-text__image-wrap {
  order: 2;
}

.cb-image-text--img-right .cb-image-text__content {
  order: 1;
}

.cb-image-text__image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.cb-image-text__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cb-image-text__content {
  display: flex;
  flex-direction: column;
}

.cb-image-text__heading {
  margin-bottom: 20px;
}

.cb-image-text__body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 28px;
}

.cb-image-text__body p { margin-bottom: 1em; }
.cb-image-text__body p:last-child { margin-bottom: 0; }

.cb-image-text__btn {
  align-self: flex-start;
}

/* ─────────────────────────────────────────────────────────────── */
/* LAYOUT: STATS ROW                                               */
/* ─────────────────────────────────────────────────────────────── */
.cb-stats-row {
  padding: 72px 0;
}

.cb-stats-row__header {
  margin-bottom: 48px;
}

.cb-stats-row__heading {
  margin-bottom: 0;
}

.cb-stats-row__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.cb-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.cb-bg--white .cb-stat-item,
.cb-bg--gray .cb-stat-item {
  padding: 32px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-lt);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cb-bg--dark .cb-stat-item,
.cb-bg--blue .cb-stat-item {
  padding: 0;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 24px;
}

.cb-stat-item__number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
  letter-spacing: 1px;
}

.cb-bg--blue .cb-stat-item__number { color: #fff; }
.cb-bg--dark .cb-stat-item__number { color: var(--blue); }

.cb-stat-item__label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.cb-bg--dark .cb-stat-item__label,
.cb-bg--blue .cb-stat-item__label { color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────────────────────────── */
/* LAYOUT: CTA BANNER                                              */
/* ─────────────────────────────────────────────────────────────── */
.cb-cta-banner {
  padding: 80px 0;
  text-align: center;
}

.cb-cta-banner--blue { background: var(--blue); color: #fff; }
.cb-cta-banner--dark { background: var(--dark); color: #fff; }

.cb-cta-banner__content {
  max-width: 700px;
  margin: 0 auto;
}

.cb-cta-banner__label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.cb-cta-banner--dark .cb-cta-banner__label { color: var(--blue); }

.cb-cta-banner__heading {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
}

.cb-cta-banner__body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

.cb-cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────── */
/* LAYOUT: FAQ ACCORDION                                           */
/* ─────────────────────────────────────────────────────────────── */
.cb-faq {
  padding: 80px 0;
}

.cb-faq__header {
  margin-bottom: 48px;
}

.cb-faq__heading {
  margin-bottom: 0;
}

.cb-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cb-faq-item {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cb-bg--white .cb-faq-item {
  border-color: var(--border-lt);
}

.cb-faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  transition: color 0.2s;
}

.cb-faq-item__question:hover { color: var(--blue); }

.cb-faq-item.is-open .cb-faq-item__question { color: var(--blue); }

.cb-faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--blue);
}

.cb-faq-item__icon::before,
.cb-faq-item__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* horizontal bar */
.cb-faq-item__icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* vertical bar — becomes horizontal (hidden) when open */
.cb-faq-item__icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cb-faq-item.is-open .cb-faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.cb-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.cb-faq-item__answer-inner {
  padding: 0 28px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
}

.cb-faq-item__answer-inner p { margin-bottom: 0.75em; }
.cb-faq-item__answer-inner p:last-child { margin-bottom: 0; }
.cb-faq-item__answer-inner a { color: var(--blue); text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                      */
/* ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cb-hero { padding: 120px 0 80px; }

  .cb-image-text__container,
  .cb-image-text--img-right .cb-image-text__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cb-image-text--img-right .cb-image-text__image-wrap { order: 0; }
  .cb-image-text--img-right .cb-image-text__content    { order: 0; }

  .cb-image-text__btn { align-self: stretch; text-align: center; }

  .cb-stats-row__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cb-hero { padding: 100px 0 60px; }
  .cb-hero__actions { flex-direction: column; }

  .cb-text-block,
  .cb-image-text,
  .cb-stats-row,
  .cb-cta-banner,
  .cb-faq { padding: 60px 0; }

  .cb-stats-row__grid { grid-template-columns: 1fr 1fr; }

  .cb-cta-banner__actions { flex-direction: column; }

  .cb-faq-item__question { padding: 18px 20px; }
  .cb-faq-item__answer-inner { padding: 0 20px 20px; }
}
