/* ── SERVICE DETAIL PAGES — shared components ──────────── */

/* ── HERO (image emerges from right, same technique as services.css) ── */
.sd-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding-top: 66px;
  min-height: 560px;
}
@media (min-width: 768px) {
  .sd-hero {
    display: flex;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .sd-hero {
    min-height: clamp(650px, 78vh, 750px);
  }
}
.sd-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 75% 30%,
      rgba(27, 79, 138, 0.22) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 50% at 10% 85%,
      rgba(245, 166, 35, 0.07) 0%,
      transparent 50%
    );
}
.sd-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 79, 138, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 79, 138, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 85% 85% at 40% 40%,
    black 20%,
    transparent 100%
  );
}
.sd-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 44px var(--s-px) 48px;
}
@media (min-width: 1024px) {
  .sd-hero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
.sd-hero__content {
  max-width: 600px;
  min-width: 0;
}
@media (min-width: 768px) {
  .sd-hero__content {
    max-width: 54%;
  }
}
@media (min-width: 1024px) {
  .sd-hero__content {
    max-width: 560px;
  }
}
.sd-hero__content .page-hero__title {
  margin-bottom: 16px;
}
.sd-hero__content .page-hero__sub {
  margin-bottom: 26px;
}
.sd-hero__content .btn-group {
  margin-bottom: 28px;
}
.sd-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.sd-hero__point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.sd-hero__point svg {
  width: 18px;
  height: 18px;
  color: var(--blue-glow);
  flex-shrink: 0;
}
.sd-hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  mask-image: radial-gradient(
    ellipse 65% 75% at 68% 40%,
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, 0.65) 58%,
    rgba(0, 0, 0, 0.15) 85%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 65% 75% at 68% 40%,
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, 0.65) 58%,
    rgba(0, 0, 0, 0.15) 85%,
    transparent 100%
  );
}
@media (min-width: 768px) {
  .sd-hero__photo {
    /* Anchored directly to the section's own edges (not a fixed-px
       bleed), so it always reaches the true right edge with zero gap
       regardless of viewport width. */
    position: absolute;
    inset: 0 0 0 auto;
    margin-top: 0;
    width: 46%;
    aspect-ratio: auto;
  }
}
@media (min-width: 1024px) {
  .sd-hero__photo {
    width: 44%;
  }
}
.sd-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 35%;
}

/* ── SHARED TWO-COLUMN INTRO ROW ───────────────────────── */
.sd-intro-row {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
  align-items: end;
}
@media (min-width: 1024px) {
  .sd-intro-row {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
/* ── SECTION 2: OUTCOME ────────────────────────────────── */
.sd-outcome-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .sd-outcome-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.sd-outcome-item {
  background: var(--navy-2);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--t);
}
.sd-outcome-item:hover {
  border-color: rgba(74, 158, 240, 0.35);
  transform: translateY(-2px);
}
.sd-outcome-item__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.sd-outcome-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-outcome-item p {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}
.sd-statement {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.35;
  color: var(--white);
  max-width: 820px;
  margin: 24px 0;
}
.sd-statement__accent {
  color: var(--gold);
}
/* ── SECTION 2 (EDITORIAL VARIANT): THE DIAGNOSIS ─────────── */
.sd-diagnosis {
  display: grid;
  gap: 36px;
}
@media (max-width: 899px) {
  .sd-diagnosis__media {
    order: 2;
  }
  .sd-diagnosis__content {
    order: 1;
  }
}
@media (min-width: 900px) {
  .sd-diagnosis {
    grid-template-columns: 0.85fr 1fr;
    gap: 56px;
    align-items: center;
  }
}
.sd-diagnosis__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
@media (min-width: 900px) {
  .sd-diagnosis__media {
    aspect-ratio: 3 / 4;
  }
}
.sd-diagnosis__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 13, 26, 0) 55%,
    rgba(5, 13, 26, 0.35) 100%
  );
}
.sd-diagnosis__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.sd-diagnosis__content {
  min-width: 0;
  max-width: 600px;
}
.sd-diagnosis__content .section-title {
  margin-bottom: 20px;
}
.sd-diagnosis__body {
  font-size: 15px;
  color: var(--muted-2);
  line-height: 1.75;
  max-width: 540px;
}
.sd-diagnosis__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 28px 0;
}
.sd-diagnosis__subhead {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 6px;
}
.sd-diagnosis__highlight {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  margin-bottom: 20px;
}
.sd-diagnosis__support {
  font-size: 14.5px;
  color: var(--muted-2);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 28px;
}
.sd-diagnosis__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.sd-diagnosis__stat-label {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.sd-diagnosis__stat-value {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 44px);
  color: var(--gold);
  line-height: 1;
}
.sd-diagnosis__stat-text {
  font-size: 13.5px;
  color: var(--muted-2);
  line-height: 1.5;
  max-width: 260px;
}

