.goe-lighting-compare {
  padding: 68px 0 76px;
  background: #f7f9f4;
  color: #203923;
  scroll-margin-top: 110px;
}
.goe-lighting-compare__heading {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px;
  align-items: start; margin-bottom: 36px;
}
.goe-lighting-compare .goe-lighting-compare__eyebrow {
  margin: 0 0 16px; color: #426629; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
}
.goe-lighting-compare h2 {
  margin: 0 0 14px; color: #203923; font-size: clamp(29px, 3.5vw, 44px);
  line-height: 1.18; letter-spacing: -.025em;
}
.goe-lighting-compare__copy p { margin: 0 0 14px; color: #434c42; font-size: 16px; line-height: 1.85; }
.goe-lighting-compare__copy p:last-child { margin-bottom: 0; }
.goe-lighting-compare__frame {
  --compare-position: 50%;
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  border-radius: 8px; overflow: hidden; background: #102333;
}
/* The legacy template gives every img z-index: 1. Contain each photo's
   stacking context so that the original cannot cover the clipped warm layer. */
.goe-lighting-compare__photo { position: relative; z-index: 0; margin: 0; min-width: 0; }
.goe-lighting-compare__photo img { display: block; width: 100%; height: auto; z-index: auto; }
.goe-lighting-compare__photo figcaption {
  padding: 12px 16px; color: #fff; font-size: 14px; font-weight: 600;
}
.goe-lighting-compare[data-ready] .goe-lighting-compare__frame {
  display: block; cursor: ew-resize; touch-action: pan-y; user-select: none;
}
.goe-lighting-compare[data-ready] .goe-lighting-compare__warm {
  position: absolute; inset: 0; z-index: 1;
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}
.goe-lighting-compare[data-ready] .goe-lighting-compare__warm img { width: 100%; height: 100%; }
.goe-lighting-compare[data-ready] .goe-lighting-compare__photo figcaption { display: none; }
.goe-lighting-compare__badge {
  position: absolute; z-index: 2; top: 18px; padding: 8px 12px;
  background: #fff; border-radius: 5px; color: #203923;
  font-size: 13px; line-height: 1.4; font-weight: 600; pointer-events: none;
}
.goe-lighting-compare__badge--warm { left: 18px; }
.goe-lighting-compare__badge--holiday { right: 18px; }
.goe-lighting-compare__divider {
  position: absolute; z-index: 3; top: 0; bottom: 0;
  left: var(--compare-position); width: 2px; background: #fff;
  transform: translateX(-50%); pointer-events: none;
}
.goe-lighting-compare__handle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  color: #203923; box-shadow: 0 2px 14px #0004; font: 26px/1 sans-serif;
}
.goe-lighting-compare__controls {
  margin-top: 0; padding: 22px 28px 24px; background: #fff;
  border: 1px solid #dee7d6; border-radius: 0 0 8px 8px;
}
.goe-lighting-compare[data-ready] .goe-lighting-compare__frame { border-radius: 8px 8px 0 0; }
.goe-lighting-compare__controls label {
  display: block; color: #203923; font-size: 14px; font-weight: 600; margin: 0 0 6px;
}
.goe-lighting-compare input[type="range"] {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 0;
  accent-color: #477425; cursor: ew-resize; background: transparent; border: 0;
}
.goe-lighting-compare input[type="range"]:focus-visible {
  outline: 2px solid #477425; outline-offset: 3px; border-radius: 4px;
}
.goe-lighting-compare__ends { display: flex; justify-content: space-between; gap: 16px; }
.goe-lighting-compare__ends span { font-size: 13px; line-height: 1.5; color: #4b5945; }
.goe-lighting-compare [hidden] { display: none !important; }
@media (max-width: 991px) {
  .goe-lighting-compare__heading { gap: 32px; }
}
@media (max-width: 767px) {
  .goe-lighting-compare { padding: 44px 0; }
  .goe-lighting-compare__heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .goe-lighting-compare__controls { padding: 18px 16px; }
  .goe-lighting-compare__frame { border-radius: 8px; grid-template-columns: 1fr; }
  .goe-lighting-compare__badge { top: 10px; padding: 6px 8px; font-size: 11px; }
  .goe-lighting-compare__badge--warm { left: 10px; }
  .goe-lighting-compare__badge--holiday { right: 10px; }
  .goe-lighting-compare__handle { width: 40px; height: 40px; gap: 8px; font-size: 23px; }
}

/* Shared quote action beneath the lighting comparison and installation steps. */
.goe-lighting-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.goe-lighting-section-cta .goe-service-button {
  min-width: 220px;
  max-width: 100%;
  margin: 0;
  text-align: center;
}
@media (max-width: 767px) {
  .goe-lighting-section-cta { margin-top: 28px; }
  .goe-lighting-section-cta .goe-service-button {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}
