:root {
  /* Kleuren en Arial komen rechtstreeks uit het XD-ontwerp. */
  --blue: #00536f;
  --orange: #ec671a;
  --light-blue: #0096fb;
  --header-height: 110px;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: var(--blue);
  color-scheme: light;
}

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

body {
  margin: 0;
}

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 19px 5%;
  border-bottom: 1px solid #e7e7e7;
  background: #fff;
}

.site-logo {
  display: block;
  width: 168px;
  height: 70px;
  max-width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(620px, calc(100vh - var(--header-height)));
  min-height: max(620px, calc(100svh - var(--header-height)));
  padding: 80px 32px clamp(72px, 6.25vw, 120px);
  background: var(--blue);
}

.hero__image {
  position: absolute;
  z-index: -1;
  inset: 96px 6.25%;
  background-image:
    radial-gradient(ellipse at center, transparent 0%, rgb(0 83 111 / 25%) 66%, rgb(0 83 111 / 50%) 100%),
    linear-gradient(to bottom, var(--blue), transparent 50%, var(--blue)),
    linear-gradient(to right, var(--blue), transparent 50%, var(--blue)),
    url("assets/elektricien.jpg");
  background-position: center, center, center, center 60%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__content {
  width: 100%;
  max-width: 1416px;
  margin-inline: auto;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.hero__content p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 13px 31px;
  border: 1px solid transparent;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  line-height: 21px;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button--email {
  background: var(--orange);
}

.button--phone {
  border-color: #e7e7e7;
  background: transparent;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgb(0 0 0 / 16%);
  }

  .button--email:hover {
    background: #c84d08;
  }

  .button--phone:hover {
    color: var(--blue);
    background: #fff;
    border-color: #fff;
  }
}

.button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.button:active {
  transform: translateY(0);
}

.hero__accent {
  position: absolute;
  right: 0;
  bottom: 96px;
  width: min(34.583333%, 664px);
  height: 24px;
  background: linear-gradient(to right, var(--orange), var(--light-blue));
}

@media (max-width: 1024px) {
  .hero__image {
    inset: 40px 0 56px;
  }

  .hero__accent {
    bottom: 24px;
    width: 40%;
    height: 16px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 94px;
  }

  .site-header {
    padding: 16px 24px;
  }

  .site-logo {
    width: 144px;
    height: 60px;
  }

  .hero {
    min-height: max(560px, calc(100vh - var(--header-height)));
    min-height: max(560px, calc(100svh - var(--header-height)));
    padding: 180px 24px 72px;
  }

  .hero__image {
    inset: 12px 0 80px;
    background-position: center, center, center, 60% center;
  }

  h1 {
    max-width: 440px;
    margin-bottom: 20px;
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.12;
  }

  .hero__content p {
    max-width: 380px;
    margin-bottom: 24px;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
    max-width: 380px;
    gap: 12px;
  }

  .button {
    min-height: 50px;
    padding-inline: 16px;
  }

  .hero__accent {
    width: 45%;
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
