/* Hearts to Homes — construction journey timeline (reusable) */

.h2h-build-timeline {
  --h2h-tl-bg: var(--dark, #181414);
  --h2h-tl-surface: var(--mid, #1e1a1a);
  --h2h-tl-panel: var(--panel, #252020);
  --h2h-tl-cream: var(--cream, #f5ece0);
  --h2h-tl-cream-dim: var(--cream-dim, #c9b49a);
  --h2h-tl-rose: var(--rose, #c4788a);
  --h2h-tl-rose-light: var(--rose-light, #dba0af);
  --h2h-tl-gold: var(--gold, #c9a84c);
  --h2h-tl-border: var(--border-rose, rgba(196, 120, 138, 0.22));
  --h2h-tl-line: rgba(196, 120, 138, 0.34);

  padding: 110px 0;
  background: var(--h2h-tl-bg);
  position: relative;
  overflow: hidden;
}

.h2h-build-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--h2h-tl-border);
}

.h2h-build-timeline__header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.h2h-build-timeline__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--h2h-tl-rose);
  margin-bottom: 16px;
}

.h2h-build-timeline__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  color: var(--h2h-tl-cream);
  line-height: 1.2;
  margin-bottom: 14px;
}

.h2h-build-timeline__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 2.1vw, 22px);
  font-style: italic;
  color: var(--h2h-tl-cream-dim);
  line-height: 1.45;
  margin-bottom: 22px;
}

.h2h-build-timeline__intro {
  font-size: 15px;
  color: var(--h2h-tl-cream-dim);
  line-height: 1.85;
}

.h2h-build-timeline__track-wrap {
  position: relative;
  margin: 0 -32px;
  padding: 0 32px 8px;
}

.h2h-build-timeline__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 32px;
  padding: 28px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 120, 138, 0.35) transparent;
}

.h2h-build-timeline__track::-webkit-scrollbar {
  height: 6px;
}

.h2h-build-timeline__track::-webkit-scrollbar-thumb {
  background: rgba(196, 120, 138, 0.35);
  border-radius: 999px;
}

.h2h-build-timeline__track::before {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  top: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--h2h-tl-line), rgba(201, 168, 76, 0.28), var(--h2h-tl-line));
  pointer-events: none;
}

.h2h-build-timeline__item {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  list-style: none;
  position: relative;
}

.h2h-build-timeline__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--h2h-tl-bg);
  border: 2px solid var(--h2h-tl-rose);
  box-shadow: 0 0 0 4px rgba(196, 120, 138, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--h2h-tl-rose-light);
  position: relative;
  z-index: 1;
}

.h2h-build-timeline__card {
  background: var(--h2h-tl-surface);
  border: 1px solid var(--h2h-tl-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}

.h2h-build-timeline__card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 120, 138, 0.42);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.h2h-build-timeline__media {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  height: 380px;
  padding: 12px;
  overflow: hidden;
  background: #100d0d;
}

.h2h-build-timeline__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.h2h-build-timeline__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 356px;
  padding: 24px 16px;
  border: 1px dashed rgba(196, 120, 138, 0.38);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0;
}

.h2h-build-timeline__placeholder-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--h2h-tl-rose-light);
  text-align: center;
  line-height: 1.65;
}

.h2h-build-timeline__body {
  padding: 20px 20px 22px;
}

.h2h-build-timeline__stage {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--h2h-tl-cream);
  margin-bottom: 10px;
  line-height: 1.3;
}

.h2h-build-timeline__text {
  font-size: 13.5px;
  color: var(--h2h-tl-cream-dim);
  line-height: 1.75;
}

.h2h-build-timeline__callout {
  margin-top: 56px;
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--h2h-tl-border);
  background: linear-gradient(135deg, rgba(196, 120, 138, 0.08) 0%, rgba(201, 168, 76, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.h2h-build-timeline__callout-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--h2h-tl-cream);
  margin-bottom: 14px;
  line-height: 1.25;
}

.h2h-build-timeline__callout-text {
  font-size: 15px;
  color: var(--h2h-tl-cream-dim);
  line-height: 1.85;
  max-width: 760px;
}

/* Light-theme pages (guides, resource center) */
.h2h-build-timeline--light {
  --h2h-tl-bg: #fdf8f5;
  --h2h-tl-surface: #fff;
  --h2h-tl-panel: #fff;
  --h2h-tl-cream: #2a2522;
  --h2h-tl-cream-dim: #4a3038;
  --h2h-tl-line: rgba(196, 120, 138, 0.24);
}

.h2h-build-timeline--light .h2h-build-timeline__card {
  box-shadow: 0 12px 36px rgba(122, 42, 58, 0.1);
}

.h2h-build-timeline--light .h2h-build-timeline__card:hover {
  box-shadow: 0 18px 48px rgba(122, 42, 58, 0.14);
}

.h2h-build-timeline--light .h2h-build-timeline__media {
  background: #f7f0ec;
}

.h2h-build-timeline--light .h2h-build-timeline__callout {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 28px rgba(122, 42, 58, 0.08);
}

@media (max-width: 900px) {
  .h2h-build-timeline {
    padding: 88px 0;
  }

  .h2h-build-timeline__track-wrap {
    margin: 0;
    padding: 0;
  }

  .h2h-build-timeline__track {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
    gap: 0;
    padding: 0 0 0 18px;
  }

  .h2h-build-timeline__track::before {
    left: 13px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--h2h-tl-line), rgba(201, 168, 76, 0.28), var(--h2h-tl-line));
  }

  .h2h-build-timeline__item {
    flex: none;
    width: 100%;
    padding: 0 0 28px 28px;
  }

  .h2h-build-timeline__marker {
    position: absolute;
    left: -18px;
    top: 18px;
    margin: 0;
  }

  .h2h-build-timeline__media {
    min-height: 340px;
    height: 340px;
  }

  .h2h-build-timeline__callout {
    margin-top: 36px;
    padding: 28px 22px;
  }
}

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

  .h2h-build-timeline__card:hover {
    transform: none;
  }
}
