/**
 * Reusable Decision Framework, Evidence Validation, Metric-First Proof & Pre-Start FAQ Styles
 * Aligned 1:1 with Official SPE Canva Brand Palette (#226422, #3AA93A, #9EDE9E, #063020, #F4F4F4, #FFFFFF).
 * Works standalone on LPs (no Bootstrap required) and inside the WordprSEO Child theme.
 */

.spe-ext-section {
  padding: clamp(2.6rem, 4.5vw, 4rem) 0;
  color: #111814;
  background: #ffffff;
  border-top: 1px solid #dfe8e1;
}

.spe-ext-section--sand {
  background: #f4f4f4;
}

.spe-ext-section--deep {
  background: linear-gradient(135deg, #063020 0%, #144929 55%, #226422 100%);
  color: #ffffff;
  border-top: 0;
}

.spe-ext-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.spe-ext-head {
  max-width: 860px;
  margin-bottom: 1.75rem;
}

.spe-ext-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #226422;
  background: rgba(58, 169, 58, 0.11);
  border: 1px solid rgba(34, 100, 34, 0.2);
  border-radius: 6px;
  padding: 0.28rem 0.68rem;
  margin-bottom: 0.65rem;
}

.spe-ext-section--deep .spe-ext-eyebrow {
  color: #9ede9e;
  background: rgba(158, 222, 158, 0.14);
  border-color: rgba(158, 222, 158, 0.34);
}

.spe-ext-title {
  font-size: clamp(1.42rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.28;
  color: #063020;
  margin: 0 0 0.65rem;
}

.spe-ext-section--deep .spe-ext-title {
  color: #ffffff;
}

.spe-ext-lead {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #34443a;
  margin: 0;
}

.spe-ext-section--deep .spe-ext-lead {
  color: rgba(255, 255, 255, 0.88);
}

/* Grids */
.spe-ext-grid {
  display: grid;
  gap: 1.15rem;
}

.spe-ext-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spe-ext-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spe-ext-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards */
.spe-ext-card {
  background: #ffffff;
  border: 1px solid #d8e4db;
  border-top: 3px solid #3aa93a;
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 6px 20px rgba(6, 48, 32, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}

.spe-ext-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 48, 32, 0.09);
  border-color: #226422;
}

.spe-ext-card--dark {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(158, 222, 158, 0.28);
  border-top: 3px solid #9ede9e;
  color: #ffffff;
  box-shadow: none;
}

.spe-ext-card--dark:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: #9ede9e;
}

.spe-ext-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.spe-ext-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 0.5rem;
  border-radius: 6px;
  background: #e9f7e9;
  color: #226422;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
}

.spe-ext-card--dark .spe-ext-num {
  background: rgba(158, 222, 158, 0.2);
  color: #9ede9e;
}

.spe-ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #226422;
  background: #f4f8f4;
  border: 1px solid #cce3ce;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.spe-ext-card--dark .spe-ext-pill {
  color: #e9f7e9;
  background: rgba(158, 222, 158, 0.16);
  border-color: rgba(158, 222, 158, 0.34);
}

.spe-ext-card-title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.42;
  color: #063020;
  margin: 0.15rem 0 0;
}

.spe-ext-card--dark .spe-ext-card-title {
  color: #ffffff;
}

.spe-ext-card-question {
  font-size: 0.88rem;
  font-weight: 700;
  color: #226422;
  background: #eff8ef;
  border-inline-start: 3px solid #3aa93a;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  margin: 0.15rem 0;
}

.spe-ext-card-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #46574c;
  margin: 0;
}

.spe-ext-card--dark .spe-ext-card-text {
  color: rgba(255, 255, 255, 0.86);
}

.spe-ext-card-link {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #e6eee8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #226422;
  text-decoration: none;
}

.spe-ext-card-link:hover {
  color: #3aa93a;
  text-decoration: underline;
}

