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

body {
  font-family: 'Baar Philos', sans-serif;
  color: #1e1f18;
  background-color: #fff5ed;
}

h1 {
  font-family: 'Antropos', sans-serif;
}

/* ── Top navbar ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #1e1f18;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.9rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

nav.visible {
  opacity: 1;
  pointer-events: auto;
}

nav a {
  font-family: 'Baar Philos', sans-serif;
  font-size: 1rem;
  color: #fff5ed;
  text-decoration: none;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.6;
}

/* ── Full-screen photo sections ── */
.bg-image {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The hack: replace background-attachment:fixed with a position:fixed ::before.
This works on iOS/mobile where background-attachment:fixed is broken.
Text sections have their own solid background-color, so they naturally
cover the fixed layer as the user scrolls. */
.bg-image::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-color: #2a2e22;
  /* fallback als foto niet laadt */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bg-image.active::before {
  opacity: 1;
}

.bg-1::before {
  background-image: url("Bomen-1-bovenaan.jpg");
}

.bg-2::before {
  background-image: url("Bomen-2.jpg");
}

.bg-3::before {
  background-image: url("Bomen-3.jpg");
}

.bg-4::before {
  background-image: url("Bomen-4.jpg");
}

.bg-5::before {
  background-image: url("Bomen-5.jpg");
}

.bg-6::before {
  background-image: url("bomen-6-onderaan.jpg");
}

.bg-image h1 {
  color: #fff5ed;
  font-size: 5rem;
  text-align: center;
  text-shadow: 2px 2px 16px rgba(0, 0, 0, 0.55);
}

/* ── Text sections ── */
section {
  background-color: #fff5ed;
  padding: 4rem 6rem;
  scroll-margin-top: 3.5rem;
}

section h2 {
  font-family: 'Antropos', sans-serif;
  font-size: 2rem;
  color: #1e1f18;
  margin-bottom: 1.5rem;
}

section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 72ch;
}

/* ── Over mij – tekst naast foto ── */
.over-mij-content {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

.over-mij-content .tekst {
  flex: 1;
}

.over-mij-content img {
  width: 260px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

/* ── Footer ── */
footer {
  background-color: #1e1f18;
  padding: 2rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #fff5ed;
  border-top: 1px solid rgba(255, 245, 237, 0.12);
}

footer a {
  color: #fff5ed;
  text-decoration: underline;
}

footer a:hover {
  opacity: 0.6;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .bg-image h1 {
    font-size: clamp(2.2rem, 10vw, 4rem);
    padding: 0 1.5rem;
  }

  nav {
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.2rem;
    row-gap: 0.4rem;
    padding: 0.7rem 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .over-mij-content {
    flex-direction: column;
    gap: 2rem;
  }

  .over-mij-content img {
    width: 100%;
    max-width: 320px;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 1.5rem 1.5rem;
  }
}