/* ============================================
   CONTENT MARKETING PAGE — alternating flex sections
   ============================================ */

.nav-dropdown-item.is-current { background: rgba(61, 107, 255, 0.1); }
.nav-dropdown-item.is-current .nav-dropdown-item-title { color: var(--signal-soft); }

/* ---------- SHARED FLEX TEXT TOKENS ---------- */
.flex-heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 20px;
}
.flex-subheading {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--paper-dim);
  line-height: 1.45;
  margin: 0 0 18px;
}
.flex-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 22px;
}

/* ---------- HERO ---------- */
.cm-hero {
  padding: clamp(140px, 16vw, 200px) 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}
.cm-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.cm-hero-copy, .cm-hero-visual { min-width: 0; }
@media (max-width: 1000px) {
  .cm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.cm-hero-copy .flex-heading { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 20ch; }
.cm-hero-copy .flex-subheading { font-size: var(--fs-lead); max-width: 48ch; }
.cm-hero-copy .flex-desc { max-width: 54ch; }

.question-block {
  margin: 0 0 30px;
  padding: 22px 26px;
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(255,154,61,0.08), transparent);
}
.question-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.question-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--amber-soft);
  margin: 0;
  line-height: 1.4;
}
.cm-hero .hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }

.cm-hero-visual, .flex-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.cm-hero-visual img, .flex-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--hairline);
  display: block;
  filter: saturate(0.88) brightness(0.9);
}
.visual-frame-glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(61,107,255,0.25);
  background: linear-gradient(200deg, rgba(61,107,255,0.18), transparent 50%);
}

/* ---------- REPEATING FLEX SECTION ---------- */
.flex-section {
  padding: var(--section-pad) 0;
}
.flex-section:nth-of-type(even) { background: var(--ink-soft); }

.flex-row {
  display: flex;
  align-items: center;
  gap: 64px;
}
.flex-row.is-reversed { flex-direction: row-reverse; }

@media (max-width: 900px) {
  .flex-row, .flex-row.is-reversed { flex-direction: column; gap: 36px; }
}

.flex-text { flex: 1 1 50%; min-width: 0; position: relative; }
.flex-visual-col { flex: 1 1 50%; min-width: 0; }

.flex-text .flex-heading { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 22ch; }
.flex-text .flex-subheading { font-size: 1.15rem; max-width: 42ch; }
.flex-text .flex-desc { max-width: 50ch; }

.flex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
@media (max-width: 560px) { .flex-list { grid-template-columns: 1fr; } }
.flex-list li {
  position: relative;
  padding-left: 22px;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.5;
}
.flex-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
}
.flex-row.is-reversed .flex-list li::before { background: var(--amber); }

/* Numbered variant for framework pillars list */
.flex-list.is-numbered {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.flex-list.is-numbered li {
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--hairline);
}
.flex-list.is-numbered li::before {
  content: attr(data-num);
  position: static;
  display: inline-block;
  position: absolute;
  left: 0; top: 11px;
  width: 28px; height: auto;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--signal-soft);
}

/* Text-only variant (no image) — centers content in a wider readable column */
.flex-text-only {
  max-width: 760px;
}
.flex-text-only .flex-heading { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 24ch; }
.flex-text-only .flex-subheading { font-size: 1.18rem; max-width: 50ch; }
.flex-text-only .flex-desc { max-width: 64ch; }
.flex-text-only .flex-list {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 8px;
}
@media (max-width: 560px) { .flex-text-only .flex-list { grid-template-columns: 1fr; } }
.flex-text-only .flex-list li {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--signal-soft);
  font-size: 1rem;
}

/* ---------- PHILOSOPHY (flex with quote-style actions) ---------- */
.philosophy-section { padding: var(--section-pad) 0; background: var(--ink-soft); }
.philosophy-row {
  display: flex;
  align-items: center;
  gap: 64px;
}
@media (max-width: 900px) { .philosophy-row { flex-direction: column; gap: 36px; } }
.philosophy-text { flex: 1 1 50%; min-width: 0; }
.philosophy-visual-col { flex: 1 1 50%; min-width: 0; }
.philosophy-text .flex-heading { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 20ch; }
.philosophy-text .flex-desc { max-width: 52ch; }
.philosophy-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 22px 0 0;
}
.philosophy-action-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper-dim);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.philosophy-action-item:last-child { color: var(--amber-soft); border-bottom: none; font-weight: 500; }
.philosophy-visual-col img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--hairline);
  filter: saturate(0.85) brightness(0.85);
}
