/* Algemene opmaak */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f5f5;
  color: #333;
  overflow-x: hidden;
}

header {
  position: relative;
  background-color: #3b4e2f;
  color: white;
  padding: 2rem;
  text-align: center;
}

.bedrijfsnaam {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 0;
}

.slogan {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  margin-top: 0.5rem;
}

/* Navigatie algemeen */
.nav-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.topnav {
  background-color: #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-top: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  max-width: 220px;
  height: auto;
}

.adresblok p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.nav-icon {
  font-size: 1rem;
  color: white;
}

/* Hamburgerknop */
#menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 20%;
  left: 5%;
  background-color: rgba(59, 78, 47, 0.7);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: bold;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: glinstering 4s infinite;
}

@keyframes glinstering {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Intro */
.intro {
  padding: 2rem;
  background-color: white;
  margin: 1rem auto;
  border-radius: 8px;
  max-width: 800px;
  text-align: center;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.intro strong {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
}

/* Contactformulier */
.contact-form {
  background-color: white;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="file"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background-color: #4a5f3d;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #3b4e2f;
}

/* Portfolio */
.portfolio {
  padding: 2rem;
  background-color: white;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Voor-en-na voorbeelden */
.voorbeeld-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem;
}

.voorbeeld {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.voorbeeld img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

.label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(59, 78, 47, 0.8);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  z-index: 3;
}

.voorbeeld img.voor {
  opacity: 1;
  z-index: 1;
}

.voorbeeld img.na {
  opacity: 0;
  z-index: 2;
}

.voorbeeld.active img.voor {
  opacity: 0;
}

.voorbeeld.active img.na {
  opacity: 1;
}

/* Diensten */
.diensten {
  padding: 2rem;
  background-color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.diensten h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.dienst-kaart {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  max-width: 280px;
  text-align: center;
}

.dienst-kaart:hover {
  transform: scale(1.03);
}

.dienst-kaart i {
  font-size: 2rem;
  color: #3b4e2f;
  margin-bottom: 1rem;
  display: block;
}

.dienst-kaart img.dienst-icoon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* Alleen de kitspuit-afbeelding groter maken */
.dienst-kaart img.kitspuit-groot {
  width: 70px;
  height: 70px;
}

.dienst-kaart h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Mobiele navigatie */
@media (max-width: 768px) {
  .mobiele-menu-balk {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3b4e2f;
    padding: 1rem;
    position: relative;
    z-index: 20;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-left: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: auto;
    display: flex;
    justify-content: center;
  }

  .nav-links li a {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: #708D81;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease;

    /* 👇 Verbeterde styling */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
    border: 2px solid #4a5f38; /* iets lichter dan #3b4e2f */
  }

  .nav-links li a:hover {
    background-color: #5f7c6f;
  }
}

/* Desktop navigatie */
@media (min-width: 769px) {
  .mobiele-menu-balk {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
    padding-left: 0;
  }

  .nav-links li {
    width: auto;
  }

  .nav-links li a {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: #708D81;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease;

    /* 👇 Verbeterde styling */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
    border: 2px solid #4a5f38;
  }

  .nav-links li a:hover {
    background-color: #5f7c6f;
  }
}