:root {
  --navy: #243248;
  --navy-dark: #182436;
  --blue: #4f84a7;
  --blue-dark: #356a8d;
  --blue-pale: #edf5f8;
  --ink: #202c3c;
  --muted: #5c6877;
  --line: #dce4e9;
  --white: #fff;
  --off-white: #f8fafb;
  --radius: 1rem;
  --shadow: 0 1.25rem 3.5rem rgb(24 36 54 / 10%);
  --max-width: 75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

:focus-visible {
  outline: 0.2rem solid #f5b942;
  outline-offset: 0.2rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-dark);
  border-radius: 0.4rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid rgb(220 228 233 / 80%);
  backdrop-filter: blur(0.8rem);
}

.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 1 12rem;
}

.brand img {
  width: 12rem;
  height: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue-dark);
}

.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  min-width: 4.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  text-align: center;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  min-width: 13rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.mobile-nav nav a {
  padding: 0.75rem;
  border-radius: 0.4rem;
}

.mobile-nav nav a:hover {
  background: var(--blue-pale);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background: linear-gradient(135deg, #f8fbfc 0%, #edf5f8 100%);
}

.hero-pattern {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  opacity: 0.45;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  border-radius: 50%;
  transform: rotate(12deg);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-primary:hover {
  background: var(--navy-dark);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}

.button-secondary:hover {
  background: var(--white);
}

.hero-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card-label {
  margin-bottom: 1.25rem;
  color: #bad7e7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  font-size: 1.15rem;
  font-weight: 750;
  text-decoration: none;
}

.hero-card a::after {
  content: "→";
  color: #bad7e7;
}

.hero-card li:last-child a {
  border-bottom: 0;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-heading {
  display: grid;
  margin-bottom: 2.25rem;
  gap: 1.25rem 3rem;
}

.section-heading > p {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-index {
  display: grid;
  margin-bottom: 2rem;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-index a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: var(--navy);
  background: var(--blue-pale);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.service-index a:hover {
  background: #dfeef4;
}

.service-index span {
  color: var(--blue-dark);
}

.service-groups {
  display: grid;
  gap: 1.25rem;
}

.service-group {
  scroll-margin-top: 6.5rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 2rem rgb(24 36 54 / 5%);
}

.service-group-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.service-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 0.65rem;
  font-size: 1.25rem;
  font-weight: 850;
}

.service-count {
  margin-bottom: 0.2rem;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.test-list li {
  display: grid;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
  gap: 0.15rem;
}

.test-list strong {
  color: var(--ink);
  line-height: 1.4;
}

.test-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

#diensten,
#scope {
  scroll-margin-top: 5rem;
}

.scope-section {
  background: var(--off-white);
}

.scope-card {
  display: grid;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.scope-mark {
  display: grid;
  min-height: 15rem;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #f3f5f7;
}

.scope-mark img {
  width: min(11rem, 55vw);
  height: auto;
}

.scope-mark strong {
  padding: 0.35rem 0.7rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 0.25rem;
  letter-spacing: 0.08em;
}

.scope-copy {
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.scope-copy .eyebrow {
  color: #bad7e7;
}

.scope-copy h2 {
  color: var(--white);
}

.scope-copy p:not(.eyebrow) {
  max-width: 43rem;
  margin-bottom: 1.75rem;
  color: #e1e8ef;
}

.button-light {
  color: var(--navy-dark);
  background: var(--white);
}

.button-light:hover {
  background: #dfeef4;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer-inner img {
  width: 11rem;
  height: auto;
}

.footer-inner p {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.footer-inner address {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-style: normal;
}

.footer-inner a {
  color: var(--blue-dark);
  font-weight: 750;
}

@media (min-width: 48rem) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.65fr);
  }

  .section-heading {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  }

  .service-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-group-wide {
    grid-column: 1 / -1;
  }

  .test-list-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .scope-card {
    align-items: stretch;
    grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.5fr);
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
