/* ==========================================================================
   1. Variabelen
   ========================================================================== */
:root {
  /* kleuren */
  --color-bg: #000;
  --color-text: #fff;
  --color-muted: #cbd5e1;
  --color-subtle: #94a3b8;
  --color-tile: #1c1c1c;

  /* typografie */
  --font-sans: "Inter", Arial, sans-serif;
  --fs-h2: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  --fs-h3: clamp(1.2rem, 1.2vw + 0.9rem, 1.75rem);
  --fs-body: clamp(0.95rem, 0.4vw + 0.85rem, 1.125rem);
  --fs-form: clamp(1.05rem, 0.6vw + 0.95rem, 1.5rem);

  /* spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --column-gap: clamp(1.5rem, 4vw, 4rem);
}

/* ==========================================================================
   2. Basis
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
}

h2 {
  text-transform: uppercase;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

/* ==========================================================================
   3. Gedeelde stijlen (sectietitels, h3's en llopende tekst)
   ========================================================================== */

/* sectietitels (h2) */
.about-me__text h2,
.project-row__section-title,
.approach__title,
.contact__title {
  margin: 0 0 1.5rem;
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.approach__title,
.contact__title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* subtitels (h3) */
.about-me__text h3,
.project-row__title,
.approach-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

/* lopende tekst op zwart */
.about-me__text p,
.project-row__description {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 200;
  line-height: 1.7;
  color: var(--color-muted);
}

/* gedeelde sectie-opbouw */
.about-me,
.projects,
.approach,
.contact {
  padding: var(--section-padding) 0;
  text-align: left;
}

/* ==========================================================================
   4. Header / banner
   ========================================================================== */
.site-header {
  position: relative;
  width: 100%;
  height: 60vh;               /* fallback */
  height: 60svh;              /* laptop */
  overflow: hidden;
  display: grid;
  place-items: center;        /* titel in het midden van de banner */
}

/* afbeelding vult de banner, wordt uitgesneden i.p.v. vervormd */
.site-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);   /* donkerder voor betere leesbaarheid */
}

.site-header h1 {
  position: relative;         /* boven de afbeelding */
  z-index: 1;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2rem, 6vw + 1rem, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

/* tablet */
@media (max-width: 1024px) {
  .site-header {
    height: 50vh;
    height: 50svh;
  }
}

/* gsm */
@media (max-width: 600px) {
  .site-header {
    height: 30vh;
    height: 30svh;
  }
}

/* ==========================================================================
   5. Introductie + bouncing arrow
   ========================================================================== */

/* laptop: vult de resterende hoogte, tekst + pijl verticaal gecentreerd */
.introduction {
  min-height: 40vh;           /* fallback */
  min-height: 40svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.introduction p {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 100;
}

.scroll-down {
  display: inline-flex;
  color: var(--color-text);
  animation: bounce 1.6s ease-in-out infinite;
}

.scroll-down:hover {
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-down { animation: none; }
}

/* tablet: niet meer vullen, gewoon wat ruimte */
@media (max-width: 1024px) {
  .introduction {
    min-height: 0;
    padding: 3rem 0;
  }
}

/* gsm */
@media (max-width: 600px) {
  .introduction {
    padding: 2rem 0;
  }

  .introduction p {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  }
}

/* ==========================================================================
   6. About me
   ========================================================================== */
.about-me {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);  /* foto links, tekst rechts */
  align-items: center;
  gap: var(--column-gap);
}

/* vierkante foto, uitgesneden i.p.v. vervormd */
.about-me__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-me__text {
  min-width: 0;
  overflow-wrap: break-word;
}

.about-me__text h3 {
  margin: 1.75rem 0 0.5rem;
}

/* mobiel: tekst eerst, foto eronder */
@media (max-width: 720px) {
  .about-me {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-me__text  { order: 1; }
  .about-me__image { order: 2; }
}

/* ==========================================================================
   7. Projecten
   ========================================================================== */
.projects__status {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
}

.projects__list {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--column-gap);
}

/* om en om: collage rechts */
.project-row--reversed .project-gallery      { order: 2; }
.project-row--reversed .project-row__content { order: 1; }

.project-row__content {
  min-width: 0;
  overflow-wrap: break-word;
}

.project-row__title {
  margin: 1.75rem 0 0.5rem;
}

.project-row__section-title + .project-row__title {
  margin-top: 0;
}

.project-row__description {
  white-space: pre-line;
}

/* mobiel: tekst eerst, collage eronder */
@media (max-width: 720px) {
  .project-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  /* zelfde specificiteit als de reversed-regels, staat later en wint dus */
  .project-row .project-row__content { order: 1; }
  .project-row .project-gallery      { order: 2; }
}

/* ==========================================================================
   8. Collage (vierkant: 2 / 3 / 2)
   24 rijen: buitenste kolommen = 12 + 12,
   middelste kolom = 9 + 6 + 9 (boven en onder iets groter)
   ========================================================================== */
.project-gallery {
  display: grid;
  min-width: 0;
  aspect-ratio: 1 / 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(24, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.8vw, 0.65rem);
}

.project-gallery__tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--color-tile);
}

