/* ============ KLEUREN & INSTELLINGEN: pas hier aan ============ */
:root {
  --bg: #0c1624;          /* Dit is je nieuwe actieve kleur voor de iMac */
  /* --bg-oud: #050b14; */ /* Dit staat 'geparkeerd' en doet nu niks */
  --fg: #e8e6e3;
  --muted: #8a8782;
  --accent: #b04e2a;      /* De nieuwe, échte roestkleur (ook voor het menu!) */
  --line: #222225;        /* De donkere kleur voor de subtiele onderlijnen */
  --max: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Slanke letters voor de site */
  --menu-weight: bold;    /* BEHOUDEN: De letters in het menu blijven hiermee lekker dik */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  overflow-y: scroll; 
  height: 100%;           /* Geeft de browser de volledige hoogte mee */
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;       /* De normale tekst is nu mooi slank */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  
  /* De gewone leestekst is nu overal precies 1 stapje groter voor de iMac! */
  font-size: 1.1rem !important; 
  
  /* Maakt van de body een flexibele kolom die altijd 100% van het scherm vult */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* Dit voorkomt dat foto's geselecteerd of weggesleept kunnen worden */
img, video, iframe { 
  display: block; 
  max-width: 100%; 
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
}

/* Zorgt dat de hoofdinhoud van de site alle lege ruimte opeist, waardoor de footer omlaag gedrukt wordt */
main {
  flex: 1;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ============ NAVIGATIE ============ */
header.site {
  position: sticky; 
  top: 0; 
  z-index: 9999; 
  
  /* Nachtblauwe kleur sluit perfect aan op je --bg variabele */
  background-color: #0c1624; 
  
  /* Schoon: Geen filters of opacity die vlekken kunnen veroorzaken op Mac */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  
  /* De onderlijn van het menu: dring deze op de donkere, rustige kleur */
  border-bottom: 1px solid #222225;
  height: 125px;
  box-sizing: border-box;
}

header.site .wrap {
  display: flex; 
  justify-content: flex-start; 
  align-items: center;          /* Dit zorgt dat logo én knoppen op exact dezelfde middellijn staan */
  height: 100%; 
  padding-top: 0; 
  margin-top: 0;                /* GEBRACHT NAAR 0: Verwijdert de scheve verschuiving */
}

.logo { 
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .3em; 
  text-transform: uppercase; 
  font-size: .95rem; 
  font-weight: 600; 
  margin-right: auto; 
  text-decoration: none;
}

.logo img {
  display: inline-block; 
  height: 115px;                 /* VERGROOT: Dit maakt je logo weer flink groter in de balk */      
  width: auto;                   /* Behoudt de perfecte verhoudingen van je Canva-bestand */
  object-fit: contain;           /* Zorgt dat het logo volledig en scherp binnen het vlak valt */  
  vertical-align: middle; 
  margin-right: 8px;  
  max-width: none; 
  border: none;
  
  /* TRANSPARANT: De achtergrondkleur van de balk schijnt er perfect doorheen */
  background: transparent;
}

nav a {
  margin-left: 22px; 
  font-size: .95rem; 
  letter-spacing: .2em;
  text-transform: uppercase; 
  color: var(--muted); 
  font-weight: var(--menu-weight); 
  transition: color .2s;
  position: relative;          
  padding-bottom: 4px;        
}

nav a:hover, nav a.active {
  color: var(--accent); 
}

/* ============ HERO ============ */
.hero { padding: 14vh 0 10vh; }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 200; line-height: 1.02; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin-top: 28px; max-width: 520px; color: var(--muted); font-size: 1.1rem; }

/* ============ KOPPEN & TEKST ============ */
h2.label {
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 28px;
}
section { padding: 8vh 0; }
.prose { max-width: 680px; }
.prose p { margin-bottom: 1.2em; color: #c9c6c1; }

.page-title { 
  font-size: clamp(1.5rem, 4vw, 2.2rem); 
  font-weight: 300;                      
  letter-spacing: 0.02em; 
  padding: 5vh 0 2vh;                    
}

/* Interactief uitschuivend lijntje voor links in de tekst */
.prose a {
  color: var(--accent);
  position: relative;
  text-decoration: none;
}

/* ============ INTERACTIEVE SLANKE LIJNTJES (HOVER EFFECT) ============ */
.prose a::after,
nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);       /* Begint op breedte 0 (onzichtbaar) */
  height: 1px;                /* Dikte van het lijntje (subtiel) */
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out; 
}

