/* Algemene instellingen */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("images/background_watermerk.jpg") no-repeat top center fixed;
  background-size: cover;
  color: #003366;
}

html {
  overflow-y: scroll; /* altijd ruimte voor scrollbar */
}

/* Header */
.header-logo {
  position: relative;
  text-align: center;
}

.header-image {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Navigatie (desktop basis) */
.nav-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  position: relative;
}

.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

/* Menu-items */
.nav-overlay ul li a {
  display: inline-block;
  color: #003366;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.nav-overlay ul li a:hover {
  background: #97DAFB;
  color: #002b5c;
}

/* Actieve pagina */
.nav-overlay ul li a.active {
  background: #003366;
  color: white;
}

/* Offerteknop */
.nav-overlay ul li a.offerte-btn {
  background: #ffcc00;
  color: #003366 !important;
  font-weight: bold;
  border: 2px solid #003366;
}

.nav-overlay ul li a.offerte-btn:hover {
  background: #ffdb4d;
  color: #002244 !important;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
}

/* Main content */
main {
  padding: 20px;
  text-align: center;
}

/* Diensten */
.diensten {
  text-align: center;
  padding: 40px 20px;
}

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dienst {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Over ons */
.over-ons {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.over-ons h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #003366;
}

.over-blok {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #97DAFB;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.over-blok h2 {
  color: #003366;
  margin-bottom: 10px;
}

.over-blok ul {
  padding-left: 20px;
}

.map-image {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: block;
  margin: 20px auto;
}

/* Formulieren */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #003366;
}

form input,
form select,
form textarea {
  padding: 12px 14px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
  background-color: #fdfdfd;
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: 10px center;
}

/* Focus */
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #97DAFB;
  box-shadow: 0 0 6px rgba(151,218,251,0.6);
  outline: none;
  background-color: #ffffff;
}

/* Checkbox */
.checkbox {
  font-size: 14px;
  color: #333;
  background: rgba(255,255,255,0.9);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.checkbox a {
  color: #0055aa;
  text-decoration: none;
}

.checkbox a:hover {
  text-decoration: underline;
}

/* Knop */
.btn {
  background: linear-gradient(135deg, #003366, #0055aa);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #0055aa, #003366);
  transform: scale(1.02);
}

/* Verplichte velden */
.required {
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

.offerte {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.offerte-form input,
.offerte-form select,
.offerte-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.adres {
  font-size: 14px;
  color: #003366;
  margin: 10px 0;
  text-align: center;
}

.offerte-form hr {
  border: none;
  border-top: 1px solid #97DAFB;
  margin: 20px 0;
}

/* --- Hamburger menu knop --- */
.hamburger {
  display: none;
  position: absolute;
  top: 20px;
  left: 15px;
  font-size: 28px;
  cursor: pointer;
  z-index: 1100;
  color: #003366;
  background: none;
  border: none;
}

/* --- Mobiel menu --- */
@media (max-width: 768px) {
/* Hamburger knop onder logo (alleen mobiel) */
  .hamburger {
    display: block;
    font-size: 28px;
    color: #003366;
    background: #ffffff;
    border: 2px solid #003366;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 10px 0 0 5px; /* 20px van de linkerkant, 10px onder logo */
    cursor: pointer;
    position: relative; /* niet absoluut meer! */
    z-index: 1100;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    max-width: 270px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 1000;

    /* Animatie */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;

    /* Alleen zo hoog als nodig */
    height: auto;
    max-height: 30vh;
    overflow-y: auto;
  }

  .nav-overlay.show {
    transform: translateX(0);
  }

  .nav-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .nav-overlay ul li a {
    display: block;
    width: 100% - 20px);
    margin: 0 auto;
    padding: 6px 6px;
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
    border-radius: 6px;
    background: transparant;
    box-sizing: border-box
  }

  .nav-overlay ul li a.active {
    background: #003366;
    color: #ffffff;
}

  .nav-overlay ul li a:hover {
    background: #97DAFB;
    color: #002244;
  }

  /* Offerteknop */
  .nav-overlay ul li a.offerte-btn {
    background: #ffcc00;
    border: 2px solid #003366;
    text-align: center;
  }

  .nav-overlay ul li a.offerte-btn:hover {
    background: #ffdb4d;
  }

  .center-logo {
    max-width: 100%;    /* past zich aan schermbreedte aan */
    height: auto;       /* behoudt de juiste verhoudingen */
    display: block;
    margin: 20px auto;  /* centreren en wat ruimte geven */
  }

  .header-image {
    max-width: 80%;   /* logo groter */
    margin: 10px auto; /* marge boven/onder, gecentreerd */
    display: block;    /* blijft netjes in het midden */
  }
}

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

  .nav-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    position: relative;
  }

  .nav-overlay ul {
    display: flex;
    gap: 40px;
  }
}