/* kolom 1 */
.project-gallery__tile--1 { grid-column: 1; grid-row: 1 / 13; }
.project-gallery__tile--2 { grid-column: 1; grid-row: 13 / 25; }
/* kolom 2 */
.project-gallery__tile--3 { grid-column: 2; grid-row: 1 / 10; }
.project-gallery__tile--4 { grid-column: 2; grid-row: 10 / 16; }
.project-gallery__tile--5 { grid-column: 2; grid-row: 16 / 25; }
/* kolom 3 */
.project-gallery__tile--6 { grid-column: 3; grid-row: 1 / 13; }
.project-gallery__tile--7 { grid-column: 3; grid-row: 13 / 25; }

.project-gallery__button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.project-gallery__button:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: -2px;
}

.project-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-gallery__button:hover .project-gallery__image {
  transform: scale(1.05);
}

/* "+N" op de laatste tegel als er meer foto's zijn */
.project-gallery__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-text);
  font-size: clamp(1rem, 2vw, 1.75rem);
  font-weight: 400;
  pointer-events: none;
}

.project-gallery__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0.5rem;
  box-sizing: border-box;
  color: var(--color-subtle);
  font-size: 0.75rem;
  text-align: center;
}

/* ==========================================================================
   9. Lightbox
   ========================================================================== */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--color-text);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.lightbox__image {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 80vh;
  max-height: 80svh;
  object-fit: contain;
  user-select: none;
}

.lightbox__caption {
  font-size: 0.9rem;
  font-weight: 200;
  color: var(--color-muted);
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .lightbox__btn       { width: 2.5rem; height: 2.5rem; }
  .lightbox__btn--prev { left: 0.5rem; }
  .lightbox__btn--next { right: 0.5rem; }
}

/* ==========================================================================
   10. Aanpak
   ========================================================================== */

/* pc + tablet: 3 naast elkaar */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.approach-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #fff;
  color: #000;
  overflow-wrap: break-word;
}

.approach-card h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.approach-card p {
  margin: 0 0 2rem;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: #000;
}

/* logo rechtsonder in het vakje */
.approach-card__logo {
  display: block;
  align-self: flex-end;
  margin-top: auto;
  height: clamp(3rem, 5vw, 5rem);
  width: auto;
  max-width: 60%;
  object-fit: contain;
}

/* mobiel: onder elkaar */
@media (max-width: 720px) {
  .approach__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   11. Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);  /* 67% form / 33% afbeelding */
  align-items: stretch;
  gap: var(--column-gap);
}

.contact__form-wrap {
  min-width: 0;
}

/* formulier */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form label {
  font-size: var(--fs-form);
  font-weight: 200;
  color: var(--color-text);
}

/* enkel een witte streep onder het veld */
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-text);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 200;
  line-height: 1.5;
  outline: none;
  resize: none;
  transition: box-shadow 0.2s ease;
}

/* focus: streep wordt dikker zonder dat de layout verspringt */
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 1px 0 0 var(--color-text);
}

/* autofill van de browser zwart houden */
.contact-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--color-text);
  box-shadow: 0 0 0 1000px var(--color-bg) inset;
  caret-color: var(--color-text);
}

/* witte knop, zwarte tekst */
.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.6rem 2.5rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;              /* eerst, anders overschrijft het de font-size */
  font-size: var(--fs-form);
  font-weight: 200;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

.contact-form__submit:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* afbeelding: vult de hoogte naast het formulier, uitgesneden i.p.v. vervormd */
.contact__image {
  min-width: 0;
}