/* ── SECTION 3: DIFFERENTIATORS ────────────────────────── */
.sd-diff-grid {
  display: grid;
  gap: 32px;
}

.sd-diff-grid-card {
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 10px;
}

@media (min-width: 640px) {
  .sd-diff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}
@media (min-width: 1024px) {
  .sd-diff-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}
.sd-diff-item__media {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 18px;
}
.sd-diff-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-diff-item__num {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 28px;
  color: var(--blue-glow);
  line-height: 1;
  margin-bottom: 10px;
}
.sd-diff-item__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
}
.sd-diff-item__text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── SECTION 4: BY THE NUMBERS ─────────────────────────── */
.sd-stats-layout {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .sd-stats-layout {
    grid-template-columns: 1fr 280px;
    align-items: stretch;
    gap: 32px;
  }
}
.sd-stats-row {
  border: 1px solid rgba(27, 79, 138, 0.22);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.sd-callout {
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sd-callout__icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}
.sd-callout__icon svg {
  width: 100%;
  height: 100%;
}
.sd-callout__text {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
  margin-bottom: 8px;
}
.sd-callout__highlight {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  line-height: 1.4;
}

/* ── SECTION 5: FAQ ACCORDION ──────────────────────────── */
.sd-faq-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .sd-faq-layout {
    grid-template-columns: 380px 1fr;
    gap: 56px;
  }
}
.sd-faq-intro {
  max-width: 380px;
}
.sd-faq-intro .section-title {
  font-size: clamp(24px, 3.4vw, 34px);
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.faq-item {
  background: var(--navy-2);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.is-open {
  border-color: rgba(245, 166, 35, 0.35);
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  font-family: var(--font-sans);
}
.faq-item__num {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item__text {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.faq-item__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform 0.3s ease;
}
.faq-item__icon::before {
  width: 12px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}
.faq-item__icon::after {
  width: 1.6px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}
.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item__panel-inner {
  padding: 0 20px 20px 52px;
}
.faq-item__panel-inner p {
  font-size: 13.5px;
  color: var(--muted-2);
  line-height: 1.75;
}

/* ── SECTION 6: CHECKLIST ──────────────────────────────── */
.sd-checklist-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .sd-checklist-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
.sd-checklist-col {
  background: var(--navy-2);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  padding: 28px;
}
.sd-checklist-col--before {
  border-color: rgba(245, 166, 35, 0.3);
}
.sd-checklist-col--after {
  border-color: rgba(74, 158, 240, 0.3);
}
.sd-checklist-col__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sd-checklist-col--before .sd-checklist-col__title {
  color: var(--gold);
}
.sd-checklist-col--after .sd-checklist-col__title {
  color: var(--blue-glow);
}
.sd-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sd-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--off-white);
  line-height: 1.5;
}
.sd-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}
.sd-checklist-col--before .sd-check {
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold);
}
.sd-checklist-col--after .sd-check {
  background: rgba(74, 158, 240, 0.12);
  color: var(--blue-glow);
}

