:root {
  --orange: #f78e1e;
  --orange-text: #8a4500;
  --ink: #30383b;
  --green: #a5c542;
  --muted: #b1b4b6;
  --text: #333333;
  --line: #dddddd;
  --surface: #f7f7f7;
  --white: #ffffff;
  --rail: 128px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --wrap: 960px;
  --font: "Roboto Slab", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --z-rail: 40;
  --z-tab: 50;
  --z-panel: 60;
  --z-cookie: 70;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--orange-text);
}

a:hover {
  color: var(--ink);
}

button,
a {
  touch-action: manipulation;
}

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: 0;
  z-index: 80;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.page {
  min-width: 0;
}

.rail {
  position: sticky;
  top: 0;
  z-index: var(--z-rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 72px;
  padding: 12px 16px 12px 20px;
  background: var(--ink);
  color: var(--white);
}

.rail-logo {
  display: block;
  flex: 0 0 auto;
}

.rail-logo img {
  width: 56px;
  height: auto;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
}

.menu-toggle svg {
  width: 36px;
  height: 18px;
}

.menu-toggle rect {
  fill: var(--muted);
  transition: fill 200ms ease;
}

.menu-toggle span {
  font-size: 14px;
  line-height: 1;
  text-transform: lowercase;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--white);
}

.menu-toggle:hover rect,
.menu-toggle:focus-visible rect {
  fill: var(--white);
}

.menu-toggle:hover rect:nth-child(1),
.menu-toggle:hover rect:nth-child(3),
.menu-toggle:focus-visible rect:nth-child(1),
.menu-toggle:focus-visible rect:nth-child(3) {
  fill: var(--orange);
}

.site-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--space-3) var(--space-3) var(--space-4);
  background: var(--ink);
}

.rail.is-open .site-menu {
  display: block;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  border-bottom: 1px solid #5c5c5c;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--orange);
}

.menu-close {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--orange);
  cursor: pointer;
}

.emergency-tab {
  position: fixed;
  top: 80px;
  right: 0;
  z-index: var(--z-tab);
  width: 112px;
  padding: 8px;
  border: 0;
  background: var(--orange);
  cursor: pointer;
}

.emergency-tab::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 12px;
  height: 65%;
  background: var(--orange);
}

.emergency-tab img {
  width: 100%;
  height: auto;
}

.emergency-panel {
  position: fixed;
  z-index: var(--z-panel);
  top: 80px;
  right: 0;
  width: min(440px, calc(100% - 24px));
  padding: 56px 24px 24px;
  background: var(--orange);
  color: var(--ink);
}

.emergency-panel[hidden] {
  display: none;
}

.emergency-panel img {
  width: min(220px, 100%);
  margin-bottom: var(--space-3);
}

.emergency-panel p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.emergency-panel a {
  color: var(--ink);
}

.emergency-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}

.masthead {
  padding: 88px 0 var(--space-3);
  text-align: center;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-4);
}

.quick-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.quick-contact a:hover {
  color: var(--orange-text);
}

h1 {
  margin: 0;
}

h1 img {
  width: min(460px, 100%);
  margin-inline: auto;
}

.payoff {
  max-width: 34rem;
  margin: var(--space-3) auto 0;
  color: var(--orange-text);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
}

.hero {
  background: #d5d8da url("../assets/img/bg-concrete.jpg") no-repeat center top;
  background-size: cover;
  padding: var(--space-2) 0 var(--space-6);
}

.hero-frame {
  position: relative;
  width: min(820px, calc(100% - 32px));
  margin-inline: auto;
}

.slides {
  position: relative;
  aspect-ratio: 1490 / 1000;
  background: var(--ink);
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev { left: 8px; }
.hero-next { right: 8px; }

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.hero-dots {
  display: flex;
  gap: 4px;
}

.hero-dots button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dots button::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-inline: auto;
  background: var(--orange);
  opacity: 0.45;
  border: 1px solid var(--white);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
}

.hero-dots button[aria-current="true"]::before {
  opacity: 1;
}

.hero-pause {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
}

.challenges {
  padding: var(--space-5) 0 var(--space-4);
}

.challenge {
  display: grid;
  gap: var(--space-3);
  align-items: center;
}

.challenge figure {
  margin: 0;
}