.contact__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* mobiel: enkel het formulier, afbeelding weg */
@media (max-width: 720px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__image {
    display: none;
  }

  .contact-form__submit {
    align-self: stretch;
  }
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
  /* Positie van de copyright BINNEN het logo, in % van het logo zelf.
     Daardoor schuift de tekst altijd mee, welke schermgrootte ook.
     Zit hij een tikje te hoog/laag/links? Pas alleen deze twee waarden aan. */
  --footer-copy-right: 17%;
  --footer-copy-bottom: 1%;

  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  /* geen min-height: de footer is zo hoog als de inhoud van de rechterkolom,
     en het logo rekt daar automatisch mee */
  overflow: hidden;                           /* nooit horizontaal scrollen */
  background: var(--color-bg);
  color: var(--color-text);
  text-align: left;
  padding-top : clamp(4rem, 8vw, 7rem);
}

/* ---------- Links: logo op dezelfde hoogte als de rechterkant ---------- */
.site-footer__brand {
  position: relative;
  grid-column: 1;
  grid-row: 1;                                /* rekt automatisch mee met de hoogte van .site-footer__info */
  overflow: hidden;                           /* logo kan nooit over de rechterkolom vallen */
  container-type: size;                       /* maakt cqh beschikbaar = hoogte van het logo */
}

/* Krimpt mee rond het logo, zodat percentages en cqh altijd naar het logo verwijzen */
.site-footer__logo-box {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;                               /* de breedte volgt vanzelf uit de verhouding van de afbeelding */
}

.site-footer__logo {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);            /* altijd wit */
  user-select: none;
  pointer-events: none;
}

.site-footer__copyright {
  position: absolute;
  right: var(--footer-copy-right);
  bottom: var(--footer-copy-bottom);
  z-index: 1;
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);   /* fallback voor oude browsers */
  font-size: max(0.625rem, 2.4cqh);           /* schaalt mee met de hoogte van het logo */
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  mix-blend-mode: difference;                 /* wit op zwart, zwart op het witte logo */
}

/* ---------- Rechts: info ---------- */
.site-footer__info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.25rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem) 0.3rem 0;
}

.site-footer__name {
  margin: 0;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);   /* ca. 56px op 1600px */
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-footer__intro {
  max-width: 34rem;
  margin: clamp(0.5rem, 1vw, 1rem) 0 0;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.375rem);   /* ca. 22px op 1600px */
  font-weight: 100;
  line-height: 1.25;
}

/* ---------- Contactgegevens ---------- */
.site-footer__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(0.75rem, 4vw, 2rem);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.4vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li {
  display: flex;
  align-items: center;                        /* tekst verticaal gecentreerd t.o.v. icoon */
  gap: 1rem;
  min-width: 0;
  font-size: clamp(0.75rem, 1.2vw, 1.2rem);
  font-weight: 200;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer__icon {
  flex: none;
  width: clamp(2rem, 2.5vw, 2.5rem);
  height: clamp(2rem, 2.5vw, 2.5rem);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 0.6;
}

/* ---------- Lijn + juridische links ---------- */
.site-footer__divider {
  width: 100%;
  margin: clamp(1rem, 2vw, 2rem) 0 clamp(0.5rem, 1vw, 1rem);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(0.75rem, 1.2vw, 1.2rem);
  font-weight: 150;
}

/* ---------- Mobiel ---------- */
/* Volgorde: eerst alle info, daarna de copyright en onderaan het logo op volle breedte */
@media (max-width: 767px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .site-footer__info,
  .site-footer__brand {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer__info {
    justify-content: flex-start;
    padding: clamp(2.5rem, 11vw, 3.5rem) 1.5rem 0;
  }

  .site-footer__name {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .site-footer__intro {
    max-width: 28rem;
    margin-top: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 200;
    line-height: 1.4;
  }

  .site-footer__intro br {
    display: none;
  }

  .site-footer__contact {
    grid-template-columns: minmax(0, 1fr);   /* onder elkaar: tel, adres, mail, ondernemingsnr. */
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .site-footer__list {
    gap: 1.25rem;
  }

  .site-footer__list li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
  }

  .site-footer__icon {
    width: 2rem;
    height: 2rem;
  }

  .site-footer__divider {
    margin: 2rem 0 1.25rem;
  }

  .site-footer__legal {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 300;
  }

  /* Logo: normale flow, volledige breedte, onderaan de footer */
  .site-footer__brand {
    container-type: normal;
  }

  .site-footer__logo-box {
    position: static;
    height: auto;
  }

  .site-footer__logo {
    width: 100%;
    height: auto;
  }

  .site-footer__copyright {
    position: static;
    padding: 1.5rem 1.5rem 2rem;
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.4;
    white-space: normal;
    mix-blend-mode: normal;                   /* staat boven het logo, geen overlap meer */
    opacity: 0.7;
  }
}