/* 🌐 KLEUREN EN BASIS */

:root {
  --primary: #2e2f32;
  --background: #ffffff;
  --header: #fafafa;
  --sections: #fafafa;
  --footer: #fafafa;
  --logo: #efe9d3;
  --semitransparant: rgba(255, 255, 255, 0.75);
  --section-top-gap: 2.5rem; /* consistent gap below header for section intros */
  --footer-mobile-height: 48px; /* approximate mobile footer height */
}



/* If you use smaller subtitle classes, ensure they inherit the same style */
.subtitle-small {
  font-family: 'Rajdhani', sans-serif;
  color: var(--primary);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; /* base font-size for consistent sizing */
  min-height: 100vh;
}

/* Ensure form controls and interactive elements inherit the same global font */
body,
input,
textarea,
select,
button,
optgroup,
label {
  font-family: inherit;
}

body {
  /* reserveer ruimte voor de vaste header; include safe-area for notch devices */
  padding-top: calc(90px + env(safe-area-inset-top, 0px)); /* 90px headerhoogte */
  /* reserveer ruimte voor de vaste footer zodat content niet eronder valt */
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

/* Laat hoofdcontent groeien zodat de footer onderaan blijft bij korte pagina's */
main {
  flex: 1 0 auto;
}

/* -------------------------------
   Standaard tekst (body content)
   Zorg dat paragrafen, lijsten, links en formuliercontrols
   dezelfde basisgrootte en regelhoogte gebruiken.
   ------------------------------- */
p,
li,
a,
span,
input,
textarea,
select,
button,
label {
  font-size: 1rem; /* 16px */
  line-height: 1.6;
}

/* Form controls should visually match surrounding text */
input,
textarea,
select,
button {
  font-size: inherit;
}

header {
  position: fixed;
  top: 0;
  height: 90px;
}

/* 🎬 HEADER */

header {
  position: fixed;
  /* ensure header background sits flush at the very top of the viewport */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: var(--header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  /* use safe-area inset only for inner top padding so content doesn't overlap on notched devices */
  padding: calc(env(safe-area-inset-top, 0px) + 0.5rem) 1.5rem 0.5rem 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  margin: 0;
}

.logo {
  padding: 2px;
  border-radius: 10px;
  display: inline-block;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
  border-radius: 5%;
}

.cta-header-button {
  background-color: var(--logo);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  height: 55Wpx;
  flex-shrink: 0;
}

.cta-header-button:hover {
  background-color: var(--logo);
}

.hoofdmenu {
  flex-grow: 1;
  text-align: center;
  grid-column: 2;
}
.hoofdmenu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #e60000; /* of een andere kleur voor hover */
}

/* Mobile navigation - hide by default on desktop and provide responsive styles */
.hamburger {
  display: none; /* shown only on small screens */
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--primary);
  flex-shrink: 0;
  padding: 0;
}

.mobiele-navigatie {
  display: none; /* keep hidden on desktop */
}

@media (max-width: 900px) {
  .hoofdmenu {
    display: none; /* hide the full menu on small screens */
  }

  .hamburger {
    display: inline-block;
  }

  .mobiele-navigatie {
    display: none; /* start hidden, will be toggled with JS */
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--header);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
  }

  .mobiele-navigatie ul {
    list-style: none;
    margin: 0;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobiele-navigatie li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .mobiele-navigatie li:last-child {
    border-bottom: none;
  }

  .mobiele-navigatie .nav-link {
    display: block;
    padding: 1rem 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
  }

  /* utility class used by JS to show/hide the mobile menu */
  .mobiele-navigatie.show {
    display: block;
  }
}

/* 📩 Popup-overlay */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

/* 📦 Popup-formulier */
.popup-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0,0,0,0.2);
  position: relative;
  font-family: 'Rajdhani', sans-serif;
}

.popup-form h2 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.8rem;
  text-align: center;
}

.popup-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--primary);
}

.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.popup-form button[type="submit"] {
  margin-top: 1.5rem;
  background-color: var(--logo);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease;
}

.popup-form button[type="submit"]:hover {
  background-color: var(--primary);
  color: white;
}

/* ❌ Sluitknop */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* 🎬 HERO */

.hero {
  position: relative;
  height: 90vh;
  width: 100vw;
  overflow: hidden;
  padding: 0;
  border: none;
  background-color: var(--sections);  
}

.hero-image {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}

.hero-video {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.614);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  height: 90%;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  color: var(--sections);
}

/* 🎬 HUIDIG PROJECT */
.huidig-project {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  align-items: center;
}

.project-tekst {
  flex: 1 1 300px;
}

.project-tekst h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.project-tekst p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-cta {
  background-color: var(--logo);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.project-cta:hover {
  background-color: var(--primary);
  color: white;
}

.project-afbeelding {
  flex: 0.5 0.5 10px;
}

.project-afbeelding img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* 🔚 FOOTER */

/* 🟦 PAGINA-SPECIFIEKE STIJLEN */

.over-page,
.contact-page,
.diensten-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.over-page main,
.contact-page main,
.diensten-page main {
  flex: 1;
}

/* Over pagina */

.scroll-space {
  height:  0vh;
}

.achtergrond-afbeelding {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.2);
  z-index: 0;
  pointer-events: none;
  border-radius: 16px;
  max-height: 80%;
}

