.header.site-header { --aw-mobile-menu-ready: 1; }
.aw-mobile-menu-trigger { display: none; }

@media (width < 1200px) {
  .header.site-header[data-aw-mobile-menu] .site-navigation > :is(.site-client-login, .site-navigation-shell) {
    display: none;
  }
  .header.site-header .aw-mobile-menu-trigger,
  .header.site-header .site-navigation-shell > .site-mobile-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
  }
  .header.site-header .aw-mobile-menu-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

  /* Keep the native navigation available when JavaScript is off. */
  .header.site-header .site-navigation-shell > .site-mobile-toggle > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .header.site-header .site-navigation-shell > .site-mobile-toggle > .site-nav-chevron::before { display: none; }
  .aw-mobile-menu__hamburger,
  .header.site-header .site-navigation-shell > .site-mobile-toggle > .site-nav-chevron {
    position: relative;
    display: block;
    width: 19px;
    height: 14px;
    border-block: 2px solid currentColor;
  }
  .aw-mobile-menu__hamburger::after,
  .header.site-header .site-navigation-shell > .site-mobile-toggle > .site-nav-chevron::after {
    position: absolute;
    top: calc(50% - 1px);
    inset-inline: 0;
    border-top: 2px solid currentColor;
    content: '';
  }
  @media (width < 400px) {
    .header.site-header[data-aw-mobile-menu] { padding-inline: 20px; }
  }
}

html.aw-mobile-menu-open { overflow: hidden; }

dialog.aw-mobile-menu {
  --menu-inset: clamp(20px, 5.9vw, 26px);
  position: fixed;
  inset: 0 0 auto auto;
  box-sizing: border-box;
  width: min(100%, 420px);
  max-width: none;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 2px solid var(--aw-lime);
  border-radius: 0 0 0 16px;
  background: var(--aw-charcoal);
  color: var(--aw-text);
  box-shadow: 0 16px 40px #0a0c0870;
  font: 400 1rem/1.45 var(--aw-font-sans);
}
@media (width <= 420px) { dialog.aw-mobile-menu { border-bottom-right-radius: 16px; } }
.aw-mobile-menu[open] { display: flex; flex-direction: column; }
.aw-mobile-menu::backdrop { background: rgb(14 16 13 / 70%); }
.aw-mobile-menu *, .aw-mobile-menu *::before, .aw-mobile-menu *::after { box-sizing: border-box; }
.aw-mobile-menu a { color: inherit; text-decoration: none; }
.aw-mobile-menu button { font: inherit; color: inherit; cursor: pointer; }
.aw-mobile-menu :is(a, button, summary) { touch-action: manipulation; }
.aw-mobile-menu :is(a, button, summary):focus-visible { outline: 2px solid var(--aw-lime); outline-offset: 2px; }
.aw-mobile-menu :is(.aw-mobile-menu__bar, .aw-mobile-menu__body, .aw-mobile-menu__footer) {
  padding-inline: max(var(--menu-inset), env(safe-area-inset-left)) max(var(--menu-inset), env(safe-area-inset-right));
}

.aw-mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 16px;
  min-height: calc(74px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--aw-border);
}
.aw-mobile-menu__brand { display: inline-flex; align-items: center; min-height: 44px; }
.aw-mobile-menu__brand img { display: block; width: 92px; height: auto; }
.aw-mobile-menu__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--aw-border-strong);
  border-radius: 50%;
  background: transparent;
}
.aw-mobile-menu__close:hover { background: var(--aw-surface); border-color: var(--aw-text); }
.aw-mobile-menu__cross { position: relative; width: 16px; height: 16px; }
.aw-mobile-menu__cross::before, .aw-mobile-menu__cross::after {
  position: absolute;
  inset: 0;
  width: 15px;
  margin: auto;
  height: 0;
  border-top: 2px solid currentColor;
  content: '';
  transform: rotate(45deg);
}
.aw-mobile-menu__cross::after { transform: rotate(-45deg); }

