/* Kwaliteitsmonitor onderwijs: Synaxion house style (Inter, Synaxion teal and grey). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand teal fails 4.5:1 on white; use it for surfaces, icons and large text only. */
  --teal: #389f92;
  --teal-strong: #2b7f74;
  --teal-deep: #256f65;
  --teal-mist: #eef6f4;
  --grey: #565656;
  --ink: #333;
  --white: #fff;
  --radius: 12px;
  --header-height: 76px;
  --font: "Inter", system-ui, sans-serif;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey);
  background: var(--white);
}

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

a {
  color: var(--teal-strong);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 3vw, 36px);
}

h3 {
  font-size: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 32px;
  height: 32px;
  flex: none;
  fill: currentColor;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
}

.prose p {
  max-width: 66ch;
  margin: 0 0 1em;
}

.prose h2 + .lead {
  margin-top: 12px;
}

.text-link {
  font-weight: 600;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--teal-strong);
  border-radius: var(--radius);
  background: var(--teal-strong);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
}

.button--ghost {
  border-color: var(--white);
  background: transparent;
}

.button--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--teal-deep);
}

.button--light:hover {
  border-color: var(--teal-mist);
  background: var(--teal-mist);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header__logo {
  line-height: 0;
}

.site-header__logo img {
  width: 230px;
}

.nav__toggle {
  display: none;
}

@media (min-width: 1000px) {
  .nav::details-content {
    content-visibility: visible;
    display: contents;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a:not(.button) {
  color: var(--grey);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.nav__list a:not(.button):hover,
.nav__list a[aria-current="page"] {
  color: var(--teal-strong);
}

@media (max-width: 999px) {
  .nav__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .nav__toggle::-webkit-details-marker {
    display: none;
  }

  .nav__toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .nav[open] nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
  }

  .nav__list a:not(.button) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 18px;
  }

  .nav__cta {
    margin-top: 16px;
  }

  .site-header__logo img {
    width: 180px;
  }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 720px);
  background: url("../img/hero.webp") center 30% / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 37, 37, 0.82) 0%, rgba(37, 37, 37, 0.55) 55%, rgba(37, 37, 37, 0.15) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}

.hero h1 {
  max-width: 13ch;
  color: var(--white);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* Generic blocks */

.block {
  padding: 96px 0;
}

.block--tint {
  background: var(--teal-mist);
}

/* Intro with screenshots */

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro .prose .lead {
  margin-bottom: 28px;
  color: var(--ink);
}

.carousel {
  min-width: 0;
}

.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 48px -16px rgba(37, 111, 101, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.carousel__track:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel__slide figure {
  margin: 0;
  padding: 16px 16px 0;
}

.carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: top;
}

.carousel__slide figcaption {
  padding: 12px 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--teal-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-strong);
  cursor: pointer;
}

.carousel__btn:hover {
  background: var(--teal-strong);
  color: var(--white);
}

.carousel__btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Sectors: white cards on the angled teal band */

.sectors {
  padding: 120px 0 104px;
  background: var(--teal);
  clip-path: polygon(0 48px, 100% 0, 100% calc(100% - 48px), 0 100%);
}

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

.sectors__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.sectors__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
}

.sectors__list .icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #e3e3e3;
}

.features .icon {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--teal);
}

.features p {
  margin: 0;
}

/* Adoption timeline */

.adoption {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 64px;
  align-items: start;
}

