/* Het Zuivere Pad - Main Stylesheet */

:root {
  --color-primary: #2c5f2d;
  /* Donkergroen */
  --color-secondary: #d4af37;
  /* Goud */
  --color-accent: #8b4513;
  /* Bruin */
  --color-light: #f4f4f4;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #ffc107;

  /* --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  --font-primary: 'Bodoni No. 1 SH', serif;
  --transition: all 0.3s ease;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-scrolled: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* --navbar-bg: rgba(31, 147, 33, 0.6); */

  --wm-img: url('/images/het_zuivere_pad_wm.png');
  /* pad naar je logo */
  --wm-opacity: 0.07;
  /* sterkte van de watermark (0.05–0.12) */
  --wm-size: 900px;
  /* grootte van het logo */
  /* --wm-rotate: 15deg; */
  /* lichte draai, lastiger weg te knippen */
  --wm-pos-y: 10%;
  /* verticale positie: 0% top, 50% midden, 100% onder */
  --wm-pos-x: -40%;
}

/* Watermark: alleen zichtbaar op topics pagina's */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  /* full viewport */
  pointer-events: none;
  /* onklikbaar */
  z-index: 0;
  /* achter de content */
  background-image: var(--wm-img);
  background-repeat: no-repeat;
  background-position: var(--wm-pos-x) var(--wm-pos-y);
  background-size: var(--wm-size);
  opacity: var(--wm-opacity);
  transform: rotate(var(--wm-rotate));
}

/* Zorg dat content op topics-pagina boven de watermark ligt */
body>* {
  position: relative;
  z-index: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-light);
}

/* Prevent accidental horizontal scrolling caused by full-bleed bands or minor layout overflows */
html,
body {
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar basis */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100px;
  max-width: 1200px;
  background-color: #7ca865;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 24px;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Scroll effect */
.navbar.scrolled {
  box-shadow: var(--shadow-scrolled);
  padding: 8px 24px;
}

/* Container */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0;
}

/* Logo */
.navbar-brand img {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
  filter: brightness(0.5);
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Nav links */
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-nav a {
  color: black;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition);
  text-decoration: none;
}

.navbar-nav a:hover:not(.btn-donate) {
  background: rgba(255, 255, 255, 0.1);
}

/* Donate button */
.btn-donate {
  background: var(--color-secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}

.btn-donate:hover {
  background: #c19b2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Hamburger button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Hamburger animatie naar kruisje */
.mobile-menu-toggle.is-open .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open .hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Body lock wanneer menu open */
body.menu-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    top: 10px;
    padding: 8px 16px;
    height: 70px;
  }

  .navbar-brand img {
    height: 50px;
  }

  .navbar-nav {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: #7ca865;
    width: 90%;
    max-width: 400px;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    gap: 0.5rem;
  }

  .navbar-nav.is-open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-nav li {
    width: 100%;
    text-align: center;
  }

  .navbar-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
  }

  .btn-donate {
    margin-top: 0.5rem;
    display: block;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card-category {
  display: inline-block;
  background: var(--color-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.card-excerpt {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: #1a4a1b;
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background: #c19b2e;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-error);
}

.toast.warning {
  border-left: 4px solid var(--color-warning);
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 10px;
  margin: 2rem 0;
}

.search-bar input {
  flex: 1;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Make each footer column left-aligned on desktop so H4 and its content line up */
.footer-content>div {
  text-align: left;
}

.footer h4 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.footer a {
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-socials a {
  margin-bottom: 0.5rem;
  /* fallback for older markup */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-socials ul {
  list-style: none;
  padding: 0;
}

/* Modern footer social icons: make them compact and responsive */
.footer-socials .social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.footer-socials .social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.footer-socials .social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-socials .social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .footer-socials {
    text-align: center;
  }

  .footer-socials .social-links {
    justify-content: center;
  }
}

.footer a:hover {
  color: var(--color-secondary);
}

/* Align social icons directly under the H4 and keep them responsive */
.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* start so icons sit under the H4 */
}

.footer-socials h4 {
  margin-bottom: 0.5rem;
}

.footer-socials .social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  /* wrap when not enough space */
}

.footer-socials .social-links li {
  list-style: none;
}

/* Support for FontAwesome <i> icons */
.footer-socials .social-link i {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 480px) {
  .footer-socials .social-link {
    width: 40px;
    height: 40px;
  }

  .footer-socials .social-link i {
    font-size: 16px;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.footer-bottom a {
  text-decoration: none;
}

/* Footer links list with CSS separators instead of raw pipes */
.footer-bottom span {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.footer-bottom a:hover {
  color: var(--color-secondary);
}

.footer-bottom span a {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.footer-bottom span:not(:last-child)::after {
  content: "-";
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.45rem;
  font-size: 0.9rem;
  vertical-align: baseline;
  transform: translateY(-0.12em);
  line-height: 1;
}

.footer-bottom span:last-child a,
.footer-bottom span:last-child a:visited {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom span:last-child a:hover,
.footer-bottom span:last-child a:focus {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive: stack copyright above links on small screens and hide separators */
@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-bottom span {
    gap: 0.5rem;
  }

  .footer-bottom span:not(:last-child)::after {
    display: none;
  }
}

/* About Section */

.page {
  padding-top: 10rem;
}

.about-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.about-hero h1 {
  margin-bottom: 10px;
}

.about-hero p {
  color: #444;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.social-links a {
  background: rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.events-section h2 {
  margin: 40px 0 16px;
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Make event cards stretch to equal heights and body fill available space */
.events-grid {
  align-items: stretch;
}

.events-grid .event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-grid .event-card .event-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.events-grid .event-card .event-body p {
  margin-bottom: 8px;
}

.event-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.event-body {
  padding: 16px;
}

.event-meta {
  color: #666;
  margin: 6px 0 10px;
}

.event-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.event-thumbs img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* Meta styling for events (icons + text) */
.event-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  color: var(--color-secondary);
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.meta-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Partners */
.partners {
  padding: 40px 0;
  background: #fff;
}

.partners .section-title {
  text-align: center;
  margin: 0 0 20px;
  color: #1a532e;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-card {
  /* background: #f7faf8; */
  /* border: 1px solid #e2efe6; */
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.partner-card a {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.partner-logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  display: inline-block;
  filter: grayscale(15%);
  transition: filter .15s ease;
}

.partner-card:hover .partner-logo {
  filter: none;
}

/* Onboarding Guide */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.onboarding-modal h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.onboarding-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.help-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 1000;
}

.help-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}