/* ============================================================
   COOPER PROJECTREALISATIE — Pagina-chrome (gedeeld)
   Voor pagina's buiten home.html: diensten, over-ons, werken-bij
   ============================================================ */

/* ---------- Scroll reveal & text color-fill ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 1.15s cubic-bezier(.22,.65,.2,1),
    transform 1.15s cubic-bezier(.22,.65,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fill-text.fill-text {
  --fill: 0;
  --fill-gray: rgba(14, 27, 37, 0.20);
  --fill-base: var(--text);
  --fill-accent: var(--cpr-mid);
  color: color-mix(in oklab, var(--fill-base) calc(var(--fill) * 100%), var(--fill-gray));
}
.fill-text.fill-text em {
  color: color-mix(in oklab, var(--fill-accent) calc(var(--fill) * 100%), var(--fill-gray));
}
/* Dark sections — softer pale gray, accents shift to soft blue */
.fill-text.fill-text--dark,
[data-nav="dark"] .fill-text.fill-text {
  --fill-gray: rgba(255, 255, 255, 0.26);
  --fill-base: #ffffff;
  --fill-accent: var(--cpr-soft);
}

@supports not (color: color-mix(in oklab, white 50%, black)) {
  .fill-text.fill-text { color: var(--text); }
  .fill-text.fill-text em { color: var(--cpr-mid); }
}


:root {
  --cpr-deep: #1A3A4E;
  --cpr-mid:  #42697E;
  --cpr-soft: #8BB1C8;
  --tint-photo: rgba(26, 58, 78, 0.32);
}

body { background: var(--bg); color: var(--text); }

.page { max-width: none; margin: 0 auto; padding: 0 clamp(24px, 3vw, 56px); }

/* ============================================================
   FLOATING APPLE-GLASS NAV — fixed, scrolls along, auto dark/light
   ============================================================ */
.cpr-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: var(--s-5);
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(20, 30, 40, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
          backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 12px 40px rgba(8, 16, 24, 0.28),
    0 2px 6px rgba(8, 16, 24, 0.16);
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, color 0.45s ease, transform 0.35s ease;
  max-width: calc(100vw - 32px);
  font-family: var(--f);
}
.cpr-nav__brand {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s ease;
}
.cpr-nav__brand img {
  display: block;
  height: 22px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
.cpr-nav__brand .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cpr-soft);
  margin-right: 10px; vertical-align: 2px;
  box-shadow: 0 0 12px rgba(139,177,200,0.7);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.cpr-nav__links { display: flex; gap: 2px; }
