/* ============================================================
   NAVIGATIE v3.0 – Twee-balk systeem
   Bovenste balk (groen): CTA knoppen
   Onderste balk (creme): Logo + menu + zoek
   ============================================================ */

/* ── GEDEELD ── */
.hdr-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}

/* ── HEADER WRAPPER ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ══ BOVENSTE BALK ══ */
#header-top {
  background: #2d5e3a;
  height: 40px;
}
#header-top .hdr-container {
  justify-content: space-between;
  height: 40px;
}
.hdr-top-tagline {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-top-right {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.hdr-top-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.hdr-top-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.hdr-top-doneer {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d4a843;
  border: 1.5px solid #d4a843;
  background: transparent;
  padding: 0.18rem 0.7rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.hdr-top-doneer:hover {
  background: #d4a843;
  color: #2a2a2a;
}
.hdr-top-partner {
  font-size: 0.75rem;
  font-weight: 700;
  background: #c8633a;
  color: #fff !important;
  padding: 0.22rem 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.hdr-top-partner:hover {
  background: #a64e2b;
  color: #fff !important;
}

/* ══ ONDERSTE BALK ══ */
#header-main {
  background: rgba(253,248,242,0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #e8e0d5;
  height: 60px;
}
#header-main .hdr-container {
  height: 60px;
  gap: 0.5rem;
}

/* ── LOGO ── */
.hdr-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 1rem;
}
.hdr-logo img { display: block; }

/* ── PRIMAIR MENU ── */
#hdr-nav {
  flex: 1;
  min-width: 0;
}
#primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
#primary-menu > li {
  position: relative;
}
#primary-menu > li > a {
  display: block;
  padding: 0.4rem 0.65rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.81rem;
  font-weight: 500;
  color: #2a2a2a;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-page-ancestor > a {
  background: #f0e8d8;
  color: #2d5e3a;
}

/* Dropdown */
#primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8e0d5;
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}
#primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-menu .sub-menu a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.81rem;
  border-radius: 6px;
  color: #2a2a2a;
  text-decoration: none;
}
#primary-menu .sub-menu a:hover {
  background: #f0e8d8;
  color: #2d5e3a;
}

/* ── ZOEKKNOP ── */
.hdr-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b6b6b;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.hdr-icon-btn:hover {
  color: #2d5e3a;
  background: #f0e8d8;
}

/* ── HAMBURGER ── */
.hdr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 1.5px solid #e8e0d5;
  border-radius: 7px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 38px;
  height: 36px;
}
.hdr-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #2a2a2a;
  border-radius: 2px;
  transition: all 0.2s;
}
.hdr-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr-hamburger.open span:nth-child(2) { opacity: 0; }
.hdr-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══ ZOEKBALK ══ */
#hdr-search {
  background: #fff;
  border-top: 2px solid #2d5e3a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.25s;
}
#hdr-search.open {
  max-height: 130px;
  padding: 0.9rem 0 1rem;
}
#hdr-search .hdr-container {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
#hdr-search form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
#hdr-search-input {
  flex: 1;
  border: 2px solid #e8e0d5;
  border-radius: 9px;
  padding: 0.65rem 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  background: #fdf8f2;
  outline: none;
  transition: border-color 0.2s;
}
#hdr-search-input:focus {
  border-color: #2d5e3a;
  background: #fff;
}
#hdr-search form button[type="submit"] {
  background: #2d5e3a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
#hdr-search form button[type="submit"]:hover { background: #3d7a4e; }
#hdr-search-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #6b6b6b;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s;
}
#hdr-search-close:hover { color: #2a2a2a; }
.hdr-search-tips {
  font-size: 0.73rem;
  color: #6b6b6b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.hdr-search-tips a {
  background: #f0e8d8;
  color: #2a2a2a;
  border-radius: 100px;
  padding: 0.15rem 0.65rem;
  text-decoration: none;
  font-size: 0.73rem;
  transition: background 0.15s, color 0.15s;
}
.hdr-search-tips a:hover {
  background: #2d5e3a;
  color: #fff;
}

/* ══ MOBIEL MENU ══ */
#mobile-menu {
  position: fixed;
  top: 0; right: -100%; bottom: 0;
  width: min(360px, 94vw);
  background: #fff;
  z-index: 1100;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu.open { right: 0; }
#mobile-menu-inner { padding: 0; }

.mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #e8e0d5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
#mm-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #6b6b6b;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  transition: color 0.15s;
}
#mm-close:hover { color: #2a2a2a; }

.mm-search {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1.3rem;
  border-bottom: 1px solid #e8e0d5;
}
.mm-search input {
  flex: 1;
  border: 1.5px solid #e8e0d5;
  border-radius: 7px;
  padding: 0.48rem 0.8rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  outline: none;
  background: #fdf8f2;
}
.mm-search input:focus { border-color: #2d5e3a; }
.mm-search button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.mm-nav {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mm-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2a2a2a;
  transition: background 0.15s, color 0.15s;
}
.mm-nav a:hover,
.mm-nav a.mm-current {
  background: #f0e8d8;
  color: #2d5e3a;
}
.mm-nav a span {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.mm-ctas {
  padding: 0.8rem 1.3rem 1.2rem;
  border-top: 1px solid #e8e0d5;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mm-ctas > p {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 0.1rem;
}
.mm-btn {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s;
}
.mm-btn-primary { background: #c8633a; color: #fff !important; }
.mm-btn-primary:hover { background: #a64e2b; }
.mm-btn-outline { background: transparent; color: #2d5e3a; border: 1.5px solid #2d5e3a; }
.mm-btn-outline:hover { background: #2d5e3a; color: #fff; }
.mm-btn-ghost { background: #f0e8d8; color: #2a2a2a; }
.mm-btn-ghost:hover { background: #e8e0d5; }

/* ── OVERLAY ── */
#mm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1099;
  pointer-events: none;
  transition: background 0.32s;
}
#mm-overlay.open {
  background: rgba(0,0,0,0.45);
  pointer-events: all;
}

/* ══ PAGINA OFFSET: hoogte bovenste + onderste balk ══ */
body { padding-top: 100px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  #hdr-nav { display: none; }
  .hdr-icon-btn { display: none; }
  .hdr-hamburger { display: flex; }
  .hdr-top-tagline { display: none; }
  .hdr-top-right { margin-left: 0; }
  body { padding-top: 100px; }
}
@media (max-width: 600px) {
  .hdr-top-link { display: none; }
  #header-top .hdr-container { justify-content: flex-end; }
  body { padding-top: 100px; }
}
