/* Endeavour mobile menu (PETS-8): floating frosted-glass card, <1024px only.
   Layout follows the approved reference pattern; brand, links and copy stay ours. */

@media (min-width:768px) and (max-width:1023.98px){
  header.b44nav .b44nav-links{display:none!important}
  header.b44nav .b44nav-burger{display:flex!important}
}

html.hf header.b44nav.open,
header.b44nav.open{
  background:transparent!important;
  box-shadow:none!important;
  border-color:transparent!important;
  /* Header uses transform:translateY(0), which would otherwise trap
     position:fixed descendants inside the 80px bar. */
  transform:none!important;
  height:100%!important;
  height:100dvh!important;
  bottom:0!important;
  overflow:visible!important;
}

@media (max-width:1023.98px){
  header.b44nav.open .b44nav-in{
    visibility:hidden;
    pointer-events:none;
  }
  header.b44nav.open .b44nav-burger{
    visibility:visible;
    pointer-events:auto;
    position:relative;
    z-index:1;
    opacity:0;
  }

  header.b44nav.open .b44nav-mobile,
  header.b44nav .b44nav-mobile.el-mm-on{
    display:flex!important;
    position:fixed;
    inset:0;
    z-index:80;
    margin:0;
    padding:10px 10px 12px;
    flex-direction:column;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden;
  }

  .el-mm-dim{
    position:absolute;
    inset:0;
    background:rgba(7,11,20,.16);
    -webkit-backdrop-filter:blur(12px) saturate(1.4);
    backdrop-filter:blur(12px) saturate(1.4);
  }

  .el-mm-card{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    width:100%;
    border-radius:1.6rem;
    background:rgba(16,24,40,.76);
    -webkit-backdrop-filter:blur(16px) saturate(1.35);
    backdrop-filter:blur(16px) saturate(1.35);
    border:1px solid rgba(255,255,255,.22);
    box-shadow:0 22px 50px -20px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06);
    color:#eef3f8;
    overflow:hidden;
    transform-origin:50% 8%;
    animation:elMmIn .32s ease;
  }

  .el-mm-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 14px 8px 16px;
    flex:0 0 auto;
  }
  .el-mm-logo{
    display:flex;
    align-items:center;
    min-height:44px;
    text-decoration:none;
  }
  .el-mm-logo img{
    width:auto;
    height:46px;
    object-fit:contain;
    filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));
  }
  .el-mm-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
    color:#f7fbff;
    cursor:pointer;
    padding:0;
    box-shadow:0 6px 16px rgba(0,0,0,.25);
  }
  .el-mm-close:hover,
  .el-mm-close:focus-visible{
    background:rgba(255,255,255,.16);
    outline:2px solid #fb923c;
    outline-offset:2px;
  }
  .el-mm-close svg{
    width:18px;
    height:18px;
  }

  .el-mm-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:4px 14px 8px;
  }

  .el-mm-kicker{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:6px 4px 10px;
    font-size:.68rem;
    font-weight:650;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:rgba(247,251,255,.72);
    text-shadow:0 1px 2px rgba(0,0,0,.55);
  }
  .el-mm-count{
    letter-spacing:.08em;
    font-variant-numeric:tabular-nums;
    color:rgba(247,251,255,.72);
  }

  .el-mm-tiles{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:0 0 12px;
  }
  .el-mm-tiles .el-mm-tile:last-child:nth-child(odd){
    grid-column:1/-1;
  }
  .el-mm-tile{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:64px;
    padding:10px 12px;
    border-radius:16px;
    text-decoration:none;
    color:#f7fbff!important;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    text-shadow:0 1px 2px rgba(0,0,0,.55);
    font-weight:600;
    font-size:.95rem;
    box-sizing:border-box;
  }
  .el-mm-tile:hover,
  .el-mm-tile:focus-visible{
    background:rgba(249,115,22,.16);
    color:#fb923c!important;
    outline:none;
  }
  .el-mm-tile img,
  .el-mm-ico-wrap{
    width:36px;
    height:36px;
    flex:0 0 36px;
    border-radius:10px;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:visible;
  }
  .el-mm-ico-wrap svg,
  .el-mm-ico{
    width:36px;
    height:36px;
    display:block;
    overflow:visible;
  }
  .el-mm-wheel,
  .el-mm-bounce,
  .el-mm-wave,
  .el-mm-paddle,
  .el-mm-pin{
    transform-box:fill-box;
    transform-origin:center;
    -webkit-transform-box:fill-box;
    -webkit-transform-origin:center;
  }
  .el-mm-wheel{
    animation:elMmSpin 1s linear infinite;
  }
  .el-mm-bounce{
    animation:elMmBounce 1.2s ease-in-out infinite;
  }
  .el-mm-wave-a{
    animation:elMmWave 1.6s ease-in-out infinite;
  }
  .el-mm-wave-b{
    animation:elMmWave 1.6s ease-in-out infinite .25s;
  }
  .el-mm-paddle{
    transform-origin:0px 0px;
    animation:elMmPaddle 1.1s ease-in-out infinite;
  }
  .el-mm-paddle-b{
    animation:elMmPaddle 1.1s ease-in-out infinite reverse;
  }
  .el-mm-pin{
    /* hop along the dashed route: x follows the curve, y hops */
    transform:translate(4px,27px);
    animation:elMmPin 2.4s ease-in-out infinite;
    transform-box:view-box;
    -webkit-transform-box:view-box;
    transform-origin:0 0;
    -webkit-transform-origin:0 0;
  }

  .el-mm-rows{
    display:flex;
    flex-direction:column;
    margin:2px 0 8px;
  }
  .el-mm-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:48px;
    padding:10px 4px;
    text-decoration:none;
    color:#f7fbff!important;
    font-weight:500;
    font-size:1.05rem;
    text-shadow:0 1px 2px rgba(0,0,0,.55);
    border-top:1px solid rgba(255,255,255,.12);
    box-sizing:border-box;
  }
  .el-mm-rows .el-mm-row:first-child{
    border-top:0;
  }
  .el-mm-row:hover,
  .el-mm-row:focus-visible{
    color:#fb923c!important;
    outline:none;
  }
  .el-mm-row[aria-current=page],
  .el-mm-row.is-active{
    color:#f97316!important;
    font-weight:600;
  }
  .el-mm-row svg{
    width:18px;
    height:18px;
    flex:0 0 18px;
    opacity:.7;
    color:currentColor;
  }

  .el-mm-foot{
    flex:0 0 auto;
    padding:8px 14px 16px;
  }
  .el-mm-cta,
  .el-mm-foot .b44nav-book,
  header.b44nav .b44nav-mobile .el-mm-cta{
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:52px;
    padding:.85rem 1.25rem!important;
    margin:0!important;
    border-radius:999px!important;
    background:linear-gradient(to right,#f97316,#ea580c)!important;
    color:#fff!important;
    font-weight:700!important;
    font-size:1.05rem!important;
    text-decoration:none!important;
    text-shadow:none!important;
    border:0!important;
    box-shadow:0 10px 22px rgba(234,88,12,.35);
  }
  .el-mm-cta:hover,
  .el-mm-foot .b44nav-book:hover{
    background:linear-gradient(to right,#ea580c,#c2410c)!important;
    color:#fff!important;
  }

  /* Hide the original accordion once the card is built */
  .b44nav-mobile.el-mm-ready > .b44nav-mobile-in{
    display:none!important;
  }
}

@media (min-width:1024px){
  .el-mm-dim,
  .el-mm-card{
    display:none!important;
  }
  header.b44nav.open .b44nav-in{
    visibility:visible;
    pointer-events:auto;
  }
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .el-mm-dim{background:rgba(7,11,20,.55)}
  .el-mm-card{background:rgba(16,24,40,.94)}
  .b44dd-p{background:rgba(16,24,40,.94)}
}

@media (prefers-reduced-motion:reduce){
  .el-mm-card{animation:none}
  .el-mm-wheel,
  .el-mm-bounce,
  .el-mm-wave,
  .el-mm-wave-a,
  .el-mm-wave-b,
  .el-mm-paddle,
  .el-mm-paddle-b,
  .el-mm-pin{
    animation:none!important;
  }
  .el-mm-pin{
    transform:translate(18px,14px);
  }
}

@keyframes elMmIn{
  from{opacity:0;transform:translateY(10px) scale(.98)}
  to{opacity:1;transform:none}
}


/* Beat the legacy .b44nav-mobile a {display:block; cream current} rules. */
header.b44nav .b44nav-mobile .el-mm-tile{
  display:flex!important;
  background:rgba(255,255,255,.06)!important;
  color:#f7fbff!important;
}
header.b44nav .b44nav-mobile .el-mm-tile:hover,
header.b44nav .b44nav-mobile .el-mm-tile:focus-visible{
  background:rgba(249,115,22,.16)!important;
  color:#fb923c!important;
}
header.b44nav .b44nav-mobile .el-mm-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  background:transparent!important;
  color:#f7fbff!important;
  padding:10px 4px!important;
  border-radius:0!important;
}
header.b44nav .b44nav-mobile .el-mm-row:hover,
header.b44nav .b44nav-mobile .el-mm-row:focus-visible{
  background:transparent!important;
  color:#fb923c!important;
}
header.b44nav .b44nav-mobile .el-mm-row[aria-current=page],
header.b44nav .b44nav-mobile .el-mm-row.is-active,
html.hf header.b44nav .b44nav-mobile .el-mm-row[aria-current=page],
html.hf header.b44nav .b44nav-mobile .el-mm-row.is-active{
  background:transparent!important;
  color:#f97316!important;
  font-weight:600;
}
header.b44nav .b44nav-mobile .el-mm-logo{
  background:transparent!important;
  padding:0!important;
}
header.b44nav .b44nav-mobile .el-mm-cta,
html.hf header.b44nav .b44nav-mobile .el-mm-cta{
  background:linear-gradient(to right,#f97316,#ea580c)!important;
  color:#fff!important;
}

/* Keep chat / leftover FABs from covering the card while the menu is open. */
body.el-mm-lock #el-sbar,
body.el-mm-lock .eltv,
body.el-mm-lock [id*="wati" i],
body.el-mm-lock [class*="wati" i],
body.el-mm-lock .wa-widget-send-button,
body.el-mm-lock [class*="wa-widget"],
body.el-mm-lock #ht-ctc-chat,
body.el-mm-lock .ht-ctc,
body.el-mm-lock .dhr-wa,
body.el-mm-lock #el-chat-host,
body.el-mm-lock iframe[src*="wati" i],
body.el-mm-lock iframe[src*="whatsapp" i],
body.el-mm-lock a[href*="wa.me"],
body.el-mm-lock a[href*="whatsapp"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* readable white type on the lighter glass card */

header.b44nav .b44nav-mobile .el-mm-card,
header.b44nav .b44nav-mobile .el-mm-kicker,
header.b44nav .b44nav-mobile .el-mm-count,
header.b44nav .b44nav-mobile .el-mm-tile,
header.b44nav .b44nav-mobile .el-mm-row{
  text-shadow:0 1px 2px rgba(0,0,0,.45);
}

@keyframes elMmSpin{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}
@keyframes elMmBounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-1.6px)}
}
@keyframes elMmWave{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(-3px)}
}
@keyframes elMmPaddle{
  0%,100%{transform:rotate(-18deg)}
  50%{transform:rotate(22deg)}
}
@keyframes elMmPin{
  0%,100%{transform:translate(4px,27px)}
  16%{transform:translate(10px,16px)}
  32%{transform:translate(16px,16px)}
  48%{transform:translate(22px,8px)}
  64%{transform:translate(28px,16px)}
  80%{transform:translate(32px,22px)}
}
