/* ==========================================================================
   VVWP.nl – stijlen (nagebouwd op basis van het oude Jupiter-thema)
   ========================================================================== */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --skin: #3b86c7;
  --skin-dark: #0c468a;
  --text: #777777;
  --heading: #404040;
  --header-h: 125px;
  --header-sticky-h: 55px;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.66em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--skin); text-decoration: none; transition: color .2s; }
a:hover { color: var(--skin-dark); }

p { font-size: 16px; line-height: 1.66em; margin: 0 0 20px; color: var(--text); }
strong, b { font-weight: 700; }

h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 600; text-transform: uppercase; line-height: 1.3em; margin: 0 0 10px; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }

ul, ol { margin: 0 0 20px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px 15px; }
.skip-link:focus { left: 10px; top: 10px; }

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

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

.site-header { position: relative; z-index: 300; height: var(--header-h); }
.site-header__bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #ededed;
  transition: height .25s ease, box-shadow .25s ease;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 20px; }

.site-logo { display: flex; align-items: center; height: 100%; }
.site-logo img { display: block; width: auto; max-height: 91px; transition: max-height .25s ease; }
.site-logo span { font-size: 24px; font-weight: 700; color: var(--skin-dark); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a {
  display: block;
  padding: 0 20px;
  line-height: calc(var(--header-h) - 6px);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, line-height .25s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: #3c87c7; border-top-color: #3c87c7; }

/* Vaste (sticky) header bij scrollen */
.site-header.is-sticky .site-header__bar {
  position: fixed;
  height: var(--header-sticky-h);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
  animation: header-in .3s ease;
}
.site-header.is-sticky .site-logo img { max-height: 45px; }
.site-header.is-sticky .main-nav a { line-height: calc(var(--header-sticky-h) - 6px); }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; margin: 4px 0; background: #444; border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Secties ---------- */

.section {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section--full { min-height: calc(100vh - var(--header-sticky-h)); display: flex; align-items: center; }
.section__content { position: relative; padding-top: 10px; padding-bottom: 10px; }
.section > .container { padding-left: 15px; padding-right: 15px; }
[id] { scroll-margin-top: var(--header-sticky-h); }

.spacer { height: 32px; }

/* Achtergrondafbeelding met licht parallax-effect */
.section.has-bg-image { background-image: none !important; overflow: hidden; }
.section__bg {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  will-change: transform; pointer-events: none;
}

.rich-text > :last-child { margin-bottom: 0; }
.has-text-color, .has-text-color p, .has-text-color li, .has-text-color h1, .has-text-color h2,
.has-text-color h3, .has-text-color h4, .has-text-color h5, .has-text-color h6 { color: var(--section-text); }
.has-text-color .rich-text a { color: var(--section-text); text-decoration: underline; }

/* Sier-titel met lijnen links en rechts */
.ornamental-title { text-align: center; margin: 0 0 20px; line-height: 1; }
.ornamental-title__text {
  position: relative;
  display: inline-block;
  margin: 0 55px;
  color: var(--ornament);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  text-transform: uppercase;
}
.ornamental-title__text span { position: relative; display: block; padding: 0 35px; color: var(--ornament); }
.ornamental-title__text span::before,
.ornamental-title__text span::after {
  content: ""; position: absolute; top: calc(50% - 1px);
  width: 55px; height: 2px; background: var(--ornament);
}
.ornamental-title__text span::before { left: -55px; }
.ornamental-title__text span::after { right: -55px; }

/* Raster */
.grid { display: flex; flex-wrap: wrap; }
.grid > .col { padding: 0 15px; width: 100%; }
.grid--2 > .col { width: 50%; }
.grid--3 > .col { width: 33.3333%; }
.grid--4 > .col { width: 25%; }

/* ---------- Hero (half afbeelding / half kleur) ---------- */

.section--hero { display: flex; align-items: stretch; padding: 0; background-color: var(--skin-dark); }
.hero__image { width: 50%; background-size: cover; background-position: center center; }
.hero__content { width: 50%; display: flex; align-items: center; padding: 10px 5%; }
.hero__inner { width: 100%; padding: 0 15px; }

/* ---------- Doelstellingen ---------- */

.icon-box {
  position: relative;
  margin: 35px 0 15px;
  padding: 70px 30px 30px;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  text-align: center;
}
.icon-box__icon {
  position: absolute; top: -33px; left: 50%;
  width: 65px; height: 65px; margin-left: -32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--skin);
  fill: #fff; color: #fff;
}
.icon-box__icon svg { width: 32px; height: 32px; }
.icon-box__title { margin: 0 0 20px; color: #222; font-size: 16px; font-weight: 400; line-height: 1.3em; text-transform: uppercase; }
.icon-box__text p { margin: 0; text-align: center; }

/* ---------- Bestuur ---------- */

.team { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.team__member { width: 33.3333%; padding: 0 30px 30px; text-align: center; }
.team__photo { width: 230px; max-width: 100%; margin: 0 auto 25px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; }
.team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.team__name { display: block; color: #333; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.team__position { display: block; color: #777; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.team__desc { margin: 20px 0 10px; }
.team__desc p { margin: 0; text-align: center; }
.team__social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.team__social li { width: 25px; }
.team__social a { display: inline-block; margin: 10px 9px 0 0; fill: #999; }
.team__social a:hover { fill: var(--skin); }
.team__social svg { display: block; width: 16px; height: 16px; margin-top: 3px; }

/* ---------- Lidmaatschap / formulier ---------- */

.member-form { max-width: 100%; }
.member-form__field { margin: 16px 0 0; padding: 0 16px 10px 0; }
.member-form__field:first-of-type { margin-top: 16px; }
.member-form input[type="text"], .member-form input[type="email"], .member-form input[type="tel"] {
  display: block; width: 100%; height: 40px;
  margin: 0 0 4px; padding: 10px;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  color: #767676;
  font: 13px "Open Sans", Arial, sans-serif;
}
.member-form input::placeholder { color: #767676; opacity: 1; }
.member-form input:focus { outline: 2px solid var(--skin); outline-offset: 0; background: #fff; }
.member-form .has-error input { border-color: #c02b0a; }
.member-form__error { display: block; color: #ffd1c7; font-size: 13px; }
.member-form__error-msg { padding: 10px 14px; border: 1px solid #c02b0a; background: #fff3f1; color: #c02b0a !important; font-size: 14px; }
.member-form__footer { margin: 16px 0 0; padding: 16px 0 10px; }
.btn {
  display: inline-block;
  padding: 12px 15px;
  background: var(--skin);
  border: 0;
  border-radius: 2px;
  color: #fff;
  font: 14px/13px Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}
.btn:hover, .btn:focus { background: var(--skin-dark); color: #fff; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Agenda ---------- */

.agenda__item h3 { text-align: center; }
.agenda__item .rich-text > :last-child { margin-bottom: 20px; }
.agenda__item p { text-align: center; }

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

.site-footer { background: #43474d; }
.site-footer__copy { padding: 25px 0 20px 20px; color: #8c8e91; opacity: .8; font-size: 11px; line-height: 16px; letter-spacing: 1px; }

.go-top {
  position: fixed; right: 15px; bottom: 15px; z-index: 200;
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .2);
  fill: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s;
}
.go-top.is-visible { opacity: 1; visibility: visible; }
.go-top:hover { background: rgba(0, 0, 0, .35); }

/* ---------- Responsief ---------- */

@media (max-width: 1140px) {
  :root { --header-h: 90px; }
  .site-header__inner { padding: 0 20px; }
  .site-logo img { max-height: 75px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #ededed;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { display: block; }
  .main-nav a, .site-header.is-sticky .main-nav a {
    line-height: 1.4; padding: 15px 20px;
    border: 0; border-bottom: 1px solid #ededed;
    color: #444;
  }
  .main-nav a.is-active, .main-nav a:hover { color: #3c87c7; }
}

@media (max-width: 960px) {
  .grid--4 > .col { width: 50%; }
  .team__member { width: 50%; }
}

@media (max-width: 767px) {
  .section--full { min-height: 0; display: block; }
  .section > .container.section__content { padding: 25px 35px 60px; }
  .section--hero { display: block; }
  .hero__image { width: 100%; height: 500px; }
  .hero__content { width: 100%; display: block; padding: 70px 0 70px; }
  .grid > .col, .grid--2 > .col, .grid--3 > .col, .grid--4 > .col { width: 100%; }
  .team__member { width: 100%; padding: 0 15px 90px; }
  .team__member:last-child { padding-bottom: 20px; }
  .team__photo { width: 130px; margin-top: 40px; }
  .member-form__field { padding-right: 0; }
  .section--membership .grid > .col + .col { margin-top: 24px; }
  .member-form input[type="text"], .member-form input[type="email"], .member-form input[type="tel"] { height: 47px; }
  .member-form .btn { width: 100%; }
  .ornamental-title__text { margin: 0; }
  .ornamental-title__text span { padding: 0; }
  .ornamental-title__text span::before, .ornamental-title__text span::after { display: none; }
  .spacer { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
