/* Vanbecelaere Hauspie - cookie banner, form messages, dynamic project cards
   and small mobile fixes. Brand accent: #892b1f. */

/* Hide the leftover Elementor design example card on the projects listing
   ("NAME OF PROJECT" / "CLASIFICATION" placeholder). */
.elementor-element-13f146f { display: none !important; }

/* Hide the broken Complianz banner that ships in the export. */
#cmplz-cookiebanner-container,
.cmplz-cookiebanner,
#cmplz-manage-consent { display: none !important; }

/* ---------------------------------------------------------- cookie banner */
#avh-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#avh-cookie.show { display: block; }
#avh-cookie .avh-cookie-box {
  max-width: 460px;
  margin-left: auto;
  background: #ffffff;
  color: #222;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
}
#avh-cookie .avh-cookie-text { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
#avh-cookie a { color: #892b1f; text-decoration: underline; }
#avh-cookie .avh-cookie-prefs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
#avh-cookie .avh-cookie-prefs label { font-size: 14px; display: flex; align-items: center; gap: 8px; }
#avh-cookie .avh-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#avh-cookie .avh-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #892b1f;
  line-height: 1;
}
#avh-cookie .avh-btn-ghost { background: #fff; color: #892b1f; }
#avh-cookie .avh-btn-ghost:hover { background: #f6eceb; }
#avh-cookie .avh-btn-solid { background: #892b1f; color: #fff; }
#avh-cookie .avh-btn-solid:hover { background: #6f221a; }
@media (max-width: 520px) {
  #avh-cookie { left: 10px; right: 10px; bottom: 10px; }
  #avh-cookie .avh-cookie-box { padding: 16px; }
  #avh-cookie .avh-cookie-actions { justify-content: stretch; }
  #avh-cookie .avh-btn { flex: 1 1 auto; text-align: center; }
}

/* ----------------------------------------------------------- form message */
.avh-form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.avh-form-msg.ok { background: #eef6ee; color: #1f5b2a; border: 1px solid #cfe6cf; }
.avh-form-msg.err { background: #fbecea; color: #892b1f; border: 1px solid #f0cfca; }

/* ----------------------------------------------------------- mobile menu */
#avh-burger { display: none; }
#avh-mobilenav { display: none; }
@media (max-width: 1024px) {
  #avh-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: fixed; top: 18px; right: 18px; z-index: 100000;
    width: 46px; height: 46px; padding: 11px; border: none; border-radius: 8px;
    background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer;
  }
  #avh-burger span { display: block; height: 2px; width: 100%; background: #892b1f; border-radius: 2px; transition: transform .25s, opacity .2s; }
  #avh-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #avh-burger.open span:nth-child(2) { opacity: 0; }
  #avh-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #avh-mobilenav {
    display: block; position: fixed; inset: 0; z-index: 99998;
    background: #fff; padding: 90px 28px 40px;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  #avh-mobilenav.open { transform: translateX(0); visibility: visible; }
  #avh-mobilenav ul { list-style: none; margin: 0; padding: 0; }
  #avh-mobilenav li { border-bottom: 1px solid #eee; }
  #avh-mobilenav li a { display: block; padding: 18px 4px; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #222; text-decoration: none; }
  #avh-mobilenav .avh-lang { display: flex; gap: 18px; border-bottom: none; padding-top: 18px; }
  #avh-mobilenav .avh-lang a { font-size: 15px; color: #892b1f; padding: 6px 0; }
}

/* --------------------------------------------------- dynamic project cards */
a.avh-project-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
a.avh-project-card img { width: 100%; height: auto; display: block; }
a.avh-project-card .avh-project-title { display: block; margin-top: 8px; font-weight: 600; }
a.avh-project-card .avh-project-cat { display: block; font-size: 13px; opacity: 0.7; }
