.hero-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video-container video.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4); /* Donkere transparante laag */
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.hero-overlay button {
  padding: 0.8rem 2rem;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-overlay button:hover {
  background-color: #fff;
  color: #294140;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-down-arrow img,
.scroll-down-arrow svg {
  width: 36px;
  height: 36px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Feature overlap */
#features {
  scroll-margin-top: 100px; /* adjust based on your navbar height */
}

 .features {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 1.5rem;
   padding-top: 4rem;
   padding-bottom: 4rem;
   max-width: 1400px;
   margin: 0 auto;
}
 .feature-box {
     border: 2px solid #294140;
     padding: 1.5rem;
     border-radius: 12px;
     width: 280px;
     text-align: left; /* <<< dit zorgt voor links uitlijnen */
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
 .feature-box h2 {
   font-size: 1.5rem;
   margin-bottom: 0.5rem;
   font-family: 'Inter', sans-serif;
}

.feature-box p {
   font-size: 0.9rem;
   color: #555;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.2rem;
}

/* Responsive behavior */
@media screen and (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .hero-overlay button {
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
  }

  .features {
    margin-top: 4rem;
  }
}

/* Sustainability-banner */
.sustainability-banner {
  background-color: #d1e7b4;
  position: relative;
  text-align: center;
  min-height: 30vh;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem; /* zodat tekst niet tegen rand plakt */
}

.sustainability-banner h2 {
  font-size: 64px;
  font-family: 'Playfair Display', serif;
  color: #294140;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.recycle-icon {
  position: absolute;
  top: 50%;
  height: 85%;
  transform: translateY(-50%);
  opacity: 1;
  pointer-events: none;
}

.recycle-icon.left {
  left: 0;
}

.recycle-icon.right {
  right: 0;
}

@media (max-width: 1018px) {
    .sustainability-banner h2 {
        font-size: 48px;
    }
}

@media (max-width: 838px) {
    .sustainability-banner h2 {
        font-size: 40px;
    }
}

@media (max-width: 714px) {
    .sustainability-banner h2 {
        font-size: 32px;
    }
    .recycle-icon {
        height: 65%;
    }
}

@media (max-width: 598px) {
    .sustainability-banner h2 {
        font-size: 32px;
    }
    .recycle-icon {
        height: 50%;
    }
}

@media (max-width: 500px) {
    .sustainability-banner h2 {
        font-size: 24px;
    }
    .recycle-icon {
        height: 50%;
    }
}

@media (max-width: 408px) {
    .sustainability-banner h2 {
        font-size: 24px;
    }
    .recycle-icon {
        height: 60%;
    }
    .sustainability-banner {
        min-height: 20vh;
    }
}

@media (max-width: 375px) {
    .sustainability-banner h2 {
        font-size: 20px;
    }
    .recycle-icon {
        height: 60%;
    }
    .sustainability-banner {
        min-height: 20vh;
    }
}

/*About Us*/
.about-us-section {
  background-color: #ffffff;
  padding: 4rem 2rem 0 2rem; /* top 0, left/right 2rem, bottom 4rem */
  z-index: 30000;
}

.about-us-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-us-text {
  flex: 1;
  max-width: 520px;
}

.about-us-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-us-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.about-us-image {
  flex: 1;
  text-align: center;
}

.about-us-image img {
  max-width: 100%;
  height: 600px;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-us-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .about-us-text {
    max-width: 100%;
  }
}

.section-divider-nobilis {
  position: relative;
  overflow: visible; /* let the image overflow into next section */
  z-index: 0;
}

.nobilis-branch-wrapper {
  position: relative;
  z-index: 0;
  margin-top: -180px;   /* Pull into section A */
  margin-bottom: -120px; /* Pull into section B */
  pointer-events: none;
}

.nobilis-branch-wrapper img {
  width: 45%;
  max-width: 1248px;
  display: block;
  margin-left: 0;
  margin-right: auto;
  opacity: 0.3;
  user-select: none;
}

@media (max-width: 1042px) {
  .section-divider-nobilis {
    display: none;
  }
}



/*How we work*/
.how-we-work {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 9rem;
  padding: 0 2rem 4rem 2rem; /* top 0, left/right 2rem, bottom 4rem */
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* already helps stacking */
}

#howwework {
  scroll-margin-top: 100px; /* adjust based on your navbar height */
}

.video-preview {
  position: relative;
  flex: 1;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper-portrait {
  position: relative;
  width: 100%;
  padding-top: 125%; /* 4:5 aspect ratio */
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper-landscape {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 12px;
}

.video-preview.landscape {
  max-width: 800px !important;
}

.video-wrapper-landscape video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}


.video-wrapper-portrait video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.work-text {
  flex: 1;
  max-width: 500px;
}

.work-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.work-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #294140;
}

@media (max-width: 768px) {
  .work-points li {
    justify-content: center;
    text-align: left;
  }
}

.work-points li img {
  width: 36px;
  height: 36px;
}

@media (max-width: 1042px) {
  .how-we-work {
    padding-top: 4rem;
  }
}

@media (max-width: 768px) {
  .how-we-work {
    flex-direction: column;
    padding-top: 4rem;
    text-align: center;
    gap: 2rem;
  }

  .work-text {
    margin-top: 2rem;
  }

  .work-points li {
    justify-content: center;
  }

  
  #howwework {
    scroll-margin-top: 80px; /* adjust based on your navbar height */
  }
}

@media (max-width: 768px) {
  .video-wrapper-portrait {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    display: block;
  }

  .video-wrapper-portrait video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .video-preview {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

.contact-section {
  background-color: #ffffff;
  padding: 4rem 2rem;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-text {
  flex: 1;
  max-width: 520px;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border: 1px solid #294140;
  background-color: transparent;
  color: #294140;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background-color: #294140;
  color: #fff;
}

.contact-image {
  flex: 1;
  text-align: center;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .contact-text {
    max-width: 100%;
  }

  .contact-form .form-row {
    flex-direction: column;
  }

  .contact-form button {
    align-self: center;
  }

  .contact-section {
    padding-top: 4rem;
  }
}

.nordic-confirm {
  background-color: #294140;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nordic-confirm:hover {
  background-color: #3a5a58;
}
