/* WrightHaven — Step-by-step Home Journey (shared V5)
   Used on community + custom-builds pages. Classes: .whd-journey*
   PE also aliases .whd-pe-journey* for the same look.

   Surface rule: same cream as body.whd-page (--surface-page). No pure-white
   island, no nested card, no width-capped panel with cream side gutters.
*/
.whd-journey,
.whd-pe-journey {
  background: var(--surface-page, #FBF8F2) !important;
  background-color: var(--surface-page, #FBF8F2) !important;
  background-image: none !important;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter, 1.5rem);
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block !important;
  float: none !important;
  color: var(--text-body, #55514B);
  box-shadow: none !important;
  border: 0 !important;
}
.whd-journey__head,
.whd-pe-journey__head {
  text-align: center;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  max-width: 40rem;
  width: 100%;
}
.whd-journey__head .whd-h2,
.whd-journey__head h2,
.whd-pe-journey__head .whd-h2,
.whd-pe-journey__head h2 {
  margin: 0.85rem auto 0;
  max-width: 22ch;
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-heading, #1c1a16);
}
/* Short olive rule under the title (matches PE / design comps) */
.whd-journey__head .whd-h2::after,
.whd-journey__head h2::after,
.whd-pe-journey__head .whd-h2::after,
.whd-pe-journey__head h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1.15rem auto 0;
  background: var(--whh-olive, #494F25);
  opacity: 0.5;
}
.whd-journey__grid,
.whd-pe-journey__grid {
  list-style: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  width: 100%;
  max-width: 900px;
  justify-content: center;
  justify-items: center;
}
.whd-journey__grid > li,
.whd-pe-journey__grid > li {
  list-style: none !important;
}
.whd-journey__grid > li::marker,
.whd-pe-journey__grid > li::marker {
  content: none !important;
  display: none !important;
}
.whd-journey__step,
.whd-pe-journey__step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
}
.whd-journey__step:not(:nth-child(3n))::after,
.whd-pe-journey__step:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: calc(50% + 1.55rem);
  width: calc(100% - 3.1rem + clamp(1.25rem, 2.5vw, 2rem));
  height: 1px;
  background: var(--whh-olive, #494F25);
  opacity: 0.35;
  pointer-events: none;
  transform: none;
}
.whd-journey__num,
.whd-pe-journey__num {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--whh-olive, #494F25) !important;
  color: #F5F2EC !important;
  font-family: var(--font-sans, "DM Sans", "Poppins", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.whd-journey__title,
.whd-pe-journey__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.25;
  color: var(--text-heading, #1c1a16) !important;
  max-width: 16ch;
  text-align: center;
}
.whd-journey__text,
.whd-pe-journey__text {
  margin: 0;
  font-family: var(--font-sans, "DM Sans", "Poppins", sans-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body, #55514B) !important;
  max-width: 36ch;
  text-align: center;
  opacity: 1 !important;
}
/* Parent Elementor shells: full-bleed page cream (match body, kill --width cap) */
.whd-journey-shell,
body.whd-page .whd-journey-shell,
body.whd-page .e-con.whd-journey-shell {
  --width: 100% !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  background: var(--surface-page, #FBF8F2) !important;
  background-color: var(--surface-page, #FBF8F2) !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
@media (max-width: 760px) {
  .whd-journey__grid,
  .whd-pe-journey__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 22rem;
  }
  .whd-journey__step::after,
  .whd-pe-journey__step::after {
    display: none !important;
  }
}

.whd-journey .whd-label,
.whd-pe-journey .whd-label {
  display: inline-block;
  font-family: var(--font-sans, "DM Sans", "Poppins", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whh-olive, #494F25);
}
