/* Berg Visuals — huisstijlkleuren */
:root {
  --forest: #344336;
  --forest-dark: #263128;
  --moss: #A9A65A;
  --cream: #E2E1D6;
  --gap: clamp(10px, 1.4vw, 18px);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--forest-dark); }
body {
  background: var(--forest-dark);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
svg { display: block; }

/* ---------- Laadscherm ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  background: var(--forest);
  transition: opacity .8s ease;
}
.loader.is-done { opacity: 0; pointer-events: none; }

.ltr { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.ltr.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pop {
  0%   { opacity: 0; transform: scale(.2) translateY(30%); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Woordmerk ---------- */
.wordmark {
  position: fixed; top: clamp(16px, 2.4vw, 28px); left: clamp(16px, 2.4vw, 32px);
  z-index: 40; width: clamp(58px, 6vw, 84px);
  opacity: 0; transition: opacity .6s ease;
}
.wordmark svg { width: 100%; height: auto; fill: var(--cream); }
.is-ready .wordmark { opacity: 1; }

/* ---------- Banner ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 480px;
  overflow: hidden; background: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: rgba(38, 49, 40, .35); }
.hero__logo { position: relative; z-index: 60; width: clamp(140px, 16vw, 230px); }
.hero__logo svg { width: 100%; height: auto; fill: var(--cream); overflow: visible; }
.is-ready .hero__logo { z-index: 2; }
.hero__down {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--cream); opacity: 0; transition: opacity .6s ease;
  animation: nudge 2.4s ease-in-out infinite;
}
.is-ready .hero__down { opacity: .8; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------- Video's ---------- */
.work { padding: var(--gap); }
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: var(--forest); cursor: pointer;
  border: 0; padding: 0; display: block; width: 100%;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: scale(1.04); }
.tile__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(38, 49, 40, .35); opacity: 0; transition: opacity .3s ease;
}
.tile:hover .tile__play, .tile:focus-visible .tile__play { opacity: 1; }
.tile__play span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--cream); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.tile--empty { cursor: default; display: flex; align-items: center; justify-content: center; }
.tile--empty svg { width: 22%; fill: rgba(226, 225, 214, .12); }
.tile:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* binnenkomen bij scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; gap: 22px;
  padding: 34px var(--gap) calc(34px + env(safe-area-inset-bottom));
  margin: 0 var(--gap); border-top: 1px solid rgba(226, 225, 214, .12);
  font-size: 14px; color: rgba(226, 225, 214, .7);
}
.footer__icon { width: 46px; flex: none; fill: var(--cream); }
.footer__info { display: flex; flex-wrap: wrap; gap: 6px 26px; font-style: normal; flex: 1; }
.footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer a:hover { color: var(--cream); }
.footer__ig {
  width: 44px; height: 44px; border-radius: 50%; flex: none; margin-right: 76px;
  border: 1.5px solid rgba(226, 225, 214, .35); display: flex; align-items: center; justify-content: center;
}
.footer__ig:hover { border-color: var(--cream); }
@media (max-width: 720px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__info { flex-direction: column; }
  .footer__ig { margin-right: 0; }
}

/* ---------- Speler ---------- */
.player {
  position: fixed; inset: 0; z-index: 70; background: rgba(20, 26, 21, .94);
  display: flex; align-items: center; justify-content: center; padding: 5vw;
}
.player[hidden] { display: none; }
.player__frame { width: min(1400px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player__frame iframe, .player__frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player__close {
  position: absolute; top: 18px; right: 18px; background: none; border: 0;
  color: var(--cream); cursor: pointer; padding: 8px;
}

/* ---------- WhatsApp ---------- */
/* --badge-space: ruimte voor het 'Powered by Netlify'-balkje rechtsonder (gratis Netlify-pakket).
   Zonder dat balkje: zet --badge-space op 0px. */
:root { --badge-space: 64px; }
.whatsapp {
  position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: calc(clamp(16px, 2.4vw, 28px) + var(--badge-space) + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--forest); color: var(--cream); border: 1.5px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.6);
  transition: opacity .5s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1), background .25s ease;
}
.is-ready .whatsapp { opacity: 1; transform: scale(1); }
.whatsapp:hover { background: var(--cream); color: var(--forest); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
