/* ---------------------------------------------------------------------------
   "Waarom Smart Consultant": rijen met tekst en foto die steeds van kant
   wisselen. De foto's hebben de afronding en de accenten van de huisstijl:
   een stippenvlak en een groene tegel die achter de foto uitsteken.
   --------------------------------------------------------------------------- */

.sc-zigzag {
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}

.sc-zigzag-rij {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "tekst foto";
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.sc-zigzag-omgekeerd {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "foto tekst";
}

.sc-zigzag-tekst {
  grid-area: tekst;
  max-width: 64ch;
}

.sc-zigzag-tekst h2 {
  margin: 0;
  color: var(--sc-primary);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sc-zigzag-tekst h3 {
  margin: 0;
  color: var(--sc-primary);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* De eerste alinea (de kern) iets voller dan de toelichting erna. */
.sc-zigzag-tekst p:first-of-type {
  color: var(--sc-primary);
  font-weight: 500;
}

.sc-zigzag-tekst p {
  margin: clamp(16px, 1.6vw, 22px) 0 0;
  color: #5c6b7d;
  font-size: clamp(1.08rem, 1.3vw, 1.24rem);
  line-height: 1.7;
}

.sc-zigzag-foto {
  position: relative;
  grid-area: foto;
  margin: 0;
  /* Ruimte voor de accenten die achter de foto uitsteken. */
  padding: 22px;
}

.sc-zigzag-foto img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 28px 60px rgba(27, 34, 70, 0.16);
}

/* Stippenvlak linksboven, groene tegel rechtsonder. */
.sc-zigzag-foto::before,
.sc-zigzag-foto::after {
  content: "";
  position: absolute;
  z-index: 0;
}

.sc-zigzag-foto::before {
  top: 0;
  left: 0;
  width: 46%;
  height: 52%;
  border-radius: 24px;
  background-image: radial-gradient(rgba(27, 34, 70, 0.32) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
}

/* Op verzoek geen gekleurde tegel meer achter de foto (overal op de site). */
.sc-zigzag-foto::after {
  display: none;
}

/* Bij foto's links staan de accenten gespiegeld. */
.sc-zigzag-omgekeerd .sc-zigzag-foto::before {
  left: auto;
  right: 0;
}

.sc-zigzag-omgekeerd .sc-zigzag-foto::after {
  right: auto;
  left: 0;
  background: var(--sc-primary);
}

/* De twee stipjes uit het huisstijl-lijntje, op de hoek van de foto. */
.sc-zigzag-stip {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #22507a;
}

.sc-zigzag-stip-1 {
  top: 34px;
  right: 6px;
}

.sc-zigzag-stip-2 {
  left: 6px;
  bottom: 54px;
  background: var(--sc-accent);
}

@media (max-width: 900px) {
  .sc-zigzag-rij,
  .sc-zigzag-omgekeerd {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tekst"
      "foto";
  }

  .sc-zigzag-foto {
    padding: 14px;
  }

  .sc-zigzag-foto img {
    border-radius: 24px;
  }

  .sc-zigzag-foto::after {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }
}

/* Tekstlink onder een rij: groen, vet, met een pijl die bij hover opschuift. */
.sc-zigzag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(16px, 1.8vw, 24px);
  color: #0d7f70;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.sc-zigzag-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.sc-zigzag-link:hover::after,
.sc-zigzag-link:focus-visible::after {
  transform: translateX(4px);
}

.sc-zigzag-link:hover,
.sc-zigzag-link:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .sc-zigzag-link::after {
    transition: none;
  }
}

/* Meerdere links naast elkaar (onder elkaar als er te weinig ruimte is). */
.sc-zigzag-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

/* ---------------------------------------------------------------------------
   Eén doorlopend verhaal: een gestippelde lijn slingert van foto naar foto
   (rechts → links → rechts), met het stipje van de huisstijl bij elke foto.
   Zo lees je de losse blokken van boven naar beneden als één geheel.
   --------------------------------------------------------------------------- */
.sc-zigzag-verhaal {
  gap: 0;
}

.sc-zigzag-brug {
  height: clamp(56px, 7vw, 110px);
  margin: -8px 0;
  pointer-events: none;
}

.sc-zigzag-brug svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sc-zigzag-brug path {
  fill: none;
  stroke: #22507a;
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .sc-zigzag-verhaal {
    gap: clamp(40px, 8vw, 64px);
  }

  .sc-zigzag-brug {
    display: none;
  }
}

/* Op verzoek knoppen i.p.v. tekstlinks onder een rij (duidelijker). */
.sc-zigzag-knoppen {
  gap: 12px;
  margin-top: 28px;
}
