/* ============================================================
   pages/samenwerken.css — new design system
   ============================================================ */

/* ── Page spine ──────────────────────────────────────────── */
.page-trail { position: relative; overflow: hidden; margin-bottom: -300px; padding-bottom: 300px; }
.page-spine {
  position: absolute;
  top: 400px; left: 0;
  width: 100%; height: 5000px;
  z-index: 0;
  pointer-events: none;
}
.page-spine svg { width: 100%; height: 100%; }
.spine-path {
  fill: none;
  stroke: url(#spineGrad);
  stroke-width: 36;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.92;
}
.page-trail > section { position: relative; z-index: 1; }
@media (max-width: 580px) { .spine-path { stroke-width: 14; } }

/* ── Halo (text readable over spine) ─────────────────────── */
.has-halo {
  -webkit-text-stroke: 4px var(--color-cream);
  paint-order: stroke fill;
}

/* ── Eyebrow ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-crimson);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--color-crimson);
  display: inline-block;
}

/* ── Rollen Grid ─────────────────────────────────────────── */
.rollen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin-inline: auto;
}

.rol-card {
  background: #fff;
  border: 1px solid rgba(99, 9, 9, 0.08);
  border-radius: var(--r-md);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 36px -22px rgba(99, 9, 9, 0.18);
  transition: transform .35s ease, box-shadow .35s ease;
}

.rol-card:nth-child(1) { transform: rotate(-1.2deg); }
.rol-card:nth-child(2) { transform: rotate(0.8deg) translateY(16px); }
.rol-card:nth-child(3) { transform: rotate(-0.6deg); }

.rol-card:hover {
  transform: rotate(0) translateY(-6px) !important;
  box-shadow: 0 24px 48px -20px rgba(99, 9, 9, 0.28);
}

.rol-card__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.rol-card__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.rol-card__title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0;
  line-height: 1.1;
}

.rol-card__accent {
  width: 40px; height: 3px;
  background: var(--color-crimson);
  margin: 16px 0;
  border-radius: 999px;
}

.rol-card__text {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

/* ── Vacature Grid ───────────────────────────────────────── */
.vacature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin-inline: auto;
}

.vacature-card {
  background: #fff;
  border: 1px solid rgba(99, 9, 9, 0.08);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 28px -16px rgba(99, 9, 9, 0.14);
  transition: transform .35s ease, box-shadow .35s ease;
}

.vacature-card:nth-child(3n+1) { transform: rotate(-0.5deg); }
.vacature-card:nth-child(3n+2) { transform: rotate(0.4deg); }
.vacature-card:nth-child(3n)   { transform: rotate(-0.3deg); }

.vacature-card:hover {
  transform: rotate(0) translateY(-6px) !important;
  box-shadow: 0 20px 40px -16px rgba(99, 9, 9, 0.22);
}

.vacature-card__icon {
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.vacature-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.vacature-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.vacature-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-crimson);
  text-decoration: none;
  transition: color .15s ease;
}
.vacature-card__cta:hover {
  color: var(--color-primary);
}

/* ── Ideeënbus ───────────────────────────────────────────── */
.ideeenbus {
  padding: clamp(40px, 6vw, 64px);
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(99, 9, 9, 0.08);
  box-shadow: 0 20px 50px -24px rgba(99, 9, 9, 0.18);
  text-align: center;
}

.ideeenbus__icon {
  color: var(--color-secondary);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.ideeenbus__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ideeenbus__text {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .rollen-grid { grid-template-columns: 1fr; gap: 24px; }
  .rol-card:nth-child(n) { transform: none; }
  .rol-card:hover { transform: translateY(-6px) !important; }
  .vacature-grid { grid-template-columns: repeat(2, 1fr); }
  .vacature-card:nth-child(n) { transform: none; }
  .vacature-card:hover { transform: translateY(-6px) !important; }
}

@media (max-width: 580px) {
  .vacature-grid { grid-template-columns: 1fr; gap: 16px; }
  .ideeenbus { padding: 28px 20px; }
}

/* ── Mobile (480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
  /* Hide spine */
  .page-spine { display: none; }

  /* Thinner halo */
  .has-halo { -webkit-text-stroke: 2px var(--color-cream); }

  /* Rol cards: horizontal carousel */
  .rollen-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .rollen-grid::-webkit-scrollbar { display: none; }
  .rol-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
    transform: none;
  }

  /* Vacature cards: 2-col tight */
  .vacature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vacature-card { padding: 20px 14px; }
  .vacature-card__title { font-size: 15px; }
  .vacature-card__text { font-size: 13px; }
  .vacature-card__icon svg { width: 28px; height: 28px; }

  /* Section spacing */
  .section { padding-block: 40px; }
}
