/* Hearts to Homes — staging before/after comparison sliders */

.h2h-staging-gallery {
  padding: 48px 0 56px;
  background: var(--charcoal, #fdf8f5);
}

.h2h-staging-gallery__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.h2h-staging-gallery__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose, #c4788a);
  margin-bottom: 14px;
  text-align: center;
}

.h2h-staging-gallery__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  color: #2a2522;
  margin-bottom: 36px;
  line-height: 1.25;
  text-align: center;
}

.h2h-staging-gallery__stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Comparison slider ─────────────────────────────────────────────── */

.h2h-compare {
  margin: 0;
}

.h2h-compare__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: #2a2522;
  margin: 0 0 16px;
  text-align: center;
}

.h2h-compare__caption {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: #7a5560;
  line-height: 1.6;
  text-align: center;
}

.h2h-compare__fallback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.h2h-compare__fallback-item {
  margin: 0;
}

.h2h-compare__fallback-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(122, 42, 58, 0.12);
}

.h2h-compare__fallback-label {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose, #c4788a);
  opacity: 0.88;
  text-align: center;
}

html.js .h2h-compare__fallback {
  display: none;
}

.h2h-compare__interactive {
  display: none;
}

html.js .h2h-compare__interactive {
  display: block;
}

.h2h-compare__frame {
  position: relative;
  width: 100%;
  max-width: var(--compare-max-width, 412px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(122, 42, 58, 0.14);
  touch-action: none;
  user-select: none;
  background: #f7f0ec;
}

.h2h-compare__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.h2h-compare__img--after {
  position: relative;
  z-index: 1;
}

.h2h-compare__reveal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}

.h2h-compare__img--before {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.h2h-compare__label {
  position: absolute;
  z-index: 4;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(42, 37, 34, 0.62);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.h2h-compare__label--before {
  left: 14px;
}

.h2h-compare__label--after {
  right: 14px;
}

.h2h-compare__handle {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 44px;
  height: 100%;
  margin-left: -22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.h2h-compare__handle:focus-visible {
  outline: 2px solid var(--rose, #c4788a);
  outline-offset: 2px;
}

.h2h-compare__handle-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(42, 37, 34, 0.18);
  pointer-events: none;
}

.h2h-compare__handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f5ece0 100%);
  border: 2px solid rgba(196, 120, 138, 0.45);
  box-shadow: 0 8px 24px rgba(122, 42, 58, 0.22);
  pointer-events: none;
}

.h2h-compare__handle-grip::before,
.h2h-compare__handle-grip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.h2h-compare__handle-grip::before {
  left: 9px;
  border-right: 6px solid var(--rose-dark, #9e5a6a);
}

.h2h-compare__handle-grip::after {
  right: 9px;
  border-left: 6px solid var(--rose-dark, #9e5a6a);
}

.h2h-compare.is-dragging .h2h-compare__frame {
  cursor: ew-resize;
}

/* ── Featured case study photos ─────────────────────────────────── */

.h2h-case-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
  max-width: 720px;
}

.h2h-case-photo {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.prep-hero-showcase .h2h-case-photos .h2h-story__media-btn,
.h2h-story--case-study .h2h-case-photos .h2h-story__media-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(122, 42, 58, 0.14);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.prep-hero-showcase .h2h-case-photos .h2h-story__media-btn:hover,
.h2h-story--case-study .h2h-case-photos .h2h-story__media-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(122, 42, 58, 0.18);
}

.prep-hero-showcase .h2h-case-photos .h2h-story__media-btn:focus-visible,
.h2h-story--case-study .h2h-case-photos .h2h-story__media-btn:focus-visible {
  outline: 2px solid var(--rose, #c4788a);
  outline-offset: 4px;
}

.h2h-case-photo__frame {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7f0ec;
}

.h2h-case-photo__frame img,
.prep-hero-showcase .h2h-case-photos .h2h-case-photo__frame img,
.h2h-story--case-study .h2h-case-photos .h2h-case-photo__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
}

.h2h-case-photo__label {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose, #c4788a);
  opacity: 0.88;
  text-align: center;
}

.h2h-case-photo__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px 16px;
  border: 1px dashed rgba(196, 120, 138, 0.38);
  background: rgba(255, 255, 255, 0.72);
}

.h2h-case-photo__placeholder-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-dark, #9e5a6a);
  text-align: center;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .h2h-staging-gallery__inner {
    padding: 0 20px;
  }

  .h2h-staging-gallery__stack {
    gap: 40px;
  }
}

@media (max-width: 540px) {
  .h2h-compare__fallback {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .h2h-case-photos {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h2h-compare__handle-grip {
    transition: none;
  }

  .prep-hero-showcase .h2h-case-photos .h2h-story__media-btn,
  .h2h-story--case-study .h2h-case-photos .h2h-story__media-btn {
    transition: none;
  }

  .prep-hero-showcase .h2h-case-photos .h2h-story__media-btn:hover,
  .h2h-story--case-study .h2h-case-photos .h2h-story__media-btn:hover {
    transform: none;
  }
}
