/* MHS Media — site-brede fixes bovenop de Elementor-export.
   Eén bron van waarheid; wordt op elke pagina ingeladen via <link>. */

/* ---------------------------------------------------------- 1. animaties
   Elementor's entrance-animaties en motion-fx draaien pas als de bijbehorende
   JS scroll-events krijgt. Op de statische export levert dat elementen op die
   half zichtbaar blijven of tijdens het scrollen verspringen. Uitzetten. */
.elementor-element.animated,
.elementor-widget.animated,
[class*="elementor"].animated {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.elementor-invisible {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transform: none !important;
}
.elementor-motion-effects-element,
.elementor-motion-effects-layer,
[data-settings*="motion_fx"] {
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Element Pack (bdthemes) parallax/scrollspy: idem -- zonder de bijbehorende
   scroll-berekening blijven deze elementen op opacity:0 staan. */
[bdt-parallax], [data-bdt-parallax],
[bdt-scrollspy], [data-bdt-scrollspy],
.bdt-timeline-item-main, .bdt-timeline-icon {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* -------------------------------------------------- 2. plugin-restanten
   GTranslate en het CookieYes "revisit"-knopje laten een zwevend pijltje /
   witte strook achter zodra hun JS gestript is. */
.gtranslate_wrapper,
[id^="gt-wrapper"],
.gt_float_switcher,
[class*="gt_float"],
[class*="cky-revisit"],
.grecaptcha-badge {
  display: none !important;
}
html, body { background: #fff; }
body > header.elementor-location-header { margin-top: 0 !important; padding-top: 0 !important; }

/* WordPress zet tekst-emoji om naar <img class="emoji">; zonder de
   wp-emoji-styles worden die beeldvullend groot. */
img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 .07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

/* Lege widget-containers van verwijderde plugins mogen geen ruimte pakken. */
.elementor-widget-shortcode:empty,
.elementor-widget-container:empty { display: none !important; }

/* ------------------------------------------------------------- 3. links
   Losse links in lopende tekst erven anders de browser-standaard (blauw/paars).
   Buttons, nav-items en icon-links houden hun eigen kleur. */
html body a:not(.elementor-button):not(.elementor-item):not(.elementor-sub-item):not(.elementor-icon):not(.elementor-social-icon):not(.elementskit-btn) {
  color: var(--e-global-color-accent);
  text-underline-offset: 2px;
}
html body a:not(.elementor-button):not(.elementor-item):not(.elementor-sub-item):not(.elementor-icon):not(.elementor-social-icon):not(.elementskit-btn):hover {
  color: var(--e-global-color-darkeraccent, var(--e-global-color-accent));
}
/* ...maar niet de links die wit horen te zijn op een donkere header/hero. */
.elementor-location-header a[href^="tel:"],
.elementor-location-header a[href^="mailto:"],
.bdt-breadcrumbs, .bdt-breadcrumbs a,
.bdt-ep-breadcrumb, .bdt-ep-breadcrumb a, .bdt-ep-breadcrumb span,
.bdt-ep-breadcrumbs-wrapper, .bdt-ep-breadcrumbs-wrapper a,
.elementor-widget-breadcrumbs a,
.elementor-location-footer a:not(.elementor-button) { color: #fff !important; }
.elementor-location-header a[href^="tel:"]:hover,
.elementor-location-header a[href^="mailto:"]:hover,
.elementor-location-footer a:not(.elementor-button):hover {
  color: var(--e-global-color-accent) !important;
}

/* --------------------------------------------------------- 4. formulier
   De multi-step wizard wordt door Elementor's eigen frontend-JS opgebouwd;
   we voegen hier alleen de terugkoppeling na verzenden toe. */
.mhs-notice {
  margin: 14px 5px 0; padding: 13px 16px; border-radius: 8px;
  font-size: 15px; line-height: 1.5;
}
.mhs-notice.is-ok { background: #e7f6ec; color: #1a7f37; }
.mhs-notice.is-err { background: #fde8e8; color: #b91c1c; }

/* Select zichtbaar houden zonder de Elementor-caret te dubbelen. */
.elementor-field-type-select select.elementor-field-textual { cursor: pointer; }

/* ------------------------------------------------------- 5. mobiel & a11y */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Tap-targets: telefoon-/mail-links en iconen minstens 44px aanraakbaar. */
@media (max-width: 767px) {
  .elementor-location-header a[href^="tel:"],
  .elementor-location-header a[href^="mailto:"],
  .elementor-social-icon { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Zichtbare focus voor toetsenbordnavigatie. */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--e-global-color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------- 6. inhoud uit site.json (build) */
/* Reviewslider: kaarten in één rij even hoog, ook bij reviews van
   verschillende lengte. */
.elementskit-testimonial-slider .swiper-slide { height: auto; }
.elementskit-testimonial-slider .swiper-slide-inner,
.elementskit-testimonial-slider .elementskit-single-testimonial-slider { height: 100%; }

/* Cookietabel onder "Bewaartermijn en actieve cookies". */
.mhs-cookie-table { width: 100%; margin-bottom: 20px; }
.mhs-table-wrap { overflow-x: auto; }
.mhs-cookie-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mhs-cookie-table th,
.mhs-cookie-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e6e6e6; }
.mhs-cookie-table th { font-weight: 600; background: #f4f2ee; white-space: nowrap; }

/* Algemene voorwaarden (content/algemene-voorwaarden.html): lijsten krijgen
   dezelfde ruimte eronder als een alinea. */
.elementor-2486 .elementor-widget-text-editor ol,
.elementor-2486 .elementor-widget-text-editor ul { margin-bottom: 14px; }

/* HTML-sitemap (/sitemap/). */
.mhs-sitemap, .mhs-sitemap ul { list-style: none; margin: 0; padding: 0; }
.mhs-sitemap > li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 17px; }
.mhs-sitemap ul { margin: 6px 0 0 18px; }
.mhs-sitemap ul li { padding: 3px 0; font-size: 15px; }

/* ----------------------------- 7. homepage: kaartfoto "Vaak zonder vergunning" */
/* De woonunit staat in deze foto een klein stukje scheef; de foto draait daarom
   licht mee zodat de unit horizontaal oogt. De plugin-CSS van de hover-wrapper
   wordt op de statische export niet geladen, dus de knip (overflow:hidden) en
   de afronding staan hier expliciet: de gedraaide foto blijft zo binnen de
   afgeronde kaart, zonder rand of hoek die buiten de kaart steekt, op mobiel,
   tablet en desktop. De lichte zoom compenseert de draai; de zoom op hover
   blijft werken, met de kanteling erin. */
.elementor-1007 .elementor-element.elementor-element-676866f { border-radius: 10px; overflow: hidden; }
.elementor-1007 .elementor-element.elementor-element-676866f img {
  transform: rotate(-1.5deg) scale(1.08);
}
.elementor-1007 .elementor-element.elementor-element-676866f:hover img {
  transform: rotate(-1.5deg) scale(1.1);
}

/* -------------------------------------------------- 8. projectfotogalerij */
.mhs-project-gallery {
  display: grid;
  width: 100%;
  flex-basis: 100%;
  gap: 14px;
  margin-top: 32px;
}
.mhs-project-gallery--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 130px;
}
.mhs-project-gallery--projects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 155px;
}
.mhs-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 10px;
  background: #e9efee;
  box-shadow: 0 6px 16px rgba(17, 51, 49, .09);
}
.mhs-gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 38, 36, 0) 52%, rgba(8, 38, 36, .32));
  opacity: 0;
  transition: opacity .2s ease;
}
.mhs-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.mhs-gallery-item:hover img,
.mhs-gallery-item:focus-visible img { transform: scale(1.045); }
.mhs-gallery-item:hover::after,
.mhs-gallery-item:focus-visible::after { opacity: 1; }
.mhs-gallery-item__zoom {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 9px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--e-global-color-secondary, #163f3b);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
.mhs-gallery-item:hover .mhs-gallery-item__zoom,
.mhs-gallery-item:focus-visible .mhs-gallery-item__zoom {
  opacity: 1;
  transform: translateY(0);
}
.mhs-project-gallery--home .mhs-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.mhs-project-gallery--projects .mhs-gallery-item--portrait { grid-row: span 2; }
.mhs-project-gallery__cta {
  width: 100%;
  flex-basis: 100%;
  margin-top: 30px;
  text-align: center;
}
.mhs-project-gallery__cta .elementor-button {
  padding: 9px 22px;
  border-radius: 5px;
  background-color: var(--e-global-color-accent, #00b2a2);
  color: #fff;
  text-decoration: none;
}
.mhs-project-gallery__cta .elementor-button:hover,
.mhs-project-gallery__cta .elementor-button:focus {
  background-color: var(--e-global-color-darkeraccent, #008f83);
  color: #fff;
}

/* Volledig scherm voor de foto die een bezoeker in de galerij opent. */
.mhs-gallery-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 20, 19, .94);
}
.mhs-gallery-lightbox[hidden] { display: none; }
.mhs-gallery-lightbox__dialog {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(1180px, 100%);
  height: min(820px, 100%);
}
.mhs-gallery-lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  max-height: 100%;
  margin: 0;
  text-align: center;
}
.mhs-gallery-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}
.mhs-gallery-lightbox__caption {
  padding: 12px 52px 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}
.mhs-gallery-lightbox__close,
.mhs-gallery-lightbox__previous,
.mhs-gallery-lightbox__next {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0;
  line-height: 0;
}
/* De pijlen zijn echte SVG-iconen met een vaste viewBox. Daardoor staan ze
   optisch en technisch exact in het midden van hun ronde knop. */
.mhs-gallery-lightbox__previous svg,
.mhs-gallery-lightbox__next svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}
.mhs-gallery-lightbox__previous path,
.mhs-gallery-lightbox__next path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}
.mhs-gallery-lightbox__close {
  position: absolute;
  top: -2px;
  right: 0;
  color: #fff !important;
}
.mhs-gallery-lightbox__close::before,
.mhs-gallery-lightbox__close::after {
  position: absolute;
  width: 18px;
  height: 2px;
  content: "";
  border-radius: 1px;
  background: #fff !important;
}
.mhs-gallery-lightbox__close::before { transform: rotate(45deg); }
.mhs-gallery-lightbox__close::after { transform: rotate(-45deg); }
.mhs-gallery-lightbox__close:hover,
.mhs-gallery-lightbox__close:focus-visible,
.mhs-gallery-lightbox__close:active {
  color: #fff !important;
}
/* Het sluitvlak heeft in elke status bewust dezelfde donkere kleur. Dit
   voorkomt dat een themakleur kort zichtbaar is terwijl de lightbox opent. */
