  :root {
    --navy: #0D1B2A;
    --deepblue: #1B3A57;
    --mint: #5DCAA5;
    --mint-dark: #3aab87;
    --white: #F4F4F0;
    --gray: #8a9ab0;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { overflow-x: clip; max-width: 100%; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--navy);
    overflow-x: clip;
  }

  /* NAVBAR */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.4rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13,27,42,0.92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .nav-logo { display: flex; align-items: center; text-decoration: none; line-height: 0; }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    color: rgba(244,244,240,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--mint); }
  .nav-cta {
    background: var(--mint);
    color: var(--navy) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-weight: 500 !important;
    transition: background 0.2s, transform 0.2s !important;
  }
  .nav-cta:hover { background: var(--mint-dark) !important; transform: translateY(-1px); }

  /* FOOTER */
  footer {
    background: var(--navy);
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(93,202,165,0.15);
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-logo { display: flex; align-items: center; text-decoration: none; line-height: 0; }
  .footer-tagline { font-size: 0.8rem; color: rgba(244,244,240,0.35); margin-top: 0.2rem; }
  .footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
  .footer-links a { font-size: 0.85rem; color: rgba(244,244,240,0.45); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--mint); }
  .footer-socials { display: flex; gap: 0.8rem; align-items: center; }
  .social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(244,244,240,0.2);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .social-btn:hover { border-color: var(--mint); background: rgba(93,202,165,0.1); }
  .social-btn svg { width: 18px; height: 18px; }
  .footer-copy { font-size: 0.78rem; color: rgba(244,244,240,0.25); }
  .footer-bottom-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(244,244,240,0.08);
  }
  .footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
  .footer-legal a { font-size: 0.78rem; color: rgba(244,244,240,0.3); text-decoration: none; transition: color 0.2s; }
  .footer-legal a:hover { color: var(--mint); }

  /* MOBILE NAV (hamburger) */
  .nav-toggle { display: none; }

  @media (max-width: 768px) {
    .nav-toggle {
      display: flex; flex-direction: column; justify-content: center; gap: 5px;
      width: 44px; height: 44px; padding: 9px;
      background: none; border: 0; cursor: pointer; z-index: 120;
    }
    .nav-toggle span {
      display: block; height: 2px; width: 100%; border-radius: 2px;
      background: var(--white);
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
      position: fixed; top: 0; right: 0;
      flex-direction: column; align-items: flex-start;
      width: min(80vw, 320px); height: 100vh;
      padding: 6rem 2rem 2rem; gap: 1.6rem;
      background: rgba(13,27,42,0.98);
      -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
      box-shadow: -10px 0 40px rgba(0,0,0,0.35);
      transform: translateX(100%);
      transition: transform 0.32s ease;
      z-index: 110;
    }
    nav.nav-open .nav-links { transform: translateX(0); }
    .nav-links a { font-size: 1.05rem; }
    .nav-cta { display: inline-block; padding: 0.7rem 1.6rem; }
  }

/* -- Large-screen content cap (>=1500px): premium-narrow content, full-bleed backgrounds -- */
@media (min-width: 1500px) {
  nav, footer { padding-inline: max(5%, calc((100% - 1400px) / 2)); }
}

/* -------------------------------------------------------------
   CANONICAL SITE FOOTER - identical & high-contrast on every page
   (uses footer.site-footer specificity to override older rules)
   ------------------------------------------------------------- */
