/* WARO-Waregem – gedeelde stijl voor alle pagina's
   Kleuren en lettertypes overgenomen van de oude WordPress-site (Astra-thema). */

@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --rood: #fa2020;          /* hoofdkleur: knoppen en links */
  --rood-hover: #d91c1c;
  --rood-donker: #da1c4b;   /* actief menu-item op gsm */
  --titel: #191919;         /* titels en footer */
  --tekst: #404040;         /* lopende tekst */
  --licht: #f5f5f5;
  --lijn: #ececec;
  --wit: #ffffff;
  --max: 1200px;
}

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

body {
  margin: 0;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tekst);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rood); text-decoration: none; }
a:hover, a:focus { color: var(--rood-hover); }

p { margin: 0 0 1.75em; }

h1, h2, h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: var(--titel);
  margin: 0 0 20px;
}
h1 { font-size: 4rem; line-height: 1.4; }
h2 { font-size: 2.125rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.3; }

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

/* korte lijn onder titels */
.divider {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--rood);
  margin: 0 0 30px;
}

/* ---------- Knop ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rood);
  color: var(--wit);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1;
  text-transform: uppercase;
  padding: 17px 40px;
  border-radius: 30px;
}
.button::before {   /* pijltje zoals op de oude site */
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.button:hover, .button:focus { background: var(--rood-hover); color: var(--wit); }

/* ---------- Header (transparant boven de grote foto) ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo img { width: 120px; }

.header-menu { display: flex; align-items: center; gap: 20px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a { display: block; padding: 0 1em; line-height: 80px; color: var(--wit); }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--licht); text-decoration: underline; text-underline-offset: 6px; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { display: flex; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social-header a { color: var(--wit); }
.social-header a:hover, .social-header a:focus { color: var(--rood); }

/* gsm-menu zonder JavaScript (verborgen checkbox) */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button {
  display: none;
  cursor: pointer;
  padding: 9px 8px;
  background: var(--rood);
  border-radius: 2px;
}
.menu-button span { display: block; width: 20px; height: 2px; margin: 4px 0; background: var(--wit); }
.menu-toggle:focus-visible + .menu-button { outline: 2px dotted var(--wit); outline-offset: 2px; }

@media (max-width: 921px) {
  .header-inner { flex-wrap: wrap; }
  .menu-button { display: block; }
  .header-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--wit);
    margin: 0 -20px;
    width: calc(100% + 40px);
  }
  .menu-toggle:checked ~ .header-menu { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a {
    line-height: 3;
    padding: 0 20px;
    color: var(--tekst);
    border-bottom: 1px solid #ddd;
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] { color: var(--rood-donker); text-decoration: none; }
  .social-header { padding: 15px 20px; }
  .social-header a { color: var(--tekst); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--titel);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.hero-text { position: relative; width: 100%; padding-top: 100px; padding-bottom: 60px; }
.hero h1, .hero h3 { color: var(--wit); margin: 0; }
.hero .divider { margin: 15px 0; }

/* ---------- Citaat ---------- */

.quote { background: var(--licht); padding: 60px 0; text-align: center; }
.quote-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: .8;
  height: 60px;
  color: var(--rood);
}
.quote blockquote { margin: 0 auto; max-width: 800px; }
.quote blockquote p { font-size: 1.3em; font-style: italic; margin: 0 0 .8em; color: var(--titel); }
.quote blockquote footer { font-weight: 700; }

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

.block { padding: 80px 0; }
.block-grey { background: var(--licht); }
.block-dark { background: var(--titel); color: var(--wit); }
.block-dark h2 { color: var(--wit); }

/* Kalender op de Home-pagina */
.kalender { padding: 60px 0; text-align: center; }
.kalender .divider { margin-left: auto; margin-right: auto; }
.kalender p { margin-bottom: 1.2em; }

