/* ============================================================
   404 — Pagina niet gevonden (zie 404.php)
   ============================================================ */

.error-404 {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-navy-bg);
  padding: clamp(150px, 20vh, 220px) 0 clamp(64px, 10vh, 120px);
  color: var(--n-0);
}

/* Sfeer-glow, in lijn met hero/page-hero */
.error-404::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60rem 60rem at 80% -10%, rgba(47,158,141,.20), transparent 60%),
    radial-gradient(50rem 50rem at -10% 110%, rgba(212,160,23,.12), transparent 55%);
  pointer-events: none;
}

.error-404-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

.error-404-code {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-size: clamp(96px, 22vw, 240px);
  margin: 14px 0 4px;
  background: linear-gradient(150deg, var(--teal-300) 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal-300); /* fallback */
}

.error-404 h1 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 auto;
  max-width: 18ch;
}
.error-404 h1 em { font-style: normal; color: var(--teal-300); }

.error-404 .lead {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  max-width: 56ch;
  margin: 22px auto 0;
}

.error-404 .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

/* Zoekformulier */
.error-404-search {
  margin: 40px auto 0;
  max-width: 480px;
}
.error-404-search form {
  display: flex;
  gap: 10px;
}
.error-404-search .search-field,
.error-404-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: var(--n-0);
  font-family: var(--font-b);
  font-size: 15px;
}
.error-404-search .search-field::placeholder { color: var(--nile-300); }
.error-404-search .search-field:focus {
  outline: none;
  border-color: var(--teal-500);
  background: rgba(255,255,255,.07);
}
.error-404-search .search-submit,
.error-404-search input[type="submit"],
.error-404-search button[type="submit"] {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--teal-500);
  color: #fff;
  cursor: pointer;
  transition: background .35s ease, transform .35s ease;
}
.error-404-search .search-submit:hover,
.error-404-search input[type="submit"]:hover,
.error-404-search button[type="submit"]:hover {
  background: var(--teal-300);
  transform: translateY(-2px);
}

/* Veelgevraagde pagina's */
.error-404-links { margin-top: 40px; }
.error-404-links-label {
  display: block;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nile-300);
  margin-bottom: 16px;
}
.error-404-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.error-404-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  font-family: var(--font-h);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.error-404-links a:hover {
  border-color: var(--teal-500);
  color: var(--teal-300);
  background: rgba(47,158,141,.08);
}
.error-404-links a .ico { width: 16px; height: 16px; }

/* Zichtbare focus bij toetsenbord-navigatie (op de donkere achtergrond) */
.error-404-search .search-submit:focus-visible,
.error-404-links a:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .error-404 .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .error-404-search form { flex-direction: column; }
}
