/* Aelbrecht-Maes launch layer.
   Styling for the pieces WordPress used to provide: form feedback, the cookie
   bar and the search results page. Deliberately small and scoped with an
   am- prefix so it can never collide with Astra or Elementor. */

/* ---------------------------------------------------------------- forms -- */
.am-form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.am-form-msg.show { display: block; }
.am-form-msg.ok  { background: #eaf5ee; border: 1px solid #b8ddc6; color: #14532d; }
.am-form-msg.err { background: #fbeceb; border: 1px solid #f0c4c0; color: #8a2018; }

.elementor-form button[type="submit"].am-loading {
  opacity: .6;
  pointer-events: none;
}

/* ---------------------------------------------------------- cookie bar -- */
.am-cookie {
  position: fixed;
  z-index: 99999;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  font-size: 14.5px;
  line-height: 1.55;
}
.am-cookie p { margin: 0 0 14px; color: #e6e6e6; }
.am-cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.am-cookie button {
  font: inherit;
  font-weight: 600;
  border-radius: 9px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid #fff;
}
.am-cookie .am-accept  { background: #fff; color: #000; }
.am-cookie .am-accept:hover { background: #e9e9e9; }
.am-cookie .am-decline { background: transparent; color: #fff; border-color: #555; }
.am-cookie .am-decline:hover { border-color: #fff; }
@media (max-width: 480px) {
  .am-cookie { padding: 18px; }
  .am-cookie-btns button { flex: 1 1 auto; }
}

/* --------------------------------------------------------------- search -- */
/* The site header is absolutely positioned over the page content, so this
   panel needs enough head room to clear it on every breakpoint. */
.am-search {
  max-width: 860px;
  margin: 0 auto;
  padding: 210px 20px 120px;
}
@media (max-width: 1024px) { .am-search { padding-top: 170px; } }
@media (max-width: 600px)  { .am-search { padding: 140px 18px 80px; } }
.am-search__title {
  font-family: "TT Commons Pro Bold", sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 26px;
}
.am-search__form { display: flex; gap: 10px; flex-wrap: wrap; }
.am-search__form input[type="search"] {
  flex: 1 1 260px;
  font-size: 17px;
  padding: 15px 18px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  background: #fff;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
}
.am-search__form input[type="search"]:focus {
  outline: 2px solid #000;
  outline-offset: -1px;
  border-color: #000;
}
.am-search__form button {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.am-search__form button:hover { background: #242424; }

.am-search__count { margin: 22px 0 0; color: #6b6b6b; font-size: 15px; }
.am-search__results { list-style: none; margin: 22px 0 0; padding: 0; }
.am-search__results li { border-top: 1px solid #e4e4e4; padding: 22px 0; }
.am-search__results a {
  font-family: "TT Commons Pro Bold", sans-serif;
  font-size: 21px;
  line-height: 1.3;
  color: #000;
  text-decoration: none;
}
.am-search__results a:hover { text-decoration: underline; }
.am-search__results p { margin: 7px 0 0; color: #4a4a4a; font-size: 15.5px; line-height: 1.6; }
.am-search__results mark { background: #f4e2e2; color: inherit; padding: 0 2px; }
.am-search__results .am-url { display: block; margin-top: 8px; color: #8a8a8a; font-size: 13.5px; }

/* ------------------------------------------------- lichte paginakop -- */
/* De hoofdnavigatie is wit, want ze ligt normaal over een donkere hero.
   Op /zoeken/ en de 404-pagina begint de inhoud met een witte achtergrond,
   waardoor de menu-items onzichtbaar werden. Op die pagina's zetten we de
   navigatie donker. */
.am-light-header .elementor-nav-menu--main .elementor-item,
.am-light-header .elementor-nav-menu--main .elementor-item:focus,
.am-light-header .elementor-nav-menu--main .elementor-item:hover,
.am-light-header .elementor-nav-menu--main .elementor-item.elementor-item-active {
  color: #111 !important;
  fill: #111 !important;
}
.am-light-header .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:after {
  background-color: #111 !important;
}
.am-light-header .elementor-nav-menu--main .e--pointer-framed .elementor-item:after {
  border-color: #111 !important;
}
.am-light-header .elementor-nav-menu--main .sub-arrow svg { fill: #111 !important; }

/* ================================================ hoofdnavigatie ====== */
/* De submenu's openden nooit: Elementor levert ze wel mee, maar de
   smartmenus-laag die ze op hover toont draait niet betrouwbaar op de
   statische mirror. We regelen het zelf, op hover, focus en klik. */
@media (min-width: 1025px) {
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children {
    position: relative;
  }
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children > ul.sub-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
    margin: 0;
    padding: 8px 0;
    min-width: max-content;
    max-width: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 999;
  }
  /* Onzichtbare brug, zodat de muis van het menu-item naar het submenu kan
     zonder door een gat te gaan waardoor het weer dichtklapt. */
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children > ul.sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children:hover > ul.sub-menu,
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children:focus-within > ul.sub-menu,
  .elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children.am-open > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .elementor-nav-menu--main .sub-menu .elementor-sub-item {
    display: block;
    white-space: nowrap;
    padding: 11px 26px;
    color: #111;
    font-size: 15px;
  }
  .elementor-nav-menu--main .sub-menu .elementor-sub-item:hover,
  .elementor-nav-menu--main .sub-menu .elementor-sub-item:focus,
  .elementor-nav-menu--main .sub-menu .elementor-sub-item.elementor-item-active {
    background: #f2f2f2;
    color: #111;
  }
  /* Pijltje meedraaien als het submenu open staat. */
  .elementor-nav-menu--main li.menu-item-has-children > a .dropdown-menu-toggle,
  .elementor-nav-menu--main li.menu-item-has-children > a .sub-arrow {
    transition: transform .18s ease;
  }
  .elementor-nav-menu--main li.menu-item-has-children:hover > a .dropdown-menu-toggle,
  .elementor-nav-menu--main li.menu-item-has-children.am-open > a .dropdown-menu-toggle,
  .elementor-nav-menu--main li.menu-item-has-children:hover > a .sub-arrow,
  .elementor-nav-menu--main li.menu-item-has-children.am-open > a .sub-arrow {
    transform: rotate(180deg);
  }
}

/* --------------------------------------------------- beleidspagina's -- */
.am-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 210px 20px 120px;
  color: #1f1f1f;
  font-size: 16.5px;
  line-height: 1.75;
}
@media (max-width: 1024px) { .am-doc { padding-top: 170px; } }
@media (max-width: 600px)  { .am-doc { padding: 140px 18px 80px; font-size: 16px; } }

.am-doc__title {
  font-family: "TT Commons Pro Bold", sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin: 0 0 20px;
  color: #000;
}
.am-doc__intro { font-size: 18px; color: #4a4a4a; margin: 0 0 44px; max-width: 62ch; }
.am-doc h2 {
  font-family: "TT Commons Pro Bold", sans-serif;
  font-size: 25px;
  line-height: 1.25;
  margin: 46px 0 12px;
  color: #000;
}
.am-doc h3 {
  font-family: "TT Commons Pro Demibold", sans-serif;
  font-size: 18px;
  margin: 28px 0 8px;
  color: #000;
}
.am-doc p { margin: 0 0 14px; }
.am-doc ul { margin: 0 0 16px; padding-left: 22px; }
.am-doc li { margin-bottom: 8px; }
.am-doc a { color: #9a3333; text-decoration: underline; text-underline-offset: 2px; }
.am-doc a:hover { color: #000; }
.am-doc strong { font-weight: 600; }
.am-doc__updated { margin-top: 48px; color: #7a7a7a; font-size: 15px; }

.am-doc__btn {
  font: inherit;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
}
.am-doc__btn:hover { background: #242424; }

/* Brede tabellen mogen zelf scrollen, de pagina nooit. */
.am-doc__table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.am-doc__table thead th {
  text-align: left;
  font-weight: 600;
  background: #f4f4f4;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 14px;
  white-space: nowrap;
}
.am-doc__table td {
  border-bottom: 1px solid #ececec;
  padding: 10px 14px;
  vertical-align: top;
  min-width: 120px;
}

/* ------------------------------------------------ kaart-placeholder -- */
.am-map-hold {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 320px;
  height: 100%;
  padding: 32px 26px;
  background: #f2f2f2;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.6;
}
.am-map-hold p { margin: 0; max-width: 42ch; }
.am-map-hold button {
  font: inherit;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
}
.am-map-hold button:hover { background: #242424; }
.am-map-hold__addr { color: #7a7a7a; font-size: 14px; }

/* ------------------------------------------------------ menu-dropdown -- */
/* Vervangt de schermvullende Elementor-popup achter de menuknop. */
.am-menu {
  position: fixed;
  z-index: 9998;
  width: 300px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .20);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.am-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.am-menu ul { list-style: none; margin: 0; padding: 0; }
.am-menu a {
  display: block;
  padding: 11px 24px;
  font-family: "TT Commons Pro Demibold", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #111;
  text-decoration: none;
}
.am-menu a:hover,
.am-menu a:focus-visible {
  background: #f2f2f2;
  color: #000;
}
.am-menu a.is-actief { color: #9a3333; }
.am-menu__kop {
  margin: 6px 0 2px;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.am-menu__lijn {
  border: 0;
  border-top: 1px solid #ececec;
  margin: 10px 0;
}
@media (max-width: 600px) {
  .am-menu { max-height: calc(100vh - 110px); }
  .am-menu a { padding: 13px 22px; font-size: 17px; }
}