/* Galerij: ruimte tussen de blokken per fotograaf */
.galerij h2 { margin-top: 60px; }
.galerij h2:first-of-type { margin-top: 30px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

figure { margin: 0; }
.credit { font-size: .8rem; color: #777; margin-top: .8em; text-align: center; }

.events {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

/* ---------- Fotoraster en lightbox ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.photo-grid.square img { aspect-ratio: 1; }
.photo-grid figure { position: relative; overflow: hidden; }
.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .3s ease;
}
.photo-grid a:hover img,
.photo-grid a:focus-visible img { transform: scale(1.04); }
.photo-grid a { display: block; cursor: zoom-in; }
.photo-grid figcaption {   /* naam van de fotograaf onderaan over de foto */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 8px;
  font-size: .75rem;
  color: var(--wit);
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
}

/* groepsfoto op de Home-pagina: nooit bijsnijden, zodat niemand wegvalt */
.groepsfoto a { display: block; cursor: zoom-in; }
.groepsfoto img { width: 100%; height: auto; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }

.center-text { text-align: center; margin: 40px 0 0; }

/* titel van de foto alleen in de Galerij tonen; in kleine tegels enkel de fotograaf (de lightbox toont alles) */
.photo-grid .titel { display: none; }
.galerij .photo-grid .titel { display: inline; }
.photo-grid figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* foto's tussen lange teksten */
.content .photo-grid { margin: 10px 0 2.5em; }

.lightbox-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
}
.lightbox-dialog::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox-dialog img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.lightbox-dialog figcaption { color: #ddd; text-align: center; font-size: .9rem; padding: 10px 50px 0; }
.lightbox-dialog button {
  position: fixed;
  border: 0;
  background: rgba(0, 0, 0, .4);
  color: var(--wit);
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  cursor: pointer;
  border-radius: 50%;
}
.lightbox-dialog button:hover,
.lightbox-dialog button:focus-visible { background: var(--rood); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-dialog.single .lb-prev,
.lightbox-dialog.single .lb-next { display: none; }

@media (prefers-reduced-motion: reduce) {
  .photo-grid img { transition: none; }
}

/* ---------- Knop 'naar boven' (zonder JavaScript) ---------- */

html { scroll-behavior: smooth; }

.naar-boven {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rood);
  color: var(--wit);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.naar-boven:hover, .naar-boven:focus { background: var(--rood-hover); color: var(--wit); }
.naar-boven:focus-visible { outline: 2px dotted var(--titel); outline-offset: 3px; }
.naar-boven svg { width: 24px; height: 24px; fill: currentColor; }

/* In browsers die het kunnen, verschijnt de knop pas na 300 px scrollen. */
@supports (animation-timeline: scroll()) {
  .naar-boven {
    animation: naar-boven-verschijn linear both;
    animation-timeline: scroll();
    animation-range: 0 300px;
  }
  @keyframes naar-boven-verschijn {
    from { opacity: 0; visibility: hidden; }
    to   { opacity: 1; visibility: visible; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 544px) {
  .naar-boven { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

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

.site-footer {
  background: var(--titel);
  color: var(--wit);
  text-align: center;
  padding: 40px 0;
}
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--wit); }
.site-footer a:hover { color: var(--rood); }
.social-footer { justify-content: center; margin: 10px 0 20px; gap: 18px; }
.social-footer svg { width: 22px; height: 22px; }
.footer-links { font-size: .9rem; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.copyright { font-size: .9rem; }

/* ---------- Tablet en gsm ---------- */

@media (max-width: 921px) {
  html { font-size: 91.2%; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .hero { min-height: 480px; }
  .block { padding: 50px 0; }
  .split, .events { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 544px) {
  html { font-size: 100%; }
  body { font-size: .9375rem; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .logo img { width: 100px; }
  .hero { min-height: 380px; }
  .site-footer { font-size: .875rem; }
}

/* ---------- Subpagina's ---------- */

.page-hero { min-height: 380px; }
.page-hero .hero-text { padding-top: 120px; }
.hero-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2px 10px;
  font-size: .8rem;
  color: #eee;
  background: rgba(0, 0, 0, .55);
}

.content { max-width: 820px; }
.content h2 { margin-top: 1.6em; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.4em; }
.content ul { margin: 0 0 1.75em; padding-left: 1.4em; }
.content li { margin-bottom: .5em; }
.content .signature { font-weight: 700; color: var(--titel); }

.highlight {
  background: var(--licht);
  border-left: 4px solid var(--rood);
  padding: 20px 24px;
  margin: 0 0 1.75em;
}
.highlight p:last-child { margin-bottom: 0; }

.breedbeeld { width: 200px; margin: 0 0 1.75em; }

/* Contact: foto's links, gegevens rechts */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact h2 { margin-bottom: 40px; }


.contact-info h3 { font-size: 1.25rem; margin: 0 0 4px; }
.contact-info p { margin: 0 0 22px; }

.social-round { gap: 14px; margin-top: 12px; }
.social-round a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--rood);
  color: var(--wit);
}
.social-round a:hover { background: var(--rood-hover); color: var(--wit); }
.social-round svg { width: 20px; height: 20px; }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
}
.partner-logos img { height: 110px; width: auto; }

@media (max-width: 921px) {
  .page-hero { min-height: 300px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact h2 { margin-bottom: 24px; }
  .contact-info { order: -1; }   /* op gsm eerst de gegevens, dan de foto's */
  .partner-logos { margin-top: 50px; }
  .partner-logos img { height: 80px; }
}
@media (max-width: 544px) {
  .page-hero { min-height: 240px; }
  .page-hero .hero-text { padding-top: 100px; padding-bottom: 40px; }
  .photo-grid, .photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .partner-logos { gap: 24px; }
  .partner-logos img { height: 60px; }
}
@media (max-width: 544px) {
  .content .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .content .photo-grid figcaption { font-size: .6rem; padding: 1px 4px; }
}