.adoption__intro {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.adoption__intro .lead {
  margin: 16px 0 28px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline > li {
  position: relative;
  padding: 0 0 48px 88px;
  counter-increment: step;
}

.timeline > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline > li::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--teal);
  opacity: 0.35;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline > li:last-child::after {
  display: none;
}

.timeline h3 {
  margin-bottom: 8px;
}

.timeline p {
  max-width: 62ch;
  margin: 0 0 8px;
}

.timeline ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.timeline ul li {
  margin-bottom: 4px;
}

/* Testimonial */

.quote {
  display: grid;
  grid-template-columns: 7fr 5fr;
  background: var(--teal-deep);
}

.quote__panel {
  padding: 96px 64px 96px max(24px, calc((100vw - 1200px) / 2 + 24px));
  color: var(--white);
}

.quote figure {
  max-width: 660px;
  margin: 0;
}

.quote blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.quote blockquote p {
  margin: 0 0 16px;
}

.quote blockquote p:first-child::before {
  content: "\201C";
}

.quote blockquote p:last-child::after {
  content: "\201D";
}

.quote figcaption {
  margin-top: 28px;
  font-size: 17px;
}

.quote figcaption strong {
  display: block;
  font-size: 19px;
}

.quote__image {
  min-height: 420px;
  background: url("../img/referenties.webp") center / cover no-repeat;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -10%;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}

.about .prose h2 {
  margin-bottom: 20px;
}

.about__logo {
  justify-self: center;
  width: 380px;
}

/* Closing call to action */

.cta {
  padding: 72px 0;
  background: var(--teal-deep);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  max-width: 24ch;
  color: var(--white);
  font-size: clamp(24px, 2.6vw, 32px);
}

/* Footer */

.site-footer {
  padding: 64px 0 32px;
  background: var(--grey);
  color: var(--white);
  font-size: 16px;
}

.site-footer a {
  color: var(--white);
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.site-footer p.site-footer__title {
  margin-bottom: 8px;
  font-weight: 700;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 48px);
  max-width: 1152px;
  margin-top: 48px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

.site-footer__bottom a + a {
  margin-left: 20px;
}

/* Contact page */

.page-head {
  padding: 72px 0 56px;
  background: var(--teal-mist);
}

.page-head h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.03em;
}

.page-head .lead {
  max-width: 60ch;
  margin: 16px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  align-items: start;
}

.contact-details h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.contact-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-details .icon {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--teal);
}

.contact-details address {
  font-style: normal;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 48px -24px rgba(37, 111, 101, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.form__wide {
  grid-column: 1 / -1;
}

.form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.form label span {
  color: var(--grey);
  font-weight: 400;
}

.form input,
.form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--teal-strong);
  outline: 3px solid rgba(56, 159, 146, 0.35);
  outline-offset: 0;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

altcha-widget {
  --altcha-max-width: 100%;
  --altcha-border-radius: 8px;
  --altcha-border-color: #bdbdbd;
  --altcha-color-primary: var(--teal-strong);
  --altcha-color-success: var(--teal-strong);
  --altcha-checkbox-outline-color: var(--teal);
  display: block;
  font-size: 15px;
}

.form__noscript {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--teal-mist);
}

.form__trap {
  position: absolute;
  left: -10000px;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form__footer p {
  margin: 0;
  font-size: 15px;
}

/* Confirmation and error pages */

.notice {
  padding: 120px 0;
}

.notice h1 {
  max-width: 20ch;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.notice p {
  max-width: 60ch;
  margin: 20px 0 0;
}

.notice .button {
  margin-top: 32px;
}

/* Responsive */

@media (max-width: 999px) {
  .intro__grid,
  .adoption,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .adoption__intro {
    position: static;
  }

  .sectors__list {
    grid-template-columns: 1fr;
  }

  .quote {
    grid-template-columns: 1fr;
  }

  .quote__panel {
    padding: 72px 24px;
  }

  .quote__image {
    min-height: 260px;
    margin-left: 0;
    clip-path: none;
  }

  .about__logo {
    justify-self: start;
    width: 280px;
  }
}

@media (max-width: 699px) {
  body {
    font-size: 16px;
  }

  .block {
    padding: 64px 0;
  }

  .hero::before {
    background: rgba(37, 37, 37, 0.72);
  }

  .hero__inner {
    padding: 96px 24px 64px;
  }

  .features,
  .form,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px;
  }

  .timeline > li {
    padding-left: 64px;
  }

  .timeline > li::before {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .timeline > li::after {
    left: 21px;
    top: 44px;
  }

  .cta__inner,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
