/* ============================================================
   van de Water Projecten - vastgoedmedia voor makelaars
   Merkkleuren: navy #0d3152 / groen #4ea153 / staal #97a9b3
   Radius-systeem: knoppen pill, media & kaarten 18px
   ============================================================ */

/* Satoshi wordt lokaal geladen, zodat de site geen externe servers nodig heeft */
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d3152;
  --ink-deep: #0a2440;
  --ink-soft: #3d5570;
  --steel: #97a9b3;
  --green: #4ea153;
  --green-dark: #40894a;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --line: rgba(13, 49, 82, 0.10);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 24px 60px -24px rgba(13, 49, 82, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Satoshi", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { color: var(--ink-soft); }

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section { padding-block: clamp(72px, 9vw, 128px); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ============ Knoppen ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
              border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid rgba(13, 49, 82, 0.22);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline {
  color: var(--ink);
  border: 1.5px solid rgba(13, 49, 82, 0.22);
  background: transparent;
  justify-content: center;
}
.btn-outline:hover { border-color: var(--ink); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: #eef2ee; }

.btn-lg { padding: 16px 28px; }

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  transition: transform 0.5s var(--ease);
}
.btn-icon svg { width: 13px; height: 13px; }
.btn:hover .btn-icon { transform: translate(2px, -2px); }
.btn-icon-dark { background: rgba(13, 49, 82, 0.10); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(13, 49, 82, 0.2);
  padding-bottom: 3px;
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { border-color: var(--green); gap: 14px; }

/* ============ Navigatie ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.brand-logo { height: 48px; width: auto; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.nav-links a:hover { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn-nav { padding: 11px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 18px clamp(20px, 4vw, 48px) 26px;
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.mobile-menu .mobile-cta { color: var(--green); }

/* ============ Hero ============ */

.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media { position: relative; }

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-media > .frame {
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow-soft);
}

.hero-media-card {
  position: absolute;
  left: clamp(-40px, -3vw, -20px);
  bottom: -36px;
  width: min(38%, 240px);
  padding: 8px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 20px 44px -18px rgba(13, 49, 82, 0.32);
}
.hero-media-card .frame-sm {
  border-radius: calc(var(--radius) - 4px);
  aspect-ratio: 4 / 5;
}

/* ============ USP's + referenties ============ */

.stats { padding-block: 0 clamp(64px, 8vw, 104px); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}
.stat-label { color: var(--ink-soft); font-size: 0.95rem; }

.clients-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 44px);
}
.clients-intro { color: var(--ink-soft); font-size: 0.95rem; }
.clients-logos { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.clients-logos img {
  width: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.clients-logos img:hover { filter: none; opacity: 1; }
.clients-logos img[alt="RSP Makelaars"] { height: 30px; }
.clients-logos img[alt="Joosten Makelaars"] { height: 48px; }

/* ============ Diensten / bento ============ */

.services { padding-top: 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.cell-photo { grid-column: span 7; min-height: 380px; }
.cell-video { grid-column: span 5; min-height: 380px; }
.cell-drone { grid-column: span 4; }
.cell-tour { grid-column: span 4; }
.cell-floorplan { grid-column: span 4; }
.cell-wide { grid-column: span 12; min-height: 0; }

.cell-img { background: var(--ink-deep); }
.cell-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.cell-img:hover .cell-bg { transform: scale(1.04); }
.cell-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 36, 64, 0) 35%, rgba(10, 36, 64, 0.88) 100%);
  z-index: 1;
}