footer.site-footer {
  background: #0a141f;
  color: rgba(244,244,240,0.62);
  border-top: 1px solid rgba(93,202,165,0.18);
  padding: 3.5rem 5% 1.75rem;
  display: block;
  text-align: left;
}
footer.site-footer .footer-top {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
}
footer.site-footer .footer-brand { max-width: 340px; }
footer.site-footer .footer-logo { display: inline-flex; line-height: 0; margin-bottom: 1rem; text-decoration: none; }
footer.site-footer .footer-tagline {
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}
footer.site-footer .footer-about {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(244,244,240,0.55);
  margin: 0 0 1.25rem;
}
footer.site-footer .footer-col { min-width: 0; }
footer.site-footer .footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(244,244,240,0.92);
  margin: 0 0 1rem;
  font-weight: 600;
}
footer.site-footer .footer-contact { display: block; }
footer.site-footer .footer-col a,
footer.site-footer .footer-contact a,
footer.site-footer .footer-contact span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(244,244,240,0.62);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
footer.site-footer .footer-col a:hover,
footer.site-footer .footer-contact a:hover { color: var(--mint); }
footer.site-footer .footer-kvk { color: rgba(244,244,240,0.42); font-size: 0.82rem; }
footer.site-footer .footer-socials { display: flex; gap: 0.7rem; margin-top: 0.25rem; }
footer.site-footer .social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(93,202,165,0.3);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
footer.site-footer .social-btn:hover { border-color: var(--mint); background: rgba(93,202,165,0.12); transform: translateY(-2px); }
footer.site-footer .social-btn svg { width: 18px; height: 18px; }
footer.site-footer .footer-regio-row {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,244,240,0.08);
  font-size: 0.82rem;
  color: rgba(244,244,240,0.45);
}
footer.site-footer .footer-regio-row a { color: rgba(244,244,240,0.62); text-decoration: none; }
footer.site-footer .footer-regio-row a:hover { color: var(--mint); }
footer.site-footer .footer-bottom-row {
  max-width: 1240px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 0;
  padding-top: 0;
}
footer.site-footer .footer-copy { font-size: 0.8rem; color: rgba(244,244,240,0.4); }
footer.site-footer .footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer.site-footer .footer-legal a { font-size: 0.8rem; color: rgba(244,244,240,0.48); text-decoration: none; transition: color 0.2s; }
footer.site-footer .footer-legal a:hover { color: var(--mint); }

@media (max-width: 900px) {
  footer.site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  footer.site-footer .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  footer.site-footer { padding: 2.5rem 1.4rem 1.5rem; text-align: left; }
  footer.site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  footer.site-footer .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  footer.site-footer .footer-legal { gap: 1rem 1.25rem; }
  footer.site-footer .footer-regio-row { text-align: left; }
}

/* -------------------------------------------------------------
   MOBILE NAV - compact, modern drawer with clear hierarchy
   ------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Dimmed backdrop; tapping it closes the menu (handled in nav.js) */
  nav.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5,10,16,0.55);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    z-index: 105;
  }

  nav .nav-links {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    width: min(84vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding: 5.25rem 1.4rem 1.75rem;
    gap: 0;
    overflow-y: auto;
    background: #0a141f;
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    box-shadow: -14px 0 44px rgba(0,0,0,0.4);
    border-left: 1px solid rgba(93,202,165,0.14);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 110;
  }
  nav.nav-open .nav-links { transform: translateX(0); }

  nav .nav-links li { width: 100%; list-style: none; }

  nav .nav-links a:not(.nav-cta) {
    display: block;
    width: 100%;
    padding: 0.9rem 0.25rem;
    font-size: 1.02rem;
    font-weight: 500;
    color: rgba(244,244,240,0.92);
    border-bottom: 1px solid rgba(244,244,240,0.08);
    transition: color 0.2s;
  }
  nav .nav-links a:not(.nav-cta):hover,
  nav .nav-links a:not(.nav-cta).active { color: var(--mint); }

  nav .nav-links .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.95rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
  }

  /* keep hamburger above the drawer */
  nav .nav-toggle { z-index: 120; }
}


/* Audit 2.0 refinements: compact mobile nav and readable footer */
@media (max-width: 768px) {
  nav { padding: 0.85rem 1rem; }
  nav .nav-links {
    width: min(78vw, 290px) !important;
    padding: 4.7rem 1.1rem 1.25rem !important;
  }
  nav .nav-links a:not(.nav-cta) {
    padding: 0.68rem 0.2rem !important;
    font-size: 0.96rem !important;
    line-height: 1.2 !important;
  }
  nav .nav-links .nav-cta {
    margin-top: 0.95rem !important;
    padding: 0.78rem 1rem !important;
    font-size: 0.95rem !important;
  }
}
@media (max-width: 560px) {
  footer.site-footer { padding: 2.35rem 1.15rem 1.4rem !important; }
  /* Twee kolommen i.p.v. alles onder elkaar -> footer ~40% korter op telefoon */
  footer.site-footer .footer-top { grid-template-columns: 1fr 1fr !important; gap: 1.5rem 1.25rem !important; }
  footer.site-footer .footer-brand { max-width: none !important; }
  footer.site-footer .footer-about { display: none; } /* lange intro-alinea inkorten op mobiel */
  footer.site-footer .footer-col h4 { margin-bottom: 0.6rem; }
  footer.site-footer .footer-col a,
  footer.site-footer .footer-contact a,
  footer.site-footer .footer-contact span { min-height: 30px; margin-bottom: 0.2rem !important; font-size: 0.86rem; }
  footer.site-footer .footer-regio-row { margin-top: 1.5rem !important; padding-top: 1rem; }
  footer.site-footer .footer-bottom-row { margin-top: 1rem; }
  footer.site-footer .footer-legal { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.1rem !important; }
  footer.site-footer .footer-legal a { min-height: 30px; }
}


