:root {
  --dark-overlay: rgba(0, 0, 0, 0.7);
  --dark-solid: #000;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.75);
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-light);
  background: #000 url("../img/background.jpg") repeat;
  background-position: 50% 0;
}

h1, h2, h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}

.section h2 {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 70px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section h3 {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 35px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

#contact h3 {
  text-align: center;
}

#proefles h2 {
  font-size: 36px;
  white-space: nowrap;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.2s ease;
}

.site-header.scrolled {
  background-color: #000;
}

.header-inner {
  padding: 15px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.logo {
  justify-self: start;
}

.logo img {
  height: auto;
  width: 277px;
  max-width: 100%;
}

.main-nav {
  justify-self: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

.social-icons {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Layout helpers ---------- */

.section {
  padding: 0;
}

.section-dark {
  background-color: var(--dark-solid);
}

.section-overlay {
  background-color: var(--dark-overlay);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 20px;
}

#contact .section-inner {
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
}

.two-col {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.two-col .col-text {
  flex: 1 1 280px;
}

.two-col .col-photo {
  flex: 1 1 280px;
  align-self: center;
}

#bio .col-text {
  flex: 2 1 0;
  text-align: center;
}

#bio .col-photo {
  flex: 1 1 0;
}

.three-col {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.three-col > div {
  flex: 1 1 220px;
}

.text-center {
  text-align: center;
}

.spaced {
  letter-spacing: 0.08em;
}

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

.inline-photo {
  margin-top: 20px;
  border: 2px solid #fff;
}

p {
  line-height: 1.6;
  margin: 0 0 14px;
}

u {
  text-decoration-line: underline;
}

/* ---------- Hero ---------- */

.hero {
  padding: 250px 20px 70px;
  text-align: center;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(2.5rem, 8vw, 100px);
  margin-bottom: 10px;
}

.tagline {
  margin: 90px 0 0;
  font-weight: 300;
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  padding: 22px 35px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.form-row-submit {
  justify-content: flex-end;
}

.form-submit {
  justify-content: center;
  padding: 16px 20px;
  min-width: 200px;
  margin-top: 0;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 30px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item img.pos-left {
  object-position: 0% 50%;
}

.gallery-item img.pos-right {
  object-position: 100% 50%;
}

.gallery-item img.pos-top {
  object-position: 50% 0%;
}

.gallery-item img.pos-bottom {
  object-position: 50% 100%;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Forms ---------- */

.site-form {
  margin: 30px 0 0;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.form-field {
  flex: 1 1 0;
  min-width: 200px;
}

.form-field-wide {
  flex: 2 1 0;
  min-width: 300px;
}

/* Two rows (Naam/E-mailadres/Telefoonnummer, then Adres/Woonplaats) need their
   columns to line up vertically. Flexbox computes each row's distributable
   width independently based on how many gaps THAT row has, so a 3-item row
   and a 2-item row end up subtracting a different total gap width and drift
   out of alignment. A shared grid template fixes the column tracks regardless
   of how many cells a row actually uses. */
.form-row-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.form-row-grid3 .form-field,
.form-row-grid3 .form-field-wide {
  flex: unset;
  min-width: 0;
}

.form-row-grid3 .form-field-wide {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .form-row-grid3 {
    grid-template-columns: 1fr;
  }

  .form-row-grid3 .form-field-wide {
    grid-column: span 1;
  }
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

#contact label {
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  font-size: 16px;
  padding: 0;
  margin-bottom: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
}

.checkbox input {
  width: auto;
}

/* ---------- Contact section ---------- */

.col-address {
  text-align: center;
  margin-top: 76px;
}

.col-address p {
  margin: 0;
  font-size: 15px;
  line-height: normal;
}

.col-address strong {
  font-weight: 700;
}

#contact .form-field {
  margin-bottom: 10px;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: #fff;
  font-style: italic;
}

.form-submit-center {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.col-links {
  text-align: center;
  margin-top: 76px;
}

.col-links ul {
  display: inline-block;
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
  text-align: left;
}

.col-links li {
  margin-bottom: 10px;
}

.col-links a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.col-links a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 25px 20px;
  background: #000;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

/* ---------- Lightbox ---------- */

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

.lightbox-close {
  top: 15px;
  right: 20px;
}

.lightbox-prev {
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Responsive nav ---------- */

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    padding: 10px 20px 20px;
  }

  .main-nav ul.open {
    display: flex;
  }

  .header-inner {
    position: relative;
    grid-template-columns: auto 1fr;
  }

  .social-icons {
    display: none;
  }

  .three-col,
  .two-col {
    text-align: center;
  }
}
