/* ==========================================================================
   Meneer De Cock — main.css
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Chord Brights";
  src: url("../fonts/ChordBrightsDEMO.woff2") format("woff2"),
       url("../fonts/ChordBrightsDEMO.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Palette & tokens ---------- */
:root {
  --c-red: #772216;
  --c-red-deep: #852012;
  --c-ink: #252525;
  --c-white: #ffffff;
  --c-sand: #edce9b;
  --c-cream: #fbf3e3;
  --c-link-warm: #f4683f;
  --c-vvv-blue: #62aad1;
  --c-vvv-band: #5ea8d0;
  --c-vvv-navy: #223260;
  --c-footer-blue: #398ab6;

  --f-display: "Chord Brights", Georgia, serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-vvv: "Poppins", system-ui, sans-serif;

  --container: 1500px;
  --gutter: 16px;
  --header-h: 120px;

  --tex-beige: url("../images/blok1Bg.webp");
  --tex-header: url("../images/navigatieBg.webp");
  --tex-red: url("../images/bgIntroblokje.webp");
  --tex-vvv: url("../images/vvvBg.webp");
  --ornament: url("../images/shape1.svg");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--c-red);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 500; line-height: 1.05; }
p { margin: 0 0 1em; }
.text > :last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
[id] { scroll-margin-top: 90px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--c-white); color: var(--c-ink); padding: 8px 16px; border-radius: 4px;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--c-footer-blue); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tex-header) center / cover no-repeat, #e4dccb;
  box-shadow: 0 0 33px 0 rgb(0 0 0 / 45%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 40px);
  max-width: 1900px;
  margin-inline: auto;
  padding: 20px var(--gutter);
  min-height: var(--header-h);
  transition: min-height .3s ease, padding .3s ease;
}
.main-nav {
  display: flex;
  flex: 1 1 0;
  gap: clamp(16px, 3vw, 70px);
}
.main-nav--left { justify-content: flex-end; }
.main-nav--right { justify-content: flex-start; }
.main-nav a,
.mobile-nav a {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.1vw, 35px);
  line-height: 1;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-logo { flex: 0 0 auto; display: block; }
.site-logo img {
  width: clamp(200px, 20vw, 293px);
  transition: width .3s ease;
}
.site-header.is-scrolled .site-header__inner { min-height: 70px; padding-block: 8px; }
.site-header.is-scrolled .site-logo img { width: 120px; }
.site-header.is-scrolled .main-nav a { font-size: clamp(22px, 1.8vw, 30px); }

