/* ============================================================
   MFINISH — donkere homepage (geïnspireerd op obumex.be)
   Alles staat onder body.dark, zodat de lichte pagina's
   ongewijzigd blijven. De kleuren worden via de variabelen
   uit style.css omgedraaid.
   ============================================================ */

body.dark {
  --ink: #f4f1ea;
  --ink-soft: #d6d1c5;
  --grey: #9d978b;
  --paper: #151411;
  --cream: #1a1915;
  --line: #2f2c26;
  --gold-dark: #c9b88c;
  background: var(--paper);
}

/* ---------- header: transparant over de hero ---------- */
body.dark .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
body.dark .site-header.scrolled {
  background: rgba(21, 20, 17, .92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
body.dark .site-header .container { height: 96px; transition: height .4s; }
body.dark .site-header.scrolled .container { height: 76px; }
body.dark .brand img,
body.dark .footer-brand img { mix-blend-mode: normal; }
body.dark .brand img { height: 72px; transition: height .4s; }
body.dark .site-header.scrolled .brand img { height: 52px; }
body.dark .main-nav a { color: #fff; }
body.dark .main-nav a:hover { color: var(--gold-light); }
body.dark .nav-toggle { color: #fff; }

/* ---------- hero met staande video ---------- */
.vhero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(3rem, 6vw, 7rem);
  /* zelfde zijmarge als .container, zodat logo, tekst en menu uitlijnen */
  padding: 124px max(5%, calc((100% - 1240px) / 2)) 4.5rem;
  overflow: hidden;
  background: #0f0e0c;
}
.vhero::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: url("../img/video-verometal-brons-blur.jpg") center / cover no-repeat;
  opacity: .34;
}
.vhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 12, .92) 0%, rgba(15, 14, 12, .35) 45%, rgba(15, 14, 12, .55) 100%);
}
.vhero > * { position: relative; z-index: 2; }

.vhero-text { max-width: 620px; padding-bottom: 1.5rem; }
.vhero-text .eyebrow { color: var(--gold-light); }
.vhero-text h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.vhero-text h1 .h-line { display: block; overflow: hidden; }
.vhero-text h1 .h-line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.1s cubic-bezier(.16, .8, .26, 1) forwards;
}
.vhero-text h1 .h-line:nth-child(2) > span { animation-delay: .18s; }
.vhero-text h1 .h-line:nth-child(3) > span { animation-delay: .36s; }
.vhero-text p {
  max-width: 470px;
  color: #e3ded2;
  margin-bottom: 2.8rem;
}
.vhero-text .eyebrow, .vhero-text p, .vhero-actions, .vhero-media {
  opacity: 0;
  animation: soft-in 1.2s ease forwards;
}
.vhero-text .eyebrow { animation-delay: .1s; }
.vhero-text p { animation-delay: .55s; }
.vhero-actions { animation-delay: .8s; display: flex; gap: 3rem; flex-wrap: wrap; }
.vhero-media { animation-delay: .25s; margin: 0; }

.vhero-video {
  display: block;
  height: min(74vh, 780px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0f0e0c;
}
.vhero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #b9b3a6;
}
.video-toggle {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: #fff;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 .3rem;
  cursor: pointer;
  transition: color .3s;
}
.video-toggle:hover { color: var(--gold-light); }
.video-toggle:focus-visible, body.dark a:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 4px; }

/* ---------- gecentreerde tekstblokken ---------- */
.lead-block {
  text-align: center;
  padding: 9rem 0;
}
.lead-block + .lead-block,
.lead-block--line { border-top: 1px solid var(--line); }
.caps-title {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 250;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 2.4rem;
}
.lead-block p {
  max-width: 640px;
  margin: 0 auto 1.4rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.lead-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
}

/* ---------- showcase: beelden zonder witruimte ---------- */
.showcase-head { text-align: center; padding: 8rem 0 5rem; border-top: 1px solid var(--line); }
.showcase-head .caps-title { margin-bottom: 1rem; }
.showcase-head p { color: var(--grey); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1500px;
  margin: 0 auto;
}
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(.2, .6, .2, 1);
}
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, .28);
  transition: background .6s;
}
.tile:hover::after { background: rgba(15, 14, 12, .12); }
.tile figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .55);
}
.tile .tile-name {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 250;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.25;
}
.tile .tile-sub {
  margin-top: .9rem;
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
}

