/* ============================================================
   RDIMO — Premium onepage portfolio
   Huisstijl: licht, navy (logo), staalgrijs, technische accenten
   ============================================================ */

:root {
  --navy: #2e4172;          /* logo-blauw */
  --navy-dark: #171d47;     /* donker logo-navy */
  --navy-deep: #14183a;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --surface: #ffffff;
  --line: #e3e8f1;
  --line-strong: #c9d2e2;
  --text: #232a3a;
  --muted: #5b6478;
  --steel: #9aa3b5;
  --blueprint: rgba(46, 65, 114, 0.09);
  --blueprint-soft: rgba(46, 65, 114, 0.045);
  --navy-tint: rgba(46, 65, 114, 0.07);
  --orange: #e8722c;
  --radius: 12px;
  --shadow: 0 18px 40px -18px rgba(23, 29, 71, 0.22);
  --shadow-soft: 0 8px 24px -12px rgba(23, 29, 71, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}
.container-narrow { width: min(820px, 100% - 2.5rem); }

/* ---------- Typografie ---------- */
h1, h2, h3 { line-height: 1.25; font-weight: 700; color: var(--navy-dark); }
h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
h3 { font-size: 1.08rem; letter-spacing: 0.02em; }
p { color: var(--muted); font-family: var(--serif); }
strong { color: var(--text); }

.accent { color: var(--navy); }

.section-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.tag-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--navy);
  flex: none;
}

/* Gecentreerde sectiekoppen (zoals bestaande site) */
#diensten .section-tag, #vaardigheden .section-tag, #projecten .section-tag,
#werkwijze .section-tag, #waarom .section-tag, #faq .section-tag {
  justify-content: center;
}
#diensten h2, #vaardigheden h2, #projecten h2,
#werkwijze h2, #waarom h2, #faq h2 {
  text-align: center;
}
#diensten h2::after, #vaardigheden h2::after, #projecten h2::after,
#werkwijze h2::after, #waarom h2::after, #faq h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--line-strong);
  margin: 1.1rem auto 0;
}

.section-intro {
  max-width: 58ch;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.sub-heading {
  margin: 2.8rem 0 1.2rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

/* ---------- Achtergrondgrid (blueprint, licht) ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px),
    linear-gradient(var(--blueprint-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-soft) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 25%, transparent 75%);
  opacity: 0.55;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy-dark);
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 52px;
  width: auto;
  flex: none;
}
.brand-text {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.02rem;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--navy-dark);
}
.brand-text small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy-dark); text-decoration: none; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  background: var(--navy);
  transition: right 0.25s ease;
}
.site-nav a:hover::after { right: 0; }
.site-nav a.nav-cta {
  color: #fff;
  background: var(--navy);
  padding: 0.55rem 1.2rem;
  border-radius: 7px;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--navy-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline {
  color: var(--navy);
  border-color: var(--line-strong);
  background: #fff;
}
.btn-outline:hover { border-color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem)) 0 clamp(3rem, 7vh, 5rem);
  background:
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero .grid-bg { opacity: 0.8; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-sub {
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  margin-top: 1rem;
}
.hero-text { margin-top: 0.8rem; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}
.trust-badges li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--navy-dark);
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.trust-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}

/* Hero visual met CAD-frame */
.viewport-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: visible;
}
.viewport-frame img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--navy);
  z-index: 2;
}
.c-tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.c-tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; }
.c-br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

.measure-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: var(--radius);
}
.m-line {
  stroke: var(--orange);
  stroke-width: 0.35;
  stroke-dasharray: 1.6 1.1;
  opacity: 0;
}
.m-dot { fill: var(--orange); opacity: 0; }
.in-view .m-line, .in-view .m-dot { animation: measure-in 0.9s ease forwards; }
.in-view .d1 { animation-delay: 0.5s; }
.in-view .d2 { animation-delay: 0.9s; }
.in-view .d3 { animation-delay: 1.3s; }
.in-view .d4 { animation-delay: 1.7s; }
@keyframes measure-in { to { opacity: 0.8; } }