.bento-cell[data-gallery] { cursor: pointer; }
.bento-cell[data-gallery]:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.cell-more {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.cell-more svg { width: 15px; height: 15px; }
.bento-cell[data-gallery]:hover .cell-more {
  background: var(--green);
  border-color: var(--green);
  transform: translate(1px, -1px);
}

.cell-overlay { padding: 26px 28px; position: relative; z-index: 2; }
.cell-overlay h3 { color: #fff; }
.cell-overlay p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 40ch;
}

.cell-plain {
  background: var(--surface);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px 28px;
}
.cell-icon {
  width: 34px;
  height: 34px;
  color: var(--green);
  margin-bottom: auto;
}
.cell-plain h3 { margin-top: 26px; }
.cell-plain p { font-size: 0.95rem; margin-top: 6px; }

.cell-wide {
  background: var(--ink);
  padding: clamp(28px, 4vw, 44px);
}
.cell-wide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
}
.cell-wide h3 { color: #fff; font-size: 1.35rem; }
.cell-wide p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 8px;
  max-width: 62ch;
}
.cell-wide .link-arrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.cell-wide .link-arrow:hover { border-color: var(--green); }

/* ============ Werkwijze ============ */

.process { background: var(--surface); }

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.process-intro { position: sticky; top: 120px; }
.process-intro p { margin-top: 14px; font-size: 1.05rem; }

.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.process-steps li {
  padding-block: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 20px;
}
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps h3 { font-size: 1.25rem; }
.process-steps p { font-size: 0.98rem; }

/* ============ Showreel ============ */

