@font-face {
  font-family: "Manrope";
  src: url(../fonts/Manrope-VariableFont_wght.ttf) format("truetype");
  font-weight: 50 900;
}

@font-face {
  font-family: "Exo2";
  src: url(../fonts/Exo2-VariableFont_wght.ttf) format("truetype");
  font-weight: 50 900;
}

@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-VariableFont_opsz\wght.ttf) format("truetype");
  font-weight: 50 900;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-Italic-VariableFont_opsz\wght.ttf) format("truetype");
  font-weight: 50 900;
  font-style: italic;
}

@font-face {
  font-family: "IBM";
  src: url(../fonts/IBMPlexSans-VariableFont_wdth-wght.ttf) format("truetype");
  font-weight: 50 900;
  font-style: italic;
}

@font-face {
  font-family: "IBM";
  src: url(../fonts/IBMPlexSans-Italic-VariableFont_wdth-wght.ttf)
    format("truetype");
  font-weight: 50 900;
  font-style: italic;
}

:root {
  --primary-blue: #101d42;
  --highlight-blue: #00c1d9;
  --dark-blue: #0c1226;
  --light-gray: #f5f5f5;

  --font-size-base: clamp(0.875rem, 0.7434rem + 0.5263vw, 1.375rem);
  --font-size-h1: clamp(1.5rem, 0.7434rem + 3.0263vw, 4.375rem);
  --font-size-h2: clamp(1.25rem, 0.7895rem + 1.8421vw, 3rem);
  --font-size-button: clamp(0.75rem, 0.6vw + 0.4rem, 0.875rem);
  --font-size-small: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --font-size-small-md: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);

  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.contact-hero {
  background-color: var(--primary-blue);
  padding: 0.5rem 7vw 4rem 7vw;
  display: flex;
  height: 40vh;
  position: relative;
  overflow: hidden;
}

.contact-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  color: white;
  font-family: "Exo2", sans-serif;
  font-size: var(--font-size-h2);
}

.contact-hero-content h1 {
  font-size: var(--font-size-h1);
  z-index: 2;
  letter-spacing: 2px;
}

.breadcrumb a,
.breadcrumb span {
  font-size: var(--font-size-small);
  text-decoration: none;
  color: white;
}

.breadcrumb-highlight {
  color: var(--highlight-blue);
}

.hero-links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tandwiel {
  position: absolute;
  bottom: -110px; /* schuif deels buiten hero */
  right: 100px;
  width: 350px;
  height: auto;
  transform-origin: center center;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.formulier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  row-gap: 3rem;
}

.volle-breedte {
  grid-column: 1 / -1;
}

.formulier-groep {
  display: flex;
  flex-direction: column;
}

.contact-alles {
  display: flex;
  padding: 4rem 7vw;
  justify-content: space-between;
}

.contact-alles h3 {
  font-family: "IBM", sans-serif;
  margin-bottom: 1rem;
}

input,
textarea {
  border: none;
  border-bottom: solid 0.5px var(--primary-blue);
}

input:focus,
textarea:focus {
  border-bottom: solid 1px var(--primary-blue);
  outline: none;
}

.contact-formulier {
  display: flex;
  flex-direction: column;
  width: 45cqw;
  gap: 2rem;
  font-family: "IBM", sans-serif;
}

.contact-formulier button {
  all: unset;
  text-decoration: none;
  background-color: var(--highlight-blue);
  width: max-content;
  font-family: "IBM";
  margin-top: auto;
  color: var(--dark-blue);
  font-weight: 500;
  font-size: var(--font-size-button);
  padding: 0.7rem 1.4rem;
  border-radius: var(--border-radius-md);
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.contact-formulier button:hover {
  background-color: var(--primary-blue);
  color: var(--highlight-blue);
  border: 1px solid var(--highlight-blue);
}

.contact-formulier label {
  margin-bottom: 1rem;
}

.contactgegevens {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-zin {
  font-family: "IBM", sans-serif;
  font-weight: var(--font-size-base);
  font-weight: 300;
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 400px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item svg {
  width: 2rem;
}

.contact-item p {
  font-size: var(--font-size-base);
  font-family: "IBM", sans-serif;
}

.nav-rechts a:nth-of-type(1).actief,
.nav-rechts a:nth-of-type(2).actief,
.nav-rechts a:nth-of-type(3).actief {
  position: relative;
}

.nav-rechts a.actief::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background-color: var(--highlight-blue);
}

.projecten-overzicht {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 0 2rem 0;
}

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  align-items: stretch;
  padding: 2rem 7vw 2rem 7vw;
}

.project-links:nth-of-type(even) {
  background-color: var(--light-gray);
}

.projecten-overzicht h2 {
  font-size: var(--font-size-h2);
}

.projecten-overzicht p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  font-weight: 300;
}

.projecten-overzicht small {
  font-size: var(--font-size-small);
  font-style: italic;
}

.projecten-overzicht {
  font-family: "IBM", sans-serif;
}