/* ===== OPRICHTERS / VERTROUWEN (site-breed) ===== */
.dd-founders {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 5%;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  border-top: 1px solid rgba(13,27,42,0.08);
}
.dd-founders-photos { display: flex; flex-shrink: 0; }
.dd-founders-photos img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 3px solid var(--white);
  box-shadow: 0 10px 26px rgba(13,27,42,0.16);
}
.dd-founders-photos img:last-child { margin-left: -26px; }
.dd-founders-label {
  font-size: 0.76rem;
  color: var(--mint-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.dd-founders-text h3 {
  font-family: "Helvetica Now Display", "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.dd-founders-text p {
  color: rgba(13,27,42,0.6);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1rem;
}
.dd-founders-text a {
  display: inline-block;
  background: var(--mint);
  color: var(--navy);
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.dd-founders-text a:hover { background: var(--mint-dark); transform: translateY(-2px); }
@media (max-width: 640px) {
  .dd-founders { flex-direction: column; text-align: center; gap: 1.4rem; padding: 2.8rem 5%; }
  .dd-founders-photos { justify-content: center; }
}

/* Final mobile footer compression: site-wide footer should be much shorter on phones. */
@media (max-width: 560px) {
  footer.site-footer {
    padding: 1.15rem 1rem 0.95rem !important;
  }

  footer.site-footer .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem 1rem !important;
  }

  footer.site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  footer.site-footer .footer-logo {
    margin-bottom: 0.35rem !important;
  }

  footer.site-footer .footer-logo svg {
    width: 96px;
    height: auto;
  }

  footer.site-footer .footer-tagline,
  footer.site-footer .footer-col h4 {
    margin-bottom: 0.35rem !important;
  }

  footer.site-footer .footer-about,
  footer.site-footer .footer-socials,
  footer.site-footer .footer-regio-row {
    display: none !important;
  }

  footer.site-footer .footer-col a,
  footer.site-footer .footer-contact a,
  footer.site-footer .footer-contact span {
    min-height: 0 !important;
    margin-bottom: 0.18rem !important;
    font-size: 0.78rem !important;
    line-height: 1.28 !important;
  }

  footer.site-footer .footer-col h4 {
    font-size: 0.64rem !important;
    letter-spacing: 1px !important;
  }

  footer.site-footer .footer-bottom-row {
    margin-top: 0.6rem !important;
    gap: 0.35rem !important;
  }

  footer.site-footer .footer-copy,
  footer.site-footer .footer-legal a {
    font-size: 0.72rem !important;
  }

  footer.site-footer .footer-legal {
    gap: 0.25rem 0.75rem !important;
  }

  footer.site-footer .footer-legal a {
    min-height: 0 !important;
  }
}

/* Phone footer: keep only essentials so the footer is roughly one third of the old height. */
@media (max-width: 560px) {
  footer.site-footer {
    padding: 0.85rem 1rem 0.8rem !important;
  }

  footer.site-footer .footer-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  footer.site-footer .footer-brand {
    grid-column: auto !important;
  }

  footer.site-footer .footer-tagline,
  footer.site-footer .footer-top > .footer-col:not(.footer-contact) {
    display: none !important;
  }

  footer.site-footer .footer-contact h4 {
    display: none !important;
  }

  footer.site-footer .footer-contact {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.2rem 0.8rem !important;
    align-items: center !important;
  }

  footer.site-footer .footer-contact a,
  footer.site-footer .footer-contact span {
    display: inline-block !important;
    margin: 0 !important;
  }

  footer.site-footer .footer-contact a:first-of-type {
    display: none !important;
  }

  footer.site-footer .footer-bottom-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 0.45rem !important;
  }
}

/* Fixed-nav anchor repair for the website check block. */
#website-check { scroll-margin-top: 92px; }
@media (max-width: 768px) {
  #website-check { scroll-margin-top: 76px; }
  #website-check .audit-inner { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  #website-check .audit-info,
  #website-check .audit-card { min-width: 0; position: relative; z-index: 1; }
  #website-check .audit-tags { flex-wrap: wrap !important; }
}

/* Extra breathing room when the homepage jumps directly to the website check. */
@media (max-width: 768px) {
  #website-check { padding-top: 5.25rem !important; }
}
