/* -------------------
   RESET & ROOT
------------------- */
:root {
  --primary-color: #1C2F4D; /* Diep marineblauw */
  --secondary-color: #5A7B9B; /* Gedempt blauw */
  --accent-color: #9BB0C7; /* Zacht institutioneel blauw */
  --background-light: #F5F5F5;
  --background-dark: #1C2F4D;
  --text-dark: #333333;
  --text-light: #F5F5F5;
  --border-color: #9BB0C7;
  --font-main: 'Lato', 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --spacing-xxxl: 128px;
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------
   GLOBAL STYLES & BRUTALIST RAW AESTHETIC
------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-m);
  color: var(--primary-color);
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: var(--spacing-m);
  max-width: 75ch;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--secondary-color);
  text-decoration-style: solid;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xxl) 0;
}

.section {
  padding: var(--spacing-xxl) 0;
  border-bottom: 2px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  position: relative;
  padding-bottom: var(--spacing-m);
  margin-bottom: var(--spacing-xl);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  padding: var(--spacing-m) var(--spacing-xl);
  border: 3px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
}

.desaturated-img {
  filter: grayscale(1) sepia(0.2) contrast(1.1);
  border: 2px solid var(--border-color);
}

/* -------------------
   HEADER & NAVIGATION
------------------- */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--background-light);
  border-bottom: 3px solid var(--primary-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  height: 100%;
}

.logo {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--primary-color);
  padding: var(--spacing-s) var(--spacing-m);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-l);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  padding: var(--spacing-s) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* -------------------
   HERO SECTION
------------------- */
.hero {
  position: relative;
  height: calc(85vh - var(--header-height));
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--primary-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--spacing-xl);
}

.hero h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 6vw, 4rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* -------------------
   HOME PAGE
------------------- */
.intro-text p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--secondary-color);
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.grid-item {
  border: 2px solid var(--border-color);
  padding: var(--spacing-xl);
  background-color: #fff;
}

.grid-item h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-m);
}

.grid-item ul {
  list-style: none;
  font-family: var(--font-mono);
}

.grid-item ul li::before {
  content: '>';
  margin-right: var(--spacing-s);
  color: var(--secondary-color);
}

.article-links a {
  display: block;
  padding: var(--spacing-m);
  border: 2px solid var(--border-color);
  margin-bottom: var(--spacing-m);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-links a:hover {
  background-color: var(--accent-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* -------------------
   ARTICLE PAGES / ABOUT / LEGAL
------------------- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: var(--spacing-xxl);
}

.article-content ul {
  list-style-position: inside;
  padding-left: var(--spacing-m);
  margin-bottom: var(--spacing-m);
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-l);
  margin: var(--spacing-xl) 0;
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--secondary-color);
}

.related-articles {
  margin-top: var(--spacing-xxxl);
  border-top: 2px solid var(--border-color);
  padding-top: var(--spacing-xl);
}

/* -------------------
   CONTACT PAGE
------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xxl);
}

.contact-info h3 {
  margin-bottom: var(--spacing-l);
}

.contact-info p {
  margin-bottom: var(--spacing-l);
  font-family: var(--font-mono);
}

.contact-info a {
  text-decoration: none;
  border-bottom: 2px dotted var(--primary-color);
}

.contact-form .form-group {
  margin-bottom: var(--spacing-l);
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: var(--spacing-s);
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--spacing-m);
  font-family: var(--font-main);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-disclaimer {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-top: var(--spacing-m);
  font-style: italic;
}

.map-container {
  width: 100%;
  height: 450px;
  border: 3px solid var(--primary-color);
  overflow: hidden;
  margin-top: var(--spacing-xxl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) sepia(0.2) contrast(1.1);
}

/* -------------------
   THANK YOU PAGE
------------------- */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xxxl) var(--spacing-l);
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.thank-you-icon svg {
  width: 50px;
  height: 50px;
  color: var(--primary-color);
}

.thank-you-section h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--spacing-m);
}

.thank-you-section p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}

/* -------------------
   FOOTER
------------------- */
.main-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xxl) 0;
  font-family: var(--font-mono);
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.footer-column h4 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-m);
  text-transform: uppercase;
}

.footer-column p, .footer-column a {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-decoration: none;
  line-height: 1.8;
}

.footer-column a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--spacing-s);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-color);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  text-align: center;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* -------------------
   COOKIE BANNER
------------------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(28, 47, 77, 0.95);
  color: var(--text-light);
  padding: var(--spacing-l);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  font-family: var(--font-mono);
  border-top: 3px solid var(--accent-color);
}

#cookie-banner-text {
  flex-grow: 1;
  max-width: 800px;
  font-size: 0.9rem;
}

#cookie-banner-text a {
  color: var(--accent-color);
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-m);
}

.cookie-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: var(--spacing-s) var(--spacing-l);
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn.accept-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.cookie-btn.accept-btn:hover {
  background-color: #fff;
}

.cookie-btn.decline-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* -------------------
   RESPONSIVE DESIGN
------------------- */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 60%;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--spacing-xxl);
    background-color: var(--background-light);
    border-left: 3px solid var(--primary-color);
    transition: right 0.3s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: var(--spacing-l) 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-xl) 0;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }

  .hero {
    height: calc(70vh - var(--header-height));
  }

  .map-container {
    height: 350px;
    margin-top: var(--spacing-xl);
  }

  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
  }
}