/* codeheroes, one stylesheet for the whole site. Colours and type follow DESIGN.md. */

@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/wix-madefor-display-600.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Wix Madefor Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/wix-madefor-text-400.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Wix Madefor Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/wix-madefor-text-500.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Wix Madefor Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/wix-madefor-text-600.woff2) format('woff2');
  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 {
  --deep-blue: #233D4D;
  --amber: #F2A541;
  --teal: #086375;
  --white: #FFFFFF;
  --mist: #EEF3F4;
  --footer-blue: #1B303D;
  --amber-ink: #14242E;
  --slate: #4A5F6B;
  --chalk-muted: #D5DEE3;
  --teal-muted: #D6E8EC;
  --label-on-dark: #A9BCC6;
  --dash-grey: #8FA3AD;
  --hairline-light: #CBD6DB;
  --hairline-logos: #D7E0E4;
  --hairline-blue: #3D5666;
  --hairline-teal: #2B7C8C;
  --display: 'Wix Madefor Display', 'Wix Madefor Text', system-ui, sans-serif;
  --text: 'Wix Madefor Text', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 8vw, 112px);
  --muted: var(--slate);
}

/* Base */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--footer-blue);
  color: var(--deep-blue);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { display: block; background: var(--white); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
img { border: 0; }

::selection { background: var(--deep-blue); color: var(--white); }
.dark ::selection { background: var(--white); color: var(--deep-blue); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 3px; }
.dark a:focus-visible { outline-color: var(--white); }

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--deep-blue);
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* Layout helpers */

.wrap { max-width: 1200px; margin: 0 auto; }
.gutter { padding: 0 var(--gutter); }
.section { padding: var(--section-y) var(--gutter); }
.dark { color: var(--white); }
.bg-blue { background: var(--deep-blue); --muted: var(--chalk-muted); }
.bg-teal { background: var(--teal); --muted: var(--teal-muted); }
.bg-mist { background: var(--mist); }
.muted { color: var(--muted); }

/* Type */