/* Decision Transition Bar (Proceed -> Redesign -> Defer -> Stop) */
.spe-ext-transitions {
  margin-top: 1.5rem;
  background: #f8fbf8;
  border: 1px solid #cfe2d2;
  border-radius: 12px;
  padding: 1.35rem;
}

.spe-ext-transitions-head {
  font-size: 0.96rem;
  font-weight: 800;
  color: #063020;
  margin: 0 0 0.85rem;
}

.spe-ext-outcome-chip {
  background: #ffffff;
  border: 1px solid #d5e4d8;
  border-radius: 9px;
  padding: 0.95rem 1rem;
  height: 100%;
}

.spe-ext-outcome-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: 5px;
  margin-bottom: 0.45rem;
}

.spe-ext-outcome-label--go {
  background: #e9f7e9;
  color: #1b5c1b;
}

.spe-ext-outcome-label--redesign {
  background: #edf5ef;
  color: #063020;
}

.spe-ext-outcome-label--defer {
  background: #f4f4f4;
  color: #34443a;
}

.spe-ext-outcome-label--stop {
  background: #f8eeee;
  color: #7c2424;
}

/* Callout / Drivers Banner */
.spe-ext-callout {
  margin-top: 1.5rem;
  background: linear-gradient(120deg, #063020 0%, #226422 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.spe-ext-callout--light {
  background: #ffffff;
  color: #111814;
  border: 1px solid #cbe0cf;
  border-inline-start: 5px solid #226422;
}

.spe-ext-callout-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #9ede9e;
}

.spe-ext-callout--light .spe-ext-callout-title {
  color: #063020;
}

.spe-ext-callout-text {
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.spe-ext-callout--light .spe-ext-callout-text {
  color: #34443a;
}

/* Client Results — Number First Rule */
.spe-ext-metric-box {
  background: #ffffff;
  border: 1px solid #d5e4d8;
  border-top: 4px solid #226422;
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 24px rgba(6, 48, 32, 0.06);
}

.spe-ext-metric-val {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  color: #226422;
  margin-bottom: 0.45rem;
}

.spe-ext-metric-lbl {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #063020;
  margin-bottom: 0.45rem;
}

.spe-ext-metric-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #46574c;
  margin: 0;
}

.spe-ext-attrib {
  margin-top: 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #34443a;
  background: #f4f8f4;
  border: 1px dashed #b9d5be;
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
}

/* Native HTML5 FAQ Accordion (<details>) */
.spe-ext-faq-list {
  display: grid;
  gap: 0.8rem;
}

.spe-ext-faq-item {
  background: #ffffff;
  border: 1px solid #d5e4d8;
  border-radius: 10px;
  overflow: hidden;
}

.spe-ext-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: #063020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.spe-ext-faq-q::-webkit-details-marker {
  display: none;
}

.spe-ext-faq-caret {
  flex: 0 0 auto;
  color: #226422;
  transition: transform 0.2s ease;
}

.spe-ext-faq-item[open] .spe-ext-faq-caret {
  transform: rotate(180deg);
}

.spe-ext-faq-a {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.72;
  color: #46574c;
  border-top: 1px solid #eef3ef;
  padding-top: 0.85rem;
}

/* Buttons */
.spe-ext-cta-bar {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #063020;
  color: #ffffff;
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
}

.spe-ext-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #3aa93a;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 0.82rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid #3aa93a;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.spe-ext-cta-btn:hover {
  background: #2f912f;
  transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 1023.98px) {
  .spe-ext-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spe-ext-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .spe-ext-grid--4,
  .spe-ext-grid--3,
  .spe-ext-grid--2 {
    grid-template-columns: 1fr;
  }
  .spe-ext-section {
    padding: 2.15rem 0;
  }
  .spe-ext-container {
    padding-inline: 16px;
  }
  .spe-ext-cta-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem 1rem;
  }
  .spe-ext-cta-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
