/* Hallmark · v2.0.0 · theme: TechMet brand · redesign: polish · scope: homepage navigation */
/* Finish: frosted glass, thin border and soft shadow are explicitly requested. */
/* Critique: replace fullscreen navigation with a compact, readable graphite glass dropdown. */
:root {
  --menu-solid: rgba(28,28,28, .98);
  --menu-glass: rgba(28,28,28, .92);
  --menu-hover: rgba(226,226,226, .09);
  --menu-rule: rgba(226,226,226, .15);
  --menu-border: rgba(226,226,226, .38);
  --menu-shadow: 0 16px 40px rgba(0, 0, 0, .32);
  --menu-text: #e2e2e2;
  --menu-text-hover: #ffffff;
}
body.techmet-home .header { position: relative; z-index: 30; }
body.techmet-home .header .desktop-navigation { display: none !important; }
body.techmet-home .header .phone-navigation {
  display: flex !important; position: static; align-items: center; gap: 12px; margin-left: auto;
}
body.techmet-home .header .phone-navigation .phone-home { display: none !important; }
body.techmet-home .header .phone-navigation .phone-menu.tm-menu { display: block !important; position: static !important; }
body.techmet-home .header .phone-menu > .tm-menu-toggle {
  display: flex !important; position: relative !important; inset: auto !important;
  align-items: center; justify-content: center; width: 48px; height: 48px;
  padding: 0 !important; margin: 0; list-style: none; cursor: pointer;
  border: 1px solid var(--menu-border) !important; border-radius: 10px !important;
  background: var(--menu-solid) !important; color: var(--menu-text); z-index: 2;
}
body.techmet-home .header .tm-menu-toggle::marker { content: ''; }
body.techmet-home .header .tm-menu-toggle::-webkit-details-marker { display: none; }
body.techmet-home .header .tm-menu-toggle:hover { background: var(--menu-hover) !important; color: var(--menu-text-hover); }
body.techmet-home .header .tm-menu-icon { display: block; width: 20px; height: 16px; position: relative; }
body.techmet-home .header .tm-menu-icon span {
  position: absolute; left: 0; width: 20px; height: 2px; border-radius: 1px;
  background: currentColor; transition: none;
}
body.techmet-home .header .tm-menu-icon span:nth-child(1) { top: 0; }
body.techmet-home .header .tm-menu-icon span:nth-child(2) { top: 7px; }
body.techmet-home .header .tm-menu-icon span:nth-child(3) { top: 14px; }
body.techmet-home .header .tm-menu[open] .tm-menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.techmet-home .header .tm-menu[open] .tm-menu-icon span:nth-child(2) { opacity: 0; }
body.techmet-home .header .tm-menu[open] .tm-menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.techmet-home .header .phone-navigation .phone-menu.tm-menu > .tm-menu-panel {
  display: none !important; position: absolute !important;
  top: calc(100% + 12px) !important; right: 0 !important; bottom: auto !important; left: auto !important;
  width: min(320px, calc(100vi - 32px)) !important; max-width: 100%;
  height: auto !important; max-height: var(--menu-available-height, calc(100dvh - 128px));
  padding: 8px !important; margin: 0 !important; overflow-y: auto; overscroll-behavior: contain;
  background: var(--menu-solid) !important; color: var(--menu-text);
  border: 1px solid var(--menu-border) !important; border-radius: 12px !important;
  box-shadow: var(--menu-shadow) !important; z-index: 40 !important;
  transform: none !important; animation: none !important;
  flex-direction: column !important; align-items: stretch !important; justify-content: start !important; gap: 0 !important;
}
body.techmet-home .header .phone-navigation .phone-menu.tm-menu[open] > .tm-menu-panel { display: flex !important; }
body.techmet-home .header .tm-menu-panel nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
body.techmet-home .header .tm-menu-panel a {
  display: flex !important; align-items: center; justify-content: flex-start; gap: 0;
  min-height: 48px; padding: 12px 16px !important; margin: 0;
  color: var(--menu-text) !important; font-size: 16px !important; font-weight: 500 !important;
  line-height: 1.5 !important; letter-spacing: 0; text-transform: none; text-align: left !important;
  text-decoration: none !important; background: transparent !important;
  border: 0 !important; border-radius: 4px !important; box-shadow: none !important;
}
body.techmet-home .header .tm-menu-panel a + a { border-top: 1px solid var(--menu-rule) !important; }
body.techmet-home .header .tm-menu-panel a::before,
body.techmet-home .header .tm-menu-panel a::after { content: none !important; display: none !important; }
body.techmet-home .header .tm-menu-panel a :is(svg, i, .icon, .arrow, .chevron, [aria-hidden="true"]) { display: none !important; }
body.techmet-home .header .tm-menu-panel a:hover { background: var(--menu-hover) !important; color: var(--menu-text-hover) !important; }
body.techmet-home .header :is(.tm-menu-toggle, .tm-menu-panel a):active { background: var(--menu-hover) !important; color: var(--menu-text-hover) !important; }
body.techmet-home .header :is(.tm-menu-toggle, .tm-menu-panel a):focus-visible {
  outline: 3px solid var(--color-focus); outline-offset: 2px; transition: none;
}
body.techmet-home.tm-menu-open { overflow-y: auto; overflow-x: clip; }
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  body.techmet-home .header .phone-navigation .phone-menu.tm-menu > .tm-menu-panel {
    background: var(--menu-glass) !important;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body.techmet-home .header .phone-navigation .phone-menu.tm-menu > .tm-menu-panel {
    background: var(--menu-solid) !important; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
body.techmet-home .header a.tm-header-phone {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px;
  width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0 !important;
  border: 1px solid var(--menu-border); border-radius: 10px;
  background: var(--menu-solid); color: var(--menu-text); line-height: 1;
}
body.techmet-home .header a.tm-header-phone svg { display: block; width: 20px; height: 20px; flex: none; }
body.techmet-home .header a.tm-header-phone:hover,
body.techmet-home .header a.tm-header-phone:active { background: var(--menu-hover); color: var(--menu-text-hover); }
body.techmet-home .header a.tm-header-phone:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

body.techmet-home .header .tm-header-phone { order: 2; }
