/* Services page — uses site main-grid (cols 1–2 intro, 3–5 content) */

.page-wrapper:has(.jj-services-inner) {
  overflow: visible !important;
}

.jj-services-hero {
  padding: 7em 0 4em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jj-services-hero .main-grid {
  display: block;
}

.jj-services-hero .inner-title-wrapper {
  width: 100%;
  max-width: 52em;
}

.jj-services-hero .passion {
  max-width: none;
}

.jj-services-hero-dek {
  margin: 1.75em 0 0;
  max-width: 40em;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(19, 20, 23, 0.72);
}

.jj-services-hero .jj-trusted-grid {
  margin-top: 3em;
  padding-bottom: 0;
}

.jj-services-deliverables {
  margin: 0;
  padding: 1.25em 0 0;
  border-top: 1px solid rgba(19, 20, 23, 0.08);
}

.jj-services-deliverables-label {
  margin: 1em 0 0.65em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 20, 23, 0.45);
}

.jj-services-deliverables ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(19, 20, 23, 0.58);
}

.jj-services-deliverables li + li {
  margin-top: 0.35em;
}

.jj-services-cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
}

.jj-services-case-link {
  display: block;
  padding: 1.85em 2em;
  border: 1px solid rgba(19, 20, 23, 0.1);
  border-radius: 1em;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.jj-services-case-link:hover {
  border-color: rgba(48, 53, 162, 0.35);
  background: rgba(48, 53, 162, 0.04);
}

.jj-services-case-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #131417;
  margin-bottom: 0.45em;
}

.jj-services-case-dek {
  display: block;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(19, 20, 23, 0.58);
}

.jj-services-testi .container.home.w-container {
  padding-bottom: 0;
}

/* Match homepage jj-wte / jj-faq blocks */
.jj-services-inner.main-grid.home.jj-wte-inner {
  width: 100%;
  align-items: start;
}

.jj-services-inner .jj-value-wte-intro {
  grid-column: 1 / 3;
  align-self: start;
  min-width: 0;
}

.jj-services-inner .jj-value-wte-title {
  margin: 0.65em 0 0.75em;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 11em;
  color: #131417;
}

.jj-services-inner .jj-services-intro-dek {
  margin: 0;
  max-width: 16em;
  line-height: 1.65;
}

.jj-services-inner .jj-section-right {
  grid-area: 1 / 3 / 2 / 5;
  width: 100%;
  min-width: 0;
}

@media screen and (min-width: 992px) {
  .jj-services-inner .jj-section-right {
    display: block !important;
    grid-template-columns: none !important;
  }
}

.jj-services-section-last .jj-services-inner {
  padding-bottom: 5em;
}

@media screen and (min-width: 992px) {
  .page-wrapper:has(.jj-services-inner) {
    overflow: visible !important;
  }

  .section:has(.jj-services-inner),
  .container.home.w-container:has(.jj-services-inner) {
    overflow: visible !important;
  }

  .jj-services-inner .jj-value-wte-intro {
    position: sticky;
    top: 7em;
    z-index: 2;
    height: max-content;
  }
}

.jj-services-phases {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  width: 100%;
}

.jj-services-phase {
  border: 1px solid rgba(19, 20, 23, 0.12);
  border-radius: 1em;
  padding: 2.25em 2.35em 2.5em;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
}

.jj-services-phase-duration {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jj-blue, #3035a2);
}

.jj-services-phase-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.28;
  color: #131417;
}

.jj-services-phase-body {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.72;
  color: rgba(19, 20, 23, 0.72);
}

.jj-services-phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: auto;
  padding-top: 0.5em;
}

.jj-services-phase-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45em 0.75em;
  border: 1px solid rgba(19, 20, 23, 0.14);
  border-radius: 99px;
  color: rgba(19, 20, 23, 0.65);
}

/* —— How I work — intro + stacked steps (dark band) —— */