.project-rechts .project-content p {
  text-align: right;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.project-content .projecten-datum {
  display: block;
  font-weight: 300;
  color: #555;
}

.project-button {
  display: inline-block;
  background-color: none;
  color: var(--highlight-blue);
  border: solid 1px var(--highlight-blue);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: auto;
  box-sizing: border-box;
  width: max-content;
  transition: 0.2s;
}

.project-button:hover {
  box-sizing: border-box;
  background-color: var(--highlight-blue);
  color: white;
  border: solid 1px var(--highlight-blue);
}

.project-afbeelding {
  position: relative;
  flex: 1;
}

.project-afbeelding img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.project-hero {
  background-color: var(--primary-blue);
  padding: 0.5rem 7vw 2rem 7vw;
  display: flex;
  height: 28vh;
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  color: white;
  font-family: "Exo2", sans-serif;
  font-size: var(--font-size-h2);
}

.project-hero-titel {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: auto;
}

.project-hero-titel img {
  width: 4rem;
  animation: spin 20s linear infinite;
}

.project-content-detail {
  display: flex;
  padding: 3rem 7vw 3rem 7vw;
  gap: 3rem;
  font-family: "IBM", sans-serif;
}

.project-content-tekst {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: var(--font-size-base);
}

.gaterug-button {
  display: inline-block;
  background-color: none;
  color: var(--highlight-blue);
  border: solid 1px var(--highlight-blue);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: auto;
  box-sizing: border-box;
  width: max-content;
  transition: 0.2s;
}

.gaterug-button:hover {
  box-sizing: border-box;
  background-color: var(--highlight-blue);
  color: white;
  border: solid 1px var(--highlight-blue);
}

/* === SLIDER === */

.slider-wrapper {
  position: relative;
  max-width: 35rem;
  margin: 0 auto;
}

.container {
  margin-left: auto;
}

.slider {
  display: flex;
  position: relative;
  aspect-ratio: 16/9;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 0.4rem;
}

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

.slider img {
  flex: 1 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
}

.slider-nav {
  display: flex;
  column-gap: 1.4rem;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.gaterug-button2 {
  display: none;
}

.slider-nav a {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.75;
  transition: opacity ease 250ms;
}

.slider-nav a:hover {
  opacity: 1;
}

.elektrotechniek,
.duurzame-energie,
.smart-home,
.thuisbatterij,
.klimaatbeheersystemen {
  display: none;
  font-family: "IBM", sans-serif;
  line-height: 1.6;
  font-weight: 300;
  font-size: var(--font-size-base);

  & b {
    font-weight: 500;
  }
}

.diensten:has(input[value="elektrotechniek"]:checked) .elektrotechniek,
.diensten:has(input[value="duurzaam"]:checked) .duurzame-energie,
.diensten:has(input[value="verlichting"]:checked) .smart-home,
.diensten:has(input[value="thuisbatterij"]:checked) .thuisbatterij,
.diensten:has(input[value="klimaat"]:checked) .klimaatbeheersystemen {
  display: flex;
  gap: 1rem;
  max-width: 1000px;
}

.diensten-verborgen-img {
  width: 30rem;
  height: 20rem;
  object-fit: cover;
  margin-left: auto;
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.diensten {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 7vw;
}

.diensten-intro {
  font-family: "IBM", sans-serif;
  color: var(--dark-blue);
  max-width: 1000px;
}

.diensten-intro h2 {
  font-size: var(--font-size-h2);
}

.diensten-intro p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.2rem;
  max-width: 1000px;
  margin: 0 0 2rem 0; /* ⬅️ geen auto-centering meer */
  text-align: center;
  justify-content: start; /* ⬅️ alle grid-items naar links */
}

.service-grid img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.service-item {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
  gap: 1rem;
  transition: background-color 0.3s ease;
  font-family: "IBM", sans-serif;
  font-size: var(--font-size-small);
}

.service-item:has(input:checked) {
  font-weight: 600;
  background-color: var(--primary-blue);
  border-radius: 4px;
  color: var(--highlight-blue);
}

.service-item:hover .service-img {
  animation: hover-twist 1s linear infinite;
}

.service-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes hover-twist {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(-8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.service-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .contact-alles {
    flex-direction: column;
    gap: 2rem;
  }

  .gaterug-button {
    display: none;
  }

  .gaterug-button2 {
    display: block;
    background-color: none;
    color: var(--highlight-blue);
    border: solid 1px var(--highlight-blue);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: auto;
    box-sizing: border-box;
    width: max-content;
    transition: 0.2s;
  }

  .gaterug-button2:hover {
    box-sizing: border-box;
    background-color: var(--highlight-blue);
    color: white;
    border: solid 1px var(--highlight-blue);
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .projecten-overzicht {
    gap: 0;
  }

  .nav-rechts a.actief::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background-color: var(--highlight-blue);
  }

  .project-links,
  .project-rechts {
    flex-direction: column-reverse;
    padding-right: 7vw;
    padding-left: 7vw;
  }

  .tandwiel-klein {
    display: none;
  }

  .slider-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  .project-links {
    flex-direction: column;
  }

  .project-rechts .project-content {
    align-items: flex-start;
  }

  .project-rechts .project-content p {
    text-align: left;
  }

  .project-content-tekst p {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .project-afbeelding::before {
    display: none;
  }

  .project-content-detail {
    flex-direction: column;
    padding: 1rem 5vw;
    gap: 1.4rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}
