/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 243, 0.96);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 111px;
  height: auto;
}

.nav-desktop {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 33px;
  justify-self: center;
}

.nav-desktop .nav-link--new {
  margin-top: -14px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
  background: var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 582px) minmax(0, 413px);
  gap: clamp(48px, 10vw, 203px);
  align-items: center;
  justify-content: space-between;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 582px;
}

.hero__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
  max-width: 508px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero__visual {
  position: relative;
  width: min(100%, 413px);
  margin-inline: auto;
}

.hero__orb {
  position: absolute;
  top: -48px;
  right: -72px;
  width: 225px;
  height: 225px;
  z-index: 0;
  pointer-events: none;
}

.hero__orb img {
  width: 100%;
  height: 100%;
}

.hero__collage {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
}

.hero__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Over ons */
.over {
  position: relative;
  background: var(--dark);
  color: var(--bg-soft);
  padding: 142px 0;
  overflow: hidden;
}

.over__orb {
  position: absolute;
  left: 46px;
  top: 74px;
  width: 222px;
  height: 222px;
  pointer-events: none;
}

.over__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 550px);
  gap: clamp(40px, 7vw, 108px);
  align-items: center;
}

.over__media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 540 / 360;
  background: #111;
}

.over__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.over h2 {
  color: var(--bg-soft);
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.17;
  text-transform: uppercase;
  max-width: 550px;
}

.over__copy {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--bg-soft);
  max-width: 520px;
}

.over__actions {
  margin-top: 40px;
}

/* Diensten */
.diensten {
  padding: 97px 0 120px;
  background: var(--bg);
}

.diensten__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.diensten__head h2 {
  max-width: 482px;
}

.diensten__aside {
  max-width: 511px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.diensten__aside p {
  font-size: 16px;
}

.diensten__aside .btn {
  min-height: 48px;
}

.services-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-stack .service-card-wrap {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding-bottom: 24px;
}

.services-stack .service-card-wrap:last-child {
  padding-bottom: 0;
}

.services-stack .service-card-wrap:nth-child(1) { z-index: 1; }
.services-stack .service-card-wrap:nth-child(2) { z-index: 2; }
.services-stack .service-card-wrap:nth-child(3) { z-index: 3; }
.services-stack .service-card-wrap:nth-child(4) { z-index: 4; }

.services-stack .service-card {
  box-shadow: 0 18px 40px rgba(16, 17, 15, 0.08);
}

/* Realisaties */
.realisaties {
  padding: 63px 0 90px;
  background: var(--bg);
  overflow: hidden;
}

.realisaties__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.realisaties__head h2 {
  max-width: 320px;
  color: var(--ink-strong);
}

.realisaties__head p {
  max-width: 396px;
  text-align: right;
  color: var(--ink-strong);
}

.gallery {
  position: relative;
}

.gallery__viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.gallery__viewport.is-dragging {
  cursor: grabbing;
}

.gallery__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.gallery__item {
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  height: 280px;
  width: auto;
  transition: height 0.35s ease, transform 0.35s ease, border-radius 0.35s ease, width 0.35s ease;
  transform: scale(0.92);
  opacity: 0.88;
}

.gallery__item.is-active {
  height: 398px;
  border-radius: 22px;
  transform: scale(1);
  opacity: 1;
}

.gallery__item img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.gallery__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
}

.gallery__hint {
  font-size: 16px;
  color: var(--ink-strong);
}

.gallery__progress {
  position: relative;
  width: min(482px, 45vw);
  height: 2px;
  background: #d2d3d0;
  overflow: hidden;
}

.gallery__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33%;
  background: var(--yellow);
}

/* Calculator */
.calculator {
  background: var(--calc-bg);
  color: var(--bg-soft);
  padding: 96px 0;
}

.calculator__intro {
  text-align: center;
  max-width: 1184px;
  margin: 0 auto 48px;
}

.calculator__intro h2 {
  font-size: clamp(36px, 3.8vw, 52px);
  color: var(--bg-soft);
  text-transform: uppercase;
}

.calculator__intro p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--calc-muted);
}

.calc-card {
  width: min(1184px, 100%);
  margin: 0 auto;
  min-height: 572px;
  background: var(--calc-card);
  border: 1px solid var(--calc-border);
  border-radius: var(--radius-calc);
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
}

.calc-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: end;
  margin-bottom: 40px;
}