/* ── SECTION 7: TESTIMONIAL ────────────────────────────── */
.sd-testimonial {
  position: relative;
  overflow: hidden;
  padding: 72px var(--s-px);
  background-image: url("../assets/Off-Grid Solar Hybrid Systems.png");
  background-size: cover;
  background-position: center 30%;
}
.sd-testimonial__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 13, 26, 0.94) 0%,
    rgba(5, 13, 26, 0.8) 55%,
    rgba(5, 13, 26, 0.55) 100%
  );
}
.sd-testimonial__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}
.sd-testimonial__mark {
  display: block;
  font-family: var(--font-ui);
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}
.sd-testimonial__quote {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 24px;
}
.sd-testimonial__attribution {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.6;
}
.sd-testimonial__attribution span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ── SECTION 8: FINAL CTA ──────────────────────────────── */
.cta-section.sd-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 70% at 85% 15%,
    rgba(74, 158, 240, 0.14) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.cta-inner.sd-cta__inner {
  max-width: var(--max-w);
  text-align: left;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-inner.sd-cta__inner {
    grid-template-columns: 1fr auto;
    gap: 56px;
  }
}
.sd-cta__main {
  min-width: 0;
}
.sd-cta__micro {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
}
.sd-cta__statement {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-light);
  margin-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--gold);
  display: inline-block;
}
.sd-cta__points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) {
  .sd-cta__points {
    padding-top: 0;
    padding-left: 40px;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.sd-cta__point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--off-white);
}
.sd-cta__point svg {
  width: 20px;
  height: 20px;
  color: var(--blue-glow);
  flex-shrink: 0;
}

/* ── SHARED: INFO CARD GRID (pain points / audience benefits) ── */
.sd-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, 1fr);
  margin: 28px 0 36px;
}
@media (min-width: 640px) {
  .sd-card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
.sd-card-item {
  background: var(--navy-2);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  transition: var(--t);
}
.sd-card-item:hover {
  border-color: rgba(74, 158, 240, 0.35);
  transform: translateY(-2px);
}
.sd-card-item__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--gold);
}
.sd-card-item--positive .sd-card-item__icon {
  color: var(--blue-glow);
}
.sd-card-item__icon svg {
  width: 100%;
  height: 100%;
}
.sd-card-item__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 8px;
}
.sd-card-item__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── SHARED: OLD WAY / NEW WAY COMPARISON ─────────────────── */
.sd-compare-grid {
  display: grid;
  gap: 20px;
  margin: 28px 0 36px;
}
@media (min-width: 768px) {
  .sd-compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
.sd-compare-col {
  border-radius: var(--r-xl);
  padding: 28px;
}
.sd-compare-col--old {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  opacity: 0.85;
}
.sd-compare-col--new {
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.sd-compare-col__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sd-compare-col--old .sd-compare-col__label {
  color: var(--muted);
}
.sd-compare-col--new .sd-compare-col__label {
  color: var(--gold);
}
.sd-compare-col__text {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.75;
}
.sd-compare-col--new .sd-compare-col__text {
  color: var(--off-white);
}

/* ── SHARED: 5-UP STATS ROW (bordered cards, no dividers) ─── */
.sd-stats-row--5 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}
@media (min-width: 640px) {
  .sd-stats-row--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .sd-stats-row--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}
.sd-stats-row--5 .stat-box {
  border: 1px solid rgba(27, 79, 138, 0.22);
  border-radius: var(--r-lg);
  padding: 26px 16px;
}

/* ── SHARED: "WHAT'S INCLUDED" EDITORIAL CHECKLIST ────────── */
.sd-included {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .sd-included {
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
  }
}
.sd-included__intro {
  max-width: 360px;
}
.sd-included__intro .section-title {
  margin-bottom: 16px;
}
.sd-included__lead {
  font-size: 14.5px;
  color: var(--muted-2);
  line-height: 1.7;
}
.sd-included__list {
  display: grid;
  gap: 0 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sd-included__list {
    grid-template-columns: 1fr 1fr;
  }
}
.sd-included__col {
  display: flex;
  flex-direction: column;
}
.sd-included__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sd-included__col .sd-included__item:last-child {
  border-bottom: none;
}
.sd-included__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 166, 35, 0.45);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.sd-included__item p {
  font-size: 15px;
  color: var(--off-white);
  line-height: 1.5;
  padding-top: 6px;
}

