/* Orange Coast Real Estate – investeerdersportaal */
:root {
  --bg: #faf6ef;
  --surface: #f4ecdf;
  --surface-2: #fffdf9;
  --line: #e3d6c2;
  --ink: #2a231d;
  --ink-soft: #6d5f50;
  --accent: #b3835c;
  --accent-deep: #8a6141;
  --sea: #56766f;
  --danger: #b3574a;
  --ok: #4f7a5c;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1611; --surface: #241f18; --surface-2: #2b251d; --line: #3a3226;
    --ink: #f1e8db; --ink-soft: #b6a793; --accent: #d7a878; --accent-deep: #ecc79a;
    --sea: #82a89f; --danger: #e08a7c; --ok: #8fc29c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1611; --surface: #241f18; --surface-2: #2b251d; --line: #3a3226;
  --ink: #f1e8db; --ink-soft: #b6a793; --accent: #d7a878; --accent-deep: #ecc79a;
  --sea: #82a89f; --danger: #e08a7c; --ok: #8fc29c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }
img, video { max-width: 100%; display: block; }
code { background: var(--surface); padding: 1px 6px; border-radius: 3px; font-size: .9em; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 760px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .8em; display: block; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand img { height: 30px; width: auto; }
.area-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.mainnav a:hover, .mainnav a.active { color: var(--accent-deep); }
.mainnav a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mainnav .btn { color: #fffaf3; }
.muted-link { color: var(--ink-soft) !important; font-weight: 500 !important; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fffaf3; font-size: .75rem; text-align: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .mainnav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .menu-open .mainnav { display: flex; }
  .mainnav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .mainnav a.btn { margin-top: 12px; border: 0; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 3px; font: 700 .9rem "Karla", sans-serif; letter-spacing: .02em; border: 0; cursor: pointer; background: var(--accent); color: #fffaf3; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--accent-deep); }
.btn-small { padding: 8px 16px; font-size: .85rem; }
.btn-ghost { background: var(--bg); color: var(--accent-deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--danger); }
.btn-link { background: none; border: 0; color: var(--accent-deep); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
label > input, label > select, label > textarea { margin-top: 6px; }
input, select, textarea { width: 100%; font: .97rem "Karla", sans-serif; padding: 11px 13px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-transform: none; letter-spacing: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; }
label.check { display: flex; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .95rem; color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }
legend { font-family: "Fraunces", serif; font-size: 1.1rem; padding: 0 6px; }
.stack > * + * { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.help { font-size: .82rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 4px; }

.flash { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.flash-ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--ok); }
.flash-err { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }

/* ---------- public: hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 130px) 0 clamp(90px, 14vw, 160px); }
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

section.block { padding: clamp(60px, 9vw, 110px) 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }

/* pijlers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { border-top: 2px solid var(--accent); padding-top: 20px; }
.pillar .num { font-family: "Fraunces", serif; font-size: 2.6rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 22px 20px; }
.stat .v { font-family: "Fraunces", serif; font-size: 1.9rem; line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* over */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-soft); text-align: center; padding: 20px; font-size: .9rem; }
.portrait .ph span { font-family: "Fraunces", serif; font-size: 4rem; color: var(--accent); line-height: 1; }
.quote { font-family: "Fraunces", serif; font-style: italic; font-size: 1.35rem; border-left: 2px solid var(--accent); padding-left: 18px; margin: 24px 0; color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { padding-left: 26px; position: relative; font-size: .97rem; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 360px; } .checklist { grid-template-columns: 1fr; } }

/* kaarten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-cover { aspect-ratio: 16/10; background: var(--surface); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder, .cover-placeholder svg { width: 100%; height: 100%; display: block; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-meta { font-size: .88rem; color: var(--ink-soft); }
.card a.stretch { text-decoration: none; color: inherit; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; }
.kv div { background: var(--surface); border-radius: 4px; padding: 8px 10px; }
.kv b { display: block; font-family: "Fraunces", serif; font-weight: 500; font-size: 1.15rem; }
.kv span { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-soft); background: var(--surface-2); }

/* stappen */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: "Fraunces", serif; font-size: 2rem; color: var(--accent); }
.steps h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.model div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.model b { display: block; font-family: "Fraunces", serif; font-size: 2rem; font-weight: 500; color: var(--accent-deep); line-height: 1.1; margin-bottom: 6px; }
@media (max-width: 760px) { .model { grid-template-columns: 1fr; } }

.request-form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.request-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 60px); }
@media (max-width: 860px) { .request-wrap { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 50px; margin-top: 40px; font-size: .9rem; color: var(--ink-soft); }
.area-public .site-footer { margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-logo { height: 22px; width: auto; margin-bottom: 12px; }
.disclaimer { grid-column: 1 / -1; font-size: .8rem; border-top: 1px solid var(--line); padding-top: 18px; margin: 10px 0 0; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- auth ---------- */
.area-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 5vw, 40px); }
.auth-card.wide { max-width: 720px; }
.auth-logo { width: 220px; margin: 0 auto 26px; }
.auth-card h1 { font-size: 1.7rem; }

/* ---------- portaal / beheer ---------- */
.page { padding: clamp(28px, 5vw, 52px) 0 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile .v { font-family: "Fraunces", serif; font-size: 1.7rem; line-height: 1.15; }
.tile .l { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.tile.hl { background: var(--accent); border-color: var(--accent); color: #fffaf3; }
.tile.hl .l { color: #fffaf3; opacity: .85; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }

.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); margin-bottom: 24px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
tr:last-child td { border-bottom: 0; }
.neg { color: var(--danger); }
.pos { color: var(--ok); }

.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.pill-open, .pill-new, .pill-pledged { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pill-in_progress, .pill-agreement, .pill-invited { color: var(--sea); border-color: color-mix(in srgb, var(--sea) 50%, var(--line)); }
.pill-paid, .pill-active, .pill-approved, .pill-funded { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.pill-completed, .pill-repaid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-cancelled, .pill-rejected, .pill-disabled { color: var(--danger); }

.progress { height: 10px; background: var(--surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* project detail */
.project-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; margin-bottom: 30px; align-items: start; }
.project-hero .cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--surface); border: 1px solid var(--line); }
.project-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li span:first-child { color: var(--ink-soft); }
.facts li span:last-child { font-weight: 700; text-align: right; white-space: nowrap; }
@media (max-width: 900px) { .project-hero { grid-template-columns: 1fr; } }
.prose { white-space: pre-line; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-soft); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-color: var(--accent); }

/* tijdlijn */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding: 0 0 32px 34px; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline time { font-size: .82rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .03em; }
.timeline h3 { margin: 2px 0 8px; font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.gallery a, .gallery video { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface); display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery .doc { display: flex; align-items: center; justify-content: center; padding: 10px; font-size: .85rem; text-align: center; border: 1px solid var(--line); text-decoration: none; color: var(--ink); aspect-ratio: auto; min-height: 60px; }

/* berichten */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; margin-bottom: 16px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.msg .meta { font-size: .75rem; color: var(--ink-soft); margin-top: 4px; }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, monospace; font-size: .82rem; }
.cost-row { display: grid; grid-template-columns: 1fr 140px 140px 36px; gap: 8px; margin-bottom: 8px; }
.cost-row button { background: none; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; color: var(--ink-soft); }
@media (max-width: 600px) { .cost-row { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; background: rgba(20, 16, 12, .92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 4px; }

/* trackrecord */
.track-cover { aspect-ratio: 4/3; }
.track-cover img { object-position: center 35%; }
.photo-credit { font-size: .75rem; color: var(--ink-soft); margin: auto 0 0; }
.photo-credit a { color: var(--ink-soft); }
button.track-open { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative; background: var(--surface); }
button.track-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
button.track-open:hover img { transform: scale(1.03); }
.photo-count { position: absolute; right: 10px; bottom: 10px; background: rgba(26, 22, 17, .72); color: #fffaf3; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gallery-modal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 12, .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.gallery-modal[hidden] { display: none; }
.gallery-modal figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.gallery-modal img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 4px; object-fit: contain; }
.gallery-modal figcaption { color: #e9dfd1; font-size: .9rem; margin-top: 12px; text-align: center; }
.gm-close, .gm-nav { position: absolute; background: none; border: 0; color: #fffaf3; cursor: pointer; font-size: 2.6rem; line-height: 1; padding: 10px 14px; opacity: .85; }
.gm-close:hover, .gm-nav:hover { opacity: 1; }
.gm-close { top: 8px; right: 12px; }
.gm-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.gm-next { right: 8px; top: 50%; transform: translateY(-50%); }
.gallery-modal.single .gm-nav { display: none; }
@media (max-width: 600px) { .gallery-modal { padding: 56px 8px; } .gm-nav { top: auto; bottom: 8px; transform: none; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumbs figure { margin: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg); }
.thumbs figure.is-cover { outline: 3px solid var(--accent); outline-offset: -1px; }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.thumbs figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 5px 8px; font-size: .78rem; }
.thumbs figcaption span { color: var(--accent-deep); font-weight: 700; }
.cover-link { display: block; position: relative; cursor: zoom-in; }
.cover-link img { transition: transform .3s; }
.cover-link:hover img { transform: scale(1.02); }
.gallery a { cursor: zoom-in; }
/* fotoschuif */
.slider { position: relative; overflow: hidden; background: var(--surface); }
.slider .slide-view { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slider .slide-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-hero .slider { border-radius: var(--radius); aspect-ratio: 16/10; border: 1px solid var(--line); }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(250, 246, 239, .88); color: #2a231d; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; box-shadow: 0 1px 6px rgba(0,0,0,.18); transition: background .15s, transform .15s; z-index: 2; }
.slide-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slider .photo-count { z-index: 2; pointer-events: none; }
.slider .slide-link { cursor: pointer; }
/* volgorde foto's in beheer */
.thumbs figure { position: relative; cursor: grab; user-select: none; transition: opacity .15s; }
.thumbs figure.dragging { opacity: .4; }
.thumb-media { position: relative; aspect-ratio: 4/3; background: var(--surface); }
.thumb-media img, .thumb-media video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb-num { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(26,22,17,.75); color: #fffaf3; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.is-cover .thumb-num { background: var(--accent); }
.thumb-type { position: absolute; bottom: 6px; right: 6px; background: rgba(26,22,17,.75); color: #fffaf3; font-size: .7rem; padding: 1px 7px; border-radius: 999px; }
.thumb-doc { display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; font-size: .8rem; text-align: center; color: var(--ink); text-decoration: none; word-break: break-word; }
.thumbs figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px 4px; }
.thumb-mid { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .74rem; text-align: center; }
.thumb-move { width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 0 2px; }
.thumb-move:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); }
.thumb-move:disabled { opacity: .3; cursor: default; }
.sort-hint { margin: 4px 0 8px; }
.sort-status { font-size: .82rem; color: var(--ink-soft); min-height: 1.2em; margin: 6px 0 0; }
.sort-status.ok { color: var(--ok); }
.sort-status.err { color: var(--danger); }

/* portaal-sectie op de website */
.portal-intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portal-features { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.portal-features li { padding-left: 30px; position: relative; }
.portal-features li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.portal-features b { display: block; font-weight: 700; }
.portal-features span { color: var(--ink-soft); font-size: .95rem; }
.device-mock { position: relative; padding: 10px 40px 30px 0; }
.laptop .screen { background: var(--bg); border: 10px solid #2a231d; border-bottom-width: 14px; border-radius: 12px 12px 0 0; padding: 14px; aspect-ratio: 16/10; overflow: hidden; box-shadow: 0 20px 50px rgba(42, 35, 29, .18); }
.laptop .base { height: 12px; background: linear-gradient(#cfc3b2, #b8ab99); border-radius: 0 0 14px 14px; margin: 0 -6%; }
.m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.m-logo { width: 70px; height: 8px; background: var(--accent); border-radius: 2px; opacity: .8; }
.m-nav { width: 110px; height: 6px; background: var(--line); border-radius: 2px; }
.m-title { font-family: "Fraunces", serif; font-size: clamp(.8rem, 1.6vw, 1.05rem); margin-bottom: 8px; }
.m-title.sm { font-size: .78rem; margin: 6px 0; }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.m-tiles div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; }
.m-tiles div.hl { background: var(--accent); border-color: var(--accent); color: #fffaf3; }
.m-tiles i { display: block; font-style: normal; font-size: .52rem; opacity: .8; }
.m-tiles b { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(.62rem, 1.2vw, .85rem); }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px; }
.m-img { height: 38px; border-radius: 3px; background: linear-gradient(160deg, #d6c3a6 0 55%, #8a6141 55% 80%, #3a312a 80%); margin-bottom: 5px; }
.m-img.alt { background: linear-gradient(160deg, #c9d3cf 0 50%, #56766f 50% 78%, #3a312a 78%); }
.m-img.tall { height: 120px; background: linear-gradient(170deg, #e9e3d9 0 30%, #f6f3ee 30% 75%, #b3835c 75% 82%, #3a312a 82%); }
.m-line { height: 5px; background: var(--line); border-radius: 2px; margin: 4px 0; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.m-bar { height: 4px; background: var(--surface); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.m-bar span { display: block; height: 100%; background: var(--accent); }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; min-width: 110px; aspect-ratio: 9/19; background: var(--bg); border: 7px solid #2a231d; border-radius: 22px; padding: 14px 8px 8px; box-shadow: 0 18px 40px rgba(42, 35, 29, .25); overflow: hidden; }
.phone .notch { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 34%; height: 6px; background: #2a231d; border-radius: 4px; }
.m-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.m-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.m-dots span:first-child { background: var(--accent); }
@media (max-width: 860px) { .portal-intro { grid-template-columns: 1fr; } .device-mock { max-width: 520px; } }
@media (max-width: 860px) { .laptop .base { margin: 0; } }

/* ---------- aankoopbegeleiding ---------- */
.hero-sub { padding: clamp(56px, 9vw, 100px) 0 clamp(48px, 7vw, 80px); background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 100%); border-bottom: 1px solid var(--line); }
.hero-sub .hero-inner { max-width: 760px; }
.area-public .hero-sub + .wrap .stats { margin-top: -1px; }
.steps-6 { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
@media (max-width: 860px) { .steps-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-6 { grid-template-columns: 1fr; } }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.region { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; border-top: 3px solid var(--accent); }
.region h3 { margin-bottom: 6px; }
.region p { margin: 0; }
@media (max-width: 800px) { .regions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .regions { grid-template-columns: 1fr; } }
.calc-wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-notes { padding-left: 18px; margin: 18px 0 0; }
.calc-notes li { margin-bottom: 8px; }
.calc { margin: 0; display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .93rem; font-weight: 600; color: var(--ink); background: var(--surface-2); }
.seg label + label { border-left: 1px solid var(--line); }
.seg label:has(input:checked) { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--accent-deep); }
.seg input { margin: 0; accent-color: var(--accent); }
.calc-table td { padding: 9px 4px; }
.calc-table tr.total td { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.05rem; }
.gids-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .gids-wrap { grid-template-columns: 1fr; } .gids-cover { max-width: 280px; } }
.gids-cover { aspect-ratio: 3/4; background: var(--ink); color: #f4ecdf; border-radius: 6px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: 0 22px 44px rgba(42, 35, 29, .22); position: relative; overflow: hidden; }
.gids-cover::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--accent); opacity: .55; }
.gc-top { font-size: .68rem; letter-spacing: .16em; color: #d7a878; font-weight: 700; }
.gc-title { font-family: "Fraunces", serif; font-size: 1.6rem; line-height: 1.15; margin-top: auto; position: relative; z-index: 1; }
.gc-sub { font-style: italic; font-family: "Fraunces", serif; color: #d7a878; margin: 8px 0 24px; position: relative; z-index: 1; }
.gc-foot { font-size: .8rem; letter-spacing: .08em; position: relative; z-index: 1; }
.gids-form { margin-top: 18px; }
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-size: 1.3rem; color: var(--accent-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; }
.teaser-buy { padding: clamp(40px, 6vw, 64px) 0; }
.teaser-inner { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.teaser-inner h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.teaser-inner p { margin: 0; }
.teaser-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (max-width: 760px) { .teaser-inner { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 11px 16px 11px 13px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { filter: brightness(.95); }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 13px; } }

/* aankoopbegeleiding: waarom + recente projecten */
.why-wrap { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.why-wrap p { max-width: 640px; }
.recent { display: grid; gap: 12px; }
.recent-item { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.recent-item img, .recent-ph { width: 140px; height: 100px; object-fit: cover; display: block; }
.recent-ph svg { width: 100%; height: 100%; }
.recent-cap { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.recent-cap b { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.05rem; }
.recent-cap span { font-size: .85rem; color: var(--ink-soft); }
.recent-item:hover { border-color: var(--accent); }
@media (max-width: 860px) { .why-wrap { grid-template-columns: 1fr; } }
.faq-title { font-size: 1.25rem; margin: 0 0 4px; padding-top: 18px; }
.area-public .faq { border-top: 1px solid var(--line); }
