:root {
  --primary: #1E2054;
  --primary-2: #2A2D7A;
  --bg: #F5F7FF;
  --text: #111827;
  --muted: #6B7280;
  --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  scroll-behavior: smooth;
  background: #fff;
  line-height: 1.7;
}

/* NAV (standaard) */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  z-index: 1000;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
}

nav a {
  text-decoration: none;
  transition: .2s;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  /* nodig voor mobile dropdown positioning */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand a {
  display: inline-flex;
  align-items: center;
}

.brand img{
  height: 60px;   /* desktop */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 32, 84, .08);
  color: var(--primary);
  border: 1px solid rgba(30, 32, 84, .15);
  font-weight: 700;
  letter-spacing: .2px;
}

.badge:hover {
  background: rgba(30, 32, 84, .12);
}

/* HERO (home) */
.page-home header {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(30, 32, 84, .14), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(42, 45, 122, .12), transparent 55%),
    linear-gradient(to bottom, var(--bg), #fff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 110px 20px 60px;
}

.page-home .hero-wrap {
  max-width: 900px;
}

.page-home header h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 12px;
  opacity: 0;
  animation: fadeSlide .9s forwards;
  letter-spacing: -0.5px;
}

.page-home header p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
}

.page-home .hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

.btn {
  background: var(--primary);
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  transition: .2s;
  box-shadow: 0 12px 24px rgba(30, 32, 84, .18);
}

.btn:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(30, 32, 84, .25);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(30, 32, 84, .06);
}

.page-home .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SECTIONS (home) */
section {
  padding: 86px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: -.3px;
}

.sub {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 24, 39, .06);

  /* standaard zichtbaar */
  opacity: 1;
  transform: none;

  text-align: center;
  display: flex;
  flex-direction: column;
}

/* reveal animatie alleen wanneer je expliciet .reveal gebruikt */
.card.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: .6s;
}

.card.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pill {
  display: inline-block;
  margin-top: auto;
  font-weight: 800;
  color: var(--primary);
  font-size: .95rem;
}

.card-full {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}

.about {
  background: linear-gradient(to bottom,
      rgba(30, 32, 84, .06),
      rgba(30, 32, 84, .02));
  border-top: 1px solid rgba(17, 24, 39, .05);
  border-bottom: 1px solid rgba(17, 24, 39, .05);
}

/* FORM (home + contact) */
.form-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  padding: 26px;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 24, 39, .06);
}

form label {
  display: block;
  font-weight: 800;
  margin: 0 0 8px;
}

/* kleine toelichting onder label (bijv. "Meerdere bestanden mogelijk") */
.label-sub {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: underline;
  margin-top: 2px;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, .15);
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  outline: none;
}

form input:focus,
form textarea:focus {
  border-color: rgba(30, 32, 84, .55);
  box-shadow: 0 0 0 4px rgba(30, 32, 84, .12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 12px;
  line-height: 1.6;
}

.status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
  font-weight: 700;
}

.status.ok {
  background: rgba(16, 185, 129, .12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, .25);
}

.status.err {
  background: rgba(239, 68, 68, .10);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, .22);
}

/* =========================
   CONTACT PAGE OVERRIDES
   ========================= */
.page-contact header {
  text-align: center;
}

.page-contact header h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.page-contact header .sub {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.page-contact header {
  min-height: auto;
  padding: 110px 20px 34px;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(30, 32, 84, .14), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(42, 45, 122, .12), transparent 55%),
    linear-gradient(to bottom, var(--bg), #fff);
}

.page-contact main {
  padding: 36px 20px 80px;
}

.page-contact .wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact .grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: start;
}

.page-contact .card {
  text-align: left;
  padding: 22px;
}

.page-contact h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: var(--primary);
  text-align: left;
  /* override home h2 */
}

.page-contact .info {
  display: grid;
  gap: 10px;
}

.page-contact .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.page-contact .k {
  min-width: 120px;
  color: var(--muted);
  font-weight: 800;
}

.page-contact .v a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
}

.page-contact .v a:hover {
  text-decoration: underline;
}

.page-contact .cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-contact .map {
  width: 100%;
  height: 460px;
  /* groter zoals je vroeg */
  border: 0;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .page-contact .grid {
    grid-template-columns: 1fr;
  }

  .page-contact .map {
    height: 340px;
  }
}

/* FOOTER (standaard) */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 40px;
  padding: 28px 20px 18px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.footer-left {
  justify-self: start;
  font-weight: 400;
  opacity: .9;
}

.footer-right {
  justify-self: end;
  display: flex;
  gap: 16px;
}

.footer-icon {
  color: #fff;
  opacity: .9;
  transition: .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.footer-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-legal {
  margin-top: 12px;
  text-align: center;
  font-size: .85rem;
  opacity: .85;
}

.footer-legal a {
  color: #fff;
  text-decoration: underline;
}

.footer-legal a:hover {
  opacity: 1;
}

.footer-copy {
  margin-top: 14px;
  font-size: .9rem;
  opacity: .9;
  text-align: center;
}

/* MOBILE */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-self: center;
  }

  /* logo zoom op mobile */
  .brand img {
    height: 75px;
    width: auto;
    transform: scale(1.55) translateY(6px);
    display: block;
    background: transparent;
  }
}

/* =========================
   PROJECTEN PAGE OVERRIDES
   ========================= */
.page-projecten header {
  text-align: center;
}

