/* ==========================================================================
   Elbay - uitschuifmenu
   Vervangt de Elementor Pro popup (id 1864). Zelfde look: rood paneel dat van
   rechts inschuift, rechts uitgelijnde hoofdletters.
   ========================================================================== */

.elbay-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9998;
}
.elbay-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.elbay-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(680px, 66vw);
  z-index: 9999;

  background: linear-gradient(135deg, #d81b3f 0%, #c8102e 45%, #a50d24 100%);
  color: #fff;

  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;

  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .25);
}
.elbay-menu.is-open { transform: translateX(0); }

/* Het hidden-attribuut moet echt verbergen. De browser doet dat met een
   UA-regel (display:none) en die verliest van de display:flex hierboven. */
.elbay-menu[hidden],
.elbay-menu-overlay[hidden] { display: none !important; }

/* Vangnet zonder JS: de knop linkt naar #elbay-menu, dus :target opent het
   paneel ook als elbay-nav.js niet geladen of geblokkeerd is. Werkt JS wel,
   dan voorkomt preventDefault() dat de hash überhaupt verandert.
   Deze regel staat bewust ná de hidden-regel, zodat hij die overrulet. */
.elbay-menu:target {
  display: flex !important;
  transform: translateX(0);
}

/* Sluitknop: witte cirkel met kruis, zoals in het origineel */
/* De thema-CSS geeft elke <button> een eigen achtergrond en kleur; vandaar de
   !important-regels, anders wordt dit een witte schijf zonder zichtbaar kruis. */
.elbay-menu .elbay-menu__close {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .75) !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  padding: 0 !important;
  transition: background-color .2s ease, transform .2s ease;
}
.elbay-menu .elbay-menu__close:hover { background: rgba(255, 255, 255, .18) !important; }
.elbay-menu .elbay-menu__close:active { transform: scale(.94); }
.elbay-menu .elbay-menu__close svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none !important;
  stroke: #fff !important;
}
.elbay-menu .elbay-menu__close svg path { stroke: #fff !important; fill: none !important; }

.elbay-menu__inner {
  margin-top: auto;
  margin-bottom: auto;
  padding: 110px 62px 48px 32px;
  text-align: right;
  width: 100%;
}

.elbay-menu__title {
  margin: 0 0 22px;
  font-size: 20px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .95;
}

.elbay-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.elbay-menu__list li { margin: 0; }

.elbay-menu__list a {
  display: block;
  padding: 11px 0;
  color: #fff;
  text-decoration: none;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.25;
  transition: opacity .2s ease, transform .25s ease;
  opacity: .92;
}
.elbay-menu__list a:hover,
.elbay-menu__list a:focus-visible {
  opacity: 1;
  transform: translateX(-6px);
}
.elbay-menu__list a[aria-current="page"] { opacity: .55; }

/* Tweede blok in het menu: Werkplaats */
.elbay-menu__title--sub {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: 16px;
  opacity: .8;
}
.elbay-menu__list--sub a {
  font-size: clamp(14px, 1.3vw, 17px);
  opacity: .88;
}
.elbay-menu__ext {
  display: inline-block;
  margin-left: 7px;
  font-size: .78em;
  opacity: .75;
}

.elbay-menu__contact {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.elbay-menu__contact a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .08em;
  opacity: .9;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.elbay-menu__contact a:hover { opacity: 1; text-decoration: underline; }

/* Achtergrond niet mee laten scrollen zolang het menu open staat */
body.elbay-menu-open { overflow: hidden; }

/* Telefoon: paneel over de volle breedte, iets rustiger spacing */
@media (max-width: 767px) {
  .elbay-menu { width: 100%; }
  .elbay-menu__inner { padding: 96px 28px 40px 22px; }
  .elbay-menu__close { top: 24px; right: 20px; }
  .elbay-menu__list a { font-size: 16px; padding: 13px 0; }
}

/* Respecteer 'reduce motion': dan verschijnt het paneel zonder animatie */
@media (prefers-reduced-motion: reduce) {
  .elbay-menu { transition: none; }
  .elbay-menu-overlay { transition: none; }
}