.video-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
  box-shadow: var(--shadow-soft);
}
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-play:hover { transform: scale(1.08); background: #fff; }
.video-shell.is-playing .video-play { display: none; }

.video-caption {
  margin-top: 16px;
  font-size: 0.95rem;
}

/* ============ Werk / gallerij ============ */

.work { background: var(--surface); overflow: hidden; }
.work .section-head { margin-bottom: clamp(28px, 4vw, 44px); }

.work-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(clamp(20px, 4vw, 48px), calc((100vw - 1240px) / 2 + clamp(20px, 4vw, 48px)));
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.work-item {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: start;
}
.work-item .frame {
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 36px -20px rgba(13, 49, 82, 0.28);
}
.work-item img {
  transition: transform 0.8s var(--ease);
}
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============ Over ============ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.frame-portrait {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}

.about-copy p { margin-top: 16px; font-size: 1.03rem; }
.about-copy .link-arrow { margin-top: 28px; }

/* ============ Prijscalculator ============ */

.calculator { border-top: 1px solid var(--line); }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

.calc-block {
  border: none;
  padding: 0;
  margin: 0;
}
.calc-block legend {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 14px;
  padding: 0;
}

.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 49, 82, 0.22);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease), transform 0.35s var(--ease);
}
.chip span:hover { border-color: var(--ink); }
.chip span:active { transform: scale(0.97); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.calc-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.input-suffix {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(13, 49, 82, 0.18);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.3s var(--ease);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.input-suffix input {
  border: none;
  background: none;
  padding: 13px 4px 13px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.input-suffix span {
  padding-right: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex-shrink: 0;
}
.field input:focus { outline: none; }
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.input-suffix:focus-within { border-color: var(--green); }
.field input.is-invalid { border-color: #b3402e; }
.field input::placeholder { color: rgba(13, 49, 82, 0.42); }

.field-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.calc-summary {
  position: sticky;
  top: 112px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 20px 50px -30px rgba(13, 49, 82, 0.25);
}
.calc-summary h3 { font-size: 1.2rem; }

.calc-lines {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}
.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.calc-lines li span:last-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.calc-lines .calc-empty {
  border-bottom: none;
  justify-content: flex-start;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}
.calc-total span { font-weight: 700; }
.calc-total strong {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.calc-disclaimer {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.calc-summary .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ============ Afsluitend blok (bewuste theme-switch) ============ */

.closing {
  background: var(--ink-deep);
  color: #fff;
  padding-bottom: 36px;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 88px);
}

.closing h2 { color: #fff; max-width: 18ch; }
.closing-copy p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 16px;
  max-width: 44ch;
}
.closing-copy .btn { margin-top: 30px; }

.closing-contact {
  display: flex;
  flex-direction: column;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.contact-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.contact-row a, .contact-row span:not(.contact-label) {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.contact-row a:hover { color: var(--green); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-logo { height: 40px; width: auto; }
.footer-copy { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}
.footer-links a:hover { color: #fff; }

/* ============ Portfolio-modal ============ */

body.modal-open { overflow: hidden; }

.portfolio-modal[hidden], .lightbox[hidden] { display: none; }

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 64, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pm-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(4, 15, 28, 0.6);
}

.pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pm-head h3 { font-size: 1.3rem; }

.pm-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 49, 82, 0.18);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pm-close svg { width: 14px; height: 14px; }
.pm-close:hover { border-color: var(--ink); }
.pm-close:active { transform: scale(0.94); }

.pm-body {
  padding: clamp(20px, 3vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pm-grid .frame { aspect-ratio: 3 / 2; cursor: zoom-in; }
.pm-grid .frame img { transition: transform 0.7s var(--ease); }
.pm-grid .frame:hover img { transform: scale(1.03); }

.pm-videos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pm-videos video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 6px);
  background: var(--ink-deep);
  display: block;
  object-fit: cover;
}

.pm-pano {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--ink-deep);
}

.pm-pano-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.pm-pano-thumbs button {
  flex: 0 0 auto;
  width: 110px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.65;
}
.pm-pano-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pm-pano-thumbs button.is-active,
.pm-pano-thumbs button:hover { border-color: var(--green); opacity: 1; }

/* ============ Contactformulier ============ */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.contact-modal[hidden] { display: none; }

.cm-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(4, 15, 28, 0.6);
}
.cm-panel .pm-head { align-items: flex-start; }
.cm-sub {
  margin-top: 6px;
  font-size: 0.95rem;
  max-width: 42ch;
}

.cm-body {
  padding: clamp(22px, 3vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cm-context {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.cm-context h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.cm-context ul { list-style: none; }
.cm-context li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-block: 3px;
}
.cm-context li strong { color: var(--ink); white-space: nowrap; }
.cm-context .cm-context-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}

.cm-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cm-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-error {
  font-size: 0.83rem;
  color: #b3402e;
  font-weight: 700;
}

.cm-submit {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
}
.cm-submit[disabled] { opacity: 0.6; cursor: default; }

.cm-privacy {
  margin-top: 12px;
  font-size: 0.83rem;
  color: var(--ink-soft);
  text-align: center;
}

.cm-success {
  text-align: center;
  padding-block: 20px 8px;
}
.cm-check {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cm-check svg { width: 26px; height: 26px; }
.cm-success h4 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cm-success p {
  margin-top: 10px;
  max-width: 40ch;
  margin-inline: auto;
}
.cm-success .btn { margin-top: 24px; }

.mobile-menu .mobile-cta {
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  text-align: left;
  padding: 12px 0;
  cursor: pointer;
}

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 20, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-close svg { width: 14px; height: 14px; }

.work-item .frame { cursor: zoom-in; }

/* ============ Scroll-reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-icon, .work-item img, .video-play { transition: none; }
}

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

@media (max-width: 1024px) {
  .cell-photo, .cell-video { grid-column: span 6; }
  .cell-drone, .cell-tour { grid-column: span 6; }
  .cell-floorplan { grid-column: span 12; min-height: 220px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { height: 72px; }
  .brand-logo { height: 42px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media-card { left: auto; right: 16px; bottom: -28px; }

  .stats-row { grid-template-columns: 1fr; gap: 22px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .process-steps li { grid-template-columns: 1fr; gap: 8px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }

  .closing-grid { grid-template-columns: 1fr; }

  .cell-photo, .cell-video, .cell-drone, .cell-tour { grid-column: span 12; min-height: 300px; }
  .cell-wide-inner { flex-direction: column; align-items: flex-start; }

  .video-play { width: 68px; height: 68px; }

  .pm-grid { grid-template-columns: 1fr; }
  .pm-pano { aspect-ratio: 4 / 3; }

  .calc-grid { grid-template-columns: 1fr; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-summary { position: static; }

  .cm-fields { grid-template-columns: 1fr; }
}