/* Zorgt dat het actieve menu-item het lijntje altijd heeft staan */
nav a.active::after {
  transform: scaleX(1);
}

/* Laat het lijntje uitschuiven van links naar rechts bij hover */
.prose a:hover::after,
nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ============ GALERIJ (masonry via kolommen) ============ */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin-bottom: 16px; position: relative; overflow: hidden; background: #151517; }
.gallery img { width: 100%; height: auto; cursor: zoom-in; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-size: .85rem; 
  letter-spacing: .15em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0; transition: opacity .3s;
}
.gallery figure:hover figcaption { opacity: 1; }

/* ============ PROJECTKAARTEN ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); transition: border-color .2s; }
.card:hover { border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card div { padding: 18px 20px 22px; }

.card h3 { font-weight: 400; font-size: 1.3rem !important; margin-bottom: 6px; }
.card p { color: #c9c6c1 !important; font-size: 1.05rem !important; }

/* ============ VIDEO (responsive 16:9) ============ */
.video { aspect-ratio: 16/9; background: #000; margin: 32px 0; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ============ LIGHTBOX ============ */
dialog#lightbox {
  background: transparent; border: 0; max-width: 100vw; max-height: 100vh; margin: auto;
}
dialog#lightbox::backdrop { background: rgba(0,0,0,.94); }
dialog#lightbox img { max-width: 94vw; max-height: 92vh; cursor: zoom-out; }
dialog#lightbox video {
  max-width: 94vw; max-height: 92vh; 
  border-radius: 4px;
  outline: none;
}
dialog#lightbox, 
dialog#lightbox:focus, 
dialog#lightbox:focus-visible {
  outline: none !important;
  border: none !important;
}

/* ============ FOOTER ============ */
footer.site { 
  border-top: 1px solid var(--line); 
  padding: 40px 0; 
  color: var(--muted); 
  font-size: .8rem; 
  letter-spacing: .1em; 
  text-align: center;         
  margin-top: auto;           /* Zorgt dat de footer strak naar de bodem kleeft */
}

/* ============ CONTACT PAGINA INDELING ============ */
.contact-container {
  display: flex;
  gap: 40px; 
  align-items: flex-start;
}
.contact-tekst { flex: 1.5; }
.contact-foto { flex: 1; }

.contact-foto figcaption {
  position: static;
}

/* ============ RESPONSIVE LAYOUTS VOOR MOBIEL ============ */
@media (max-width: 768px) {
  header.site {
    height: auto !important;          /* Laat de balkhoogte flexibel meeveren op mobiel */
    padding: 16px 0 !important;       /* Ruimte aan de boven- en onderkant */
  }
  
  header.site .wrap {
    flex-direction: column !important; /* Zet het logo en het menu netjes onder elkaar */
    gap: 16px !important;              /* Ruimte tussen het logo en de menuknoppen */
    justify-content: center !important; 
    margin-top: 0 !important;
  }
  
  .logo {
    margin-right: 0 !important;        /* Centreert het logo op kleine schermen */
  }
  
  .logo img {
    height: 80px !important;           /* Maakt het logo op mobiel een fractie compacter */
  }
  
  nav {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;        /* Knoppen breken netjes af op héél smalle schermen */
    gap: 12px !important;
  }
  
  nav a {
    margin-left: 0 !important;         /* Reset de grote marge van de desktopversie */
    font-size: 0.85rem !important;     /* Compactere letters voor telefoons */
  }

  /* Zorgt dat de contactpagina en over-mij-pagina netjes onder elkaar klappen op mobiel */
  .contact-flex-balans,
  .over-mij-grid,
  .contact-container { 
    flex-direction: column !important; 
  }
}
/* ============ UNIVERSELE GALERIJ-OPMAAK & ROESTGLOEI ============ */

/* Soepele overgang op foto's en video's */
.cards .card img, 
.cards .card .video-preview-vlak,
.hover-glow {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* Zachte, brede roestkleurige galerie-gloed bij het aanwijzen */
.cards .card:hover img, 
.cards .card:hover .video-preview-vlak,
.hover-glow:hover {
  transform: scale(1.04) !important; 
  box-shadow: 0 0 35px 12px rgba(195, 85, 25, 0.45) !important; 
}

/* Net preview-vlak voor video's */
.video-preview-vlak {
  width: 100%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

/* Subtiele play-knop over video-previews heen */
.video-preview-vlak::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.6);
  width: 65px; height: 65px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.video-preview-vlak:hover::after {
  background: var(--accent); 
}

.video-preview-vlak video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; 
}


