.mobile-menu:not([open]) { display: none; }

@media (max-width: 800px) {
  html:not(.nav-ready) .header { position: static; }
  html:not(.nav-ready) .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    align-items: center;
    gap: .25rem .9rem;
  }
  html:not(.nav-ready) .nav-links noscript { display: contents; }
  html:not(.nav-ready) .nav-links a { overflow-wrap: anywhere; }
  html:not(.nav-ready) .nav-group:has(.services-toggle[hidden]) { display: none; }

  .nav-ready .nav-toggle {
    min-height: 44px;
    padding: .6rem 1.05rem;
    gap: .65rem;
    border: 1px solid #21565d;
    border-radius: 7px;
    background: #11373f;
    color: #fff;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.2;
  }
  .nav-ready .nav-toggle::before {
    content: "";
    width: 16px;
    height: 10px;
    border-block: 2px solid #7be9e0;
  }
  html.mobile-menu-open, html.mobile-menu-open body { overflow: hidden; }
  .mobile-menu[open] {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 2px solid #43c6c4;
    background: linear-gradient(135deg, #133f48, #0c3039 45%, #0a2932);
    color: #f2fcfd;
    color-scheme: dark;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu::backdrop { background: rgb(4 22 28 / 69%); }
  .mobile-menu-inner {
    width: min(100%, 44rem);
    margin-inline: auto;
    padding: max(12px, env(safe-area-inset-top)) max(var(--gutter, 20px), env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(var(--gutter, 20px), env(safe-area-inset-left));
  }
  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: .25rem .85rem;
    border-bottom: 1px solid #36616a;
  }
  .mobile-menu-top h2 { margin: 0; color: #fff; font-size: clamp(1.65rem, 6vw, 2.15rem); letter-spacing: -.045em; }
  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 44px;
    padding: .55rem .85rem;
    border: 1px solid #547b83;
    border-radius: 6px;
    background: transparent;
    color: #ecfcfc;
    font-size: .88rem;
    font-weight: 600;
  }
  .mobile-menu-close::after {
    content: "";
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, transparent 43%, currentColor 45% 55%, transparent 57%),
                linear-gradient(-45deg, transparent 43%, currentColor 45% 55%, transparent 57%);
  }
  .mobile-menu nav { display: grid; gap: .2rem; padding-top: .35rem; }
  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    min-width: 0;
    min-height: 44px;
    padding-block: .57rem;
    color: #f2fcfd;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .mobile-menu a[aria-current="page"] {
    color: #89f2e9;
    text-decoration: underline;
    text-underline-offset: .3em;
    text-decoration-thickness: 2px;
  }
  .mobile-menu :focus-visible { outline: 2px solid #aefff5; outline-offset: 2px; }
  .mobile-menu a:hover { color: #9ff9ef; }
  .mobile-menu nav > a:not(.mobile-menu-cta),
  .mobile-services, .mobile-menu-group a { border-bottom: 1px solid #2b515b; }
  .mobile-services { min-width: 0; }
  .mobile-services > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    min-height: 48px;
    padding-block: .67rem;
    color: #f2fcfd;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
  }
  .mobile-services > summary::-webkit-details-marker { display: none; }
  .mobile-services > summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 3px;
    border: solid #85e8df;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .mobile-services[open] > summary::after { transform: translateY(2px) rotate(225deg); }
  .mobile-services[open] > summary,
  .mobile-services:has(a[aria-current="page"]) > summary { color: #89f2e9; }
  .mobile-services:has(a[aria-current="page"]) > summary { text-decoration: underline; text-underline-offset: .3em; }
  .mobile-service-links {
    display: grid;
    gap: 0 .85rem;
    margin-bottom: .65rem;
    padding-inline: .85rem;
    border-inline-start: 2px solid #52c7bf;
    border-radius: 0 4px 4px 0;
    background: #173f49;
  }
  .mobile-service-links a { min-height: 46px; color: #e7f6f5; }
  .mobile-service-links a + a { border-top: 1px solid #325861; }
  .mobile-menu-group { min-width: 0; }
  .mobile-menu-group h3 {
    margin: .4rem 0 .1rem;
    color: #76ded7;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .mobile-menu-group a::after, .mobile-service-links a::after,
  .mobile-menu nav > a:not(.mobile-menu-cta)::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border: solid #75a8ae;
    border-width: 1.5px 1.5px 0 0;
    transform: translateX(-3px) rotate(45deg);
  }
  .mobile-menu a.mobile-menu-cta {
    margin-top: .45rem;
    padding: .83rem 1rem;
    border-radius: 6px;
    background: linear-gradient(100deg, #8ce9cd, #65e6e2);
    color: #082e34;
    font-weight: 700;
  }
  .mobile-menu-cta::after { content: "↗" / ""; font-size: 1.25em; line-height: 1; }
}

@media (min-width: 510px) and (max-width: 800px) {
  .mobile-service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-service-links a:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 800px) {
  .mobile-menu[open] { animation: mobile-menu-enter 180ms ease-out; }
  @keyframes mobile-menu-enter {
    from { transform: translateY(-12px); opacity: .8; }
    to { transform: translateY(0); opacity: 1; }
  }
}