.jj-services-workflow-band {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.jj-services-workflow-band__inner {
  background-color: var(--black, #131417);
  color: #fff;
  border-radius: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

@media screen and (min-width: 992px) {
  .jj-services-workflow-band__inner {
    padding-top: clamp(3.75rem, 8vw, 5.75rem);
    padding-bottom: clamp(3rem, 6vw, 4rem);
  }
}

.jj-services-workflow-layout {
  width: 100%;
  align-items: start;
}

.jj-services-workflow-intro {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.jj-services-workflow-intro .jj-wte-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
}

.jj-services-workflow-intro .jj-value-wte-title {
  margin: 0.65em 0 0.75em;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 11em;
  color: #fff;
}

.jj-services-workflow-dek {
  margin: 0;
  max-width: 16em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62) !important;
}

.jj-services-workflow-steps {
  list-style: none;
  margin: clamp(1.5rem, 3.5vw, 2rem) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jj-services-workflow-card {
  display: grid;
  grid-template-columns: 1.25em minmax(0, 1fr);
  gap: 0 1.35em;
  align-items: start;
  margin: 0;
  padding: 1.55em 0 1.65em;
  min-height: 0;
  scroll-margin-top: clamp(4.5rem, 12vh, 6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jj-services-workflow-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.jj-services-workflow-card__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  min-height: 100%;
  padding-top: 0.2em;
}

.jj-services-workflow-card__marker {
  flex-shrink: 0;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.jj-services-workflow-card__line {
  position: relative;
  flex: 1 1 auto;
  width: 1px;
  min-height: 1.5em;
  margin-top: 0.45em;
  background: rgba(255, 255, 255, 0.14);
}

.jj-services-workflow-card__line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--jj-blue, #3035a2);
  transition: height 0.15s linear;
}

.jj-services-workflow-card.is-complete .jj-services-workflow-card__line-fill {
  height: 100%;
}

.jj-services-workflow-card.is-complete .jj-services-workflow-card__marker {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
}

.jj-services-workflow-card.is-active .jj-services-workflow-card__marker {
  border-color: var(--jj-blue, #3035a2);
  background: var(--jj-blue, #3035a2);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(48, 53, 162, 0.25);
}

.jj-services-workflow-card__inner {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr);
  gap: 0 1.25em;
  align-content: start;
  min-width: 0;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.jj-services-workflow-card.is-active .jj-services-workflow-card__inner {
  opacity: 1;
}

.jj-services-workflow-band.is-workflow-ready .jj-services-workflow-card.is-active .jj-services-workflow-card__inner {
  opacity: 1;
}

.jj-services-workflow-band.is-workflow-ready .jj-services-workflow-card.is-complete .jj-services-workflow-card__inner {
  opacity: 0.55;
}

.jj-services-workflow-card__num {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  padding-top: 0.12em;
  transition: color 0.35s ease;
}

.jj-services-workflow-card.is-active .jj-services-workflow-card__num {
  color: #fff;
}

.jj-services-workflow-card__content {
  min-width: 0;
}

.jj-services-workflow-card__title {
  margin: 0 0 0.35em;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.jj-services-workflow-card__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.62);
}

@media screen and (min-width: 992px) {
  .jj-services-workflow-intro {
    grid-column: 1 / 3;
    align-self: start;
  }

  .jj-services-workflow-steps {
    grid-column: 3 / 5;
    margin-top: 0;
    border-top: none;
  }

  .jj-services-workflow-card {
    padding: 1.65em 0 1.75em;
  }
}

@media screen and (max-width: 991px) {
  .jj-services-workflow-intro .jj-value-wte-title,
  .jj-services-workflow-dek {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jj-services-workflow-card__inner {
    opacity: 1;
    transition: none;
  }

  .jj-services-workflow-card__line-fill {
    transition: none;
  }
}

.jj-services-content-stack {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 100%;
}

.jj-services-content-points {
  display: flex;
  flex-direction: column;
  gap: 1.75em;
}

.jj-services-content-point h3 {
  margin: 0 0 0.5em;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #131417;
}

.jj-services-content-point p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgba(19, 20, 23, 0.58);
}

.jj-services-aside {
  padding: 2.25em 2.4em;
  border: 1px solid rgba(19, 20, 23, 0.1);
  border-radius: 1em;
  background: rgba(48, 53, 162, 0.04);
}

.jj-services-aside-title {
  margin: 0 0 1em;
  font-size: 1rem;
  font-weight: 600;
  color: #131417;
}

.jj-services-aside p {
  margin: 0 0 1em;
  font-size: 0.875rem;
  line-height: 1.68;
  color: rgba(19, 20, 23, 0.58);
}

.jj-services-aside p:last-child {
  margin-bottom: 0;
}

.jj-services-engagement {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  width: 100%;
}

.jj-services-engagement-item {
  padding: 1.85em 2em;
  border-top: 2px solid var(--jj-blue, #3035a2);
  background: rgba(19, 20, 23, 0.02);
  border-radius: 0 0 0.85em 0.85em;
}

.jj-services-engagement-item h3 {
  margin: 0 0 0.55em;
  font-size: 1rem;
  font-weight: 600;
  color: #131417;
}

.jj-services-engagement-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgba(19, 20, 23, 0.58);
}

.jj-services-cta-row {
  margin-top: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85em;
  align-items: center;
}

@media screen and (max-width: 991px) {
  .jj-services-inner .jj-value-wte-intro,
  .jj-services-inner .jj-section-right {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
  }

  .jj-services-inner .jj-value-wte-intro {
    position: static;
    margin-bottom: 1.5em;
  }

  .jj-services-inner .jj-value-wte-title {
    max-width: none;
  }

  .jj-services-inner .jj-services-intro-dek {
    max-width: none;
  }

}

@media screen and (max-width: 767px) {
  .jj-services-hero {
    padding-top: 5em;
    padding-bottom: 3em;
  }

  .jj-services-hero .inner-title-wrapper,
  .jj-services-hero .passion {
    max-width: none;
  }
}
