/* ================= PORTFOLIO (toegevoegd 12 okt 2026) ================= */

/* Kop van de pagina */
.pf-hero { padding: 150px 0 40px; background: var(--bg-2); position: relative; overflow: hidden; }
.pf-hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: -300px; pointer-events: none;
  background: radial-gradient(circle, rgba(11, 42, 102, .09), transparent 65%);
}
.pf-hero .container { position: relative; }
.pf-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 780px; }
.pf-hero .lead { max-width: 640px; }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--brand-text); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1100px) { .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent-text); } }

/* Filter */
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pf-filter button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--heading); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.pf-filter button span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pf-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pf-filter button[aria-pressed="true"] span { color: #C9D4EC; }
@media (hover: hover) { .pf-filter button:hover { border-color: var(--brand-text); } }

/* Slideshow */
.pf-show { padding: 40px 0 88px; background: var(--surface); }
.pf-slider { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 40px; outline: none; }
.pf-slider:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pf-stage { display: grid; touch-action: pan-y; }
.pf-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.pf-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.pf-slide[hidden] { display: none; }
.pf-slide > * { min-width: 0; }

/* Visual: browserframe + telefoon */
.pf-visual { position: relative; padding: 0 44px 40px 0; }
.pf-browser { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pf-browser .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pf-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pf-browser .bar span { margin-left: 8px; flex: 1; max-width: 260px; font-size: .72rem; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pf-phone {
  position: absolute; right: 0; bottom: 0; width: 26%; min-width: 120px; border-radius: 22px; overflow: hidden;
  border: 6px solid #0E1A33; background: #0E1A33; box-shadow: 0 24px 40px -18px rgba(8, 27, 66, .55);
}
.pf-phone img { width: 100%; height: auto; aspect-ratio: 300 / 649; object-fit: cover; object-position: top; border-radius: 16px; }

.pf-visual.phone-left { padding: 0 0 40px 44px; }
.pf-visual.phone-left .pf-phone { right: auto; left: 0; }
@media (max-width: 640px) { .pf-visual.phone-left { padding: 0 0 30px 24px; } }

/* Visual: Instagram-posts als waaier */
.pf-posts { position: relative; height: 0; padding-bottom: 72%; }
.pf-posts img {
  position: absolute; top: 4%; width: 46%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.pf-posts img:nth-child(1) { left: 2%; transform: rotate(-7deg); top: 9%; }
.pf-posts img:nth-child(2) { left: 27%; z-index: 2; }
.pf-posts img:nth-child(3) { left: 52%; transform: rotate(7deg); top: 9%; }

/* Visual: afsprakensysteem (getekend, geen screenshot) */
.pf-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); font-size: .86rem; }
.pf-card h4 { margin: 0 0 12px; font-size: .9rem; color: var(--heading); display: flex; align-items: center; gap: 8px; }
.pf-card h4 svg { width: 18px; height: 18px; color: var(--brand-text); }
.pf-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-cal span { display: grid; place-items: center; min-height: 34px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .8rem; }
.pf-cal span.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pf-cal span.off { opacity: .35; text-decoration: line-through; }
.pf-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.pf-arrow svg { width: 18px; height: 18px; }
.pf-mail p { margin: 0 0 12px; color: var(--muted); line-height: 1.45; }
.pf-mail b { color: var(--heading); }
.pf-mail .acts { display: flex; gap: 6px; }
.pf-mail .acts span { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-weight: 700; font-size: .78rem; }
.pf-mail .yes { background: var(--green-soft); color: var(--green); }
.pf-mail .no { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pf-flow-bottom { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.pf-flow-bottom span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--heading); box-shadow: var(--shadow); }
.pf-flow-bottom svg { width: 16px; height: 16px; color: var(--green); }

/* Tekst naast de visual */
.pf-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.pf-label.eigen { background: var(--green-soft); color: var(--green); }
[data-theme="light"] .pf-label.eigen { color: #116B42; }
.pf-label.voorbeeld { background: var(--accent-soft); color: var(--accent-text); }
.pf-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pf-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.pf-text > p { color: var(--muted); }
.pf-text ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.pf-text li { display: flex; gap: 10px; font-size: .95rem; }
.pf-text li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.pf-text .note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-actions .btn { padding: 13px 22px; font-size: .95rem; }

/* Bediening */
.pf-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.pf-arrows { display: flex; gap: 8px; }
.pf-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--heading);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.pf-arrows button svg { width: 20px; height: 20px; }
@media (hover: hover) { .pf-arrows button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); } }
.pf-arrows button:active { transform: scale(.94); }
.pf-dots { display: flex; gap: 0; flex-wrap: wrap; justify-content: center; }
.pf-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.pf-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--line); transition: width .25s ease, background .25s ease; }
.pf-dots button[aria-current="true"]::before { width: 26px; background: var(--accent); }
.pf-dots button[hidden] { display: none; }
.pf-count { font-weight: 700; color: var(--muted); font-size: .9rem; min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }

