/* =========================================================
   RIJCOMPAS — GEDEELDE STIJLEN (header, footer, formulier,
   cookiemelding, WhatsApp-knop)
========================================================= */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rc-blue: #42b0f1;
  --rc-navy: #15386a;
  --rc-dark: #0d2342;
  --rc-text: #465a70;
  --rc-muted: #7a8b9d;
  --rc-border: #dcebf5;
  --rc-soft: #eaf7ff;
  --rc-light: #f5fbff;
  --rch-h: 78px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rch-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--rc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
main { display: block; }
.rc-skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--rc-navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.rc-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rc-blue); outline-offset: 2px; }

/* =========================================================
   HEADER
========================================================= */
.rch {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21, 56, 106, 0.08);
  transition: box-shadow 0.25s ease;
}
.rch.is-scrolled { box-shadow: 0 10px 30px rgba(21, 56, 106, 0.08); }
.rch-inner {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto;
  height: var(--rch-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.rch-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.rch-logo img { display: block; height: 38px; width: auto; }
.rch-nav { display: flex; align-items: center; gap: 4px; }
.rch-nav a {
  color: var(--rc-navy); text-decoration: none;
  font-size: 15px; font-weight: 700;
  padding: 10px 16px; border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease;
}
.rch-nav a:hover { background: var(--rc-soft); }
.rch-nav a.is-active { background: var(--rc-blue); color: #fff; }
.rch-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rc-navy); color: #fff !important; text-decoration: none;
  font-size: 14px; font-weight: 800;
  padding: 12px 20px; border-radius: 50px; white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.rch-cta:hover { transform: translateY(-2px); background: var(--rc-dark); }
.rch-toggle {
  display: none;
  width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--rc-soft); color: var(--rc-navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.rch-toggle svg { width: 22px; height: 22px; }
.rch-toggle .ic-close { display: none; }
.rch.is-open .rch-toggle .ic-open { display: none; }
.rch.is-open .rch-toggle .ic-close { display: block; }
.rch-panel { display: contents; }

@media (max-width: 1080px) {
  .rch-nav a { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 960px) {
  :root { --rch-h: 68px; }
  .rch-inner { width: calc(100% - 32px); }
  .rch-logo img { height: 32px; }
  .rch-toggle { display: inline-flex; }
  .rch-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--rc-border);
    box-shadow: 0 24px 40px rgba(21, 56, 106, 0.12);
    padding: 12px 16px 20px;
  }
  .rch.is-open .rch-panel { display: block; }
  .rch-nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .rch-nav a { padding: 14px 16px; font-size: 16px; border-radius: 14px; }
  .rch-cta { display: flex; justify-content: center; margin-top: 12px; padding: 16px 20px; font-size: 15px; }
}

/* =========================================================
   WHATSAPP-KNOP
========================================================= */
.rcw {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rcw:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 34px rgba(37, 211, 102, 0.55); }
.rcw svg { width: 30px; height: 30px; }
@media (max-width: 600px) { .rcw { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* =========================================================
   COOKIEMELDING
========================================================= */
.rcc {
  position: fixed; left: 50%; bottom: 20px; z-index: 1100;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  background: #fff; color: var(--rc-text);
  border: 1px solid var(--rc-border); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(13, 35, 66, 0.25);
  padding: 22px 24px;
  font-size: 14px; line-height: 1.6;
}
.rcc[hidden] { display: none; }
.rcc h2 { margin: 0 0 6px; color: var(--rc-navy); font-size: 17px; font-weight: 850; }
.rcc p { margin: 0 0 16px; }
.rcc a { color: var(--rc-blue); font-weight: 700; text-decoration: none; }
.rcc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcc button {
  font: inherit; font-size: 14px; font-weight: 800;
  min-height: 48px; border-radius: 50px; cursor: pointer;
  border: 2px solid var(--rc-navy);
}
.rcc-deny { background: #fff; color: var(--rc-navy); }
.rcc-accept { background: var(--rc-navy); color: #fff; }
.rcc button:hover { filter: brightness(1.08); }
@media (max-width: 420px) { .rcc { padding: 18px; bottom: 12px; } }

/* =========================================================
   FORMULIER
========================================================= */
.rcf { display: grid; gap: 16px; margin-top: 8px; font-family: inherit; }
.rcf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rcf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rcf-field label { color: var(--rc-navy); font-size: 14px; font-weight: 750; }
.rcf input[type="text"], .rcf input[type="tel"], .rcf input[type="email"], .rcf select, .rcf textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--rc-border); border-radius: 14px;
  background: #fafcff; color: var(--rc-navy);
  font: inherit; font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.rcf input, .rcf select { height: 54px; padding: 0 16px; }
.rcf select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2315386a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
  padding-right: 44px;
}
.rcf textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.rcf input::placeholder, .rcf textarea::placeholder { color: #9aabbc; }
.rcf input:focus, .rcf select:focus, .rcf textarea:focus {
  border-color: var(--rc-blue); background: #fff; box-shadow: 0 0 0 4px rgba(66, 176, 241, 0.14);
}
.rcf-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--rc-text); line-height: 1.5; }
.rcf-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--rc-blue); }
.rcf-check a { color: var(--rc-blue); font-weight: 700; text-decoration: none; }
.rcf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.rcf-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; border: 0; border-radius: 50px;
  background: var(--rc-blue); color: #fff;
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 14px 30px rgba(66, 176, 241, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.rcf-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(66, 176, 241, 0.38); }
.rcf-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.rcf-submit svg { width: 20px; height: 20px; }
.rcf-status { display: none; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.rcf-status.is-ok { display: block; background: #e9f8f2; color: #168a63; }
.rcf-status.is-error { display: block; background: #fdecec; color: #b42318; }
@media (max-width: 640px) {
  .rcf-row { grid-template-columns: 1fr; }
}

/* =========================================================
   EENVOUDIGE PAGINA'S (bedankt, 404)
========================================================= */
.rc-simple {
  min-height: 60vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #f8fcff 0%, #edf9ff 100%);
  padding: 80px 0;
}
.rc-simple-box { width: min(680px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.rc-simple-icon {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 24px;
  background: var(--rc-blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px rgba(66, 176, 241, 0.3);
}
.rc-simple-icon svg { width: 38px; height: 38px; }
.rc-simple h1 { color: var(--rc-navy); font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -2px; font-weight: 900; margin: 0 0 16px; }
.rc-simple h1 span { color: var(--rc-blue); }
.rc-simple p { font-size: 17px; line-height: 1.7; margin: 0 0 28px; }
.rc-simple-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rc-simple-btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 50px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  background: var(--rc-blue); color: #fff;
}
.rc-simple-btn.alt { background: #fff; color: var(--rc-navy); border: 1.5px solid var(--rc-border); }

/* footer: knop voor cookie-instellingen ziet eruit als een link */
.rc-footer-bottom-links button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: rgba(255, 255, 255, 0.6); font-size: 13px;
}
.rc-footer-bottom-links button:hover { color: var(--rc-blue); }

/* =========================================================
   WHATSAPP-MELDING
========================================================= */
.rcw-bubble {
  position: fixed; right: 92px; bottom: 30px; z-index: 899;
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--rc-border); border-radius: 16px 16px 4px 16px;
  box-shadow: 0 14px 34px rgba(13, 35, 66, 0.18);
  padding: 6px 6px 6px 16px; max-width: calc(100vw - 120px);
  animation: rcw-in .35s ease both;
}
.rcw-bubble[hidden] { display: none; }
.rcw-bubble a { color: var(--rc-navy); font-size: 14px; font-weight: 750; text-decoration: none; line-height: 1.35; padding: 6px 0; }
.rcw-bubble a:hover { color: #128c4a; }
.rcw-close {
  flex: 0 0 30px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: var(--rc-muted, #7a8b9d); font-size: 20px; line-height: 1; cursor: pointer;
}
.rcw-close:hover { background: #f1f6fa; color: var(--rc-navy); }
@keyframes rcw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .rcw-bubble { right: 16px; bottom: 82px; border-radius: 16px 16px 4px 16px; max-width: calc(100vw - 32px); }
  .rcw-bubble a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rcw-bubble { animation: none; } }