.challenge img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.challenge h3 {
  margin: 0 0 var(--space-2);
  color: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.challenge h3 strong {
  color: var(--orange-text);
  font-weight: 400;
}

.challenge p {
  margin: 0 0 var(--space-3);
}

.challenges hr {
  height: 1px;
  margin: var(--space-4) 0;
  border: 0;
  background: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-right: 10px;
  padding: 8px 28px;
  border: 0;
  background: #000000;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: -7px;
  width: 7px;
  height: 18px;
  background: inherit;
}

.btn:hover,
.btn:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: #5c656b;
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

.cta {
  margin-top: var(--space-4);
  padding: 88px 0 56px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  clip-path: polygon(0 28%, 12% 0, 100% 36%, 100% 100%, 0 100%);
}

.cta-mark {
  width: 64px;
  margin: 0 auto var(--space-3);
}

.cta p {
  margin: 0 0 var(--space-4);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
}

.stats {
  position: relative;
  padding: var(--space-6) 0;
  background: #1d2428 url("../assets/img/getallen-bg.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 24, 0.55);
}

.stats .wrap {
  position: relative;
}

.stats-grid {
  display: grid;
  gap: var(--space-4);
}

.stats p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 64px;
  font-weight: 100;
  line-height: 1;
}

.stat-label {
  margin-top: var(--space-1);
  color: var(--orange);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.contact {
  scroll-margin-top: 88px;
  padding: var(--space-6) 0;
  background: var(--surface);
}

#uitdagingen,
#cijfers,
#top {
  scroll-margin-top: 88px;
}

.contact h2 {
  margin: 0 0 var(--space-2);
  color: var(--ink);
  font-size: 40px;
  font-weight: 300;
}

.contact-details p {
  margin: 0 0 var(--space-3);
  max-width: 38rem;
}

.contact address {
  margin: 0 0 var(--space-3);
  font-style: normal;
  line-height: 1.6;
}

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

.contact-list li {
  display: grid;
  gap: 2px;
  margin-bottom: var(--space-2);
}

.contact-list span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.contact-list a {
  color: var(--orange-text);
  font-size: 20px;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}

.site-footer img {
  width: min(280px, 70%);
  margin-inline: auto;
}

.site-footer hr {
  height: 1px;
  margin: var(--space-4) auto;
  border: 0;
  background: var(--line);
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

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

.site-footer a {
  color: var(--orange-text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.social {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  padding: var(--space-2) 0;
  background: var(--white);
  border-top: 1px solid #aaaaaa;
}

.cookie[hidden] {
  display: none;
}

.cookie-inner {
  display: grid;
  gap: var(--space-2);
  align-items: center;
}

.cookie-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.cookie p {
  margin: 0;
}

body.has-cookie {
  padding-bottom: 180px;
}

@media (min-width: 768px) {
  .masthead {
    padding-top: var(--space-4);
  }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    display: block;
    width: var(--rail);
    min-height: 100%;
    padding: 28px 16px 24px;
  }

  .rail.is-open {
    width: min(420px, 100%);
    padding: 28px 48px 32px 28px;
  }

  .page {
    margin-left: var(--rail);
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .rail.is-open .menu-toggle {
    display: none;
  }

  .rail.is-open .menu-close {
    display: grid;
    place-items: center;
  }

  .site-menu {
    position: static;
    padding: var(--space-4) 0 0;
    background: transparent;
  }

  .site-menu a {
    font-size: 24px;
    line-height: 1.25;
  }

  .emergency-tab {
    top: 0;
    width: 150px;
    padding: 10px;
  }

  .emergency-panel {
    top: 0;
    width: min(500px, calc(100% - 48px));
    padding: 64px 40px 40px;
  }

  .challenge {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .challenge-flip figure {
    order: 2;
  }

  .challenge-copy {
    padding-inline: var(--space-3);
  }

  .cta {
    padding: 140px 0 80px;
    clip-path: polygon(0 22%, 8% 0, 100% 46%, 100% 100%, 0 100%);
  }

  .cta p {
    font-size: 48px;
  }

  .stat-number {
    font-size: 88px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1.4fr 1fr;
    align-items: center;
    text-align: left;
    justify-items: start;
  }

  .social {
    justify-self: end;
  }

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

  body.has-cookie {
    padding-bottom: 120px;
  }
}

@media (min-width: 1024px) {
  .payoff {
    font-size: 22px;
  }

  .challenge h3 {
    font-size: 30px;
  }

  .stat-number {
    font-size: 100px;
    line-height: 1.1;
  }
}

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

  .slide,
  .menu-toggle rect {
    transition: none;
  }
}