/* VVV badge (top right) */
.vvv-badge {
  position: fixed;
  top: 0;
  right: -2px;
  z-index: 110;
  display: block;
}
.vvv-badge__large { width: 100px; transition: opacity .3s ease; }
.vvv-badge__small {
  position: absolute; top: 0; right: 2px;
  width: 92px; height: auto;
  opacity: 0; pointer-events: none;
  background: var(--c-vvv-blue);
  padding: 6px 8px;
  border-bottom-left-radius: 6px;
  transition: opacity .3s ease;
}
.site-header.is-scrolled .vvv-badge__large { opacity: 0; }
.site-header.is-scrolled .vvv-badge__small { opacity: 1; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
  color: var(--c-red);
}
.nav-toggle svg { fill: currentColor; display: block; }
.mobile-nav {
  background: var(--c-red);
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { color: var(--c-white); font-size: 28px; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header__inner { justify-content: space-between; min-height: 80px; padding-block: 10px; padding-right: 110px; }
  .site-logo img { width: 170px; }
  .site-header.is-scrolled .site-logo img { width: 130px; }
  .vvv-badge__large { width: 72px; }
}

/* ---------- Ornament button ---------- */
.btn-ornament {
  display: inline-block;
  margin-top: 40px;
  padding: 6px clamp(40px, 6vw, 80px) 8px;
  background-color: var(--c-sand);
  color: var(--c-ink);
  border: 2px solid var(--c-red-deep);
  border-radius: 60px;
  /* white ring + offset black shadow that follows the ring's rounded shape
     (an outline doesn't round with the border-radius in every browser and the shadow sat under it) */
  box-shadow: 0 0 0 5px var(--c-white), -3px 3px 0 5px rgb(0 0 0 / 85%);
  font-family: var(--f-display);
  font-size: clamp(26px, 2.4vw, 35px);
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color .4s ease;
}
.btn-ornament::before {
  content: "";
  display: block;
  width: 220px;
  max-width: 100%;
  height: 45px;
  margin: 0 auto -6px;
  background: var(--ornament) center / contain no-repeat;
}
.btn-ornament:hover,
.btn-ornament:focus-visible { background-color: var(--c-cream); }

/* ---------- Intro + info (red zone) ---------- */
.red-zone {
  /* silhouette sized by width (not cover), so it never gets clipped at a section edge;
     the image's own bottom is flat red and blends into the background colour */
  background: var(--tex-red) left top / max(100%, 1437px) auto no-repeat, var(--c-red);
  padding-bottom: 1px;
}
.intro {
  position: relative;
  color: var(--c-white);
  text-align: center;
  min-height: 620px;
  padding: 150px 0 80px;
}
.intro::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 80vw);
  height: 80px;
  background: var(--ornament) center top / 100% auto no-repeat;
  pointer-events: none;
}
.intro__inner { max-width: calc(980px + 2 * var(--gutter)); }
.intro__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 70px);
  color: var(--c-white);
  margin-bottom: .5em;
}
.intro__text { font-size: 17px; }

.info { padding-bottom: 0; }
.info__box {
  position: relative;
  z-index: 2;
  margin-bottom: -120px; /* hang over the top of the dorpsfoto, mirroring the VVV overlap */
  padding-inline: 0;
  background: var(--tex-beige) center / cover, #e8dccb;
}
.info__row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  align-items: stretch;
}
.info__row--reverse { grid-template-columns: 8fr 4fr; }
.info__row--reverse .info__media { order: 2; }
.info__media { position: relative; min-height: 360px; }
.info__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.info__body { padding: clamp(32px, 5vw, 70px) clamp(24px, 4vw, 70px); align-self: center; }
.info__title {
  font-family: var(--f-display);
  font-size: clamp(44px, 5vw, 70px);
  color: var(--c-ink);
}
.info__title--xl { font-size: clamp(52px, 6.5vw, 107px); }
.info__cta { margin-top: 1em; }

/* ---------- Dorpsfoto (parallax) ---------- */
.dorpsfoto {
  min-height: clamp(320px, 55vw, 900px);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}
@media (hover: none), (max-width: 900px) {
  .dorpsfoto { background-attachment: scroll; }
}
.dorpsfoto__inner { text-align: center; }
.dorpsfoto__title { font-family: var(--f-display); font-size: clamp(44px, 6vw, 80px); color: var(--c-white); }
.dorpsfoto__text { font-family: var(--f-display); font-size: clamp(28px, 3.5vw, 50px); color: var(--c-sand); }

/* ---------- VVV ---------- */
.vvv {
  background: var(--tex-vvv) center / cover, #e5ddc9;
  padding-bottom: 0;
  display: flow-root; /* stop .vvv__box's negative margin collapsing through, so the box overlaps the photo */
}
.vvv__box {
  padding-inline: 0;
  margin-top: -150px;
  position: relative;
  background: var(--c-white);
}
.vvv__band {
  background: url("../images/vvvBand.webp") right center / cover no-repeat, var(--c-vvv-band);
  padding: clamp(40px, 6vw, 90px) clamp(24px, 4vw, 50px) clamp(30px, 4vw, 60px);
}
.vvv__heading {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 50px);
  color: var(--c-white);
  margin: 0;
}
.vvv__body { padding: clamp(28px, 3.5vw, 50px) clamp(24px, 4vw, 50px) clamp(30px, 4vw, 50px); }
.vvv__intro {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}
.vvv__subheading {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 40px);
  color: var(--c-vvv-blue);
  margin-bottom: .5em;
}
.vvv .text, .card__text { font-family: var(--f-vvv); font-size: 16px; color: var(--c-vvv-navy); }
.vvv__intro-media img { margin-inline: auto; }

