@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f5f5;
  font-family: "Open Sans", sans-serif;
}

.links {
  margin-right: 10px;
  /* Ruimte tussen linker- en rechterwoord */
}

.rechts {
  margin-left: 10px;
  /* Ruimte tussen linker- en rechterwoord */
}

button#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background-color: #161f7a;
  color: #fff;
  font-size: 20px;
  border-radius: 20%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 999;
  opacity: 0.8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button#scrollToTopBtn:hover {
  background-color: #1321b9;
  opacity: 1;
}

.containerHead {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.containerHead button {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 20px;
  background-color: #ffffff;
  color: #161f7a;
  transition: background-color 0.3s ease;
  letter-spacing: 1px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.containerHead button:hover {
  cursor: pointer;
  background-color: #8bb2e9;
  color: #161f7a;
  transform: translateY(-5px);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.index {
  background-image: url(../fotos/cooling-web.jpg);
  background-size: cover;
  background-position: center;
  padding-top: 300px;
  padding-bottom: 450px;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.containerHead {
  text-align: center;
}

.titel {
  font-weight: 600;
  font-size: 40px;
  color: #ffffff;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.woorden {
  display: flex;
  color: #ffffff;
  font-size: 20px;
  padding: 10px;
  justify-content: space-around;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.links,
.rechts {
  margin: 0 10px;
}

.index h1 {
  font-size: 50px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0;
}

.index p {
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 20px;
}

main {
  margin: 0 auto;
  max-width: 1800px;
}

.meer {
  display: none;
}

.wie {
  width: 200px;
  margin-left: 50px;
  margin-right: 50px;
  border-radius: 10px;
}

.textRight {
  position: relative;
}

/* ---------- Over ons: betere responsiveness ---------- */
.overOns {
  background-color: #f5f5f5;
  text-align: center;
  padding-top: 50px;
  margin: 0 auto;
}

.overOnsFlex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 75%;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
  font-size: 50px;
  transition: 0.5s;
}

.imageLeft {
  flex: 1 1 0;
  max-width: 800px;
  box-shadow: 0 18px 40px rgba(13, 23, 84, 0.1);
  border-radius: 26px;
  padding: 38px 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(22, 31, 122, 0.08);
}

.textRight {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overOnsFlex .meerPic {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.text1,
.text2 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  color: #24304f;
}
/* ---------------------------------------------------- */

.lijn {
  width: 75%;
  padding-bottom: 25px;
  margin: 50px auto; /* boven/onder = 25px, links/rechts = auto */
  border-bottom: 2px solid #161f7a;
}

.lijn2 {
  width: 75%;
  padding-bottom: 25px;
  margin: 0 auto 50px auto; /* centreren + margin-bottom */
  border-bottom: 2px solid #161f7a;
}

.index h1 {
  background: -webkit-linear-gradient(left, #161f7a, #1321b9);
  background: -o-linear-gradient(right, #161f7a, #1321b9);
  background: -moz-linear-gradient(right, #161f7a, #1321b9);
  background: linear-gradient(to right, #161f7a, #1321b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vanovermeerenLogo {
  width: 10%;
  border-radius: 20%;
  margin-top: 1%;
  margin-left: 20%;
}

.vanovermeerenLogoPosition {
  margin-left: 3%;
}

.backgroundLogo {
  width: 100%;
  top: -10;
}

/* ---------- BOXES: 4×1 → 2×2 → 1×1, vaste afmetingen ---------- */
.box {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 300px); /* 4 op een rij */
  grid-auto-rows: 380px; /* vaste hoogte */
  gap: 40px;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 1%;
  height: auto;
}

@media screen and (max-width: 1200px) {
  .box {
    grid-template-columns: repeat(2, 300px);
  } /* 2×2 */
}

@media screen and (max-width: 640px) {
  .box {
    grid-template-columns: repeat(1, 300px);
  } /* 1×1 */
}

.vanLinks,
.vanRechts,
.vanBeneden,
.boxes {
  width: 300px;
  height: 380px;
  margin: 0;
  box-sizing: border-box;
  transition: 0.5s;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

/* Icon bovenaan, blijft zichtbaar */
.icoon {
  font-size: 70px;
  display: flex;
  margin-left: 40%;
  margin-top: 10%;
  border-radius: 20px;
}

/* Titel-balk blijft zichtbaar */
.prodtext {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  color: #fff;
  background-color: #161f7a;
  padding: 2%;
  margin-top: 5%;
  font-weight: bold;
  font-size: 25px;
}

/* FOTO in plaats van beschrijvingstekst */
.tile-photo {
  width: 100%;
  height: 58%;
  object-fit: cover;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  display: block;
  margin: 0px auto 0;
  transition: transform 0.5s ease;
}

.boxes:hover {
  transform: scale(1.05);
}

/* Verberg oude beschrijvingstekst indien nog aanwezig */
.beschrijving {
  display: none;
}
/* -------------------------------------------------------------- */

strong {
  color: #161f7a;
}

.specTitle {
  text-align: center;
  font-size: 30px;
}

.sectionOne {
  padding-top: 50px;
  position: relative;
  margin-bottom: 150px;
}

.logo-on-image {
  width: 450px;
  border-radius: 10px;
}

textarea {
  width: 100%;
  height: 150px;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
}

.realisaties h2 {
  text-align: center;
}

.realisaties p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  margin-top: 25px;
}

.realisaties {
  margin-bottom: 100px;
}

.reaKnopPos {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.reaKnop {
  margin-top: 25px;
  display: inline-block;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  border: solid 2px #8bb2e9;
  border-radius: 20px;
  background-color: #8bb2e9;
  color: #161f7a;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.reaKnop:hover {
  cursor: pointer;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.reaContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-flow: wrap;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 1%;
  margin-bottom: 4%;
}

.reaContainer img {
  width: 400px;
  height: 300px;
  border-radius: 20px;
  padding: 10px;
}

iframe {
  border-radius: 5px;
}

.locatieKaart {
  margin-top: 50px;
  margin-bottom: 150px;
  width: 50%;
  margin-left: 25%;
  height: 450px;
  text-align: center;
  box-sizing: border-box;
  font-size: 50px;
  transition: 0.5s;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 5px;
}

.fa-chevron-up {
  color: white;
  font-size: 30px;
  margin-top: 10px;
  margin-left: 10px;
}

/* Extra grote schermen */
@media screen and (min-width: 2000px) {
  .logo-on-image {
    width: 600px;
    margin-top: 100px;
  }

  .containerHead button {
    padding: 15px 25px;
    font-size: 25px;
  }
}

/* Mobiel & kleinere schermen */
@media screen and (max-width: 600px) {
  .index h1 {
    font-size: 30px;
  }

  .index p {
    font-size: 15px;
  }

  .logo-on-image {
    width: 350px;
  }

  .containerHead button {
    padding: 10px 15px;
  }

  .containerHead {
    width: 400px;
  }

  .titel {
    font-size: 25px;
  }

  .woorden {
    font-size: 12px;
  }

  .scrollButton {
    margin-right: 30px;
  }

  p.reaUitleg {
    font-size: 15px;
  }
}

@media screen and (max-width: 1200px) {
  .logo-on-image {
    margin-top: 0;
  }

  .index {
    padding-bottom: 0px;
    padding-top: 250px;
    min-height: 86vh;
  }

  .containerHead {
    max-width: 1200px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -250px;
  }
}

/* Over ons stapelt onder elkaar op small screens */
@media screen and (max-width: 1400px) {
  .overOnsFlex {
    flex-direction: column;
    gap: 20px;
    width: 90%;
  }
  .imageLeft,
  .textRight {
    width: 100%;
    max-width: 900px;
  }

  .imageLeft {
    padding: 30px 24px;
    border-radius: 20px;
  }
}

@media screen and (max-width: 800px) {
  .sectionOne {
    padding-top: 50px;
    position: relative;
    margin-bottom: 100px;
  }

  .reaKnopPos {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 600px) {
  .text1,
  .text2 {
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
  }
}

@media screen and (max-height: 650px) {
  .index {
    padding-bottom: 0px;
    padding-top: 150px;
    min-height: 86vh;
  }
}

@media screen and (max-height: 450px) {
  .index {
    padding-bottom: 0;
    padding-top: 70px;
    min-height: 86vh;
  }
}

@media screen and (max-width: 420px) {
  .containerHead button {
    padding: 10px 15px;
    font-size: 15px;
  }

  .logo-on-image {
    width: 300px;
  }
}

@media screen and (max-width: 330px) {
  .box {
    grid-template-columns: repeat(1, 300px);
  }
}

@media screen and (max-width: 500px) {
  .containerHead {
    width: 400px;
  }

  .reaContainer img {
    width: 250px;
    height: 180px;
    border-radius: 20px;
    padding: 10px;
  }

  .locatieKaart {
    margin-top: 50px;
    margin-bottom: 50px;
    width: 80%;
    margin-left: 10.5%;
    height: 450px;
  }
}

.partnersSection {
  width: 75%;
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.partnersSection h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partnersSlider {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.partnersTrack {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: scrollPartners 25s linear infinite;
  will-change: transform;
}

.partnersSlider:hover .partnersTrack {
  animation-play-state: paused;
}

.partnerLogo {
  flex: 0 0 auto;
  width: 220px;
  height: 120px;
  background: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.partnerLogo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.partnerLogo img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.partnerLogo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.partnerLogo img.panasonicLogo {
  height: 50px;
}

.partnerLogo img.buderusLogo {
  height: 75px;
}

.partnerLogo img.begetubeLogo {
  height: 65px;
}

.partnerLogo img.villeroyBochLogo {
  height: 90px;
}

.partnerLogo img.hansgroheLogo {
  height: 100px;
}

.partnerLogo img.viegaLogo {
  height: 80px;
}

/* animatie */
@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* responsive */
@media screen and (max-width: 768px) {
  .partnersSection {
    width: 90%;
    padding: 60px 0;
  }

  .partnersSection h2 {
    font-size: 1.6rem;
  }

  .partnersSlider {
    margin-top: 30px;
  }

  .partnersTrack {
    gap: 20px;
    animation-duration: 20s;
  }

  .partnerLogo {
    width: 170px;
    height: 100px;
    padding: 15px;
  }

  .partnerLogo img {
    height: 45px; /* basis kleiner op mobiel */
  }

  .partnerLogo img.villeroyBochLogo,
  .partnerLogo img.hansgroheLogo {
    height: 50px;
  }
}
