/* ==========================================================================
   Werkwijze (werkwijze.html) — page-specific styles only
   Desktop follows Figma frame "Werkwijze" (1600:390, 1440). There is no
   mobile/tablet frame: those layouts follow how the Landing page adapts.
   ========================================================================== */

/* Figma content on this page is 1280 wide: .container--page (base.css) */

/* Even line breaks for headings and intro copy */
.page-werkwijze .site-main :is(h1, h2) { text-wrap: balance; }
.page-werkwijze .site-main p { text-wrap: pretty; }

/* Section pills: shared .badge--label */

/* Soft info pill under a section ("Het eerste contact is altijd vrijblijvend.") */
.page-werkwijze .note {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 20px;
  border-radius: 16px;
  background: rgba(25, 61, 39, 0.05);
  color: var(--c-green-500);
  font-size: 16px;
  line-height: 32px;
  text-align: center;
}
.page-werkwijze .note--dark { background: rgba(255, 255, 255, 0.05); color: var(--c-white); }

/* ---------- Intro (hero) ---------- */
.intro { padding: clamp(8px, calc(7.2vw - 20px), 83px) 0 var(--section-y); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 669fr) minmax(0, 554fr);
  column-gap: 57px;
  align-items: start;
}
.intro__body { display: flex; flex-direction: column; align-items: flex-start; }
.intro__title {
  margin-top: 21px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, calc(2.29vw + 31px), 64px);
  line-height: 1.33;
  color: var(--c-green-500);
}
.intro__lead {
  margin-top: 27px;
  max-width: 630px;
  font-size: 20px;
  line-height: 32px;
  color: rgba(0, 0, 0, 0.5);
}
.intro__action { margin-top: 51px; }
.intro__media { aspect-ratio: 554 / 674; border-radius: 40px; }
.intro__media img { object-position: 30% 50%; }

/* ---------- Region + dining (text column + photo mosaic) ---------- */
.region__grid {
  display: grid;
  grid-template-columns: minmax(0, 592fr) minmax(0, 627fr);
  justify-content: space-between;
  column-gap: clamp(32px, 4.4vw, 61px);
  align-items: center;
}
.region__body { display: flex; flex-direction: column; align-items: flex-start; gap: 102px; }
.region__text { display: flex; flex-direction: column; align-items: flex-start; max-width: 578px; }
.region__title { margin-top: 24px; line-height: 48px; }
.region__lead { margin-top: 24px; line-height: 1.3; }
.region__stats { width: 100%; grid-template-columns: 274fr 318fr; }
.region__stats .stat__value { font-weight: 700; }
.region__stats .stat__suffix { font-size: inherit; line-height: inherit; margin-left: 0; }
.region__stats .stat__label { margin-top: 4px; }

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 310fr) minmax(0, 307fr);
  gap: 10px;
  width: 100%;
}
.mosaic__item { min-height: 0; border-radius: var(--r-lg); }
.mosaic--region { grid-template-rows: 1fr 1fr; aspect-ratio: 627 / 646; }
.mosaic--region .mosaic__item--tall { grid-row: 1 / span 2; }
.mosaic__img--top { object-position: 50% 0; }
/* col 1: 244 + 392, col 2: 392 + 244 (Figma) */
.mosaic--dining { grid-template-rows: 244fr 138fr 244fr; aspect-ratio: 627 / 646; }
.mosaic--dining .mosaic__item:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.mosaic--dining .mosaic__item:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.mosaic--dining .mosaic__item:nth-child(3) { grid-area: 2 / 1 / 4 / 2; }
.mosaic--dining .mosaic__item:nth-child(4) { grid-area: 3 / 2 / 4 / 3; }

.chips { display: flex; flex-wrap: wrap; gap: 18px; max-width: 480px; }
.chip {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  font-size: 20px;
  line-height: 26px;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.chip:hover { background: var(--c-orange-50); color: var(--c-orange-700); }

/* ---------- Process (scroll-driven steps) ---------- */
.process__head .h2 { line-height: 44px; }
.steps { position: relative; margin-top: 68px; }
.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* track + fill; JS measures icon centres and drives --p (0 → 1) while scrolling */
.steps__line {
  position: absolute;
  top: 47px;
  left: 16.667%;
  right: 16.667%;
  height: 2px;
  border-radius: 2px;
  background: rgba(25, 61, 39, 0.12);
  overflow: hidden;
  pointer-events: none;
}
.steps__fill {
  position: absolute;
  inset: 0;
  background: var(--c-orange-500);
  transform-origin: left center;
  transform: scaleX(var(--p, 1));
}
.steps.is-vertical .steps__fill { transform-origin: center top; transform: scaleY(var(--p, 1)); }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-inline: 28px;
  text-align: center;
}
.step__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-orange-500);
  box-shadow: 0 0 0 0 rgba(178, 84, 33, 0);
  transition: color 0.6s var(--ease-out), box-shadow 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.step__icon svg { width: 48px; height: 48px; }
