/* Theory of Change page redesign — theory-of-change.php
   Scoped under body.theory-redesign. Matches services, testimonials, fundings. */

body.theory-redesign {
  --reg-btn-height: 53px;
  --reg-btn-font-size: 1.14rem;
  --reg-btn-gap: 12px;
  background-color: #F3F6FA;
}

/* Page sections — shared light wash; Approach + Flow are white */
body.theory-redesign .theory-intro-redesign {
  background: #F3F6FA !important;
  background-color: #F3F6FA !important;
}

body.theory-redesign .theory-approach-redesign,
body.theory-redesign .reg-flow-bleed,
body.theory-redesign .reg-flow {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Remove stray gap bands between sections */
body.theory-redesign .wp-block-spacer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

body.theory-redesign .theory-intro-redesign {
  margin-bottom: 0;
}

body.theory-redesign .reg-flow-bleed {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
}

body.theory-redesign .reg-flow-bleed::after {
  content: "";
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 56px);
  background-color: #ffffff;
}

/* Unified CTA buttons */
body.theory-redesign .guten-button,
body.theory-redesign .guten-button-wrapper .guten-button,
body.theory-redesign .theory-intro-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--reg-btn-gap);
  min-height: var(--reg-btn-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 29px !important;
  padding-right: 29px !important;
  font-size: var(--reg-btn-font-size) !important;
  line-height: 1.2;
  box-sizing: border-box;
  border-radius: 0 !important;
  text-decoration: none !important;
  background-color: var(--reg-gold-bright, #0A2540) !important;
  border: 1px solid var(--reg-gold-bright, #0A2540) !important;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.theory-redesign .theory-intro-btn span,
body.theory-redesign .guten-button-wrapper .guten-button span {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-family: var(--reg-font-body, "Figtree", sans-serif);
}

body.theory-redesign .theory-intro-btn i,
body.theory-redesign .guten-button-wrapper .guten-button i {
  font-size: 1.14rem !important;
  margin-left: 0 !important;
  line-height: 1;
  flex-shrink: 0;
  color: #ffffff !important;
}

body.theory-redesign .theory-intro-btn:hover,
body.theory-redesign .guten-button-wrapper .guten-button:hover {
  background-color: var(--color-primary, #0A2540) !important;
  border-color: var(--color-primary-dark, #14345C) !important;
}

/* ==========================================================================
   Theory overview — Vision / Mission / Problem
   ========================================================================== */

body.theory-redesign .theory-intro-redesign {
  padding: 72px 24px 80px;
}

body.theory-redesign .theory-intro-container {
  max-width: 1180px;
  margin: 0 auto;
}

body.theory-redesign .theory-intro-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

body.theory-redesign .theory-intro-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  font-family: var(--reg-font-body, "Figtree", sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--reg-gold, #1B3A5C) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  line-height: 1.4 !important;
}

body.theory-redesign .theory-intro-title,
body.theory-redesign .theory-intro-title strong {
  margin: 0 !important;
  font-family: var(--reg-font-display, "Fraunces", serif) !important;
  font-size: 52px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em !important;
  color: var(--reg-ink, #1F1B14) !important;
}

body.theory-redesign .theory-intro-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 20px auto 0;
  background-color: var(--reg-gold-bright, #0A2540);
}

body.theory-redesign .theory-intro-lead {
  margin: 24px 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #5c554c;
}

body.theory-redesign .theory-intro-actions {
  margin-top: 28px;
}

body.theory-redesign .theory-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

body.theory-redesign .theory-intro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #D0D8E4;
  border-left: 3px solid var(--reg-gold-bright, #0A2540);
  padding: 28px 26px 26px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

body.theory-redesign .theory-intro-card:hover {
  background: #ffffff;
  border-color: #D0D8E4;
  border-left-color: #1B3A5C;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08);
  transform: translateY(-3px);
}

body.theory-redesign .theory-intro-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

body.theory-redesign .theory-intro-card__icon i,
body.theory-redesign .theory-approach-point__icon i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

body.theory-redesign .theory-intro-card__icon--svg svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theory-redesign .theory-intro-card__num {
  flex-shrink: 0;
  padding: 4px 10px;
  font-family: var(--reg-font-body, "Figtree", sans-serif);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--reg-gold, #1B3A5C);
  background: rgba(20, 52, 92, 0.1);
  border: 1px solid rgba(20, 52, 92, 0.22);
}

body.theory-redesign .theory-intro-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  flex-shrink: 0;
  color: var(--reg-gold, #1B3A5C);
  background: transparent;
  transition: transform 0.3s ease, color 0.3s ease;
}

body.theory-redesign .theory-intro-card__icon i {
  font-size: 1.35rem;
  line-height: 1;
}

body.theory-redesign .theory-intro-card:hover .theory-intro-card__icon {
  transform: scale(1.06);
  color: var(--reg-ink, #1F1B14);
}

body.theory-redesign .theory-intro-card__title {
  margin: 0 0 12px;
  font-family: var(--reg-font-display, "Fraunces", serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f1b16;
}

body.theory-redesign .theory-intro-card__rule {
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 14px;
  background-color: var(--reg-gold-bright, #0A2540);
}

body.theory-redesign .theory-intro-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: #5a534c;
}

@media only screen and (max-width: 991px) {
  body.theory-redesign .theory-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  body.theory-redesign .theory-intro-card:last-child {
    grid-column: 1 / -1;
  }

  body.theory-redesign .theory-intro-title,
  body.theory-redesign .theory-intro-title strong {
    font-size: clamp(2rem, 5.5vw, 44px) !important;
  }
}

@media only screen and (max-width: 640px) {
  body.theory-redesign .theory-intro-redesign {
    padding: 52px 16px 60px;
  }

  body.theory-redesign .theory-intro-header {
    margin-bottom: 32px;
  }

  body.theory-redesign .theory-intro-title,
  body.theory-redesign .theory-intro-title strong {
    font-size: clamp(1.75rem, 7vw, 34px) !important;
    line-height: 1.28 !important;
  }

  body.theory-redesign .theory-intro-lead {
    font-size: 0.98rem;
  }

  body.theory-redesign .theory-intro-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.theory-redesign .theory-intro-card:last-child {
    grid-column: auto;
  }

  body.theory-redesign .theory-intro-card {
    padding: 22px 20px 20px;
  }
}

/* Flow section — "Theory of change" kicker (theme underline) */
body.theory-redesign .reg-flow .reg-flow__label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px !important;
  font-family: var(--reg-font-body, "Figtree", sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--reg-gold, #1B3A5C) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  line-height: 1.4 !important;
}

body.theory-redesign .reg-flow .reg-flow__title {
  font-family: var(--reg-font-display, "Fraunces", serif) !important;
  font-size: 52px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em !important;
  color: var(--reg-ink, #1F1B14) !important;
  margin: 0 0 48px !important;
  max-width: none !important;
  width: 100% !important;
}

body.theory-redesign .reg-flow .reg-flow__grid {
  background: #D0D8E4 !important;
}

body.theory-redesign .reg-flow .reg-flow__box {
  background: #ffffff !important;
}

body.theory-redesign .reg-flow .reg-flow__box:hover {
  background: #F3F6FA !important;
}

body.theory-redesign .reg-flow .reg-flow__box h3 {
  color: var(--reg-ink, #1F1B14) !important;
}

body.theory-redesign .reg-flow .reg-flow__box p {
  color: #5a534c !important;
  opacity: 1 !important;
}

body.theory-redesign .reg-flow .reg-flow__title-line {
  display: block;
  line-height: 1.22;
  white-space: nowrap;
}

@media only screen and (max-width: 991px) {
  body.theory-redesign .reg-flow .reg-flow__title {
    font-size: clamp(2rem, 5.5vw, 44px) !important;
  }

  body.theory-redesign .reg-flow .reg-flow__title-line {
    white-space: normal;
  }
}

@media only screen and (max-width: 640px) {
  body.theory-redesign .reg-flow .reg-flow__title {
    font-size: clamp(1.75rem, 7vw, 34px) !important;
    line-height: 1.28 !important;
    margin-bottom: 32px !important;
  }
}

/* ==========================================================================
   Our Approach — image left, content right
   ========================================================================== */

body.theory-redesign .theory-approach-redesign {
  padding: 72px clamp(16px, 2.5vw, 36px) 88px;
}

body.theory-redesign .theory-approach-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

body.theory-redesign .theory-approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

body.theory-redesign .theory-approach-media {
  position: relative;
  overflow: hidden;
  background: #F3F6FA;
  border: 1px solid #D0D8E4;
  width: 100%;
  height: 0;
  padding-bottom: calc(66.666% + 150px);
}

body.theory-redesign .theory-approach-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.theory-redesign .theory-approach-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.theory-redesign .theory-approach-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  font-family: var(--reg-font-body, "Figtree", sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--reg-gold, #1B3A5C) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  line-height: 1.4 !important;
}

body.theory-redesign .theory-approach-quote {
  margin: 0 0 40px;
  padding: 0 0 0 18px;
  border: none;
  border-left: 3px solid var(--reg-gold-bright, #0A2540);
  font-family: var(--reg-font-display, "Fraunces", serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--reg-ink, #1F1B14);
}

body.theory-redesign .theory-approach-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.theory-redesign .theory-approach-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 22px;
  border-top: 1px solid #D0D8E4;
}

body.theory-redesign .theory-approach-point:first-child {
  padding-top: 8px;
  border-top: none;
}

body.theory-redesign .theory-approach-point__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--reg-gold, #1B3A5C);
  font-size: 1.15rem;
  line-height: 1;
}

body.theory-redesign .theory-approach-point__title {
  margin: 0 0 8px;
  font-family: var(--reg-font-display, "Fraunces", serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f1b16;
}

body.theory-redesign .theory-approach-point__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: #5a534c;
}

@media only screen and (max-width: 991px) {
  body.theory-redesign .theory-approach-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.theory-redesign .theory-approach-media {
    position: relative;
    max-width: none;
    padding-bottom: calc(66.666% + 150px);
  }
}

@media only screen and (max-width: 640px) {
  body.theory-redesign .theory-approach-redesign {
    padding: 56px 16px 64px;
  }

  body.theory-redesign .theory-approach-quote {
    margin-bottom: 32px;
    padding-left: 14px;
    font-size: 1.15rem;
  }

  body.theory-redesign .theory-approach-points {
    gap: 18px;
  }

  body.theory-redesign .theory-approach-point {
    padding-top: 18px;
  }
}

/* Sharp edges */
body.theory-redesign .theory-intro-card,
body.theory-redesign .theory-intro-card__icon,
body.theory-redesign .theory-intro-card__num,
body.theory-redesign .theory-intro-btn,
body.theory-redesign .theory-approach-media,
body.theory-redesign .theory-approach-media img,
body.theory-redesign .guten-button,
body.theory-redesign .guten-button-wrapper .guten-button {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}