.page-projecten header h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.page-projecten header .sub {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.badge.is-active {
  background: rgba(30, 32, 84, .14);
  border-color: rgba(30, 32, 84, .25);
}

/* Header (projecten): portfolio-gevoel maar consistent */
.page-projecten header {
  min-height: auto;
  padding: 110px 20px 34px;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(30, 32, 84, .14), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(42, 45, 122, .12), transparent 55%),
    linear-gradient(to bottom, var(--bg), #fff);
}

.page-projecten main {
  padding: 36px 20px 80px;
}

.page-projecten .wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filter pills */
.page-projecten .filters {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-projecten .filter-pill {
  appearance: none;
  border: 1px solid rgba(30, 32, 84, .15);
  background: rgba(30, 32, 84, .06);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}

.page-projecten .filter-pill:hover {
  background: rgba(30, 32, 84, .10);
  transform: translateY(-1px);
}

.page-projecten .filter-pill.is-active {
  background: rgba(30, 32, 84, .14);
  border-color: rgba(30, 32, 84, .25);
}

/* Project grid */
.page-projecten .projects-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card (portfolio look) */
.page-projecten .project-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 39, .06);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: .2s;
}

.page-projecten .project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17, 24, 39, .10);
}

/* Media (placeholder) */
.page-projecten .project-media {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-projecten .project-media.is-placeholder {
  background: radial-gradient(700px 240px at 30% 0%, rgba(30, 32, 84, .10), transparent 60%),
    linear-gradient(to bottom, rgba(17, 24, 39, .02), rgba(17, 24, 39, .00));
}

.page-projecten .project-soon {
  font-weight: 900;
  color: rgba(30, 32, 84, .75);
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(30, 32, 84, .14);
  padding: 10px 12px;
  border-radius: 999px;
}

/* Body */
.page-projecten .project-body {
  padding: 16px 16px 18px;
}

.page-projecten .project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-projecten .project-title {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -.2px;
}

.page-projecten .project-tag {
  font-size: .82rem;
  font-weight: 900;
  color: var(--primary);
  background: rgba(30, 32, 84, .08);
  border: 1px solid rgba(30, 32, 84, .15);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-projecten .project-desc {
  margin: 10px 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.page-projecten .project-meta {
  display: grid;
  gap: 6px;
  color: rgba(17, 24, 39, .72);
  font-weight: 700;
  font-size: .92rem;
}

.page-projecten .project-actions {
  margin-top: 14px;
}

/* Disabled button look */
.page-projecten .btn.is-disabled {
  opacity: .55;
  pointer-events: none;
}

/* CTA onderaan */
.page-projecten .projects-cta {
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 39, .06);
  background: linear-gradient(to bottom, rgba(30, 32, 84, .04), rgba(30, 32, 84, .015));
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .page-projecten .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .page-projecten .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   STAGGER REVEAL (cards)
   ========================= */
.cards .card.reveal {
  transition-delay: 0ms;
}

.cards .card.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.cards .card.reveal:nth-child(3) {
  transition-delay: 160ms;
}

.cards .card.reveal:nth-child(4) {
  transition-delay: 240ms;
}

.cards .card.reveal:nth-child(5) {
  transition-delay: 320ms;
}

.cards .card.reveal:nth-child(6) {
  transition-delay: 400ms;
}

/* =========================
   HERO WATERMARK (IMAGE)
   ========================= */

header {
  position: relative;
  overflow: hidden;
}

/* de watermark div die jij in <header> zet */
header .section-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background: url("boon-watermark.png") no-repeat center 28%;
  background-size: min(520px, 70vw);
  opacity: .08;
  /* test: zet tijdelijk .25 */
}

/* alle content in de header boven de watermark */
header>*:not(.section-watermark) {
  position: relative;
  z-index: 1;
}

/* =========================
   SECTION WATERMARK (IMAGE)
   ========================= */

section.section-watermark {
  position: relative;
  overflow: hidden;
}

section.section-watermark::before {
  content: "";
  position: absolute;
  inset: -120px -80px;
  pointer-events: none;
  z-index: 0;

  background: url("boon-watermark.png") no-repeat center;
  background-size: clamp(360px, 45vw, 720px);
  opacity: .055;
  /* subtiel */
  filter: grayscale(100%);
}

/* content boven watermark */
section.section-watermark>* {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  section.section-watermark::before {
    display: none;
  }
}

.label-sub {
  font-size: .75rem;
  font-weight: 500;
  opacity: .7;
  text-decoration: underline;
  margin-left: 4px;
}

input[type="file"] {
  font-size: .9rem;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(17, 24, 39, .25);
  background: rgba(17, 24, 39, .02);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: rgba(30, 32, 84, .45);
}

.nav-inner {
  position: relative;
}

/* =========================
   MOBILE NAV DROPDOWN
   ========================= */

.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.85);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;                 /* belangrijk */
  position: relative;
}

.nav-toggle span{
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: rgba(17,24,39,.85);
  border-radius: 2px;
}

.nav-toggle span:nth-child(1){ top: 14px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 28px; }

nav.is-open .nav-toggle span:nth-child(1){
  top: 21px;
  transform: rotate(45deg);
}
nav.is-open .nav-toggle span:nth-child(2){
  opacity: 0;
}
nav.is-open .nav-toggle span:nth-child(3){
  top: 21px;
  transform: rotate(-45deg);
}

.nav-toggle span{
  transition: .2s;
}

@media (max-width: 720px) {
  nav {
    padding: 10px 14px;
  }

  .brand {
    min-width: auto;
  }

  .brand img {
    height: 44px;
    /* logo iets rustiger in nav */
    transform: none;
    /* belangrijk als je eerder logo-zoom gebruikte */
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Links worden dropdown */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    left: 14px;

    display: none;
    /* dicht */
    flex-direction: column;
    gap: 10px;

    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(17, 24, 39, .10);
    box-shadow: 0 18px 40px rgba(17, 24, 39, .14);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
  }

  .nav-links .badge {
    text-align: center;
    padding: 12px 14px;
    font-size: 1rem;
  }

  /* Open state */
  nav.is-open .nav-links {
    display: flex;
  }
}