.calc-progress__label,
.calc-progress__pct {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
}

.calc-progress__label {
  font-size: 12px;
  letter-spacing: 1.4px;
}

.calc-progress__pct {
  font-size: 14px;
}

.calc-progress__track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: var(--calc-track);
  overflow: hidden;
}

.calc-progress__fill {
  height: 100%;
  width: 0;
  background: #f1c920;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.calc-card__question {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--bg-soft);
}

.calc-card__hint {
  margin-top: 10px;
  font-size: 18px;
  color: var(--calc-muted);
}

.calc-card__body {
  margin-top: 30px;
  flex: 1;
}

.calc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.calc-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.calc-area__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1c920 var(--pct, 22%), #b8b8b0 var(--pct, 22%));
  outline: none;
}

.calc-area__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid #15180f;
  cursor: pointer;
}

.calc-area__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid #15180f;
  cursor: pointer;
}

.calc-area__value {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 18px;
  background: var(--calc-option);
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 22px;
}

.calc-area__value input {
  width: 5ch;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.calc-area__value input:focus {
  outline: none;
}

.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.calc-fields .field--full {
  grid-column: 1 / -1;
}

.calc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.calc-nav__spacer {
  width: 148px;
}

.calc-done {
  display: none;
  flex-direction: column;
  gap: 16px;
  color: var(--bg-soft);
}

.calc-done.is-visible {
  display: flex;
}

.calc-done h3 {
  font-size: 28px;
  color: var(--bg-soft);
}

.calc-done__summary {
  background: var(--calc-option);
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--calc-hint);
  white-space: pre-wrap;
}

.calc-error {
  margin-top: 12px;
  color: #ffb4b4;
  font-size: 14px;
  min-height: 1.2em;
}

/* Premies */
.premies {
  padding: 94px 0;
  background: var(--bg);
}

.premies__grid {
  display: grid;
  grid-template-columns: minmax(0, 488px) minmax(0, 642px);
  gap: 48px 94px;
  align-items: start;
}

.premies__left h2 {
  color: var(--ink-deep);
  max-width: 459px;
}

.premies__left .section-copy {
  margin-top: 16px;
  max-width: 459px;
  color: var(--muted);
  line-height: 1.6;
}

.premies__usps {
  margin-top: 35px;
}

.premies__left .btn {
  margin-top: 40px;
  min-width: 292px;
}

.premies__cards {
  display: grid;
  gap: 30px;
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 80px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.final-cta__arc {
  position: relative;
  width: min(1232px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 120px 24px 72px;
  text-align: center;
}

.final-cta__arc::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: var(--yellow);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 844px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final-cta h2 {
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.25;
  text-transform: uppercase;
  max-width: 703px;
}

.final-cta p {
  font-size: 19px;
  line-height: 1.45;
  max-width: 844px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--footer-muted);
  padding: 69px 0 48px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-start;
}

.footer__logo {
  width: min(368px, 100%);
  flex: none;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 230px));
  gap: 24px 36px;
  padding-top: 38px;
}

.footer__col h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 34px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 19px;
}

.footer__col a,
.footer__col button,
.footer__col span {
  font-size: 16px;
  color: var(--footer-muted);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.footer__col a:hover,
.footer__col button:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 56px;
  padding-top: 39px;
  border-top: 1px solid var(--footer-line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal button {
  background: none;
  border: 0;
  color: var(--footer-muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/*
  Desktop vertical rhythm (≈1280–1920)
  Principles: content-led section height; more air between bands than inside them;
  denser blocks (calculator/gallery) get a bit less pad than editorial bands;
  mobile (<1001px) keeps the base values above.
*/
@media (min-width: 1001px) {
  .hero {
    padding: 56px 0 112px;
  }

  .over {
    padding: 160px 0;
  }

  .diensten {
    padding: 120px 0 136px;
  }

  .diensten__head {
    margin-bottom: 88px;
  }

  .realisaties {
    padding: 120px 0 128px;
  }

  .realisaties__head {
    margin-bottom: 72px;
  }

  .gallery__footer {
    margin-top: 56px;
  }

  .calculator {
    padding: 128px 0;
  }

  .calculator__intro {
    margin-bottom: 56px;
  }

  .premies {
    padding: 120px 0 128px;
  }

  .final-cta {
    padding: 104px 0 0;
  }

  .site-footer {
    padding: 80px 0 56px;
  }
}