/* ---------- afwerkingen als lijst met hairlines ---------- */
.finish-list { border-top: 1px solid var(--line); margin-top: 1rem; text-align: left; }
.finish-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.3fr) 2rem;
  align-items: baseline;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.finish-row .num { font-size: .8rem; letter-spacing: .3em; color: var(--gold-light); }
.finish-row h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 250;
  transition: color .4s, transform .5s cubic-bezier(.16, .8, .26, 1);
}
.finish-row p { color: var(--grey); font-size: .95rem; margin: 0; max-width: none; }
.finish-row .arrow { color: var(--gold); transition: transform .5s cubic-bezier(.16, .8, .26, 1); }
.finish-row:hover h3 { color: var(--gold-light); transform: translateX(.6rem); }
.finish-row:hover .arrow { transform: translateX(.5rem); }

/* ---------- atelier (bestaande split, donker) ---------- */
body.dark .section--cream { border-top: 1px solid var(--line); }
body.dark .split-body p { color: var(--ink-soft); }

/* ---------- footer ---------- */
body.dark .footer-brand img { height: 92px; }

/* ---------- vaste contactknop ---------- */
.contact-fab {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: rgba(21, 20, 17, .92);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--gold-light);
  /* pas zichtbaar na het scrollen, zodat hij de hero niet afdekt */
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: background .3s, color .3s, opacity .4s, transform .4s;
}
.site-header.scrolled ~ .contact-fab { opacity: 1; pointer-events: auto; transform: none; }
.contact-fab:hover { background: var(--gold); color: #151411; }
.contact-fab svg { width: 22px; height: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .vhero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    align-items: start;
  }
  .vhero::before, .vhero::after { display: none; }
  .vhero-media { order: -1; }
  /* donkere waas bovenaan, zodat logo en menu leesbaar blijven op lichte videobeelden */
  .vhero-media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 220px;
    background: linear-gradient(rgba(15, 14, 12, .78), rgba(15, 14, 12, 0));
    pointer-events: none;
    z-index: 1;
  }
  .vhero-video {
    width: 100%;
    height: 84vh;
    height: 84svh;
    aspect-ratio: auto;
  }
  .vhero-caption { padding: 1rem 5% 0; }
  .vhero-text { padding: 4.5rem 5% 5rem; max-width: none; text-align: center; }
  .vhero-text p { margin-left: auto; margin-right: auto; }
  .vhero-actions { justify-content: center; }
  .lead-block { padding: 6rem 0; }
  .showcase-head { padding: 6rem 0 3.5rem; }
  .finish-row { grid-template-columns: 2.6rem minmax(0, 1fr) 1.5rem; gap: 1rem; }
  .finish-row p { grid-column: 2 / 3; grid-row: 2; }
}

@media (max-width: 760px) {
  body.dark .main-nav { top: 96px; background: rgba(21, 20, 17, .97); }
  body.dark .site-header.scrolled .main-nav { top: 76px; }
  body.dark .brand img { height: 60px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .contact-fab { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .vhero-text h1 .h-line > span { transform: none; animation: none; }
  .vhero-text .eyebrow, .vhero-text p, .vhero-actions, .vhero-media { opacity: 1; animation: none; }
  .tile img, .finish-row h3, .finish-row .arrow { transition: none; }
}

/* ---------- subpagina's in de donkere stijl ---------- */
body.dark { color-scheme: dark; }
body.dark .page-head { padding-top: calc(7.5rem + 96px); }
body.dark .main-nav a.active { color: #fff; }
body.dark .filter-bar select option,
body.dark .contact-form select option { background: #1a1915; color: #f4f1ea; }
body.dark .map-frame iframe { filter: invert(.92) hue-rotate(180deg) grayscale(.7) contrast(.9); }
body.dark .cta-band { border-top: 1px solid var(--line); }
body.dark .cta-band::before { background: rgba(15, 14, 12, .86); }
@media (max-width: 900px) {
  body.dark .page-head { padding-top: calc(4.5rem + 96px); }
}
