/* Strelitzias megamenu (18-11-2026). Zie inc/megamenu.php en template-parts/megamenu.php. */

/* ---------- gedeeld ---------- */
.mm-toggle{background:none;border:0;margin:0;cursor:pointer;color:#144444;font:inherit;line-height:1}
.mm-toggle svg{display:block;transition:transform .2s ease}
.mm-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.mm-toggle:focus{outline:0}
.mm-toggle:focus-visible,.mm-panel a:focus-visible{outline:2px solid #07885F;outline-offset:2px;border-radius:6px}
.mm-panel{display:none;font-family:"Figtree",sans-serif;color:#144444;text-align:left}
.mm-item.mm-open>.mm-panel{display:block}
.mm-panel ul{list-style:none;margin:0;padding:0}
.mm-panel a{text-decoration:none}
.mm-feature img{display:block;width:100%;height:100%;object-fit:cover}

/* ---------- desktop ---------- */
@media (min-width:992px){
  header .navbar-nav .mm-item{display:flex;align-items:center}
  header .navbar-nav .mm-item>.nav-link{padding-right:3px !important}
  header .navbar-nav .mm-item>.mm-toggle{padding:8px 14px 8px 0;align-self:stretch;display:flex;align-items:center}
  .mm-toggle svg{width:9px;height:9px;opacity:.55}
  .mm-item:hover>.mm-toggle svg,.mm-toggle[aria-expanded="true"] svg{opacity:1}
  header .navbar-nav .mm-item:hover>.nav-link,header .navbar-nav .mm-item.mm-open>.nav-link,.mm-item:hover>.mm-toggle,.mm-toggle[aria-expanded="true"]{color:#07885F}

  .mm-panel{position:absolute;left:0;right:0;top:100%;z-index:1000;background:#fff;
    border-top:1px solid #e9e3e0;border-bottom:1px solid #e9e3e0;box-shadow:0 24px 48px -24px rgba(20,68,68,.35);
    max-height:calc(100vh - var(--mm-top,140px));overflow-y:auto;overscroll-behavior:contain}
  .mm-item.mm-open>.mm-panel{animation:mm-drop .22s ease-out}
  .mm-inner{max-width:1320px;margin:0 auto;padding:28px 32px 32px;display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.15fr);gap:28px;align-items:start}
  .mm-h{margin:0 0 12px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#5E6B66;font-weight:700;line-height:1.4}
  .mm-col ul{display:grid;gap:2px}
  .mm-col li a{display:grid;gap:1px;padding:8px 10px;margin-inline:-10px;border-radius:10px;color:#144444;line-height:1.35}
  .mm-col li a:hover{background:#F5F4EE}
  .mm-col li a b{font-weight:600;font-size:15px}
  .mm-col li a span{font-size:13px;color:#5E6B66;font-weight:400}
  .mm-all{display:inline-flex;gap:6px;margin-top:10px;font-weight:700;font-size:15px;color:#07885F}
  .mm-all:hover{color:#144444}
  .mm-all-m{display:none}
  .mm-feature{border-radius:16px;overflow:hidden;background:#144444;color:#F5F4EE;display:grid;grid-template-rows:auto 1fr;align-self:stretch}
  .mm-feature:hover{color:#F5F4EE}
  .mm-art{display:block;aspect-ratio:3/2;overflow:hidden;background:#E3ECEA}
  .mm-art img{transition:transform .5s ease}
  .mm-feature:hover .mm-art img{transform:scale(1.04)}
  .mm-txt{display:grid;gap:8px;align-content:start;padding:18px 20px 20px}
  .mm-ft{font-size:21px;line-height:1.2;font-weight:800;color:#fff}
  .mm-fp{font-size:13.5px;line-height:1.5;opacity:.82}
  .mm-btn{justify-self:start;margin-top:6px;background:#09885F;color:#fff;font-weight:700;font-size:14px;padding:9px 16px;border-radius:6px}
}
@media (min-width:992px) and (max-width:1179.98px){
  .mm-inner{grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:28px}
  .mm-feature{display:none}
}
@keyframes mm-drop{from{transform:translateY(-6px);opacity:.6}to{transform:none;opacity:1}}

/* ---------- mobiel en tablet ---------- */
@media (max-width:991.98px){
  header .navbar-collapse{max-height:calc(100vh - 58px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  @supports (height:100dvh){ header .navbar-collapse{max-height:calc(100dvh - 58px)} }
  header .navbar-nav .mm-item{display:flex;flex-wrap:wrap;align-items:stretch}
  header .navbar-nav .mm-item>.nav-link{flex:1 1 0;min-width:0}
  header .navbar-nav .mm-item>.mm-toggle{flex:0 0 56px;display:grid;place-items:center;border-left:1px solid #e9e3e0;border-bottom:1px solid #e9e3e0;padding:0}
  .mm-toggle svg{width:12px;height:12px}
  .mm-panel{flex:0 0 100%;background:#F4F7F6;padding:4px 15px 16px;border-bottom:1px solid #e9e3e0}
  .mm-inner{display:grid;gap:0}
  .mm-h{margin:12px 0 2px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#6B7A76;font-weight:700}
  .mm-col li a{display:block;padding:6px 0;font-size:15px;font-weight:500;color:#144444}
  .mm-col li a b{font-weight:500}
  .mm-col li a span,.mm-all-d,.mm-fp,.mm-btn{display:none}
  .mm-all-m{display:block;padding:10px 0 2px;font-size:15px;font-weight:700;color:#07885F}
  .mm-feature{display:block;position:relative;border-radius:12px;overflow:hidden;margin-top:12px;color:#fff;background:#E3ECEA}
  .mm-art{display:block;aspect-ratio:16/9}
  .mm-txt{position:absolute;left:0;right:0;bottom:0;padding:32px 14px 12px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.6))}
  .mm-ft{display:block;font-size:16px;line-height:1.25;font-weight:700;color:#fff}

  /* rustiger hamburger: drie dunne lijnen, onderste korter; dun kruisje als open */
  header .navbar-toggler{border:0;padding:0;width:44px;height:40px;display:inline-grid;place-items:center;border-radius:6px;background:none;box-shadow:none}
  header .navbar-toggler:focus{box-shadow:none;outline:0}
  header .navbar-toggler:focus-visible{outline:2px solid #07885F;outline-offset:2px}
  header .navbar-toggler .navbar-toggler-icon{width:24px;height:24px;background-size:24px 24px;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M4 7h16M4 12h16M4 17h10' stroke='%23144444' stroke-width='1.6' stroke-linecap='round' fill='none'/%3e%3c/svg%3e")}
  header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon{
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 6l12 12M18 6L6 18' stroke='%23144444' stroke-width='1.6' stroke-linecap='round' fill='none'/%3e%3c/svg%3e")}
}

@media (prefers-reduced-motion:reduce){
  .mm-toggle svg,.mm-art img{transition:none !important}
  .mm-item.mm-open>.mm-panel{animation:none !important}
  .mm-feature:hover .mm-art img{transform:none}
}
