/* A native modal dialog keeps keyboard focus and background interaction contained. */
.mobile-menu { display: none; }
body.mobile-menu-open { position: fixed; top: var(--mobile-menu-scroll, 0); left: 0; right: 0; width: 100%; overflow: hidden; }
@media (max-width: 850px) {
  .header .menu svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .header .menu:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 5px; }
  .mobile-menu[open] {
    position: fixed; inset: 0; display: flex; flex-direction: column;
    width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none;
    margin: 0; padding: 0; border: 0; color: var(--ink); background: #fff;
    overflow: hidden; overscroll-behavior: contain;
    animation: mobile-menu-enter .46s cubic-bezier(.22, 1, .36, 1) both;
    will-change: transform;
  }
  .mobile-menu::backdrop { background: rgba(4, 22, 43, .18); animation: mobile-menu-backdrop-in .32s ease-out both; }
  .mobile-menu[open].is-closing { pointer-events: none; animation: mobile-menu-leave .34s cubic-bezier(.4, 0, 1, 1) both; }
  .mobile-menu[open].is-closing::backdrop { animation: mobile-menu-backdrop-out .34s ease-in both; }
  .mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 20px;
    min-height: 80px; padding: calc(16px + env(safe-area-inset-top)) 24px 16px;
    border-bottom: 1px solid #e6edf3;
  }
  .mobile-menu-header .brand { min-width: 0; font-size: 23px; }
  .mobile-menu-header .brand i { width: 27px; height: 37px; margin-right: 9px; }
  .mobile-menu-header .brand small { font-size: 7px; }
  .mobile-menu-close {
    display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
    padding: 0; border: 1px solid #dce7f1; border-radius: 50%;
    color: var(--ink); background: #f3f7fb; cursor: pointer;
    transition: color .2s, background .2s, transform .2s;
  }
  .mobile-menu-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .mobile-menu-close:hover { color: #fff; background: var(--blue); transform: rotate(90deg); }
  .mobile-menu-content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 23px 24px max(14px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu-eyebrow { margin: 0 0 13px; color: #8499ad; font: 500 10px/1.5 'Roboto Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-menu-links { flex-shrink: 0; }
  .mobile-menu-links a {
    display: flex; align-items: center; gap: 15px; min-height: 53px; padding: 12px 0;
    border-bottom: 1px solid #e6edf3; text-decoration: none; color: var(--ink);
    font: 700 20px/1.3 Manrope, Arial, sans-serif; transition: color .2s;
  }
  .mobile-menu-links svg, .mobile-menu-phone svg { width: 20px; height: 20px; flex-shrink: 0; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .mobile-menu-links svg { color: #8ea9bf; }
  .mobile-menu-links a:hover, .mobile-menu-links a[aria-current] { color: var(--blue); }
  .mobile-menu-links a[aria-current] svg { color: var(--blue); }
  .mobile-menu-links a:hover svg { transform: translateX(4px); }
  .mobile-menu-footer { margin-top: auto; padding-top: 26px; flex-shrink: 0; }
  .mobile-menu-contact { padding: 20px; border-radius: 16px; color: #fff; background: #0b223e; }
  .mobile-menu-contact p { margin: 0 0 12px; color: #a9bed2; font-size: 11px; }
  .mobile-menu-phone { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 700 22px/1.4 Manrope, Arial, sans-serif; white-space: nowrap; }
  .mobile-menu-phone svg { color: #64b2ff; transform: rotate(-35deg); }
  .mobile-menu-email { display: inline-block; margin-top: 5px; color: #9acbff; font-size: 13px; text-decoration: none; }
  .mobile-menu-contact a:hover { color: #cce7ff; }
  .mobile-menu-hours { display: block; margin-top: 15px; color: #91a8bf; font-size: 10px; }
  .mobile-menu-note { margin: 13px 0 0; color: #91a1b2; font-size: 9px; text-align: center; }
  .mobile-menu a:focus-visible, .mobile-menu button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-header { animation: mobile-menu-content-enter .38s cubic-bezier(.22, 1, .36, 1) .1s both; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-eyebrow { animation: mobile-menu-content-enter .36s ease-out .16s both; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a { animation: mobile-menu-link-enter .42s cubic-bezier(.22, 1, .36, 1) both; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(1) { animation-delay: .14s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(2) { animation-delay: .175s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(3) { animation-delay: .21s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(4) { animation-delay: .245s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(5) { animation-delay: .28s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(6) { animation-delay: .315s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(7) { animation-delay: .35s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(8) { animation-delay: .385s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-links a:nth-child(9) { animation-delay: .42s; }
  .mobile-menu[open]:not(.is-closing) .mobile-menu-footer { animation: mobile-menu-content-enter .42s ease-out .34s both; }
}
@media (max-width: 360px) {
  .mobile-menu-header { padding-inline: 18px; }
  .mobile-menu-content { padding-inline: 18px; }
  .mobile-menu-links a { font-size: 18px; gap: 11px; }
  .mobile-menu-contact { padding: 17px; }
  .mobile-menu-phone { font-size: 20px; }
}
@keyframes mobile-menu-enter { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes mobile-menu-leave { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -100%, 0); } }
@keyframes mobile-menu-backdrop-in { from { background: rgba(4, 22, 43, 0); } to { background: rgba(4, 22, 43, .18); } }
@keyframes mobile-menu-backdrop-out { from { background: rgba(4, 22, 43, .18); } to { background: rgba(4, 22, 43, 0); } }
@keyframes mobile-menu-content-enter { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mobile-menu-link-enter { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open], .mobile-menu[open]::backdrop, .mobile-menu[open] .mobile-menu-header, .mobile-menu[open] .mobile-menu-eyebrow, .mobile-menu[open] .mobile-menu-links a, .mobile-menu[open] .mobile-menu-footer { animation: none; }
  .mobile-menu-close, .mobile-menu-links a, .mobile-menu-links svg { transition: none; }
}