.aw-mobile-menu__body {
  flex: 0 1 auto;
  min-height: 0;
  padding-block: 6px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--aw-border-strong) transparent;
}
.aw-mobile-menu__rows { list-style: none; padding: 0; margin: 0; }
.aw-mobile-menu__rows > li + li, .aw-mobile-menu__group + .aw-mobile-menu__group { border-top: 1px solid var(--aw-border); }
.aw-mobile-menu__rows > li > a, .aw-mobile-menu :is(.aw-mobile-menu__services, .aw-mobile-menu__group) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: 0;
  padding: 10px 2px;
  background: transparent;
  font-size: 1.0625rem;
  font-weight: 630;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-align: start;
}
.aw-mobile-menu__rows > li > a:is(:hover, [aria-current=page]) { color: var(--aw-lime); }
.aw-mobile-menu__rows > li > a[aria-current=page]::after {
  flex: none;
  width: 6px;
  height: 6px;
  margin-inline-end: 3px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: '';
}
.aw-mobile-menu__groups {
  margin-bottom: 8px;
  padding-inline: 12px;
  border-radius: 8px;
  background: var(--aw-surface);
}
.aw-mobile-menu :is(.aw-mobile-menu__services, .aw-mobile-menu__group) > summary { cursor: pointer; list-style: none; }
.aw-mobile-menu :is(.aw-mobile-menu__services, .aw-mobile-menu__group) > summary::-webkit-details-marker { display: none; }
.aw-mobile-menu :is(.aw-mobile-menu__services, .aw-mobile-menu__group)[open] > summary,
.aw-mobile-menu :is(.aw-mobile-menu__services, .aw-mobile-menu__group) > summary:hover { color: var(--aw-lime); }
.aw-mobile-menu .aw-mobile-menu__group > summary { min-height: 48px; font-size: 1rem; }
.aw-mobile-menu__indicator { position: relative; flex: 0 0 14px; height: 14px; }
.aw-mobile-menu__indicator::before, .aw-mobile-menu__indicator::after {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 0;
  border-top: 1.5px solid currentColor;
  content: '';
}
.aw-mobile-menu__indicator::after { transform: rotate(90deg); }
.aw-mobile-menu :is(.aw-mobile-menu__services, .aw-mobile-menu__group)[open] > summary .aw-mobile-menu__indicator::after { display: none; }
.aw-mobile-menu__links {
  list-style: none;
  margin: 0 0 8px;
  padding: 1px 12px 1px 14px;
  border-radius: 8px;
  background: var(--aw-charcoal);
}
.aw-mobile-menu__links li + li { border-top: 1px solid var(--aw-border); }
.aw-mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: .9375rem;
  font-weight: 510;
  overflow-wrap: anywhere;
}
.aw-mobile-menu__links a:is(:hover, [aria-current=page]) { color: var(--aw-lime); text-decoration: underline; text-underline-offset: 4px; }

.aw-mobile-menu__footer {
  display: grid;
  flex: none;
  align-items: center;
  gap: 2px;
  border-top: 1px solid var(--aw-border);
  padding-block: 14px max(8px, env(safe-area-inset-bottom));
  background: var(--aw-surface);
}
.aw-mobile-menu .aw-mobile-menu__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 14px;
  border-radius: var(--aw-radius-pill);
  background: var(--aw-lime);
  color: var(--aw-charcoal);
  font-size: .9375rem;
  font-weight: 720;
}
.aw-mobile-menu .aw-mobile-menu__contact:hover { background: var(--aw-lime-hover); }
.aw-mobile-menu .aw-mobile-menu__login {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--aw-muted);
  font-size: .875rem;
  font-weight: 590;
}
.aw-mobile-menu .aw-mobile-menu__login:hover { color: var(--aw-text); text-decoration: underline; text-underline-offset: 4px; }

@media (max-height: 540px) {
  .aw-mobile-menu__bar { min-height: calc(58px + env(safe-area-inset-top)); }
  .aw-mobile-menu__brand img { width: 76px; }
  .aw-mobile-menu__footer { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 8px; }
  .aw-mobile-menu .aw-mobile-menu__contact { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .aw-mobile-menu[open] { animation: aw-mobile-menu-enter 180ms ease-out; }
  @keyframes aw-mobile-menu-enter { from { opacity: .55; transform: translateX(14px); } }
}