.step__body { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
.step__title { font-weight: 700; font-size: 24px; line-height: 31px; color: var(--c-text); }
.step__text { font-size: 18px; line-height: 23px; color: var(--c-text-body); max-width: 248px; }
.step:nth-child(2) .step__text { max-width: 264px; }
.step:nth-child(3) .step__text { max-width: 320px; }
/* scrubbed states (only when werkwijze.js drives the steps) */
.steps.is-scrubbed .step__icon { color: var(--c-orange-200); }
.steps.is-scrubbed .step__body { opacity: 0.4; }
.steps.is-scrubbed .step.is-active .step__icon {
  color: var(--c-orange-500);
  box-shadow: 0 0 0 8px rgba(178, 84, 33, 0.08), 0 18px 40px -18px rgba(18, 43, 28, 0.28);
}
.steps.is-scrubbed .step.is-active .step__body { opacity: 1; }

/* ---------- Bespoke (green band, 4 value cards) ---------- */
.bespoke__band {
  padding-block: 88px;
  background: var(--c-green-500);
  color: var(--c-white);
}
.bespoke__head { gap: 28px; }
.bespoke__title { color: var(--c-white); line-height: 48px; }
.bespoke__carousel { margin-top: 56px; }
.page-werkwijze .bespoke__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bespoke__track:focus-visible { outline-offset: 6px; }
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 399px;
  padding: 22px 22px 24px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-white);
  transform: translateZ(0);
}
.value-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}
.value-card__img--left { object-position: 30% 50%; }
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(177.6deg, rgba(25, 25, 25, 0) 9.44%, #191919 98.41%);
}
.value-card__title { font-family: var(--f-display); font-size: 32px; line-height: 1.2; }
.value-card__text { font-size: 16px; line-height: 1.3; color: rgba(255, 255, 255, 0.5); }
.bespoke .note { margin-top: 56px; }

/* ---------- Not us (Wie zijn wij níét?) ---------- */
.not-us__head { gap: 28px; }
.not-us__head .h2 { line-height: 44px; }
.not-us__lead { max-width: 870px; font-size: 20px; line-height: 32px; color: rgba(0, 0, 0, 0.5); }
.not-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; }
.not-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-inline: 4px;
  text-align: center;
}
.not-item__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-orange-500);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.not-item__icon svg { width: 48px; height: 48px; }
/* diagonal "not" stroke: orange bar with a white edge (Figma Rectangle 14) */
.not-item__strike {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 64.8px;
  margin: -32.4px 0 0 -2.5px;
  border-left: 2px solid var(--c-white);
  background: var(--c-orange-500);
  transform: rotate(-45deg) scaleY(1);
  transition: transform 0.7s var(--ease-out);
}
.js .not-list[data-strike]:not(.is-struck) .not-item__strike { transform: rotate(-45deg) scaleY(0); }
.not-item:nth-child(2) .not-item__strike { transition-delay: 0.1s; }
.not-item:nth-child(3) .not-item__strike { transition-delay: 0.2s; }
.not-item:nth-child(4) .not-item__strike { transition-delay: 0.3s; }
.not-item:nth-child(5) .not-item__strike { transition-delay: 0.4s; }
@media (hover: hover) {
  .not-item:hover .not-item__icon { box-shadow: var(--sh-card); }
}
.not-item__title { font-weight: 700; font-size: 24px; line-height: 31px; color: var(--c-text); max-width: 205px; }
.not-item:first-child .not-item__title { max-width: 250px; }
.not-us .note { margin-top: 24px; }

/* ---------- Advies: shared block (base.css) ---------- */

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small desktop */
@media (max-width: 1199.98px) {
  .intro__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 40px; }
  .intro__lead { font-size: 18px; line-height: 30px; }
  .intro__action { margin-top: 40px; }
  .region__body { gap: 64px; }
  .value-card { height: 380px; padding: 20px 18px 22px; }
  .value-card__title { font-size: 26px; }
  .value-card__text { font-size: 15px; }
  .not-item__title { font-size: 20px; line-height: 26px; }
}

