/* =============================================
   SPACING SCALE: 8 | 16 | 24 | 40 | 64
   ============================================= */
:root {
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  position: relative;
  overflow-x: hidden;
}

#page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body {
  font-family: Asap, sans-serif;
  color: #000;
  min-height: 100.1dvh;
  background-color: #2B4E1E;
}

/* =============================================
   NAV
   ============================================= */
.main-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 732px;
  height: 80px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 44px 64px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
}

.nav-logo img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a {
  transition: opacity 0.15s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

.menu-toggle {
  display: none;
}

/* =============================================
   HOME PAGE
   ============================================= */

/* 24px (nav top) + 80px (nav height) + 64px (gap) = 168px */
main.home,
main.page {
  padding-top: 168px;
  padding-bottom: 64px;
}

/* =============================================
   BLOCK CONTENT
   ============================================= */
.block-content {
  max-width: 832px;
  margin: 0 auto;
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- Themes --- */
.block-content.theme-green {
  background: rgba(203, 247, 227, 0.80);
}
.block-content.theme-green a { color: #3A9B6F; }

.block-content.theme-blue {
  background: rgba(227, 242, 244, 0.80);
}
.block-content.theme-blue a { color: #468C95; }

.block-content.theme-yellow {
  background: rgba(247, 243, 203, 0.80);
}
.block-content.theme-yellow a { color: #9B943A; }

.block-content.theme-transparent {
  background: transparent;
  color: #fff;
}
.block-content.theme-transparent a { color: #fff; }
.block-content.theme-transparent h1,
.block-content.theme-transparent h2,
.block-content.theme-transparent h3,
.block-content.theme-transparent p,
.block-content.theme-transparent li { color: #fff; }

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
}

.lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-out;
}

/* =============================================
   IMAGE GRID
   ============================================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  padding: 0 24px;
}

.image-grid-item {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e8e8;
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-grid-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.image-grid-item img {
  width: 101%;
  height: 101%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.block-content-image {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.block-content-link {
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  text-decoration-line: underline;
  transition: opacity 0.15s ease;
}

.block-content-link:hover {
  opacity: 0.7;
}

.section-gap {
  height: 64px;
}

/* =============================================
   HERO
   ============================================= */
.hero-title {
  font-family: Roboto, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.hero-description {
  width: 548px;
  max-width: 100%;
  text-align: center;
  font-family: Asap, sans-serif;
  font-variant-numeric: ordinal;
  font-size: 20px;
  color: #000;
  line-height: 1.6;
}

/* =============================================
   NIEUWS LIST
   ============================================= */
.nieuws-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.nieuws-item {
  padding: var(--s3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: var(--s3);
  border-radius: 24px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nieuws-item:hover,
.js-anim .nieuws-item.anim-in:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}

.theme-green .nieuws-item:hover,
.theme-green .js-anim .nieuws-item.anim-in:hover { box-shadow: 0 12px 32px rgba(43,78,30,0.28); }
.theme-blue .nieuws-item:hover,
.theme-blue .js-anim .nieuws-item.anim-in:hover { box-shadow: 0 12px 32px rgba(50,100,108,0.28); }
.theme-yellow .nieuws-item:hover,
.theme-yellow .js-anim .nieuws-item.anim-in:hover { box-shadow: 0 12px 32px rgba(120,114,40,0.28); }

.nieuws-item-date,
.agenda-item-date {
  color: #468C95;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-green .nieuws-item-date,
.theme-green .agenda-item-date { color: #3A9B6F; }
.theme-blue .nieuws-item-date,
.theme-blue .agenda-item-date { color: #468C95; }
.theme-yellow .nieuws-item-date,
.theme-yellow .agenda-item-date { color: #9B943A; }

.nieuws-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.nieuws-item-title {
  color: #000;
  font-family: Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.nieuws-item-description {
  color: #000;
  font-family: Asap, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

/* =============================================
   CAROUSEL
   ============================================= */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}

.carousel-wrapper:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: var(--s3);
  will-change: transform;
  user-select: none;
}

.carousel-item {
  width: 345px;
  height: 345px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e8e8;
  transform: translateZ(0);
}

.carousel-item img {
  width: 101%;
  height: 101%;
  object-fit: cover;
  cursor: zoom-in;
}

/* =============================================
   AGENDA SECTION
   ============================================= */
.section-title {
  font-family: Roboto, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.section-description {
  width: 548px;
  max-width: 100%;
  text-align: center;
  font-family: Asap, sans-serif;
  font-size: 20px;
  color: #000;
  line-height: 1.6;
}

.section-description div,
.section-description p,
.section-description span {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.agenda-item {
  padding: var(--s3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: var(--s3);
  border-radius: 24px;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.agenda-item:hover,
.js-anim .agenda-item.anim-in:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}

.theme-green .agenda-item:hover,
.theme-green .js-anim .agenda-item.anim-in:hover { box-shadow: 0 12px 32px rgba(43,78,30,0.28); }
.theme-blue .agenda-item:hover,
.theme-blue .js-anim .agenda-item.anim-in:hover { box-shadow: 0 12px 32px rgba(50,100,108,0.28); }
.theme-yellow .agenda-item:hover,
.theme-yellow .js-anim .agenda-item.anim-in:hover { box-shadow: 0 12px 32px rgba(120,114,40,0.28); }

.nieuws-item-image {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}

.agenda-item-image {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}

.agenda-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}


.agenda-item-title {
  color: #000;
  font-family: Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.agenda-item-description {
  color: #000;
  font-family: Asap, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

/* =============================================
   ARTICLE
   ============================================= */
.article-fotos {
  padding: 0;
  margin-top: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.article-block {
  max-width: 832px;
  margin: 0 auto;
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-date {
  font-family: Asap, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  color: #000;
}

.article-gap {
  height: 40px;
}

.article-title {
  font-family: Roboto, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: #000;
  margin-bottom: 24px;
}

.article-image {
  max-width: 100%;
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 24px;
}

.article-intro {
  font-family: Asap, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #000;
  width: 100%;
  margin-bottom: 16px;
}

.article-body {
  font-family: Asap, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  color: #000;
  width: 100%;
}

.article-body a { color: #468C95; }

.agenda-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.agenda-item:hover .agenda-item-title {
  opacity: 0.75;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  width: calc(100% - 48px);
  max-width: 732px;
  height: 80px;
  margin: 0 auto calc(24px + env(safe-area-inset-bottom));
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 44px 64px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
}

.footer-logo img {
  height: 40px;
  display: block;
}

.footer-copy {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-icon-link img {
  height: 24px;
  width: 24px;
  display: block;
}

.footer-icon-link:hover {
  opacity: 0.6;
}

.footer-nav-link {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav-link:hover {
  opacity: 0.6;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.js-anim .block-content,
.js-anim .carousel-wrapper,
.js-anim .image-grid,
.js-anim .article-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-anim .nieuws-item,
.js-anim .agenda-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.js-anim .block-content.anim-in,
.js-anim .carousel-wrapper.anim-in,
.js-anim .image-grid.anim-in,
.js-anim .nieuws-item.anim-in,
.js-anim .agenda-item.anim-in,
.js-anim .article-block.anim-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 700px) {
  #page-bg {
    position: absolute;
    width: 100%;
    min-height: 100%;
    background-size: auto 100dvh;
    background-repeat: repeat;
  }

  /* NAV */
  .main-nav {
    top: 32px;
    width: 120px;
    height: 56px;
    padding: 0 16px;
    overflow: hidden;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: space-between;
    transition: width 0.3s ease, height 0.35s ease, border-radius 0.3s ease;
  }
  .main-nav.open {
    width: 160px;
    border-radius: 24px;
  }
  .nav-logo {
    height: 56px;
    display: flex;
    align-items: center;
  }
  .nav-logo img {
    height: 32px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    height: 56px;
    background: none;
    border: none;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    padding: 0 10px 0 0;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    padding: 8px 0 20px;
    list-style: none;
  }
  .nav-links a {
    font-size: 16px;
  }

  /* MAIN */
  main.home,
  main.page {
    padding-top: 90px;
    padding-bottom: 32px;
  }

  .section-gap {
    height: 32px;
  }

  /* BLOCK CONTENT */
  .block-content {
    margin: var(--s4) var(--s1);
    padding: var(--s3) var(--s2);
    gap: var(--s3);
    border-radius: 16px;
  }

  /* HERO */
  .hero-title {
    font-size: 28px;
  }
  .hero-description {
    font-size: 16px;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 28px;
  }
  .section-description {
    font-size: 16px;
  }

  /* NIEUWS */
  .nieuws-item {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s2);
  }
  .nieuws-item-image {
    width: 100%;
    height: 180px;
  }
  .nieuws-item-date {
    font-size: 14px;
  }
  .nieuws-item-title {
    font-size: 18px;
  }

  /* AGENDA */
  .agenda-item {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s2);
  }
  .agenda-item-image {
    width: 100%;
    height: 180px;
  }
  .agenda-item-date {
    font-size: 14px;
  }
  .agenda-item-title {
    font-size: 18px;
  }
  .agenda-item-description {
    font-size: 14px;
    line-height: 22px;
  }

  /* LINK */
  .block-content-link {
    font-size: 16px;
  }

  /* CAROUSEL */
  .carousel-item {
    width: 240px;
    height: 240px;
  }

  /* IMAGE GRID */
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 10px;
  }

  /* ARTICLE */
  .article-block {
    margin: 0 var(--s1);
    padding: var(--s3) var(--s2);
    border-radius: 16px;
  }
  .article-date {
    font-size: 16px;
  }
  .article-title {
    font-size: 28px;
    line-height: 36px;
  }
  .article-intro {
    font-size: 16px;
    line-height: 24px;
  }
  .article-body {
    font-size: 16px;
    line-height: 24px;
  }

  /* FOOTER */
  .site-footer {
    width: calc(100% - 20px);
    height: 56px;
    padding: 0 16px;
  }
  .footer-logo img {
    height: 32px;
  }
  .footer-copy {
    font-size: 14px;
  }
  .footer-right {
    gap: 12px;
  }
  .footer-nav-link {
    font-size: 14px;
  }
}

/* --- TEXT ALIGNMENT --- */
.section-title.uitlijning-links,
.section-description.uitlijning-links {
  text-align: left;
  align-self: stretch;
}
.section-title.uitlijning-rechts,
.section-description.uitlijning-rechts {
  text-align: right;
  align-self: stretch;
}

/* --- TITLE FONT SIZES --- */
.section-title.grootte-normaal {
  font-size: 28px;
}
.section-title.grootte-klein {
  font-size: 20px;
}
@media (max-width: 768px) {
  .section-title.grootte-normaal { font-size: 22px; }
  .section-title.grootte-klein   { font-size: 17px; }
}

/* --- FOTO ALBUMS --- */
.foto-albums-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
.album-tab {
  padding: 8px 20px;
  border: 1.5px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-family: Asap, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.album-tab:hover {
  border-color: #888;
}
.album-tab.active {
  background: #2B4E1E;
  color: #fff;
  border-color: #2B4E1E;
}
.foto-album {
  display: none;
}
.foto-album.active {
  display: block;
}