.viewport-frame figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(23, 29, 71, 0.88);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.viewport-frame .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Secties ---------- */
.section {
  position: relative;
  padding: clamp(3.5rem, 9vh, 6rem) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.section-alt .grid-bg { opacity: 0.4; }

/* ---------- Over ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split p + p { margin-top: 1rem; }

.logo-card {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.6rem;
  max-width: 320px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-card svg {
  width: 26px;
  height: 26px;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.value-card h3 { font-size: 0.96rem; margin-bottom: 0.35rem; }
.value-card p { font-size: 0.85rem; line-height: 1.55; }

/* ---------- Diensten ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
  position: relative;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-tint);
  border: 1px solid var(--line);
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card > p { font-size: 0.9rem; }
.service-card ul {
  list-style: none;
  margin: 1rem 0 1.3rem;
  display: grid;
  gap: 0.45rem;
}
.service-card li {
  font-size: 0.84rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 2px;
  background: var(--orange);
}
.card-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-cta span { transition: transform 0.2s ease; }
.card-cta:hover span { transform: translateX(4px); }

/* ---------- Vaardigheden ---------- */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.software-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.software-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.software-card img,
.software-badge {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}
.software-badge {
  display: grid;
  place-items: center;
  background: var(--navy-tint);
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
}
.software-card h3 { margin-bottom: 0.3rem; }
.software-card p { font-size: 0.87rem; line-height: 1.55; }

.expertise-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.expertise-grid li {
  font-size: 0.85rem;
  color: var(--navy-dark);
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.expertise-grid li:hover { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.expertise-grid li::before {
  content: "+";
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- Projecten ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  position: relative;
}
.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  text-decoration: none;
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.project-card.wide { grid-column: 1 / -1; }
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card.wide img { aspect-ratio: 21 / 9; }
.project-card:hover img { transform: scale(1.03); }
.project-info {
  padding: 1.2rem 1.3rem 1.3rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.project-cat {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.project-info h3 { margin: 0.35rem 0 0.3rem; }
.project-info p { font-size: 0.87rem; }
.project-hover {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.project-card:hover .project-hover,
.project-card:focus-visible .project-hover { opacity: 1; transform: translateY(0); }

/* ---------- Werkwijze / timeline ---------- */
.timeline {
  list-style: none;
  margin: 2.6rem auto 0;
  max-width: 760px;
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line-strong) 70%, transparent);
}
.timeline li {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 0 0 2.2rem;
}
.timeline li:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}
.timeline h3 { margin: 0.55rem 0 0.3rem; }
.timeline p { font-size: 0.92rem; max-width: 62ch; }

/* ---------- Waarom RDIMO ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
  position: relative;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit h3 { font-size: 0.96rem; margin-bottom: 0.4rem; }
.benefit p { font-size: 0.85rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; margin-top: 2.2rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease;
}
.faq-list details[open] { border-color: var(--navy); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-dark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 14px;
  height: 14px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
details[open] .faq-icon::after { transform: translateY(-50%) rotate(0deg); }
.faq-list details p {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
}
.contact-sub {
  font-family: var(--font);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.contact-details {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}
.contact-details li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-details svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
  flex: none;
  margin-top: 2px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { margin-bottom: 1.1rem; min-width: 0; }
.field label, .field legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
}
.req { color: var(--orange); }
.opt { color: var(--steel); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: #fbfcfe;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.94rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(46, 65, 114, 0.14);
}
.field input.invalid, .field textarea.invalid { border-color: #d64545; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6478' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
fieldset.field { border: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}
.radio-row input, .checkbox-field input { accent-color: var(--navy); width: 16px; height: 16px; }
.field input[type="file"] {
  width: 100%;
  color: var(--muted);
  font-size: 0.86rem;
}
.field input[type="file"]::file-selector-button {
  font-family: var(--font);
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-tint);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0.5rem 1rem;
  margin-right: 0.9rem;
  cursor: pointer;
}
.checkbox-field label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.checkbox-field input { margin-top: 3px; flex: none; }
.form-status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  min-height: 1.2em;
  font-family: var(--font);
}
.form-status.ok { color: #1e7d3f; }
.form-status.err { color: #c03434; }

/* ---------- Footer (donker navy, zoals logo) ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #cdd4e6;
  padding: 3rem 0 0;
}
.site-footer p { color: #9ba5c2; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: #8b95b5; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.88rem; font-family: var(--font); }
.footer-nav { display: grid; gap: 0.45rem; align-content: start; }
.footer-nav a {
  color: #9ba5c2;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: #fff; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cdd4e6;
  border: 1px solid rgba(205, 212, 230, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}
.footer-social a:hover { color: #fff; border-color: #fff; text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(205, 212, 230, 0.16);
  padding-block: 1.2rem;
}
.footer-bottom p { font-size: 0.8rem; color: #8b95b5; font-family: var(--font); }
.footer-bottom a { color: #cdd4e6; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 24, 58, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}
.lightbox figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #cdd4e6;
  font-family: var(--font);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: 1px solid rgba(205, 212, 230, 0.4);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lightbox-close:hover { border-color: #fff; }

/* ---------- Reveal-animaties ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .m-line, .m-dot { opacity: 0.8; animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .brand-text { display: none; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(23, 29, 71, 0.25);
    padding: 0.6rem 1.25rem 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 0.85rem 0.2rem; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { margin-top: 0.9rem; text-align: center; justify-content: center; display: flex; }
  .nav-toggle { display: flex; }

  .split, .contact-split { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card img, .project-card.wide img { aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .timeline::before { left: 21px; }
  .step-num { width: 42px; height: 42px; font-size: 0.82rem; }
  .timeline li { gap: 1.1rem; }
  .timeline h3 { margin-top: 0.35rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .brand-logo { height: 44px; }
}