.content-box {
  position: fixed;
  top: 51.7%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 90%;
  text-align: center;
  z-index: 10;
  transition: background-color 0.5s ease;
}

.content-box.transparant {
  background-color: rgba(255, 255, 255, 0.75); /* lichter, doorzichtig */
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--footer);
  color: var(--primary);
  text-align: center;
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* VCA logo positioned in the lower-right of the footer */
.footer-certs {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-certs img {
  height: 40px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.footer-certs img:hover {
    transform: scale(1.8);
}

/* Erkend button (bottom-left footer) */
.footer-erkend-btn {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--logo);
  color: var(--primary);
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
}

.footer-erkend-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.footer-erkend-btn::before {
  content: '✓';
  font-size: 1.2rem;
  font-weight: bold;
}

/* Certification popup overlay */
.cert-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-popup-overlay.show {
  display: flex;
}

.cert-popup-content {
  background: white;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  position: relative;
}

.cert-popup-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
  font-size: 1.8rem;
}

.cert-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
}

.cert-popup-close:hover {
  color: #e60000;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cert-item a.cert-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.cert-item img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-item img:hover {
  transform: scale(1.1);
}

.cert-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  text-align: center;
}

/* Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* --- Diensten sectie --- */
.diensten-section {
  max-width: 1200px;
  margin: var(--section-top-gap) auto; /* use central gap variable */
  padding: 0 1rem;
}

/* ...existing code... */

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.dienst-card {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dienst-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.dienst-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background-color: var(--logo);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.dienst-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary);
}

.dienst-desc {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-top: auto;
}

/* Dienst preview image */
.dienst-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.dienst-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dienst-meer {
  margin-top: 0.5rem;
  background: transparent;
  border: 2px solid var(--logo);
  color: var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  align-self: start;
  transition: background 0.2s ease, color 0.2s ease;
}

.dienst-meer:hover {
  background: var(--logo);
  color: white;
}

/* Dienst popup overlay */
.dienst-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.dienst-popup {
  background: white;
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dienst-popup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.dienst-popup .dienst-popup-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.dienst-popup .dienst-popup-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 800px) {
  .dienst-popup { grid-template-columns: 1fr; }
  .dienst-preview { height: 120px; }
}

/* Contactpagina */

.contact-page {
  background-color: var(--background);
}

.contact-wrapper {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.contact-gegevens {
  flex: 1 1 300px;
  max-width: 500px;
}

.contact-gegevens h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Forceer Rajdhani op contactpagina koppen en content om inconsistenties te voorkomen */
.contact-page,
.contact-page h1,
.contact-page p,
.contact-page li,
.contact-page a {
  font-family: 'Rajdhani', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.contact-gegevens p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-gegevens ul {
  list-style: none;
  padding: 0;
}

.contact-gegevens li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.contact-form {
  flex: 1 1 300px;
  max-width: 500px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  color: var(--primary);
}

.contact-form button {
  background-color: var(--logo);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--primary);
  color: white;
}

/* 📱 MOBIELE VERSIE */

@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: var(--header);
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10000;
    gap: 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
  }

  .logo {
    flex: 0 0 auto;
    margin: 0;
    z-index: 10002;
    position: relative;
  }

  .logo img {
    height: 55px;
    max-width: 100%;
  }

  /* Verberg het desktop hoofdmenu op mobiel; hamburger + mobiele menu nemen het over */
  .hoofdmenu {
    display: none;
  }

  .hoofdmenu ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
  }

  .cta-header-button {
    background-color: var(--logo);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 0.5rem;
    flex-shrink: 0;
    order: 2;
    z-index: 10002;
    position: relative;
    height: auto;
  }
  
  .hamburger {
    order: 3;
    z-index: 10002;
    position: relative;
  }

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

  .huidig-project {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .contact-wrapper {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .contact-gegevens h1,
  .contact-gegevens p,
  .contact-gegevens li,
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 1rem;
  }

  .popup-form {
    padding: 1.5rem;
  }

  .popup-form h2 {
    font-size: 1.5rem;
  }

  .content-box {
    padding: 2rem;
    max-width: 95%;
  }

  /* Footer - keep Erkend button inline with copyright on mobile */
  /* Footer - mobile: only Erkend button, no fixed bar */
  body {
    padding-bottom: 1rem;
  }

  footer {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
    box-shadow: none;
    background: transparent;
    margin-top: auto; /* duw footer naar onderkant bij korte content */
    min-height: var(--footer-mobile-height);
  }

  .footer-erkend-btn {
    position: static;
    transform: none;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    margin: 0;
  }

  .footer-erkend-btn::before {
    font-size: 1rem;
  }

  footer p {
    display: inline-block;
    margin: 0;
    font-size: 0.9rem;
  }

  .footer-certs {
    display: none;
  }

  /* Ensure main fills the remaining space beneath the fixed header and above footer */
  main {
    min-height: calc(100vh - calc(90px + env(safe-area-inset-top, 0px)) - var(--footer-mobile-height));
  }

  /* Certification popup - adjust for mobile */
  .cert-popup-content {
    padding: 1.5rem;
    max-width: 95%;
  }

  .cert-popup-content h2 {
    font-size: 1.5rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

    .cert-item img {
      height: 60px;
    }
  
  }