/* Tablet: stack the hero (image first), stack text + mosaic */
@media (max-width: 1023.98px) {
  .intro { padding-top: 0; }
  .intro__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .intro__media { order: -1; aspect-ratio: 16 / 10; border-radius: 24px; }
  .intro__lead { max-width: 640px; }

  .region__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .region__text { max-width: 640px; }
  .region__body { gap: 48px; }
  .region__stats { max-width: 592px; }
  .mosaic--region, .mosaic--dining { aspect-ratio: 704 / 560; }

  .step { padding-inline: 12px; }
  .step__title { font-size: 20px; line-height: 26px; }
  .step__text { font-size: 16px; line-height: 1.3; }

  .bespoke__band { padding-block: 72px; }
  .bespoke__carousel { margin-top: 48px; }

  .not-list { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 40px; }
  .not-item { flex: 0 0 33.333%; }

}

/* Tablet only: value cards as a 2 × 2 grid instead of the carousel */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .page-werkwijze .bespoke__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    cursor: auto;
  }
  .page-werkwijze .bespoke__carousel .carousel__progress { display: none; }
  .value-card { height: 420px; padding: 24px; }
  .value-card__title { font-size: 30px; }
  .value-card__text { font-size: 16px; }
}

/* Mobile */
@media (max-width: 767.98px) {
  .page-werkwijze .note { padding: 14px 20px; line-height: 24px; }

  .intro__grid { row-gap: 24px; }
  .intro__media { aspect-ratio: 361 / 420; }
  .intro__title { margin-top: 16px; line-height: 1.25; }
  .intro__lead { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .intro__action { width: 100%; margin-top: 28px; }
  .intro__action .btn { width: 100%; }

  .region__title { margin-top: 20px; font-size: 28px; line-height: 1.3; }
  .region__lead { margin-top: 16px; font-size: 16px; }
  .region__body { gap: 40px; }
  .region__grid { row-gap: 40px; }
  .mosaic--region, .mosaic--dining { aspect-ratio: 361 / 400; gap: 8px; }
  .mosaic__item { border-radius: 16px; }
  .chips { gap: 10px; }
  .chip { padding: 10px 14px; font-size: 16px; line-height: 22px; }

  .process__head .h2, .not-us__head .h2 { font-size: 28px; line-height: 1.3; }
  .steps { margin-top: 40px; }
  /* vertical timeline: icon left, text right; JS places the line through the icons */
  .steps__line { display: none; }
  .steps.is-measured .steps__line { display: block; }
  .steps__list { grid-template-columns: 1fr; row-gap: 32px; }
  .step { flex-direction: row; align-items: center; gap: 20px; padding-inline: 0; text-align: left; }
  .step__icon { width: 72px; height: 72px; }
  .step__icon svg { width: 36px; height: 36px; }
  .step__body { align-items: flex-start; gap: 4px; }
  .step__text, .step:nth-child(2) .step__text, .step:nth-child(3) .step__text { max-width: none; }
  .steps.is-scrubbed .step__body { transform: translateX(8px); }

  .bespoke__band { padding-block: 64px; }
  .bespoke__title { font-size: 28px; line-height: 1.3; }
  .bespoke__carousel { margin-top: 32px; }
  .value-card { height: 420px; padding: 24px 22px; }
  .value-card__title { font-size: 28px; }
  .value-card__text { font-size: 16px; }
  .bespoke .note { margin-top: 32px; }

  .not-us__head { gap: 20px; }
  .not-us__lead { font-size: 16px; line-height: 1.5; }
  .not-list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; row-gap: 12px; margin-top: 32px; }
  .not-item { flex: none; flex-direction: row; gap: 16px; padding: 10px 16px 10px 10px; border-radius: 48px; background: rgba(255, 255, 255, 0.55); text-align: left; }
  .not-item__icon { width: 56px; height: 56px; }
  .not-item__icon svg { width: 28px; height: 28px; }
  .not-item__strike { width: 4px; height: 38px; margin: -19px 0 0 -2px; border-left-width: 1.5px; }
  .not-item__title { max-width: none; font-size: 18px; line-height: 1.3; }

}
