/* ===================== */
/* ALGEMENE INSTELLINGEN */
/* ===================== */
:root {
  --kleur-primaire: #2d9c3b;
  --kleur-secundaire: #3b3b3b;
  --kleur-achtergrond: #ffffff;
  --kleur-tekst: #000000;
  --kleur-footer: #000000;
  --kleur-footer-tekst: #ffffff;
  --kleur-button-hover: #228631;
  --max-breedte: 900px;
}

html {
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--kleur-achtergrond);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--kleur-tekst);
  font-size: 1rem;
}

/* ============ */
/* HEADER + NAV */
/* ============ */
header {
  background: var(--kleur-secundaire);
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  height: 50px;
}

.topbar nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  width: 150px;
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
}

.hamburger {
  font-size: 30px;
  color: #ffffff;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 5;
}

/* NAVIGATIEBALK */
nav {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  background: var(--kleur-secundaire);
  height: 40px;

  max-width: 100%; /* volledige breedte */
  overflow-x: auto; /* horizontaal scrollen als nodig */
  padding: 0 10px;
  box-sizing: border-box;
  scrollbar-width: thin; /* dunne scrollbar Firefox */
}

/* Webkit scrollbar styling */
nav::-webkit-scrollbar {
  height: 6px;
}
nav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
nav::-webkit-scrollbar-track {
  background: transparent;
}

nav a {
  color: #ffffff;
  padding: 0 12px;
  text-decoration: none;
  font-size: 1.05em;
  border-radius: 4px;
  transition: background 0.2s;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;

  white-space: nowrap; /* voorkom wrap */
  flex-shrink: 0; /* voorkom krimpen */
  min-width: 100px; /* minimale breedte, aanpasbaar */
  box-sizing: border-box;
}

nav a.active,
nav a:hover {
  background: var(--kleur-primaire);
}

/* ================ */
/* RESPONSIVE MENU */
/* ================ */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    height: auto;
    overflow-x: visible;
    padding: 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    width: 100%;
    max-width: none;
    padding: 12px 0;
    text-align: center;
    height: auto;
    min-width: auto;
  }
}

/* ============ */
/* MAIN CONTENT */
/* ============ */
main {
  flex: 1 0 auto;
  padding: 35px 10px 60px 10px;
  max-width: var(--max-breedte);
  margin: 0 auto;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* ============= */
/* TEKST STIJLEN */
/* ============= */
h1 {
  font-size: 2.2em;
  color: var(--kleur-primaire);
  margin-bottom: 16px;
}

h2 {
  color: var(--kleur-secundaire);
  margin-top: 40px;
}

h3 {
  color: var(--kleur-primaire);
}

/* ====================== */
/* AFBEELDINGEN + BLOKKEN */
/* ====================== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 40px;
  align-items: center;
}

.row.img-left {
  flex-direction: row;
}

.row.img-right {
  flex-direction: row-reverse;
}

.row img {
  width: 280px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

.row .tekst {
  flex: 1;
}

.wide-img {
  width: 100%;
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* CENTRALE AFBEELDING */
.image-center {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.centered-img {
  width: 100%; /* pas hier breedte aan (bijv. 80%, 700px) */
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* CONTACT-UITLEG */
.contact-uitleg {
  max-width: 600px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  text-align: center;
}

.contact-uitleg h2 {
  color: var(--kleur-primaire);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.contact-uitleg p {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

/* CONTACT FORMULIER */
.contact-form {
  max-width: 410px;
  margin: 30px auto;
  background: #ffffff;
  padding: 24px 32px 18px 32px;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #ccc;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 13px;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

.contact-form button {
  padding: 10px 25px;
  border: none;
  background: var(--kleur-primaire);
  color: #fff;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--kleur-button-hover);
}

/* FOOTER */
footer {
  background: var(--kleur-footer);
  color: var(--kleur-footer-tekst);
  text-align: center;
  padding: 17px 0;
  font-size: 1em;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .row {
    flex-direction: column;
    gap: 12px;
    align-items: center;   /* CENTREREN FOTO'S OP MOBIEL */
  }

  .row img {
    width: 90vw;
    display: block;
    margin: 0 auto;
  }

  .centered-img {
    width: 95%;
  }

  main {
    padding: 16px 2vw 70px 2vw;
  }

  /* Facebook posts centreren */
  .fb-post {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ========================= */
/* FACEBOOK POSTS OPMAAK    */
/* ========================= */
.fb-post {
  max-width: 450px;
  width: 100%;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.fb-post.left {
  margin-right: auto;
}

.fb-post.right {
  margin-left: auto;
}

#social-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 10px;
}
