@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #faf9f4;
  --ink: #191b17;
  --body: #42453d;
  --yellow: #f8d601;
  --blue: #009cc4;
  --green: #38d430;
  --navy: #062034;
  --edge: #e4e3da;
  --gutter: clamp(1rem, 3.3vw, 3.5rem);
  --frame: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #006785;
  outline-offset: 4px;
}

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

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

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.06;
}

.frame {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--frame));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: white;
  font-weight: 700;
  transform: translateY(calc(-100% - 1rem));
}

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

.site-header {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: min(45vw, 16.25rem);
  min-height: 2.75rem;
}

.site-brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.75rem);
  font-size: 0.975rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-nav .nav-contact {
  padding: 0.52rem 1.1rem;
  border: 1px solid #d5d5c9;
  border-radius: 999px;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.98fr;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--yellow);
}

.hero-content {
  align-self: center;
  padding: clamp(2.2rem, 5vw, 4.65rem);
}

.hero h1 {
  font-size: clamp(3.1rem, 5.65vw, 5.5rem);
  letter-spacing: -0.082em;
  line-height: 0.99;
}

.hero h1 span {
  display: block;
}

.hero p {
  max-width: 28rem;
  margin-top: 1.35rem;
  color: #242519;
  font-size: clamp(1.05rem, 1.48vw, 1.2rem);
  line-height: 1.52;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.32rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button-dark {
  margin-top: 1.55rem;
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: #35382e;
}

.hero-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  background: #d3dddb;
}

.hero-media img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 0.55rem;
  background: linear-gradient(90deg, var(--yellow) 0 64%, var(--blue) 64% 87%, var(--green) 87% 100%);
  content: "";
}

.companies,
.contact-panel {
  scroll-margin-top: 1rem;
}

.companies {
  padding-block: clamp(3.1rem, 6vw, 5rem) clamp(3rem, 5.4vw, 4.65rem);
}

.companies h2,
.contact-panel h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.55rem);
  letter-spacing: -0.068em;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.65rem);
  margin-top: 1.6rem;
}

.company {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 1.25rem;
  background: white;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.company:hover,
.company:focus-within {
  border-color: var(--company-line);
  box-shadow: 0 0.5rem 1.25rem #191b1710;
}

.company-bildning {
  --company-tint: #fff3b7;
  --company-line: #b89a00;
  --company-link: #252515;
}

.company-shaer {
  --company-tint: #e1f4f9;
  --company-line: #009cc4;
  --company-link: #005b75;
}

.company-ehance {
  --company-tint: #eaf5e5;
  --company-line: #5da548;
  --company-link: #255424;
}

.company-brand {
  position: relative;
  display: flex;
  min-height: 7.5rem;
  align-items: center;
  overflow: hidden;
  padding: 1rem clamp(1.2rem, 2vw, 1.85rem);
  background: var(--company-tint);
}

.company-brand::after {
  position: absolute;
  top: -4.4rem;
  right: -3.2rem;
  width: 12.5rem;
  height: 12.5rem;
  border: 1.75rem solid #ffffff62;
  border-radius: 41%;
  transform: rotate(-25deg);
  content: "";
}

.company-brand img {
  position: relative;
  z-index: 1;
  width: clamp(7rem, 11vw, 9.1rem);
  height: auto;
}

.company-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.2rem, 2vw, 1.85rem);
}

.company h3 {
  font-size: clamp(1.32rem, 2vw, 1.66rem);
  letter-spacing: -0.043em;
}

.company p {
  margin-block: 0.72rem 1.12rem;
  color: var(--body);
  line-height: 1.56;
}

.company-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: auto;
  padding: 0.42rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--company-tint);
  color: var(--company-link);
  font-weight: 800;
  text-decoration: none;
}

.company-link::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.company a:hover {
  border-color: var(--company-line);
}

.company a:focus-visible {
  outline-offset: 2px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.6rem, 4.7vw, 3.3rem);
  border-radius: 1.35rem;
  background: var(--navy);
  color: white;
}

.contact-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.95rem);
}

.contact-panel p {
  margin-top: 0.55rem;
  color: #dce8ee;
  font-size: 1.05rem;
}

.button-light {
  flex-shrink: 0;
  background: var(--yellow);
  color: var(--ink);
}

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

.button-light:focus-visible {
  outline-color: white;
}

.site-footer {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding-block: 1.4rem;
  color: var(--body);
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 4.7rem;
  }

  .hero {
    grid-template-columns: 1fr;
    border-radius: 1.15rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 8.6vw, 4.8rem);
  }

  .hero-content {
    padding: clamp(1.5rem, 5.5vw, 3.25rem);
  }

  .hero-media {
    aspect-ratio: 1.65;
  }

  .company-grid {
    grid-template-columns: 1fr;
    margin-top: 1.2rem;
  }

  .company-brand {
    min-height: 6.25rem;
  }

  .company-brand img {
    width: 8.4rem;
  }

  .company h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 490px) {
  .site-brand {
    width: min(58vw, 13rem);
  }

  .site-nav a[href="#bedrijven"] {
    display: none;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
