/* ==========================================================================
   Roman Systems - romancnc.com
   Eén stylesheet voor de hele site. Geen externe fonts of libraries.
   ========================================================================== */

:root {
  --brand: #0f4c81;
  --brand-600: #0d4372;
  --brand-700: #0a3358;
  --brand-900: #07233d;
  --accent: #c8801a;
  --accent-soft: #fdf3e2;

  --ink: #111c26;
  --body: #3b4a58;
  --muted: #6b7c8c;

  --bg: #f4f7fa;
  --card: #ffffff;
  --line: #dde5ec;
  --line-strong: #c6d3de;

  --ok: #1c7a52;
  --ok-soft: #e8f6ef;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 28, 38, .05);
  --shadow: 0 1px 2px rgba(17, 28, 38, .06), 0 10px 28px -14px rgba(17, 28, 38, .22);
  --shadow-lg: 0 2px 4px rgba(17, 28, 38, .06), 0 24px 48px -20px rgba(17, 28, 38, .3);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* --------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; }
figure { margin: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.8rem, 1.15rem + 2.1vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

code, kbd {
  font-family: var(--mono);
  font-size: .875em;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  color: var(--brand-700);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------------------------------------- layout --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding: 3.5rem 0; }
.section--tight { padding: 2.25rem 0; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.section--brand {
  background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand) 55%, #14609f 100%);
  color: #d9e7f3;
}
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand a { color: #ffdca8; }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section--brand .section-head p { color: #bcd4e8; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
/* Let op: deze klassen worden ook los gebruikt (zonder .grid), dus ze zetten
   zelf hun display. */
.grid-sidebar { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) {
  .grid-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; }
}

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  flex-wrap: nowrap;
}

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { width: 200px; height: auto; }

.site-nav { display: flex; align-items: center; gap: .75rem; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }

.nav-link {
  display: block;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { background: #eef3f8; color: var(--brand-700); }
.nav-link.is-active { color: var(--brand); background: #e7eff7; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 68rem) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: grid; }
  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding-bottom: 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: .75rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav-cta { text-align: center; }
  .nav-cta::before { content: none; }
}

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease,
              transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-accent { background: var(--accent); color: #2a1a03; }
.btn-accent:hover { background: #b06f10; color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); background: #f7fafd; }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------------------------------------------------------- breadcrumb --- */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: .7rem 0;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------- page head --- */
.page-head { padding: 2.5rem 0 1.75rem; max-width: 52rem; }
.page-head h1 { margin-bottom: .4rem; }
.lede { font-size: 1.125rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--brand-900) 0%, var(--brand-700) 45%, #12558f 100%);
  color: #cfe0ee;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0 3.75rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; padding: 4.5rem 0 5rem; }
}
.hero h1 { color: #fff; max-width: 26ch; }
.hero p { color: #bcd4e8; font-size: 1.0625rem; max-width: 46ch; }
.hero .eyebrow { color: #ffcf8a; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
  display: block;
  width: 100%;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  list-style: none;
  padding-left: 0;
}
.hero-facts li { margin: 0; }
.hero-facts b {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.1;
}
.hero-facts span { font-size: .875rem; color: #a9c5dd; }

/* -------------------------------------------------------------- cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  height: 100%;
}
.card h3 { margin-bottom: .25rem; }
.card p { color: var(--body); font-size: .9375rem; margin-bottom: 0; }
.card > :last-child { margin-top: auto; }

.card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card-link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-link h3 { color: var(--brand); }
.card-link .card-cta {
  font-weight: 700;
  font-size: .875rem;
  color: var(--brand);
  margin-top: 1rem;
}
.card-link:hover .card-cta { text-decoration: underline; }

.card-media {
  margin: -1.5rem -1.5rem .75rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: .85rem;
}
.card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 1px 4px rgba(17, 28, 38, .12);
}

.card-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* --------------------------------------------------------------- lists --- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: .85rem;
  height: .5rem;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .k { color: var(--muted); }
.spec-list .v { color: var(--ink); font-weight: 600; text-align: right; }

/* -------------------------------------------------------------- table --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9375rem;
  min-width: 34rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem .5rem;
  color: var(--muted);
  font-size: .875rem;
}
th, td {
  text-align: left;
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: #eef3f8;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f9fbfd; }

/* ------------------------------------------------------------- figures --- */
.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  width: 100%;
}
.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #eef3f8;
}
.figure figcaption {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: left;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.gallery .figure { flex: 0 0 auto; }
.gallery .figure figcaption { font-size: .8125rem; padding: .6rem .75rem; }
.gallery .figure img { width: auto; max-width: 100%; }

/* ---------------------------------------------------------------- note --- */
.note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9375rem;
}
.note p:last-child { margin-bottom: 0; }
.note--info { border-left-color: var(--brand); background: #eaf2f9; }
.note--ok { border-left-color: var(--ok); background: var(--ok-soft); }

/* ----------------------------------------------------------------- faq --- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 1.5rem;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--brand); }
.faq .faq-body { padding: 0 0 1.25rem; }
.faq .faq-body p:last-child, .faq .faq-body ul:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ cta band --- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #d5e5f2;
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 48rem) {
  .cta-band { grid-template-columns: 1fr auto; padding: 2.5rem 2.75rem; }
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; color: #bcd4e8; }

/* ---------------------------------------------------------------- form --- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .65rem .8rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(15, 76, 129, .18);
  outline-offset: 0;
}
textarea { min-height: 8rem; resize: vertical; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 0 1.5rem;
  background: #fff;
}
legend {
  font-weight: 700;
  color: var(--ink);
  padding: 0 .5rem;
}
.check-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
}
.check-grid input { width: auto; }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--brand-900);
  color: #a9c1d6;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 60rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-logo {
  width: 200px;
  height: auto;
  /* De originele GIF heeft een witte achtergrond; op de donkere voettekst
     staat hij daarom op een bewust wit kaartje. */
  background: #fff;
  padding: .45rem .6rem;
  border-radius: 6px;
  margin-bottom: 1.1rem;
}
.footer-title {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer p { margin-bottom: .9rem; }
/* Op de donkere ondergrond van de voettekst en de CTA-band moet vet wit
   blijven in plaats van de donkere bodykleur. */
.site-footer strong, .cta-band strong { color: #fff; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom span { color: #5d7a94; }

/* -------------------------------------------------------------- misc ---- */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }

.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #e7eff7;
  color: var(--brand-700);
  border-radius: var(--radius-pill);
  padding: .25rem .7rem;
  margin: 0 .35rem .35rem 0;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .875rem;
  color: var(--muted);
}
.meta-list li { margin-bottom: .3rem; }

.sitemap-list ul { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 2.5rem; }
@media (min-width: 40rem) { .sitemap-list ul { columns: 2; } }
@media (min-width: 62rem) { .sitemap-list ul { columns: 3; } }
.sitemap-list li { break-inside: avoid; margin-bottom: .5rem; }
.sitemap-list a { display: inline-block; padding: .1rem 0; }
.sitemap-list a::after { content: "\2192"; margin-left: .4rem; color: var(--brand); opacity: .5; }

dl.glossary { margin: 0; }
dl.glossary dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.4rem;
}
dl.glossary dd { margin: .3rem 0 0; padding-left: 0; }

/* -------------------------------------------------------- print styles --- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .breadcrumb, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .card, .figure, .table-wrap { box-shadow: none; border-color: #999; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
