/* ============================================================
   Blue Goose — Change & Transformation Design-System blocks
   Namespaced under .cds-section so nothing here leaks to the
   rest of the site. Token values lifted from the design system
   (orange #e57001 on white, deep purple gradient, cards).
   ============================================================ */

.cds-section {
  /* local tokens */
  --cds-primary: #e57001;
  --cds-primary-600: #d1630a;
  --cds-primary-700: #b85800;
  --cds-ink-900: #1f2937;
  --cds-ink-body: #4b4b4b;
  --cds-ink-500: #6b7280;
  --cds-line: #e5e7eb;
  --cds-subtle: #f9fafb;
  --cds-black: #000;
  --cds-radius-lg: 12px;
  --cds-radius-md: 8px;
  --cds-shadow: 0 4px 6px rgba(0,0,0,.05);
  --cds-shadow-hover: 0 8px 20px rgba(0,0,0,.12);
  --cds-gradient-purple: linear-gradient(180deg, #0f030c 0%, #420c38 55%, #791467 100%);
  --cds-gradient-orange: linear-gradient(135deg, #e57001 0%, #d1630a 100%);
  /* Match the site exactly: DIN 2014 Narrow for display, DIN 2014 for body
     (Adobe Typekit kit hkw8pur, loaded site-wide by the theme). */
  --cds-display: "din-2014-narrow", sans-serif;
  --cds-body: "din-2014", sans-serif;

  /* full-bleed breakout from the theme .container — robust margin technique
     that does not rely on position/left (which the editor's alignfull rules
     override, causing the block to shift sideways). */
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 72px 24px;
  font-family: var(--cds-body);
}

/* These blocks are full-bleed by design, so the editor's Wide/Full alignment
   must not change (or double-apply) the breakout. */
.cds-section.alignfull,
.cds-section.alignwide {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* background variants */
/* Inside the block editor the canvas is not the full viewport, so the 100vw
   breakout pushes blocks off-screen. Neutralise it there; front-end is unaffected
   because .editor-styles-wrapper only exists in the editor. */
.editor-styles-wrapper .cds-section,
.editor-styles-wrapper .cds-section.alignfull,
.editor-styles-wrapper .cds-section.alignwide {
  left: auto !important;
  right: auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cds-section.cds--white  { background: #fff; }
.cds-section.cds--subtle { background: var(--cds-subtle); }
.cds-section.cds--purple { background: var(--cds-gradient-purple); color: #fff; padding-top: 80px; padding-bottom: 80px; overflow: hidden; }
.cds-section.cds--orange { background: var(--cds-gradient-orange); color: #fff; text-align: center; }

.cds-section *,
.cds-section *::before,
.cds-section *::after { box-sizing: border-box; }

.cds-wrap { max-width: 1140px; margin: 0 auto; }
.cds-wrap--narrow { max-width: 900px; }
.cds-wrap--prose  { max-width: 880px; }

/* ---------- section header ---------- */
.cds-head { margin-bottom: 44px; }
.cds-head--center { text-align: center; }
.cds-h {
  font-family: var(--cds-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--cds-black);
  margin: 0 0 14px;
}
.cds--purple .cds-h, .cds--orange .cds-h { color: #fff; }
.cds-underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--cds-primary);
  border-radius: 2px;
  margin: 0 0 24px;
}
.cds-head--center .cds-underline { margin-left: auto; margin-right: auto; }
.cds-lead {
  font-family: var(--cds-body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--cds-ink-body);
  margin: 0;
  max-width: 76ch;
}
.cds-head--center .cds-lead { margin-left: auto; margin-right: auto; }
.cds--purple .cds-lead { color: rgba(255,255,255,.82); }

/* body prose */
.cds-p {
  font-family: var(--cds-body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  color: var(--cds-ink-body);
  margin: 0 0 18px;
}
.cds-p:last-child { margin-bottom: 0; }
.cds-p a { color: var(--cds-primary); text-decoration: none; font-weight: 400; }
.cds-p a:hover { color: var(--cds-primary-700); text-decoration: underline; }

/* rich-text (WYSIWYG) output inside prose / checklist / cta */
.cds-rte p {
  font-family: var(--cds-body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  color: var(--cds-ink-body);
  margin: 0 0 18px;
}
.cds-rte p:last-child { margin-bottom: 0; }
.cds-rte a { color: var(--cds-primary); text-decoration: none; font-weight: 400; }
.cds-rte a:hover { color: var(--cds-primary-700); text-decoration: underline; }
.cds-rte ul { margin: 0 0 18px; padding-left: 22px; }
.cds-rte li { font-family: var(--cds-body); font-weight: 300; font-size: 18px; line-height: 1.5; color: var(--cds-ink-body); margin-bottom: 6px; }
.cds--purple .cds-rte p, .cds--orange .cds-rte p { color: rgba(255,255,255,.92); }
.cds-footnote { margin-top: 4px; max-width: 80ch; }

/* ---------- grids ---------- */
.cds-grid { display: grid; gap: 24px; }
.cds-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cds-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- card (audiences / challenges) ---------- */
.cds-card {
  background: #fff;
  border: 1px solid var(--cds-line);
  border-radius: var(--cds-radius-lg);
  box-shadow: var(--cds-shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.cds-card:hover { transform: translateY(-4px); box-shadow: var(--cds-shadow-hover); }
.cds-card--accent { border-top: 3px solid var(--cds-primary); }
.cds-card-body { padding: 26px; }
.cds-card-img { height: 180px; overflow: hidden; background: #efe7ee; }
.cds-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cds-card:hover .cds-card-img img { transform: scale(1.05); }
.cds-card-title {
  font-family: var(--cds-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--cds-ink-900);
  margin: 0 0 10px;
}
.cds-card--accent .cds-card-title { font-size: 19px; }
.cds-card-text {
  font-family: var(--cds-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cds-ink-500);
  margin: 0;
}
.cds-ic {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(229,112,1,.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cds-ic i { color: var(--cds-primary); font-size: 22px; }

/* ---------- checklist (includes / outcomes) ---------- */
.cds-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-bottom: 30px; }
.cds-check-box {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--cds-line);
  border-radius: var(--cds-radius-md); padding: 16px 20px;
}
.cds-check-box i { color: var(--cds-primary); font-size: 16px; flex-shrink: 0; }
.cds-check-box span { font-family: var(--cds-body); font-weight: 400; font-size: 17px; color: var(--cds-ink-900); }
.cds-check-plain { display: flex; align-items: flex-start; gap: 14px; }
.cds-check-plain i { color: var(--cds-primary); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.cds-check-plain span { font-family: var(--cds-body); font-weight: 300; font-size: 18px; line-height: 1.4; color: var(--cds-ink-body); }
.cds-footnote { margin-top: 4px; }

/* ---------- steps (approach, purple) ---------- */
.cds-step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--cds-radius-lg);
  padding: 26px;
}
.cds-step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cds-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cds-display); font-weight: 600; font-size: 20px;
  margin-bottom: 18px;
}
.cds-step h3 { font-family: var(--cds-display); font-weight: 500; font-size: 19px; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.cds-step p { font-family: var(--cds-body); font-weight: 300; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.8); margin: 0; }

/* ---------- proof strip ---------- */
.cds-proof-intro { text-align: center; max-width: 76ch; margin: 0 auto 44px; }
.cds-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cds-proof-card {
  background: #fff; border: 1px solid var(--cds-line);
  border-radius: var(--cds-radius-lg); box-shadow: var(--cds-shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.cds-proof-card:hover { transform: translateY(-4px); box-shadow: var(--cds-shadow-hover); }
.cds-proof-img { height: 160px; overflow: hidden; background: #efe7ee; }
.cds-proof-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cds-proof-card:hover .cds-proof-img img { transform: scale(1.05); }
.cds-proof-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cds-proof-body h3 { font-family: var(--cds-display); font-weight: 600; font-size: 20px; color: var(--cds-ink-900); margin: 0 0 12px; }
.cds-proof-body p { font-family: var(--cds-body); font-weight: 300; font-size: 15px; line-height: 1.5; color: var(--cds-ink-500); margin: 0 0 20px; }
.cds-proof-link {
  margin-top: auto; font-family: var(--cds-display); font-weight: 500; font-size: 15px;
  color: var(--cds-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.cds-proof-link i { font-size: 12px; transition: transform .2s ease; }
.cds-proof-link:hover { color: var(--cds-primary-700); }
.cds-proof-link:hover i { transform: translateX(3px); }

/* ---------- why choose (split) ---------- */
.cds-why-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.cds-why-box { background: var(--cds-subtle); border: 1px solid var(--cds-line); border-radius: var(--cds-radius-lg); padding: 8px 30px; }
.cds-why-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cds-line); }
.cds-why-item:last-child { border-bottom: none; }
.cds-why-item i { color: var(--cds-primary); font-size: 16px; margin-top: 3px; flex-shrink: 0; }
.cds-why-item span { font-family: var(--cds-body); font-weight: 400; font-size: 17px; line-height: 1.4; color: var(--cds-ink-900); }

/* ---------- insights ---------- */
.cds-ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.cds-ins-card { background: var(--cds-subtle); border: 1px solid var(--cds-line); border-radius: var(--cds-radius-lg); padding: 28px; }
.cds-ins-card h3 { font-family: var(--cds-display); font-weight: 600; font-size: 18px; color: var(--cds-primary); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .04em; }
.cds-ins-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cds-ins-list a { display: flex; gap: 10px; font-family: var(--cds-body); font-weight: 300; font-size: 16px; line-height: 1.45; color: var(--cds-ink-body); text-decoration: none; }
.cds-ins-list a i { color: var(--cds-primary); font-size: 12px; margin-top: 5px; flex-shrink: 0; }
.cds-ins-list a:hover { color: var(--cds-primary-700); }
.cds-ins-list a:hover span { text-decoration: underline; }

/* ---------- CTA (orange) ---------- */
.cds-cta-title { font-family: var(--cds-display); font-weight: 300; font-size: 44px; letter-spacing: 0; margin: 0 0 20px; color: #fff; }
.cds--orange .cds-p { color: rgba(255,255,255,.94); font-size: 20px; }
.cds-cta-body { max-width: 820px; margin: 0 auto 28px; }
.cds-btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cds-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cds-display); font-weight: 500; font-size: 16px;
  padding: 14px 26px; border-radius: 6px; cursor: pointer;
  text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cds-btn--dark { background: #1a1420; color: #fff; border: 2px solid transparent; }
.cds-btn--dark:hover { background: #000; color: #fff; }
.cds-btn--outline { background: transparent; color: #fff; border: 2px solid #fff; }
.cds-btn--outline:hover { background: #fff; color: var(--cds-primary-600); }
.cds-btn--primary { background: var(--cds-primary); color: #fff; border: 2px solid transparent; }
.cds-btn--primary:hover { background: var(--cds-primary-600); color: #fff; }

/* ---------- trust strip (USPs under hero, orange band) ---------- */
.cds-section.cds-trust-band { background: var(--cds-primary); padding-top: 34px; padding-bottom: 34px; }
.cds-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cds-trust-item { display: flex; align-items: center; gap: 14px; }
.cds-trust-item i { color: #fff; font-size: 24px; flex-shrink: 0; }
.cds-trust-item span { font-family: var(--cds-body); font-weight: 400; font-size: 16px; line-height: 1.35; color: #fff; }

/* ---------- FAQ restyle to match design (targets existing block) ---------- */
.cds-faq-band { background: var(--cds-subtle); }
.cds-faq-band .faq-accordion-block { max-width: 900px; margin: 0 auto; }
.cds-faq-band .faq-container { max-width: 900px; margin: 0 auto; padding: 0; }
.cds-faq-band .faq-item { border: 1px solid var(--cds-line); border-radius: 8px; background: #fff; margin-bottom: 12px; }
.cds-faq-band .faq-question { font-family: var(--cds-display) !important; font-weight: 500 !important; font-size: 18px !important; color: var(--cds-ink-900); padding: 20px 24px; }
.cds-faq-band .faq-answer p { font-family: var(--cds-body); font-size: 17px !important; font-weight: 300 !important; color: var(--cds-ink-body) !important; line-height: 1.55; }
.cds-faq-band .faq-question .icon { color: var(--cds-primary); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .cds-grid--3, .cds-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cds-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .cds-why-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .cds-section { padding: 48px 20px; }
  .cds-h { font-size: 30px; }
  .cds-cta-title { font-size: 32px; }
  .cds-grid--2, .cds-grid--3, .cds-grid--4 { grid-template-columns: 1fr; }
  .cds-check-grid, .cds-proof-grid, .cds-ins-grid, .cds-trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cds-trust-grid { grid-template-columns: 1fr; gap: 16px; }
}