/* ── SHARED: CTA NUMBERED STEPS (ACTION SECTIONS) ─────────── */
.sd-cta__inner--action {
  max-width: 900px;
}
.sd-cta__action-intro {
  max-width: 640px;
  margin: 0 auto;
}
.sd-cta__steps {
  display: grid;
  gap: 24px;
  margin: 32px 0;
  text-align: left;
}
@media (min-width: 768px) {
  .sd-cta__steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}
.sd-cta__step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--gold);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.sd-cta__step-text {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ── SHARED: 3-UP VARIANTS (6-item content grids) ─────────── */
.sd-card-grid--3 {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 1024px) {
  .sd-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .sd-diff-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── SHARED: "GET STARTED" ACTION CTA WITH CONNECTED TIMELINE ── */
/* Used by the Commercial, Energy Audit, and Community Mini-Grid
   detail pages' final CTA. Kept separate from the older .sd-cta*
   (2-column icon-points layout) still used by the Off-Grid page,
   so that one is unaffected. Class prefix (mg-) is historical,
   from when this was built mini-grid-specific first. */
.mg-cta {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: var(--s-py) var(--s-px);
  text-align: center;
}
.mg-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 55% at 28% 15%,
    rgba(27, 79, 138, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.mg-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mg-cta__bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.3;
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    transparent 82%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    transparent 82%
  );
}
.mg-cta__inner {
  position: relative;
  z-index: 2;
}
.mg-cta__intro {
  max-width: 640px;
  margin: 0 auto;
}

/* ── Connected five-step timeline ──────────────────────────── */
.mg-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 56px auto 44px;
}
.mg-timeline__line {
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(245, 166, 35, 0.4),
    rgba(74, 158, 240, 0.4)
  );
  z-index: 0;
}
.mg-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
}
.mg-step__num {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 166, 35, 0.4);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 20px;
  transition: var(--t);
}
.mg-step:hover .mg-step__num {
  border-color: var(--gold);
  background: rgba(245, 166, 35, 0.14);
  transform: translateY(-2px);
}
.mg-step__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mg-step__icon {
  width: 24px;
  height: 24px;
  color: var(--blue-glow);
  margin-bottom: 14px;
  transition: var(--t);
}
.mg-step__icon svg {
  width: 100%;
  height: 100%;
}
.mg-step:hover .mg-step__icon {
  color: var(--gold-light);
}
.mg-step__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: var(--t);
}
.mg-step:hover .mg-step__title {
  color: var(--gold-light);
}
.mg-step__text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 190px;
}
@media (max-width: 899px) {
  .mg-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 420px;
  }
  .mg-timeline__line {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(245, 166, 35, 0.4),
      rgba(74, 158, 240, 0.4)
    );
  }
  .mg-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: 0;
  }
  .mg-step__num {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .mg-step__body {
    align-items: flex-start;
    text-align: left;
  }
  .mg-step__text {
    max-width: none;
  }
}

/* ── Action + trust row ─────────────────────────────────────── */
.mg-cta__action {
  margin-bottom: 32px;
}
.mg-cta__micro {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.mg-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mg-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
}
.mg-trust__item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-glow);
  flex-shrink: 0;
}
.mg-trust__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 640px) {
  .mg-trust__divider {
    display: none;
  }
}
@media (max-width: 767px) {
  .mg-cta__bg-img {
    width: 100%;
    opacity: 0.14;
  }
}