.cpr-nav__links a {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cpr-nav__links a:hover { color: #fff; background: rgba(255,255,255,0.10); }
.cpr-nav__links a.active {
  color: #fff;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}

/* Light state — over white/paper content */
.cpr-nav.is-light {
  background: rgba(243, 241, 236, 0.72);
  border-color: rgba(14,27,37,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 12px 40px rgba(14, 27, 37, 0.10),
    0 2px 6px rgba(14, 27, 37, 0.06);
}
.cpr-nav.is-light .cpr-nav__brand { color: var(--text); }
.cpr-nav.is-light .cpr-nav__brand img { filter: none; }
.cpr-nav.is-light .cpr-nav__brand .dot {
  background: var(--cpr-mid);
  box-shadow: 0 0 10px rgba(66,105,126,0.5);
}
.cpr-nav.is-light .cpr-nav__links a { color: var(--text-3); }
.cpr-nav.is-light .cpr-nav__links a:hover { color: var(--text); background: rgba(14,27,37,0.05); }
.cpr-nav.is-light .cpr-nav__links a.active {
  color: var(--cpr-mid);
  background: rgba(66,105,126,0.12);
  box-shadow: inset 0 1px 0 rgba(66,105,126,0.20);
}

/* Slight 'lift' once it has scrolled away from top */
.cpr-nav.is-scrolled {
  top: 12px;
  transform: translateX(-50%) scale(0.98);
}

/* Body padding-top reservation — heroes overlap nav, content pages need spacing */
body.has-floating-nav { /* no top padding needed; nav is overlay */ }

@media (max-width: 820px) {
  .cpr-nav { padding: 6px 6px 6px 16px; gap: 12px; }
  .cpr-nav__brand { font-size: 10px; letter-spacing: 0.12em; }
  .cpr-nav__brand img { height: 18px; }
  .cpr-nav__brand .dot { margin-right: 8px; }
  .cpr-nav__links a { padding: 6px 10px; font-size: 10px; letter-spacing: 0.12em; }
}
@media (max-width: 640px) {
  .cpr-nav__brand { display: none; }
  .cpr-nav { padding: 6px; max-width: calc(100vw - 24px); }
  .cpr-nav__links { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cpr-nav__links::-webkit-scrollbar { display: none; }
}

/* ---------- (legacy) TOP NAV in-hero — kept for back-compat ---------- */
.cpr-top {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: var(--s-6);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
  position: relative; z-index: 10;
}
.cpr-top__brand { color: var(--text); font-weight: 500; }
.cpr-top__nav { display: flex; gap: var(--s-5); margin-left: auto; flex-wrap: wrap; }
.cpr-top__nav a { color: var(--text-3); transition: color 0.2s; }
.cpr-top__nav a:hover { color: var(--text); }
.cpr-top__nav a.active { color: var(--cpr-mid); }
.cpr-top--over {
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.18);
}
.cpr-top--over .cpr-top__brand { color: #fff; }
.cpr-top--over .cpr-top__nav a { color: rgba(255,255,255,0.75); }
.cpr-top--over .cpr-top__nav a:hover { color: #fff; }
.cpr-top--over .cpr-top__nav a.active { color: var(--cpr-soft); }

/* ---------- HERO (image-first met overlay) ---------- */
.cpr-hero {
  position: relative;
  width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  overflow: hidden;
  color: #fff;
  display: flex; flex-direction: column;
}
.cpr-hero--tall { height: 100vh; min-height: 720px; }
.cpr-hero--med  { min-height: 78vh; padding-bottom: var(--s-7); }
.cpr-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 55%;
  z-index: 0;
}
@keyframes cprSlowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.cpr-hero__tint {
  position: absolute; inset: 0;
  background: var(--tint-photo);
  mix-blend-mode: multiply;
  z-index: 1; pointer-events: none;
}
.cpr-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11,15,22,0.55) 0%,
    rgba(11,15,22,0.10) 25%,
    rgba(11,15,22,0.20) 60%,
    rgba(11,15,22,0.92) 100%);
  z-index: 1;
}
.cpr-hero__nav-wrap {
  position: relative; z-index: 5;
  width: 100%; max-width: none;
  margin: 0 auto; padding: 0 clamp(24px, 3vw, 56px);
}
.cpr-hero__inner {
  position: relative; z-index: 4;
  flex: 1;
  width: 100%; max-width: none;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 56px) var(--s-7);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cpr-hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-5);
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.cpr-hero__chip::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cpr-soft);
  box-shadow: 0 0 14px rgba(139,177,200,0.6);
}
.cpr-hero__title {
  font-weight: 100;
  font-size: clamp(56px, 8.2vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: #fff;
  max-width: 16ch;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.cpr-hero__title em {
  color: var(--cpr-soft);
  font-style: italic; font-weight: 300;
}
.cpr-hero__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.cpr-hero__lead {
  font-size: 18px; font-weight: 300; line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
}
.cpr-hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-self: end;
}

/* ---------- BUTTONS ---------- */
.h-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.h-btn .arr {
  display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  transition: transform 0.25s;
}
.h-btn:hover .arr { transform: translateX(4px); }
.h-btn--primary {
  background: var(--cpr-mid); color: #fff; border-color: var(--cpr-mid);
}
.h-btn--primary:hover { background: #355A70; border-color: #355A70; }
.h-btn--primary .arr { background: #fff; color: var(--cpr-mid); }
.h-btn--ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.h-btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.h-btn--ghost .arr { background: rgba(255,255,255,0.16); color: #fff; }
.h-btn--dark {
  background: var(--cpr-deep); color: #fff; border-color: var(--cpr-deep);
}
.h-btn--dark:hover { background: #0e2837; border-color: #0e2837; }
.h-btn--dark .arr { background: var(--cpr-soft); color: var(--cpr-deep); }
.h-btn--ink-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.h-btn--ink-ghost:hover { border-color: var(--cpr-mid); color: var(--cpr-mid); }
.h-btn--ink-ghost .arr { background: var(--cpr-mid); color: #fff; }

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-7);
}
.section-head__kicker {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cpr-mid);
  margin-bottom: var(--s-4);
  display: flex; align-items: center; gap: 12px;
}
.section-head__kicker::before {
  content: ''; width: 28px; height: 1px; background: var(--cpr-mid);
}
.section-head h2 {
  font-weight: 100;
  font-size: clamp(48px, 6.5vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.section-head h2 em { color: var(--cpr-mid); font-style: italic; font-weight: 300; }
.section-head__right {
  font-size: 16px; line-height: 1.6; font-weight: 300;
  color: var(--text-2);
  max-width: 480px;
  justify-self: end;
  padding-bottom: 8px;
}

/* ---------- CTA (dark band) ---------- */
.cpr-cta {
  position: relative;
  width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  padding: var(--s-10) var(--s-7);
  background: var(--cpr-deep);
  color: #fff;
  overflow: hidden;
}
.cpr-cta::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,177,200,0.18), transparent 70%);
  pointer-events: none;
}
.cpr-cta__inner {
  max-width: none;
  margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: var(--s-8);
  align-items: end;
  position: relative;
}
.cpr-cta h2 {
  font-weight: 100;
  font-size: clamp(56px, 8vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cpr-cta h2 em { color: var(--cpr-soft); font-style: italic; font-weight: 300; }
.cpr-cta__right { display: flex; flex-direction: column; gap: var(--s-5); }
.cpr-cta__right p {
  font-size: 17px; line-height: 1.6; font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 460px;
}
.cpr-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.cpr-foot {
  padding: var(--s-7) 0 var(--s-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  border-top: 1px solid var(--line);
}
.cpr-foot__brand { display: flex; flex-direction: column; gap: var(--s-4); }
.cpr-foot__brand .name { font-weight: 300; font-size: 24px; letter-spacing: -0.01em; }
.cpr-foot__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 240px;
  align-self: flex-start;
  object-fit: contain;
  margin-bottom: var(--s-2, 8px);
}
.cpr-foot__brand p {
  font-size: 14px; line-height: 1.55; font-weight: 300; color: var(--text-2);
  max-width: 380px;
}
.cpr-foot__col h4 {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.cpr-foot__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cpr-foot__col a {
  font-size: 14px; color: var(--text); font-weight: 400;
  transition: color 0.2s;
}
.cpr-foot__col a:hover { color: var(--cpr-mid); }
.cpr-foot__bottom {
  grid-column: 1 / -1;
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--s-5);
  flex-wrap: wrap;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head__right { justify-self: start; }
  .cpr-hero__row { grid-template-columns: 1fr; }
  .cpr-hero__actions { justify-self: start; }
  .cpr-cta__inner { grid-template-columns: 1fr; }
  .cpr-foot { grid-template-columns: 1fr; }
}