.vvv__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: clamp(28px, 3vw, 40px);
}
.card {
  display: grid;
  grid-template-columns: 30% 1fr;
  background: var(--c-white);
  border-radius: 20px;
  box-shadow: 0 0 12px 0 rgb(0 0 0 / 25%);
  overflow: hidden;
  min-height: 220px;
}
.card__media { position: relative; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 30px 20px; }
.card__title { font-family: var(--f-body); font-weight: 500; font-size: 20px; line-height: 1.4; color: var(--c-vvv-navy); margin-bottom: .8em; }
.card__text p { margin: 0; }

/* ---------- Feesten en partijen ---------- */
.feesten {
  background: var(--tex-vvv) center / cover, #e5ddc9;
  padding-top: 60px;
  position: relative;
  z-index: 1;
}
.feesten__box {
  padding-inline: 0;
  display: grid;
  grid-template-columns: 8fr 4fr;
  background: var(--c-red);
  color: var(--c-white);
  margin-bottom: -150px;
}
.feesten__body { padding: clamp(32px, 4vw, 50px) clamp(24px, 7vw, 100px); align-self: center; }
.feesten__title { font-family: var(--f-display); font-size: clamp(38px, 4vw, 50px); color: var(--c-white); margin-bottom: 20px; }
.feesten a { color: var(--c-link-warm); }
.feesten a:hover { color: var(--c-sand); }
.feesten__media { position: relative; min-height: clamp(320px, 40vw, 600px); }
.feesten__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fotorij (filmstrip) ---------- */
/* Proportions follow the original strip image: photo 241px tall, holes 31px, 58px band above/below.
   Static: the reel (photos + sprocket holes) is centred and cut off at the screen edges. */