.display {
  max-width: 960px;
  font-family: var(--display);
  font-size: clamp(42px, 6.2vw, 90px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.headline {
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}
.title {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.title-md { font-size: 24px; }
.title-sm { font-size: 22px; }
.lead { font-size: 20px; line-height: 1.55; }
.small { font-size: 17px; }
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Links and buttons */

.tl:hover,
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 22px;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  transition: background-color .2s, color .2s;
}
.ghost:hover { background: var(--white); color: var(--deep-blue); }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  box-sizing: border-box;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter .2s;
}
.cta:hover { filter: brightness(1.1); }
.go svg { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.go:hover svg { transform: translateX(4px); }

/* Header */

.site-header { padding: 0 var(--gutter); background: var(--deep-blue); }
.site-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 92px;
  box-sizing: border-box;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 36px;
}
.logo { margin-right: auto; display: inline-flex; align-items: center; min-height: 48px; }
.logo img { display: block; width: 168px; height: auto; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 36px;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a { padding: 12px 0; }

/* Hero */

.hero { overflow: hidden; padding: clamp(28px, 3vw, 44px) 0 clamp(40px, 5vw, 64px); }
.hero__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__lead { max-width: 640px; font-size: 20px; line-height: 1.5; color: var(--chalk-muted); }
.stage {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin: clamp(-108px, -7vw, -56px) auto 0;
  aspect-ratio: 1560 / 660;
  container-type: inline-size;
}
.stage-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.stage-vline { display: none; pointer-events: none; }
.stop { position: absolute; display: flex; flex-direction: column; gap: 4px; }
.stop--maatwerk { left: 20.6%; top: 85%; }
.stop--duurzaam { right: 54%; top: 72%; text-align: right; }
.stop--security { left: 64%; top: 37.5%; }
.stop-t {
  font-family: var(--display);
  font-size: clamp(19px, 1.8cqw, 26px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.stop-s { font-size: clamp(13px, 1.1cqw, 16px); line-height: 1.4; color: var(--chalk-muted); }
.stop:hover .stop-t { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.stage .cta {
  position: absolute;
  left: 77.4%;
  top: 61.2%;
  font-size: clamp(17px, 1.45cqw, 21px);
  min-height: clamp(52px, 4.5cqw, 66px);
  padding: 0 clamp(22px, 2.3cqw, 34px);
}

/* The line draws itself once on load */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; animation: draw 1.8s cubic-bezier(.16, 1, .3, 1) both; }
}

/* Section blocks */

.stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.intro { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.intro p { max-width: 600px; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px 32px;
}
.service { display: flex; flex-direction: column; gap: 20px; }
.service svg { display: block; width: 100%; height: auto; }
.pair { display: flex; flex-direction: column; gap: 8px; }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 88px; }
.split__text {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.checks {
  flex: 1.3 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hairline-teal);
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline-teal);
}
.checks svg { flex: none; margin-top: 2px; }
.checks .pair { gap: 6px; }

.security { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.security__top { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.security__text {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.findings {
  flex: 1 1 420px;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.findings figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
}
.findings__title { font-family: var(--display); font-size: 20px; font-weight: 600; }
.tag { color: var(--slate); border: 1px solid var(--dash-grey); border-radius: 999px; padding: 3px 12px; }
.finding {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline-light);
}
.finding:last-child { padding-bottom: 4px; }
.finding__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.finding__title { font-weight: 600; line-height: 1.35; }
.finding__fix { font-size: 16px; color: var(--slate); }
.chip {
  flex: none;
  box-sizing: border-box;
  width: 84px;
  padding: 8px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.chip--high { background: var(--deep-blue); color: var(--white); }
.chip--medium { padding: 6.5px 0; border: 1.5px solid var(--deep-blue); color: var(--deep-blue); }
.chip--low { background: #D5E0E5; color: var(--deep-blue); }

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 36px 32px;
}
.ruled { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--deep-blue); }

.narrow { max-width: 760px; }

.steps-wrap { position: relative; padding-top: 92px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.steps-line { position: absolute; left: 0; top: 0; width: 100%; height: 64px; overflow: visible; }
.steps-vline { display: none; }
.disc {
  position: absolute;
  left: 0;
  top: -78px;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--deep-blue);
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  color: var(--white);
}

.klanten { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.logos {
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 16px 32px;
  align-items: center;
  border-top: 1px solid var(--hairline-logos);
  border-bottom: 1px solid var(--hairline-logos);
}
.logos li { display: flex; align-items: center; justify-content: center; min-height: 96px; }
.logos img { display: block; height: auto; }
.logo-demco { width: min(100%, 185px); }
.logo-practinet { width: min(100%, 165px); }
.logo-carrefour { width: min(100%, 200px); }
.logo-gallop { width: min(100%, 138px); }
.cases { display: grid; gap: 36px 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more .link { align-self: flex-start; }

.over { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 88px; }
.mark {
  flex: 0 1 440px;
  min-width: min(280px, 100%);
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  border-radius: 18px;
  background: var(--deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark svg { display: block; width: 62%; height: auto; }
.over__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.over__text p { max-width: 620px; }

.contact { overflow: hidden; padding: var(--section-y) 0 clamp(56px, 7vw, 88px); }
.contact__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.close-title {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.contact__intro p { max-width: 560px; }
.close-row {
  display: flex;
  align-items: center;
  margin-top: clamp(20px, 3vw, 36px);
  padding-right: max(var(--gutter), calc((100% - 1200px) / 2));
}
.close-line { flex: 1 1 0; min-width: 0; height: 110px; overflow: visible; margin-right: -22px; }
.close-row .cta { position: relative; flex: none; }
.details-wrap { margin-top: clamp(48px, 6vw, 72px); }
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px 24px;
  border-top: 1px solid var(--hairline-blue);
  padding-top: 32px;
  font-size: 17px;
}
.detail { display: flex; flex-direction: column; gap: 8px; }
.detail .label { color: var(--label-on-dark); }
.detail a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin: -8px 0;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.detail p { color: var(--chalk-muted); }

/* Footer */

.site-footer { padding: 0 var(--gutter); background: var(--footer-blue); color: var(--label-on-dark); }
.site-footer__bar {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 88px;
  box-sizing: border-box;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 15px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Text pages: privacy, cookies, 404 */

body:has(> .page) { display: flex; flex-direction: column; min-height: 100vh; }
.page { flex: 1 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) var(--section-y); }
.page__inner { max-width: 720px; margin: 0 auto; }
.page__inner > .headline { margin-bottom: clamp(32px, 4vw, 48px); }
.prose h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.prose h3 {
  margin: 32px 0 8px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.3em; list-style: disc; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--slate); }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose a[href^="tel:"] { white-space: nowrap; }
.page--404 .page__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page--404 .page__inner > .headline { margin-bottom: 0; }

/* Responsive */

@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .stage {
    aspect-ratio: auto;
    max-width: none;
    margin-top: 32px;
    box-sizing: border-box;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
  }
  .stage-line { display: none; }
  .stage-vline { display: block; grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 100%; overflow: visible; }
  .stop { position: relative; left: auto; right: auto; top: auto; grid-column: 2; padding: 0 0 26px; text-align: left; }
  .stop::before {
    content: "";
    position: absolute;
    left: -49px;
    top: 2px;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--deep-blue);
    border: 4px solid var(--white);
  }
  .stop-t { font-size: 22px; }
  .stop-s { font-size: 15px; }
  .stage .cta { position: static; grid-column: 1 / -1; justify-self: start; margin-top: -4px; font-size: 19px; min-height: 56px; padding: 0 30px; }
  .steps-wrap { padding: 0 0 0 60px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps-line { display: none; }
  .steps-vline { display: block; position: absolute; left: 0; top: 0; width: 44px; height: 100%; overflow: visible; }
  .disc { left: -56px; top: -4px; }
}
@media (max-width: 900px) {
  .site-nav { order: 3; flex-basis: 100%; gap: 4px clamp(12px, 4vw, 28px); }
}
@media (max-width: 700px) {
  .close-row { justify-content: flex-end; }
  .close-line { flex: none; width: 700px; }
}
@media (max-width: 600px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ghost, .cta, .go svg { transition: none; }
}
