/* De Hammershoek, concept-homepage met impressiefoto's.
   Uitgangspunt: de foto's dragen het ontwerp. Eén letter, weinig kleur, veel ruimte. */
:root {
  --papier: #fbfaf7;
  --vlak: #f1efe9;        /* tweede achtergrond, licht als de gepleisterde wanden */
  --inkt: #1d2124;
  --steen: #5b6064;       /* secundaire tekst */
  --voeg: #ddd9cf;        /* lijnen */
  --baksteen: #7a3523;    /* accent: links en focus */
  --letter: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --blok: clamp(64px, 9vw, 136px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--papier); color: var(--inkt); font-family: var(--letter); font-size: 1.0625rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.012em; }
:focus-visible { outline: 3px solid var(--baksteen); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--inkt); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Knoppen en links */
.knop {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px;
  background: var(--inkt); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 1.02rem;
}
.knop:hover { background: #000; }
.knop--klein { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.tekstlink { font-weight: 600; text-decoration: underline; text-decoration-color: var(--baksteen); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tekstlink:hover { color: var(--baksteen); }
.knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* Kop */
.kop { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--voeg); }
.kop__in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.merk { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.kop__cta { display: none; }
.menuknop { margin-left: auto; min-height: 44px; padding: 8px 16px; background: none; border: 1.5px solid var(--inkt); border-radius: 4px; font: 600 .95rem var(--letter); color: var(--inkt); }
.mobielmenu { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--voeg); }
.mobielmenu[hidden] { display: none; }
.mobielmenu a:not(.knop) { padding: 12px 0; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--voeg); }
.mobielmenu .knop { margin-top: 14px; }
@media (min-width: 980px) {
  .nav, .kop__cta { display: flex; }
  .menuknop, .mobielmenu { display: none !important; }
}

/* Held: video (straks) of impressiefoto */
.held__beeld { position: relative; overflow: hidden; background: #c9c4b8; height: clamp(300px, 60svh, 760px); }
@media (max-width: 719px) { .held__beeld { height: auto; aspect-ratio: 4 / 3; } }
.held__beeld img, .held__beeld video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.held__beeld video { display: none; }
.held__beeld.heeft-video video { display: block; }
.held__noot {
  position: absolute; left: var(--gutter); bottom: 16px; margin: 0; max-width: calc(100% - 2 * var(--gutter));
  background: rgba(29, 33, 36, .72); color: #fff; font-size: .82rem; padding: 6px 10px; border-radius: 3px;
}
.heeft-video .held__noot { display: none; }
.videoknop { position: absolute; right: var(--gutter); bottom: 16px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 4px; background: rgba(255,255,255,.9); font: 600 .9rem var(--letter); }
.held__tekst { display: grid; gap: 24px 64px; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(8px, 2vw, 24px); }
.held h1 { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.1rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 19ch; }
@media (max-width: 719px) {
  .held__noot { left: 8px; bottom: 8px; font-size: .72rem; padding: 4px 8px; }
  .held__noot-lang { display: none; }
}
@media (min-width: 720px) { .held__noot-kort { display: none; } }
.held__rechts p { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--inkt); max-width: 36ch; margin-bottom: 26px; }
@media (min-width: 980px) {
  .held__tekst { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

/* Blokken */
.blok { padding-block: var(--blok); }
.blok--vlak { background: var(--vlak); }
.blokkop { display: grid; gap: 12px 64px; margin-bottom: clamp(28px, 4vw, 48px); }
.blokkop p { margin: 0; color: var(--steen); max-width: 46ch; font-size: 1.1rem; }
@media (min-width: 980px) { .blokkop { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

/* Foto's met impressielabel */
.foto { position: relative; margin: 0; overflow: hidden; background: #d9d4c9; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.imp { position: absolute; left: 10px; top: 10px; background: rgba(251, 250, 247, .9); color: var(--inkt); font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 3px; }

/* Ruimtes die nu te huur zijn */
.ruimtes { display: grid; gap: 48px 32px; }
@media (min-width: 720px) { .ruimtes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ruimtes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ruimte { display: grid; align-content: start; gap: 6px; }
.ruimte .foto { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.ruimte__m2 { font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 0; }
.ruimte__m2 small { font-size: .55em; font-weight: 600; letter-spacing: 0; }
.ruimte__wanneer { margin: 0; font-weight: 600; }
.ruimte__wanneer--later { color: var(--baksteen); }
.ruimte__tekst { color: var(--steen); margin: 6px 0 10px; max-width: 42ch; }

/* Twee kolommen: foto en tekst */
.twee { display: grid; gap: 32px 64px; align-items: center; }
.twee__beeld { aspect-ratio: 3 / 2; }
.twee__tekst p { max-width: 44ch; }
@media (min-width: 980px) { .twee { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* Missie */
.missie { display: grid; gap: 40px 72px; }
.missie__trap { aspect-ratio: 4 / 5; }
.missie__tekst h2 { margin-bottom: 22px; max-width: 18ch; }
.missie__tekst p { font-size: 1.12rem; max-width: 46ch; }
.missie__gang { aspect-ratio: 3 / 2; margin-top: 40px; }
@media (min-width: 980px) {
  .missie { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .missie__trap { position: sticky; top: 104px; }
}

/* Huurders */
.werk { display: grid; gap: 12px; margin-bottom: 40px; }
.werk .foto { aspect-ratio: 3 / 2; }
@media (min-width: 720px) {
  .werk { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); grid-template-rows: 1fr 1fr; }
  .werk .werk__a { grid-row: 1 / span 2; aspect-ratio: auto; }
}
.namen { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 640px) { .namen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .namen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.namen li { border-top: 1px solid var(--voeg); padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; }
.namen a { font-weight: 600; text-decoration: none; }
.namen a:hover { text-decoration: underline; text-underline-offset: 4px; }
.namen span { color: var(--steen); font-size: .95rem; text-align: right; }

/* Koffie: de uitnodiging */
.koffie { background: var(--inkt); color: #f3f1ec; padding-block: var(--blok); }
.koffie__in { display: grid; gap: 36px 72px; }
.koffie h2 { color: #fff; max-width: 16ch; margin-bottom: 18px; }
.koffie p { max-width: 40ch; font-size: 1.12rem; color: #d6d3cc; }
.koffie__adres a { color: #fff; text-underline-offset: 4px; }
@media (min-width: 980px) { .koffie__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.contactknoppen { display: grid; gap: 10px; }
@media (min-width: 560px) { .contactknoppen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cknop {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: 6px;
  background: #2b3034; color: #fff; text-decoration: none; border: 1px solid #3a4045;
}
.cknop:hover { background: #343a3f; }
.cknop svg { width: 26px; height: 26px; flex: none; }
.cknop > span { display: grid; line-height: 1.3; }
.cknop strong { font-size: 1.05rem; }
.cknop > span > span { color: #c4c1ba; font-size: .92rem; overflow-wrap: anywhere; }
.cknop[data-contact="wa"] svg { color: #4fce7a; }
.cknop[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.cknop[aria-disabled="true"]:hover { background: #2b3034; }

/* Voet */
.voet { padding-block: 48px 40px; font-size: .95rem; color: var(--steen); }
.voet__in { display: grid; gap: 28px 64px; }
.voet .merk { color: var(--inkt); margin-bottom: 8px; }
.voet__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.voet__nav a { text-decoration: none; color: var(--inkt); }
.voet__nav a:hover { text-decoration: underline; }
.voet__noot { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--voeg); }
@media (min-width: 980px) { .voet__in { grid-template-columns: 1fr auto; } }

/* ===================================================================
   Beweging en interactie
   Alle animatie staat onder html.beweeg (gezet door site.js, niet bij
   prefers-reduced-motion). Zonder JS of met minder beweging: alles statisch zichtbaar.
   =================================================================== */
:root { --zacht: cubic-bezier(.2, .7, .2, 1); }
html.beweeg { scroll-behavior: smooth; }

/* Slimme kop: weg bij naar beneden scrollen, terug bij omhoog */
.kop { transition: transform .45s var(--zacht), box-shadow .3s ease; }
.kop--schaduw { box-shadow: 0 6px 24px -12px rgba(29, 33, 36, .25); }
.kop--weg { transform: translateY(-100%); }
.nav a { position: relative; text-decoration: none !important; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--baksteen);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--zacht);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="true"] { color: var(--baksteen); }
.knop { transition: background .2s ease, transform .2s var(--zacht); }
.knop:active { transform: scale(.97); }

/* Held: langzame zoom bij laden, parallax bij scrollen, tekst komt binnen */
.held__beeld picture { position: absolute; inset: 0; display: block; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.beweeg .held__beeld img { animation: hh-zoom 16s var(--zacht) both; }
@keyframes hh-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.beweeg .held__tekst > * { animation: hh-op 1.1s var(--zacht) both; }
.beweeg .held__tekst > :nth-child(2) { animation-delay: .18s; }
@keyframes hh-op { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Onthullen bij scrollen */
.beweeg .onthul { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--zacht) var(--d, 0s), transform 1s var(--zacht) var(--d, 0s); }
.beweeg .onthul.is-in { opacity: 1; transform: none; }
.beweeg .foto.onthul { opacity: 1; transform: none; clip-path: inset(14% 0 0 0); transition: clip-path 1.3s var(--zacht) var(--d, 0s); }
.beweeg .foto.onthul img { transform: scale(1.14); transition: transform 1.6s var(--zacht) var(--d, 0s); }
.beweeg .foto.onthul.is-in { clip-path: inset(0 0 0 0); }
.beweeg .foto.onthul.is-in img { transform: scale(1); }

/* Vergrootbare foto's */
.foto[data-groot] { cursor: zoom-in; }
.foto[data-groot] img { transition: transform .8s var(--zacht); }
@media (hover: hover) { .beweeg .foto[data-groot]:hover img { transform: scale(1.045); } }
.foto[data-groot]:focus-visible { outline-offset: 4px; }
.foto__zoom {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(251, 250, 247, .9); border-radius: 50%; color: var(--inkt); pointer-events: none;
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s var(--zacht);
}
.foto__zoom svg { width: 18px; height: 18px; }
.foto[data-groot]:hover .foto__zoom, .foto[data-groot]:focus-visible .foto__zoom { opacity: 1; transform: none; }
@media (hover: none) { .foto__zoom { opacity: 1; transform: none; } }

/* Te-huur-kaarten: foto kantelt mee met de muis, kaart komt omhoog, knop schuift in */
.ruimte { transition: transform .5s var(--zacht); }
.ruimte .foto { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--zacht), box-shadow .5s var(--zacht); }
.ruimte__knop {
  position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--inkt); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .98rem;
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .45s var(--zacht);
}
.ruimte__knop span { transition: transform .35s var(--zacht); }
.ruimte__knop:hover span { transform: translateX(4px); }
@media (hover: hover) and (min-width: 720px) {
  .beweeg .ruimte:hover { transform: translateY(-6px); }
  .beweeg .ruimte:hover .foto { box-shadow: 0 24px 40px -24px rgba(29, 33, 36, .45); }
  .ruimte:hover .ruimte__knop, .ruimte__knop:focus-visible { opacity: 1; transform: none; }
}
@media (hover: none), (max-width: 719px) { .ruimte__knop { display: none; } }
.ruimte .tekstlink::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform .35s var(--zacht); }
.ruimte:hover .tekstlink::after { transform: translateX(4px); }

/* Mobiel: ruimtes horizontaal swipen */
@media (max-width: 719px) {
  .ruimtes {
    grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .ruimtes::-webkit-scrollbar { display: none; }
  .ruimte { scroll-snap-align: start; }
}
.stippen { display: none; justify-content: center; gap: 4px; margin-top: 18px; }
@media (max-width: 719px) { .stippen:not([hidden]) { display: flex; } }
.stippen button { width: 32px; height: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.stippen button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--voeg); transition: width .35s var(--zacht), background .35s ease; }
.stippen button[aria-current="true"]::before { width: 22px; background: var(--inkt); }

/* Contactknoppen */
.cknop { transition: background .2s ease, transform .3s var(--zacht), border-color .2s ease; }
@media (hover: hover) { .beweeg .cknop:not([aria-disabled="true"]):hover { transform: translateY(-3px); border-color: #565d63; } }

/* Lichtbak */
.lichtbak {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #121416; color: #fff; overflow: hidden;
}
.lichtbak[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lichtbak::backdrop { background: transparent; }
.beweeg .lichtbak[open] { animation: hh-in .35s ease both; }
@keyframes hh-in { from { opacity: 0; } to { opacity: 1; } }
.lichtbak__balk { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); font-size: .95rem; color: #c9c6bf; }
.lichtbak__podium { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 clamp(8px, 7vw, 96px); touch-action: pan-y; }
.lichtbak__podium img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.beweeg .lichtbak__podium img.is-nieuw { animation: hh-foto .5s var(--zacht) both; }
@keyframes hh-foto { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lichtbak__onder { padding: 14px var(--gutter) 20px; text-align: center; color: #d6d3cc; font-size: .95rem; min-height: 56px; }
.lichtbak button {
  min-width: 48px; min-height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .2s ease;
}
.lichtbak button:hover { background: rgba(255, 255, 255, .2); }
.lichtbak button svg { width: 22px; height: 22px; }
.lichtbak__vorige, .lichtbak__volgende { position: absolute; top: 50%; transform: translateY(-50%); }
.lichtbak__vorige { left: clamp(8px, 2vw, 28px); }
.lichtbak__volgende { right: clamp(8px, 2vw, 28px); }
@media (max-width: 719px) { .lichtbak__vorige, .lichtbak__volgende { display: none !important; } }
html.vast { overflow: hidden; }