.fotorij {
  background: var(--c-red);
  padding: 150px 0 60px;
  overflow: hidden;
}
.filmstrip {
  --ph: clamp(150px, 17vw, 300px);                    /* photo height */
  --u: calc(var(--ph) / 241);                         /* 1 original pixel */
  --gap: calc(18 * var(--u));
  --pitch: calc(var(--ph) * 334 / 237 + var(--gap));  /* one photo + gap */
  background: #280e0a;
  overflow: hidden;
}
.filmstrip__reel {
  position: relative;
  width: max-content;
  padding: calc(58 * var(--u)) 0;
  left: 50%;
  transform: translateX(-50%);
}
.filmstrip__reel::before,
.filmstrip__reel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: calc(31 * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='31' viewBox='0 0 56 31' preserveAspectRatio='none'%3E%3Crect x='10' width='36' height='31' rx='6' fill='%23772216'/%3E%3C/svg%3E") left center / calc(var(--pitch) / 6) 100% repeat-x;
}
.filmstrip__reel::before { top: calc(14 * var(--u)); }
.filmstrip__reel::after { bottom: calc(14 * var(--u)); }
.filmstrip__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.filmstrip__item {
  flex: 0 0 auto;
  width: calc(var(--ph) * 334 / 237);
  height: var(--ph);
  margin-right: var(--gap);
  border-radius: calc(12 * var(--u));
  overflow: hidden;
  background: #1c0907;
  transition: transform .35s ease, box-shadow .35s ease;
}
.filmstrip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.35) brightness(.88);
  transition: transform .5s ease, filter .35s ease;
}
@media (hover: hover) {
  .filmstrip__item:hover {
    transform: translateY(calc(-6 * var(--u)));
    box-shadow: 0 0 0 3px var(--c-sand), 0 10px 24px rgb(0 0 0 / 45%);
  }
  .filmstrip__item:hover img {
    transform: scale(1.08);
    filter: sepia(0) brightness(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .filmstrip__item, .filmstrip__item img { transition: none; }
  .filmstrip__item:hover, .filmstrip__item:hover img { transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tex-beige) center / cover, #e8dccb;
  border-top: 10px solid var(--c-footer-blue);
  padding: 50px 0 0;
  font-size: 16px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.site-footer__logo { width: 293px; max-width: 100%; margin-bottom: 30px; }
.site-footer__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.site-footer__details { font-weight: 700; }
.site-footer__details p { margin: 0 0 .6em; }
.site-footer__address { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__pin { flex: 0 0 auto; fill: var(--c-red); margin-top: 3px; }
.site-footer a { color: #000; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__vvv img { margin: -60px auto 0; width: 169px; }
.site-footer__map img { margin-left: auto; width: 100%; max-width: 420px; }
/* Footer bottom row: copyright · Webjongens credit · cookies */
.site-footer__credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.25rem;
  margin-top: 30px;
  padding: 14px var(--gutter);
  background: rgb(255 255 255 / 40%);
  font-size: 14px;
}
.site-footer__credits p { margin: 0; }
.site-footer__cookies {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--c-ink);
  cursor: pointer;
  text-decoration: none;
}
.site-footer__cookies:hover { color: var(--c-red); }

/* Webjongens credit with typewriter (light footer) */
.credit { --credit-heart: var(--c-red); /* #772216 */
  display: inline-flex; align-items: center; gap: .4rem; margin: 0; white-space: nowrap; }
.site-footer .credit__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--c-ink); text-decoration: none; letter-spacing: .02em; }
.credit__link strong { font-weight: 700; }
.site-footer .credit__link:hover { text-decoration: none; }
.credit__link:hover span { text-decoration: underline; text-underline-offset: .2em; }
.credit__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.credit__heart { width: 1.1rem; height: 1.1rem; fill: var(--credit-heart); transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
.credit__link:hover .credit__heart { transform: scale(1.2); }
.credit__typed { display: inline-flex; align-items: center; gap: .4rem; min-width: 6.5em; color: rgb(37 37 37 / 65%); }
.credit__cursor { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; background: currentColor; animation: credit-blink 1s step-end infinite; }
@keyframes credit-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .credit__cursor { animation: none; } .credit__heart { transition: none; } }

/* ---------- Default / error page ---------- */
.page-default { background: var(--tex-red) center top / cover, var(--c-red); padding: 120px 0; }
.page-default__box { background: var(--tex-beige) center / cover, #e8dccb; padding: 50px clamp(24px, 4vw, 70px); max-width: 900px; }
.page-default__title { font-family: var(--f-display); font-size: clamp(40px, 5vw, 70px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro { padding: 110px 0 80px; min-height: 0; }
  .red-zone { background-position: 15% top; }
  .info__row,
  .info__row--reverse,
  .vvv__intro,
  .feesten__box { grid-template-columns: minmax(0, 1fr); }
  .info__row--reverse .info__media { order: 0; }
  .info__media { min-height: 0; aspect-ratio: 4 / 3; }
  .feesten__media { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .vvv__box { margin-top: -80px; }
  .info__box { margin-bottom: -60px; }
  .vvv__intro-media img { max-width: min(360px, 100%); }
  .vvv__cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feesten__box { margin-bottom: -80px; }
  .fotorij { padding-top: 90px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 30px; }
  .site-footer__logo { margin-inline: auto; }
  .site-footer__details { text-align: left; max-width: 420px; margin-inline: auto; }
  .site-footer__vvv img { margin-top: 0; width: 130px; }
  .site-footer__map img { margin-inline: auto; }
}
@media (max-width: 520px) {
  .card { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 16 / 10; }
  .site-footer__details { grid-template-columns: 1fr; text-align: center; }
  .site-footer__address { justify-content: center; }
  .site-footer__address > div { text-align: center; }
  .site-footer__credits { flex-direction: column; gap: .45rem; }
  .btn-ornament { display: block; }
}