.mhs-gallery-lightbox__close,
.mhs-gallery-lightbox__close:hover,
.mhs-gallery-lightbox__close:focus,
.mhs-gallery-lightbox__close:focus-visible,
.mhs-gallery-lightbox__close:active {
  background: #121212 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.mhs-gallery-lightbox__previous:hover,
.mhs-gallery-lightbox__next:hover,
.mhs-gallery-lightbox__previous:focus-visible,
.mhs-gallery-lightbox__next:focus-visible { background: var(--e-global-color-accent, #00b2a2); }
.mhs-gallery-lightbox__close:focus-visible,
.mhs-gallery-lightbox__previous:focus-visible,
.mhs-gallery-lightbox__next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mhs-gallery-lightbox__close:focus:not(:focus-visible) { outline: 0; }

/* Elementor-lightboxes houden hun brede klikvlak. De zichtbare cirkel en
   het pictogram daarin worden vanuit exact hetzelfde middelpunt geplaatst. */
.elementor-lightbox .dialog-lightbox-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.elementor-lightbox .dialog-lightbox-close-button,
.elementor-lightbox .dialog-lightbox-close-button:hover,
.elementor-lightbox .dialog-lightbox-close-button:focus,
.elementor-lightbox .dialog-lightbox-close-button:focus-visible,
.elementor-lightbox .dialog-lightbox-close-button:active {
  color: #fff !important;
  background: #121212 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.elementor-lightbox .dialog-lightbox-close-button:focus:not(:focus-visible) { outline: 0; }
.elementor-lightbox .dialog-lightbox-close-button svg,
.elementor-lightbox .dialog-lightbox-close-button:hover svg,
.elementor-lightbox .dialog-lightbox-close-button:focus-visible svg,
.elementor-lightbox .dialog-lightbox-close-button:active svg {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: #fff !important;
}
.elementor-lightbox .elementor-swiper-button {
  display: block;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}
.elementor-lightbox .elementor-swiper-button i,
.elementor-lightbox .elementor-swiper-button svg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transform: translate(-50%, -50%) !important;
}
.elementor-lightbox .elementor-swiper-button i {
  font-size: 0 !important;
  line-height: 0 !important;
}
.elementor-lightbox .elementor-swiper-button i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  margin: 0;
  content: "";
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform-origin: center;
}
.elementor-lightbox .elementor-swiper-button-prev i::before {
  transform: translate(-50%, -50%) rotate(135deg);
}
.elementor-lightbox .elementor-swiper-button-next i::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.elementor-lightbox .elementor-swiper-button svg {
  padding: 12px !important;
}
.elementor-lightbox .elementor-swiper-button:hover i,
.elementor-lightbox .elementor-swiper-button:hover svg,
.elementor-lightbox .elementor-swiper-button:focus-visible i,
.elementor-lightbox .elementor-swiper-button:focus-visible svg {
  background: var(--e-global-color-accent, #00b2a2);
}
.elementor-lightbox .elementor-swiper-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}
body.mhs-gallery-lightbox-open { overflow: hidden; }

/* --------------------------------------------------- 9. homepage: fotoslideshow */
/* De foto's vormen de achtergrond van de bestaande hero. De vertrouwde overlay,
   teksten, knoppen en curve blijven daardoor precies op hun plek. */
#homeSection.mhs-hero-slideshow-enabled {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #284243;
}
#homeSection .mhs-hero-slideshow {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #284243;
}
#homeSection .mhs-hero-slideshow__slide {
  position: absolute;
  inset: -1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
