/* Global navigation follows the same order and touch breakpoint as the main site. */
.nav-links { gap: 24px; }
.nav-seo { position: relative; }
.nav-seo-row { display: flex; align-items: center; }
.nav-seo-row > a { position: relative; text-decoration: none; color: #94a3b8; font-size: 10px; font-weight: 900; letter-spacing: .25em; text-transform: uppercase; white-space: nowrap; }
.nav-seo-row > a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #3b82f6; transition: width .3s; }
.nav-seo-row > a:is(:hover, :focus-visible, [aria-current])::after { width: 100%; }
.nav-seo-row > a:hover, .nav-seo-row > a[aria-current] { color: #fff; }
.seo-toggle { border: 0; background: transparent; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; color: #cbd5e1; border-radius: 8px; }
.seo-toggle:is(:hover, :focus-visible) { background: #ffffff0d; color: #fff; }
.seo-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.seo-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.seo-submenu { position: absolute; top: 100%; left: -16px; min-width: 200px; margin: 0; padding: 8px; list-style: none; border: 1px solid #334155; background: #0b1225; border-radius: 16px; box-shadow: 0 18px 40px #0006; }
.seo-submenu a { display: block; padding: 12px 16px; min-height: 44px; color: #cbd5e1; text-decoration: none; font-size: 13px; font-weight: 650; border-radius: 9px; }
.seo-submenu a:is(:hover, :focus-visible) { color: #fff; background: #1e293b; }
.nav-links > a, .nav-links .nav-seo-row > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.nav-links .btn { border-radius: 999px; min-height: 42px; padding: 12px 25px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
/* Reuse the original home menu: centered type and the existing slide/fade. */
.mobile-nav { display: flex; align-items: center; justify-content: flex-start; gap: 0; padding: 104px 20px max(104px, env(safe-area-inset-bottom)); }
.mobile-nav-content { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; max-width: 36rem; margin-block: auto; flex: none; }
.mobile-nav-content > a, .mobile-nav .nav-seo-row > a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; text-align: center; font-size: 30px; line-height: 1.2; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; border: 0; border-radius: 8px; }
.mobile-nav-content > a[href="/web-design"] { font-size: clamp(20px, 6.6vw, 30px); white-space: nowrap; }
body:has(#mobile-nav.is-open) .seo-analytics-choice { visibility: hidden; }
.mobile-nav .nav-seo { display: flex; flex-direction: column; align-items: center; }
.mobile-nav .nav-seo-row { position: relative; justify-content: center; }
.mobile-nav .nav-seo-row > a { color: #fff; }
.mobile-nav .nav-seo-row > a:is(:hover, :focus-visible) { color: #3b82f6; }
.mobile-nav .nav-seo-row > a::after { display: none; }
.mobile-nav .seo-toggle { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; color: #cbd5e1; background: transparent; }
.mobile-nav .seo-toggle:is(:hover, :focus-visible) { color: #fff; background: transparent; }
.mobile-nav .seo-toggle svg { width: 18px; height: 18px; }
.mobile-nav .seo-submenu { position: static; margin: 14px 0 0; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
.mobile-nav .seo-submenu a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: .1em; text-align: center; text-transform: uppercase; border-radius: 8px; }
.mobile-nav .seo-submenu a:is(:hover, :focus-visible) { color: #3b82f6; background: transparent; }
.mobile-nav-content > .menu-contact { margin-top: 0; max-width: 100%; padding: 20px 48px; border-radius: 999px; color: #020617; font-size: 16px; line-height: 1.5; font-weight: 900; letter-spacing: .1em; flex: none; }
.menu-toggle { border: 0; background: transparent; border-radius: 8px; }
.mobile-nav a, .mobile-nav button, .menu-toggle { -webkit-tap-highlight-color: transparent; }
/* Safari can match :focus-visible after the first menu link is focused by touch. */
html:not([data-nav-input="keyboard"]) .mobile-nav :is(a, button):focus,
html:not([data-nav-input="keyboard"]) .menu-toggle:focus { outline: none; box-shadow: none; }
html[data-nav-input="keyboard"] .mobile-nav :is(a, button):focus,
html[data-nav-input="keyboard"] .menu-toggle:focus { outline: 2px solid #93c5fd; outline-offset: 5px; }
@media (max-width: 1023px) { .nav-links { display: none; } .menu-toggle { display: grid; } .nav { min-height: 80px; } }
@media (min-width: 1024px) { .mobile-nav { display: none; } .menu-toggle { display: none; } }
@media (max-width: 479px) { .nav .brand-word { display: none; } }
@media (max-width: 360px) { .mobile-nav-content > a, .mobile-nav .nav-seo-row > a { font-size: 24px; } .mobile-nav-content > .menu-contact { font-size: 14px; padding-inline: 28px; } }
@media (max-height: 540px) { .mobile-nav { padding-block: 88px; } .mobile-nav-content { gap: 20px; } .mobile-nav .menu-contact { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .seo-toggle svg, .nav-seo-row > a::after { transition: none; } }
