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

/* Basis */
body {
  font-family: 'Space Grotesk', sans-serif;
  background: #fff;
  color: #000;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 20vw 1fr;
  min-height: 100vh;
}

/* Navigatie */
.nav {
  background: #fff;
}

.nav-inner {
  padding: 3rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.nav h1 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0rem;
}

.nav h2 {
  font-size: 0.8rem;
  font-weight: 200;
  margin-bottom: 3rem;
}

.nav a {
  display: block;
  color: #666;
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #000;
}

/* Masonry grid */
.grid {
  column-count: 4;
  column-gap: 1rem;
  padding: 0 1rem 1rem;
}

.item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Link wrapper */
.item a {
  display: block;
  position: relative;
}

/* Hover overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.59);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.item:hover .overlay {
  opacity: 1;
}

/* Overlay tekst */
.overlay-text {
  position: absolute;
  top: 22px;
  left: 22px;
  color: #ffffff;
  line-height: 1.1;
  font-size: 13px;
  font-weight: 200;
}

.overlay-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: lowercase;
  line-height: 1;
  margin-bottom: 4px;
}

/* Responsive grid */
@media (max-width: 1100px) {
  .grid { column-count: 3; }
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .grid { column-count: 2; }
  .nav-inner { height: auto; position: static; padding: 1.5rem 1.5rem 0; }

  /* Navigatie verbergen op mobiel, enkel tonen als open */
  .nav nav,
  .nav-social,
  .nav-socials-bottom {
    display: none;
  }

  .nav.nav-open nav,
  .nav.nav-open .nav-social {
    display: block;
    padding-bottom: 1.5rem;
  }

  .nav.nav-open .nav-socials-bottom {
    display: flex;
  }

  /* nav-toggle (aangemaakt door projects.js) verbergen — enkel #hamburger button gebruiken */
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 500px) {
  .grid { column-count: 1; }
}


/* Portfolio groep */
.nav-group {
  margin-bottom: 1rem;
}

.nav-title {
  display: block;
  color: #666;
  font-size: 0.95rem;
  cursor: default;
}

.subnav {
  margin-top: 0.5rem;
  margin-left: 0.8rem;
  display: none;
}

/* Desktop: hover opent submenu */
@media (hover: hover) {
  .nav-group:hover .subnav {
    display: block;
  }
}

/* Touch/iOS: submenu altijd zichtbaar (geen hover beschikbaar) */
@media (hover: none) {
  .subnav {
    display: block;
  }
}

.subnav a {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.subnav a:hover {
  color: #000;
}


/* PROJECT PAGINA */

.project {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 4px;
  padding: 0 4px 4px;
}

.project-images {
  column-count: 2;
  column-gap: 16px;
  padding: 0 16px 16px;
}

.project-images img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  break-inside: avoid;
}

.project-images img.portrait {
  aspect-ratio: 2 / 3;
}

.project-info {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-info .meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-info { padding: 1.5rem 0; }
  .project-images { column-count: 1; }
}


/* ABOUT PAGINA */

.about {
  display: grid;
  grid-template-columns: 70% 30%;
  column-gap: 1.5rem;
  padding: 0 1.5rem 3rem 0;
}

.about-main {
  padding-left: 4px;
  padding-right: 4px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 3rem;
}

.about-text {
  max-width: 65%;
  font-size: 15px;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-side {}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-text { max-width: 100%; }
}


/* CONTACT PAGINA */

.contact {
  display: grid;
  grid-template-columns: 70% 30%;
  column-gap: 1.5rem;
  padding: 0 1.5rem 3rem 0;
}

.contact-main {
  padding-left: 4px;
  padding-right: 4px;
}

.contact-info {
  margin-top: 3rem;
  margin-bottom: 4rem;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.7;
}

.contact-info a {
  text-decoration: none;
  color: inherit;
}

/* Fix: was .hightlight (typefout) */
.highlight {
  font-size: 1rem;
  font-weight: 400;
}

.contact-form {
  max-width: 65%;
}

.contact-form label {
  display: block;
  font-size: 15px;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 6px 0;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #000;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form label.gdpr {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 2rem;
  font-size: 13px;
}

.contact-form label.gdpr input {
  width: auto;
  margin: 0;
}

.contact-form button {
  border: 1px solid #000;
  background: none;
  padding: 8px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.contact-form button:hover {
  background: #000;
  color: #fff;
}

/* Bevestigingsbericht na versturen */
.form-success {
  display: none;
  margin-top: 2rem;
  font-size: 14px;
  border-left: 2px solid #000;
  padding-left: 1rem;
  line-height: 1.6;
}

.form-success.visible {
  display: block;
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-form { max-width: 100%; }
}


/* SOCIALS */

.nav-social {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.nav-social a {
  display: inline-flex;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  margin-bottom: 0;
}

.nav-social a:hover {
  opacity: 0.8;
}

.nav-social .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* Nav branding (semantisch correcte p-tags ipv h1/h2) */
.nav-brand {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
}

.nav-tagline {
  font-size: 0.8rem;
  font-weight: 200;
  margin-bottom: 3rem;
  color: #000;
}