#homeSection .mhs-hero-slideshow__slide.is-active { opacity: 1; }
#homeSection .mhs-hero-slideshow__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--mhs-hero-position, 50% 50%);
}
#homeSection > .elementor-background-overlay { z-index: 1; }
#homeSection > .elementor-container { position: relative; z-index: 2; }
#homeSection > .elementor-shape { z-index: 3; }

@media (max-width: 767px) {
  #homeSection .mhs-hero-slideshow__slide img {
    object-position: var(--mhs-hero-position-mobile, var(--mhs-hero-position, 50% 50%));
  }
}
@media (prefers-reduced-motion: reduce) {
  #homeSection .mhs-hero-slideshow__slide { transition: none; }
}

@media (max-width: 1024px) {
  .mhs-project-gallery--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mhs-project-gallery { gap: 9px; margin-top: 24px; }
  .mhs-project-gallery--home,
  .mhs-project-gallery--projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 142px;
  }
  .mhs-gallery-item__zoom { display: none; }
  .mhs-gallery-lightbox { padding: 18px 10px; }
  .mhs-gallery-lightbox__dialog {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    height: min(720px, 100%);
  }
  .mhs-gallery-lightbox__previous,
  .mhs-gallery-lightbox__next {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .mhs-gallery-lightbox__close { top: -6px; right: 2px; }
  .mhs-gallery-lightbox__close::before,
  .mhs-gallery-lightbox__close::after { width: 15px; }
  .mhs-gallery-lightbox__previous svg,
  .mhs-gallery-lightbox__next svg {
    width: 21px;
    height: 21px;
  }
  .elementor-lightbox .dialog-lightbox-close-button {
    width: 40px;
    height: 40px;
  }
  .elementor-lightbox .elementor-swiper-button i,
  .elementor-lightbox .elementor-swiper-button svg {
    width: 40px !important;
    height: 40px !important;
  }
  .elementor-lightbox .elementor-swiper-button svg { padding: 11px !important; }
  .mhs-gallery-lightbox__caption { padding: 10px 36px 0; font-size: 13px; }
}
