/* =========================================================
   SERVICE DETAIL PAGE — APPROACH SECTION
   Editorial timeline: clean left-aligned grid with a strong,
   balanced rhythm matching the digital brand pattern.
   ========================================================= */

.sd-approach {
  background: #0a0b0f;
  color: #ffffff;
  padding: clamp(36px, 4.5vw, 64px) 0;
}

.sd-approach .sd-section-head {
  max-width: 760px;
  margin-bottom: clamp(20px, 2.5vw, 34px);
}

.sd-approach .sd-section-title {
  margin-bottom: 12px;
  color: #ffffff;
}

.sd-approach .sd-section-sub {
  display: none;
  max-width: 36ch;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #a9aeba;
}

.sd-approach--centered .sd-section-head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.sd-approach--centered .sd-step {
  text-align: center;
}

.sd-approach--centered .sd-step::before {
  left: 50%;
  transform: translateX(-50%);
}

.sd-approach-intro {
  margin: 20px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #a9aeba;
}

.sd-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 clamp(18px, 2vw, 28px);
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 0 0;
  min-height: 220px;
}

.sd-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ed4ff;
  box-shadow: 0 0 0 3px rgba(142, 212, 255, 0.12);
}

.sd-step-title {
  margin: 0 0 12px;
  font-family: "Geist", "Inter", sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #ffffff;
  white-space: normal;
}

.sd-step-text {
  margin: 0;
  max-width: 20ch;
  font-family: "Inter", sans-serif;
  font-size: clamp(12.5px, 1.15vw, 15px);
  line-height: 1.65;
  color: #b1b8c6;
}

@media (min-width: 961px) {
  .sd-steps {
    --sd-approach-gap: clamp(18px, 2vw, 28px);
    column-gap: var(--sd-approach-gap);
    padding-top: 0;
    border-top: 0;
  }

  .sd-step {
    min-height: 190px;
    padding-top: 48px;
  }

  .sd-step::before {
    top: 8px;
    left: 0;
    z-index: 1;
  }

  .sd-step:nth-child(even) {
    padding-top: 76px;
  }

  .sd-step:nth-child(even)::before {
    top: 36px;
  }

  .sd-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 4px;
    z-index: 0;
    width: calc(100% + var(--sd-approach-gap));
    height: 36px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }

  .sd-step:nth-child(odd)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 36' preserveAspectRatio='none'%3E%3Cpath d='M0 4.5 C30 4.5 70 32.5 100 32.5' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1'/%3E%3C/svg%3E");
  }

  .sd-step:nth-child(even)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 36' preserveAspectRatio='none'%3E%3Cpath d='M0 32.5 C30 32.5 70 4.5 100 4.5' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1'/%3E%3C/svg%3E");
  }

  .sd-step-title,
  .sd-step-text {
    position: relative;
    z-index: 1;
  }
}

/* Seven-step processes (AEO, SEO, Social Media, Performance Marketing,
   Mobile App and Product Development) stay on one line so the whole
   timeline reads as a single row - same layout language as the
   website-development approach section. */
@media (min-width: 961px) {
  .sd-steps:has(> .sd-step:nth-child(7)) {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  /* The seven-across columns are narrower, so gently scale the type
     down to keep each title and description fitting the column. */
  .sd-steps:has(> .sd-step:nth-child(7)) .sd-step-title {
    margin-bottom: 10px;
    font-size: clamp(15px, 1.35vw, 20px);
    line-height: 1.2;
  }

  .sd-steps:has(> .sd-step:nth-child(7)) .sd-step-text {
    font-size: clamp(12px, 1.05vw, 14px);
    line-height: 1.6;
  }
}

@media (max-width: 960px) {
  .sd-approach {
    padding: 36px 0;
  }

  .sd-approach .sd-section-head {
    margin-bottom: 22px;
  }

  .sd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .sd-step {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .sd-steps {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding-top: 0;
    border-top: 0;
  }

  .sd-step {
    min-height: 0;
    padding: 0 0 0 22px;
  }

  .sd-step::before {
    top: 1px;
    left: 0;
    z-index: 1;
  }

  .sd-step:nth-child(even) {
    padding-left: 44px;
  }

  .sd-step:nth-child(even)::before {
    top: 1px;
    left: 22px;
  }

  .sd-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 5.5px;
    left: 4.5px;
    z-index: 0;
    width: 22px;
    height: calc(100% + 16.5px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }

  .sd-step:nth-child(odd)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C0 58 22 42 22 100' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1'/%3E%3C/svg%3E");
  }

  .sd-step:nth-child(even)::after {
    left: 26.5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 100' preserveAspectRatio='none'%3E%3Cpath d='M22 0 C22 58 0 42 0 100' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1'/%3E%3C/svg%3E");
  }

  .sd-step-title,
  .sd-step-text {
    position: relative;
    z-index: 1;
  }
}
