.fh-cocoa-journey {
  --fhcj-accent: #b47a45;
  --fhcj-dark: #2b171b;
  --fhcj-card: #fff;
  --fhcj-line: rgba(43, 23, 27, 0.14);
  --fhcj-progress: 0px;
  width: 100%;
}

.fh-cocoa-journey__intro {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.fh-cocoa-journey__eyebrow {
  margin-bottom: 10px;
  color: var(--fhcj-accent);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

.fh-cocoa-journey__heading {
  margin: 0 0 14px;
}

.fh-cocoa-journey__lead {
  margin: 0;
}

.fh-cocoa-journey__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: stretch;
}

/* The wrapper must stretch to the height of the step column. This is what gives
   the sticky child enough containing-block height to actually stay sticky. */
.fh-cocoa-journey__visual-wrap {
  position: relative;
  min-width: 0;
  height: 100%;
}

.fh-cocoa-journey__visual {
  position: sticky;
  top: 120px;
  height: 560px;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #ece9e6;
  isolation: isolate;
}

/* Elementor applies .elementor img { height:auto; } with higher specificity.
   Scope this rule to the widget and force the journey image to fill the complete
   visual box, otherwise the image keeps its intrinsic aspect ratio and leaves
   the lower part of the sticky box uncovered. */
.fh-cocoa-journey .fh-cocoa-journey__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .52s ease, transform .85s ease;
  will-change: opacity, transform;
}

.fh-cocoa-journey__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.fh-cocoa-journey__visual-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: transparent !important;
}

.fh-cocoa-journey__visual-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}

.fh-cocoa-journey__counter {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(43, 23, 27, .9);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 12px;
  white-space: nowrap;
}

.fh-cocoa-journey__counter [data-fhcj-current] {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
}

.fh-cocoa-journey__visual-title {
  max-width: 70%;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(43, 23, 27, .9);
  color: #fff;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.fh-cocoa-journey__steps {
  position: relative;
  min-width: 0;
}

/* Track and animated progress line share the exact marker center: 25px. */
.fh-cocoa-journey__steps::before,
.fh-cocoa-journey__steps::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 25px;
  width: 2px;
  border-radius: 999px;
  pointer-events: none;
}

.fh-cocoa-journey__steps::before {
  bottom: 25px;
  background: var(--fhcj-line);
}

.fh-cocoa-journey__steps::after {
  height: var(--fhcj-progress);
  background: var(--fhcj-accent);
  transition: height .35s ease;
}

.fh-cocoa-journey__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 22px;
  min-height: 220px;
  padding-bottom: 32px;
  opacity: .62;
  transition: opacity .35s ease;
}

.fh-cocoa-journey__step:last-child {
  min-height: 0;
  padding-bottom: 0;
}

.fh-cocoa-journey__step.is-active {
  opacity: 1;
}

.fh-cocoa-journey__marker {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--fhcj-line);
  background: #fff;
  color: var(--fhcj-dark);
  font-weight: 600;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .92);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}

.fh-cocoa-journey__step.is-active .fh-cocoa-journey__marker {
  background: var(--fhcj-accent);
  border-color: var(--fhcj-accent);
  color: #fff;
  transform: scale(1.04);
}

.fh-cocoa-journey__step-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(43, 23, 27, .08);
  border-radius: 14px;
  background: var(--fhcj-card);
  box-shadow: 0 8px 26px rgba(43, 23, 27, .07);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.fh-cocoa-journey__step.is-active .fh-cocoa-journey__step-card {
  transform: translateX(6px);
  background: var(--fhcj-dark);
  border-color: var(--fhcj-dark);
  box-shadow: 0 14px 34px rgba(43, 23, 27, .16);
}

.fh-cocoa-journey__step-content {
  padding: 22px 24px 23px;
}

.fh-cocoa-journey__step-content h3 {
  margin: 0 0 8px;
  font-family: inherit;
  color: var(--fhcj-dark);
  transition: color .3s ease;
}

.fh-cocoa-journey__step-content p {
  margin: 0;
  font-family: inherit;
  transition: color .3s ease;
}

.fh-cocoa-journey__step.is-active .fh-cocoa-journey__step-content h3,
.fh-cocoa-journey__step.is-active .fh-cocoa-journey__step-content p {
  color: #fff;
}

.fh-cocoa-journey__link {
  display: inline-flex;
  gap: 7px;
  margin-top: 14px;
  color: var(--fhcj-accent);
  text-decoration: none;
  font-weight: 600;
}

.fh-cocoa-journey__step.is-active .fh-cocoa-journey__link {
  color: #fff;
}

.fh-cocoa-journey__link:hover,
.fh-cocoa-journey__link:focus {
  text-decoration: underline;
}

.fh-cocoa-journey__mobile-image-wrap {
  display: none;
}

@media (max-width: 1024px) {
  .fh-cocoa-journey__intro {
    margin-bottom: 40px;
  }

  .fh-cocoa-journey__grid {
    display: block;
  }

  .fh-cocoa-journey__visual-wrap {
    display: none;
  }

  .fh-cocoa-journey__steps::before,
  .fh-cocoa-journey__steps::after {
    left: 21px;
    top: 22px;
  }

  .fh-cocoa-journey__steps::before {
    bottom: 22px;
  }

  .fh-cocoa-journey__step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding-bottom: 28px;
    opacity: 1;
  }

  .fh-cocoa-journey__marker {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .fh-cocoa-journey__step.is-active .fh-cocoa-journey__step-card {
    transform: none;
  }

  .fh-cocoa-journey__mobile-image-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ece9e6;
  }

  .fh-cocoa-journey__mobile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .fh-cocoa-journey__intro {
    margin-bottom: 30px;
    text-align: left;
  }

  .fh-cocoa-journey__eyebrow {
    font-size: 11px;
  }

  .fh-cocoa-journey__steps::before,
  .fh-cocoa-journey__steps::after {
    left: 18px;
    top: 19px;
  }

  .fh-cocoa-journey__steps::before {
    bottom: 19px;
  }

  .fh-cocoa-journey__step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 22px;
  }

  .fh-cocoa-journey__marker {
    width: 38px;
    height: 38px;
    font-size: 12px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .92);
  }

  .fh-cocoa-journey__step-card {
    border-radius: 12px;
  }

  .fh-cocoa-journey__step-content {
    padding: 18px 18px 19px;
  }

  .fh-cocoa-journey__mobile-image-wrap {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-cocoa-journey__image,
  .fh-cocoa-journey__step,
  .fh-cocoa-journey__marker,
  .fh-cocoa-journey__step-card,
  .fh-cocoa-journey__steps::after {
    transition: none !important;
  }
}
