
/* ==========================================================
   DR.EOPI MOBILE UI
   Menu drawer + bottom toolbar + home mobile layouts
   ========================================================== */

/* hamburger */
.mobile-menu-open{width:42px;height:42px;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.mobile-menu-open span{display:block;width:23px;height:2px;border-radius:99px;background:#244d3a}

/* drawer */
.mobile-menu-overlay,.mobile-drawer{display:none}
@media(max-width:900px){
  body.mobile-menu-opened{overflow:hidden}
  .site-header .desktop-nav{display:none!important}
  .mobile-menu-open{display:flex!important;margin-left:auto;border:0;background:transparent}
  .mobile-menu-overlay{display:block;position:fixed;inset:0;background:rgba(10,14,12,.55);z-index:198;opacity:0;visibility:hidden;transition:.28s}
  .mobile-menu-overlay.open{opacity:1;visibility:visible}
  .mobile-drawer{display:flex;position:fixed;left:0;top:0;bottom:0;width:min(84vw,390px);z-index:199;background:linear-gradient(180deg,#3b3d3d 0%,#242728 100%);color:#fff;flex-direction:column;transform:translateX(-102%);transition:transform .3s ease;box-shadow:18px 0 40px rgba(0,0,0,.22);overflow-y:auto}
  .mobile-drawer.open{transform:none}
  .mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:26px 24px 20px;border-bottom:1px solid rgba(255,255,255,.18)}
  .mobile-drawer-brand{display:flex;align-items:center;min-height:58px}.mobile-drawer-brand img{display:block;max-width:190px;max-height:58px;width:auto;height:auto;background:#fff;padding:5px;border-radius:4px}.mobile-drawer-brand strong{font-size:27px}
  .mobile-menu-close{width:54px;height:54px;border:2px solid rgba(255,255,255,.28);background:transparent;color:#fff;font:300 44px/1 Arial;display:grid;place-items:center;cursor:pointer}
  .mobile-drawer-nav{padding:0 24px}
  .mobile-drawer-nav>a,.mobile-submenu-toggle{width:100%;min-height:76px;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid rgba(255,255,255,.18);background:transparent;color:#fff;text-decoration:none;text-align:left;font:800 19px Arial,Helvetica,sans-serif;letter-spacing:.01em;padding:0 2px;cursor:pointer}
  .mobile-submenu-toggle b{width:42px;height:42px;border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;font-size:28px;font-weight:400;transition:.2s}
  .mobile-nav-group.open .mobile-submenu-toggle b{transform:rotate(45deg)}
  .mobile-submenu{display:none;padding:4px 0 12px 16px;border-bottom:1px solid rgba(255,255,255,.18)}
  .mobile-nav-group.open .mobile-submenu{display:block}
  .mobile-submenu a{display:block;color:#e4e7e5;padding:10px 0;font-size:14px;border-bottom:1px dashed rgba(255,255,255,.1)}
  .mobile-support{margin:18px 24px 30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);text-align:center}
  .mobile-support h3{font-size:18px;margin:0 0 18px;color:#fff}
  .mobile-support p{margin:10px 0;font-size:13px;font-weight:800;word-break:break-word}.mobile-support a{color:#f0c84b}.mobile-support span{color:#fff}

  /* fixed mobile toolbar */
  body{padding-bottom:76px}
  .floating{display:none!important}
  .mobile-bottom-tools{position:fixed;left:0;right:0;bottom:0;z-index:190;display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 14px 12px;background:#fff;border-top:1px solid #e8e0d4;box-shadow:0 -8px 26px rgba(24,39,31,.12)}
  .mobile-bottom-tools a{min-height:52px;border-radius:13px;background:#f2eadc;color:#274c3a;display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-size:14px}
  .mobile-bottom-tools a b{font-weight:800}.mobile-bottom-tools a.primary{background:#244d3a;color:#fff}

  /* services: exactly 2 x 2 on mobile */
  .home-services-section .home-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .home-services-section .card{border-radius:13px}
  .home-services-section .card img{aspect-ratio:1.18/1;min-height:0}
  .home-services-section .card>div{padding:12px!important}
  .home-services-section .card h3{font-size:15px;line-height:1.3;margin-bottom:6px}
  .home-services-section .card p{font-size:12px;line-height:1.45;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .home-services-section .card span{font-size:11px;font-weight:800}

  /* process: no 01/02/03/04, compact 2 x 2 */
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .process-card{padding:16px 12px!important;border-radius:14px!important;text-align:left!important;min-height:150px;display:flex;flex-direction:column;align-items:flex-start}
  .process-card .process-icon{width:42px;height:42px;border-radius:12px;background:#f4eadc;color:var(--gold);display:grid;place-items:center;font-size:20px;margin:0 0 11px!important}
  .process-card h3{font-size:15px;margin:0 0 6px;line-height:1.3}
  .process-card p{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}
  .process-card>b{display:none!important}

  /* testimonials: avatar at bottom-right beside name */
  .testimonial-card{display:flex;flex-direction:column;min-height:100%}
  .testimonial-mark{font-size:28px;color:var(--gold);line-height:1}
  .testimonial-content{flex:1}
  .testimonial-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}
  .testimonial-person{min-width:0;display:flex;flex-direction:column}.testimonial-person strong{font-size:14px}.testimonial-person span{font-size:12px;color:var(--muted);margin-top:2px}
  .testimonial-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;flex:0 0 54px;border:2px solid #fff;box-shadow:0 3px 12px rgba(0,0,0,.1)}

  /* useful posts: two visible cards in one horizontal row, auto slide */
  .useful-posts-viewport{overflow:hidden}
  .useful-posts-track{display:flex!important;grid-template-columns:none!important;gap:10px!important;transition:transform .48s ease;will-change:transform}
  .useful-post-card{flex:0 0 calc((100% - 10px)/2);min-width:0}
  .useful-post-card img{aspect-ratio:1.2/1}
  .useful-post-card>div{padding:11px!important}
  .useful-post-card h3{font-size:14px;line-height:1.35;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .useful-post-card p{font-size:11px;line-height:1.4;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .useful-post-card span{font-size:10px}

  /* make section spacing less tall on phones/tablets */
  .home-services-section,.useful-posts-section{padding-top:54px!important;padding-bottom:54px!important}
}

@media(min-width:901px){
  .mobile-bottom-tools{display:none!important}
}

@media(max-width:620px){
  .section-head h2{font-size:30px}
  .cards.three:not(.useful-posts-track){grid-template-columns:1fr!important}
}


/* ==========================================================
   PC FIX: TESTIMONIAL / ACTIVE MENU / QUICK ICONS / BACKTOP
   ========================================================== */

/* Cảm nhận khách hàng: ảnh đại diện luôn nhỏ, không bao giờ kéo full card */
.testimonials-section .testimonial-card{
  display:flex;
  flex-direction:column;
  min-height:260px;
  padding:28px;
  overflow:hidden;
}
.testimonials-section .testimonial-mark{
  font-size:30px;
  line-height:1;
  color:var(--gold);
}
.testimonials-section .testimonial-content{
  flex:1;
  margin:14px 0 0;
  line-height:1.7;
}
.testimonials-section .testimonial-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.testimonials-section .testimonial-person{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.testimonials-section .testimonial-person strong{
  font-size:15px;
}
.testimonials-section .testimonial-person span{
  margin-top:3px;
  font-size:13px;
  color:var(--muted);
}
.testimonials-section .testimonial-avatar{
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  max-width:64px !important;
  min-height:64px !important;
  max-height:64px !important;
  flex:0 0 64px !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:50% !important;
  margin:0 !important;
  display:block !important;
  border:2px solid #fff;
  box-shadow:0 4px 14px rgba(0,0,0,.10);
}

/* Desktop menu active state */
@media(min-width:901px){
  .desktop-nav a{
    position:relative;
    transition:color .2s ease;
    padding:30px 0 27px;
  }
  .desktop-nav a:hover,
  .desktop-nav a.active{
    color:var(--green);
  }
  .desktop-nav a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:18px;
    width:0;
    height:2px;
    border-radius:99px;
    background:var(--green);
    transform:translateX(-50%);
    transition:width .22s ease;
  }
  .desktop-nav a:hover::after,
  .desktop-nav a.active::after{
    width:100%;
  }
}

/* PC fixed quick-contact icons */
.desktop-contact-rail{
  position:fixed;
  right:18px;
  bottom:22px;
  z-index:185;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:9px;
}
.quick-icon{
  width:54px;
  height:54px;
  border:0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor:pointer;
  text-decoration:none;
  color:#fff;
  background:#244d3a;
  box-shadow:0 8px 24px rgba(15,38,27,.20);
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.quick-icon:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(15,38,27,.27);
}
.quick-icon.phone{background:#245a42}
.quick-icon.zalo{background:#1275d1}
.quick-icon.booking{background:#b88343}
.quick-icon.backtop{
  background:#333d38;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
}
.quick-icon.backtop.show{
  opacity:1;
  visibility:visible;
  transform:none;
}
.quick-icon .quick-glyph{
  font:800 22px/1 Arial,Helvetica,sans-serif;
}
.quick-icon .zalo-mark{
  width:30px;
  height:30px;
  border-radius:9px;
  background:#fff;
  color:#1275d1;
  display:grid;
  place-items:center;
  font-size:17px;
}
.quick-icon em{
  position:absolute;
  right:64px;
  top:50%;
  transform:translateY(-50%) translateX(5px);
  white-space:nowrap;
  background:#202a25;
  color:#fff;
  border-radius:8px;
  padding:7px 10px;
  font:700 12px Arial,Helvetica,sans-serif;
  font-style:normal;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.18s;
}
.quick-icon:hover em{
  opacity:1;
  visibility:visible;
  transform:translateY(-50%) translateX(0);
}
.quick-icon em::after{
  content:"";
  position:absolute;
  right:-5px;
  top:50%;
  transform:translateY(-50%);
  border-width:5px 0 5px 5px;
  border-style:solid;
  border-color:transparent transparent transparent #202a25;
}

@media(max-width:900px){
  .desktop-contact-rail{display:none!important}
  .testimonials-section .testimonial-avatar{
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    max-width:54px !important;
    min-height:54px !important;
    max-height:54px !important;
    flex-basis:54px !important;
  }
}


/* ==========================================================
   HERO TEXT ANIMATION
   Chạy lại mỗi khi slide nhận class .active
   ========================================================== */
.hero .slide .hero-copy > small,
.hero .slide .hero-copy > h1,
.hero .slide .hero-copy > p,
.hero .slide .hero-copy > div{
  opacity:0;
  will-change:transform,opacity,filter;
}

.hero .slide.active .hero-copy > small{
  animation:heroEyebrowIn .70s cubic-bezier(.22,.61,.36,1) .08s both;
}

.hero .slide.active .hero-copy > h1{
  animation:heroTitleIn .90s cubic-bezier(.16,1,.3,1) .20s both;
}

.hero .slide.active .hero-copy > p{
  animation:heroTextIn .78s cubic-bezier(.22,.61,.36,1) .42s both;
}

.hero .slide.active .hero-copy > div{
  animation:heroButtonsIn .72s cubic-bezier(.22,.61,.36,1) .60s both;
}

.hero .slide.active .hero-copy > div .btn{
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
}

.hero .slide.active .hero-copy > div .btn:hover{
  transform:translateY(-3px);
}

@keyframes heroEyebrowIn{
  0%{
    opacity:0;
    transform:translate3d(-34px,0,0);
    letter-spacing:.28em;
    filter:blur(5px);
  }
  100%{
    opacity:1;
    transform:none;
    filter:blur(0);
  }
}

@keyframes heroTitleIn{
  0%{
    opacity:0;
    transform:translate3d(-58px,18px,0) scale(.985);
    filter:blur(7px);
  }
  60%{
    opacity:1;
  }
  100%{
    opacity:1;
    transform:none;
    filter:blur(0);
  }
}

@keyframes heroTextIn{
  0%{
    opacity:0;
    transform:translate3d(0,28px,0);
    filter:blur(4px);
  }
  100%{
    opacity:1;
    transform:none;
    filter:blur(0);
  }
}

@keyframes heroButtonsIn{
  0%{
    opacity:0;
    transform:translate3d(0,22px,0) scale(.97);
  }
  100%{
    opacity:1;
    transform:none;
  }
}

/* Hiệu ứng ánh sáng nhẹ trên tiêu đề, chỉ chạy sau khi chữ xuất hiện */
.hero .slide.active .hero-copy h1{
  position:relative;
  overflow:hidden;
}
.hero .slide.active .hero-copy h1::after{
  content:"";
  position:absolute;
  top:0;
  left:-45%;
  width:28%;
  height:100%;
  pointer-events:none;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.32),transparent);
  transform:skewX(-18deg);
  animation:heroTitleShine 1.15s ease .95s 1 both;
}
@keyframes heroTitleShine{
  from{left:-45%;opacity:0}
  20%{opacity:.65}
  to{left:120%;opacity:0}
}

/* Mobile: giữ hiệu ứng nhẹ hơn để mượt */
@media(max-width:900px){
  .hero .slide.active .hero-copy > small{animation-duration:.55s}
  .hero .slide.active .hero-copy > h1{animation-duration:.68s}
  .hero .slide.active .hero-copy > p{animation-duration:.60s}
  .hero .slide.active .hero-copy > div{animation-duration:.58s}
}

/* Tôn trọng thiết lập giảm chuyển động của hệ điều hành */
@media(prefers-reduced-motion:reduce){
  .hero .slide .hero-copy > small,
  .hero .slide .hero-copy > h1,
  .hero .slide .hero-copy > p,
  .hero .slide .hero-copy > div{
    opacity:1!important;
    animation:none!important;
    transform:none!important;
    filter:none!important;
  }
  .hero .slide.active .hero-copy h1::after{display:none}
}


/* ==========================================================
   PREMIUM MOBILE DRAWER - LIGHT / WARM / COMPACT
   Đồng bộ tone kem + xanh của Dr.Eopi
   ========================================================== */
@media(max-width:900px){
  .mobile-menu-overlay{
    background:rgba(26,39,32,.38)!important;
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
    transition:opacity .32s ease,visibility .32s ease!important;
  }

  .mobile-drawer.mobile-drawer-premium{
    width:min(84vw,360px)!important;
    background:
      radial-gradient(circle at 12% 6%,rgba(213,166,109,.12),transparent 25%),
      linear-gradient(180deg,#fbf8f2 0%,#f5efe5 58%,#eef3ef 100%)!important;
    color:#25352e!important;
    box-shadow:18px 0 48px rgba(28,48,37,.20)!important;
    border-right:1px solid rgba(36,77,58,.12);
    transform:translateX(-106%) scale(.985)!important;
    transform-origin:left center;
    transition:transform .42s cubic-bezier(.22,1,.36,1),box-shadow .42s ease!important;
  }

  .mobile-drawer.mobile-drawer-premium.open{
    transform:translateX(0) scale(1)!important;
  }

  .mobile-drawer-head{
    min-height:92px;
    padding:18px 20px!important;
    border-bottom:1px solid rgba(36,77,58,.12)!important;
    background:rgba(255,255,255,.56);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    position:sticky;
    top:0;
    z-index:2;
  }

  .mobile-drawer-brand img{
    max-width:150px!important;
    max-height:48px!important;
    padding:0!important;
    background:transparent!important;
    border-radius:0!important;
  }

  .mobile-drawer-brand strong{
    color:#213a2e!important;
    font-size:25px!important;
    letter-spacing:-.02em;
  }

  .mobile-menu-close{
    width:44px!important;
    height:44px!important;
    border:1px solid rgba(36,77,58,.18)!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#234b39!important;
    font:300 34px/1 Arial,Helvetica,sans-serif!important;
    box-shadow:0 6px 16px rgba(35,75,57,.08);
    transition:transform .28s ease,background .2s ease,color .2s ease!important;
  }
  .mobile-menu-close:active{transform:scale(.92) rotate(8deg)}

  .mobile-drawer-nav{
    padding:8px 18px 0!important;
  }

  .mobile-drawer-nav>a,
  .mobile-submenu-toggle{
    min-height:56px!important;
    padding:0 4px!important;
    border-bottom:1px solid rgba(36,77,58,.11)!important;
    color:#2c3e35!important;
    font:750 15px/1.25 Arial,Helvetica,sans-serif!important;
    letter-spacing:.01em!important;
    transition:color .2s ease,padding-left .25s ease,background .2s ease!important;
    border-radius:0!important;
  }

  .mobile-drawer-nav>a:active,
  .mobile-drawer-nav>a:hover,
  .mobile-submenu-toggle:active{
    color:#9a6f39!important;
    padding-left:8px!important;
  }

  .mobile-submenu-toggle b{
    width:34px!important;
    height:34px!important;
    border:1px solid rgba(36,77,58,.16)!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#264b3a!important;
    font-size:22px!important;
    box-shadow:0 4px 12px rgba(36,77,58,.05);
    transition:transform .32s cubic-bezier(.2,.8,.2,1),background .2s ease,color .2s ease!important;
  }

  .mobile-nav-group.open .mobile-submenu-toggle b{
    transform:rotate(45deg) scale(.94)!important;
    background:#244d3a!important;
    color:#fff!important;
  }

  .mobile-submenu{
    display:grid!important;
    grid-template-rows:0fr;
    overflow:hidden;
    padding:0 0 0 14px!important;
    border-bottom:0!important;
    opacity:0;
    transform:translateY(-6px);
    transition:grid-template-rows .34s cubic-bezier(.22,1,.36,1),opacity .24s ease,transform .34s ease,padding .34s ease!important;
  }
  .mobile-submenu::before{
    content:"";
    min-height:0;
  }
  .mobile-nav-group.open .mobile-submenu{
    grid-template-rows:1fr;
    opacity:1;
    transform:none;
    padding:2px 0 10px 14px!important;
  }

  .mobile-submenu a{
    display:block;
    color:#5f6d65!important;
    padding:9px 8px!important;
    font-size:13px!important;
    border-bottom:1px dashed rgba(36,77,58,.08)!important;
    transition:color .2s ease,transform .2s ease;
  }
  .mobile-submenu a:hover{
    color:#244d3a!important;
    transform:translateX(3px);
  }

  .mobile-support.mobile-support-compact{
    margin:16px 18px 24px!important;
    padding:16px 16px 14px!important;
    border-top:0!important;
    border:1px solid rgba(36,77,58,.11);
    border-radius:16px;
    background:rgba(255,255,255,.62);
    box-shadow:0 8px 26px rgba(35,75,57,.06);
    text-align:left!important;
  }

  .mobile-support.mobile-support-compact h3{
    margin:0 0 12px!important;
    color:#244d3a!important;
    font-size:13px!important;
    letter-spacing:.04em;
  }

  .mobile-support.mobile-support-compact p{
    margin:7px 0!important;
    color:#536159!important;
    font-size:11.5px!important;
    font-weight:700!important;
    line-height:1.45;
  }

  .mobile-support.mobile-support-compact a{
    color:#a7773d!important;
    text-decoration:none;
  }

  .mobile-support.mobile-support-compact span{
    color:#536159!important;
  }

  /* stagger animation khi menu bung ra */
  .mobile-drawer.open .mobile-drawer-nav > a,
  .mobile-drawer.open .mobile-drawer-nav > .mobile-nav-group{
    animation:drawerItemIn .42s cubic-bezier(.22,1,.36,1) both;
  }
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(1){animation-delay:.05s}
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(2){animation-delay:.09s}
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(3){animation-delay:.13s}
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(4){animation-delay:.17s}
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(5){animation-delay:.21s}
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(6){animation-delay:.25s}
  .mobile-drawer.open .mobile-drawer-nav > *:nth-child(7){animation-delay:.29s}
  .mobile-drawer.open .mobile-support{
    animation:drawerSupportIn .46s cubic-bezier(.22,1,.36,1) .30s both;
  }

  @keyframes drawerItemIn{
    from{opacity:0;transform:translateX(-18px)}
    to{opacity:1;transform:none}
  }
  @keyframes drawerSupportIn{
    from{opacity:0;transform:translateY(14px)}
    to{opacity:1;transform:none}
  }
}

@media(max-width:420px){
  .mobile-drawer.mobile-drawer-premium{width:88vw!important}
  .mobile-drawer-nav>a,.mobile-submenu-toggle{
    min-height:52px!important;
    font-size:14px!important;
  }
  .mobile-support.mobile-support-compact{
    margin-left:14px!important;
    margin-right:14px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .mobile-drawer,
  .mobile-menu-overlay,
  .mobile-drawer-nav>*,
  .mobile-support,
  .mobile-submenu,
  .mobile-submenu-toggle b{
    animation:none!important;
    transition:none!important;
  }
}


/* ==========================================================
   FIX MOBILE SUBMENU DỊCH VỤ
   Không chiếm khoảng trống khi đóng, bung/thu gọn mượt
   ========================================================== */
@media(max-width:900px){
  .mobile-nav-group{
    display:block!important;
  }

  .mobile-submenu{
    display:block!important;
    max-height:0!important;
    overflow:hidden!important;
    opacity:0!important;
    visibility:hidden!important;
    transform:translateY(-6px)!important;
    padding:0 0 0 14px!important;
    margin:0!important;
    border:0!important;
    transition:
      max-height .38s cubic-bezier(.22,1,.36,1),
      opacity .22s ease,
      transform .32s ease,
      padding .32s ease!important;
  }

  .mobile-nav-group.open .mobile-submenu{
    max-height:420px!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    padding:4px 0 10px 14px!important;
  }

  .mobile-submenu::before{
    display:none!important;
    content:none!important;
  }

  .mobile-submenu a{
    display:block!important;
    min-height:0!important;
    padding:9px 8px!important;
    margin:0!important;
  }

  .mobile-nav-group:not(.open) .mobile-submenu a{
    pointer-events:none!important;
  }

  .mobile-nav-group.open .mobile-submenu a{
    pointer-events:auto!important;
  }
}


/* FINAL submenu visibility/click fix */
@media(max-width:900px){
  .mobile-nav-group{
    position:relative!important;
  }

  .mobile-submenu{
    display:block!important;
    max-height:0!important;
    overflow:hidden!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-4px)!important;
    margin:0!important;
    padding:0 0 0 14px!important;
    transition:max-height .35s cubic-bezier(.22,1,.36,1),opacity .2s ease,transform .3s ease,padding .3s ease!important;
  }

  .mobile-nav-group.open .mobile-submenu{
    max-height:520px!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
    padding:4px 0 10px 14px!important;
  }

  .mobile-submenu a{
    position:relative!important;
    z-index:2!important;
    display:block!important;
    pointer-events:auto!important;
  }

  .mobile-submenu-toggle{
    position:relative!important;
    z-index:3!important;
    touch-action:manipulation!important;
    -webkit-tap-highlight-color:transparent!important;
  }
}