/* Overzicht onder de slideshow */
.pf-all { background: var(--bg); }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pf-item { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pf-item[hidden] { display: none; }
.pf-item .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); border-bottom: 1px solid var(--line); }
.pf-item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.pf-item .thumb.flow { display: grid; place-items: center; color: var(--brand-text); }
.pf-item .thumb.flow svg { width: 56px; height: 56px; }
.pf-item .body { padding: 16px 18px 18px; }
.pf-item .pf-label { margin-bottom: 8px; font-size: .66rem; padding: 3px 9px; }
.pf-item h3 { font-size: 1.02rem; margin: 0 0 4px; }
.pf-item p { margin: 0; color: var(--muted); font-size: .88rem; }
@media (hover: hover) {
  .pf-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
  .pf-item:hover .thumb img { transform: scale(1.03); }
}
.pf-honest { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius); border: 2px dashed var(--line); color: var(--muted); font-size: .95rem; }
.pf-honest svg { width: 22px; height: 22px; color: var(--brand-text); flex-shrink: 0; margin-top: 2px; }
.pf-honest p { margin: 0; }
.pf-honest strong { color: var(--heading); }

/* Afsluiter */
.pf-cta { background: var(--surface); }
.pf-cta .problem-answer { margin-top: 0; }

/* Responsief */
@media (max-width: 1000px) {
  .pf-slide { grid-template-columns: 1fr; gap: 28px; }
  /* Op smalle schermen alleen de actieve dia in beeld, zodat de hoogte meebeweegt */
  .pf-slide:not(.is-active) { display: none; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .pf-slider { padding: 28px; }
}
@media (max-width: 640px) {
  .pf-hero { padding: 110px 0 24px; }
  .pf-show { padding: 24px 0 64px; }
  .pf-slider { padding: 18px 16px 16px; border-radius: 22px; }
  .pf-visual { padding: 0 24px 30px 0; }
  .pf-phone { min-width: 92px; border-width: 4px; border-radius: 16px; }
  .pf-phone img { border-radius: 12px; }
  .pf-flow { grid-template-columns: 1fr; }
  .pf-arrow { transform: rotate(90deg); justify-self: center; }
  .pf-actions .btn { width: 100%; }
  .pf-controls { gap: 8px; }
  .pf-arrows button { width: 44px; height: 44px; }
  .pf-dots { margin-inline: -16px; }
  .pf-dots button { width: 44px; }
  .pf-count { display: none; }
  .pf-grid { grid-template-columns: 1fr; }
}
/* rustige versie (knop "Animaties" of systeeminstelling) */
    html.rustig .pf-slide, html.rustig .pf-slide.is-active { transition: none; transform: none; }
    html.rustig .pf-item, html.rustig .pf-item .thumb img { transition: none; }
    html.rustig .pf-item:hover, html.rustig .pf-item:hover .thumb img { transform: none; }

/* ---------- Animaties (alleen als "Animaties" aan staat) ---------- */
html.anim .pf-hero .container > * { animation: omhoog .9s cubic-bezier(.2, .8, .2, 1) both; }
html.anim .pf-hero .container > :nth-child(2) { animation-delay: .1s; }
html.anim .pf-hero .container > :nth-child(3) { animation-delay: .2s; }
html.anim .pf-hero .container > :nth-child(4) { animation-delay: .32s; }
html.anim .pf-show .pf-slider { animation: omhoog 1s cubic-bezier(.2, .8, .2, 1) .42s both; }
html.anim .pf-item.reveal { transform: translateY(34px) scale(.97); transition: opacity .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0) * .12s), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0) * .12s), box-shadow .25s ease, border-color .25s ease; }
html.anim .pf-item.reveal.visible { transform: none; }
@media (hover: hover) {
  html.anim .pf-item.reveal.visible:hover { transform: translateY(-4px); transition-delay: 0s; }
}
