/*
 * TyBroad global site header
 * The homepage is the visual source of truth. Every public page imports this file last.
 */
.topbar,
.site-header {
  --site-header-deep: #063d43;
  --site-header-accent: #087d84;
  --site-header-text: #073d42;
  --site-header-muted: #4f6f72;
  --site-header-line: #c9dfe1;
  --site-header-radius: 10px;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 8px;
  background: #063d43;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  height: 38px;
  color: var(--site-header-text);
  background: rgba(255,255,255,.98);
  font-size: 13px;
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .tagline { color: var(--site-header-text); font-weight: 700; }
.topbar .contact { display: flex; align-items: center; gap: 18px; color: var(--site-header-muted); font-weight: 650; }

.site-header {
  height: 86px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--site-header-line);
}

.language-menu {
  position: relative;
  margin-left: 2px;
}
.language-menu button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--site-header-accent);
  border-radius: 9px;
  color: #fff;
  background: var(--site-header-accent);
  box-shadow: 0 4px 12px rgba(8,125,132,.18);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.language-menu button:hover,
.language-menu.is-open button {
  border-color: var(--site-header-deep);
  background: var(--site-header-deep);
  box-shadow: 0 6px 16px rgba(6,61,67,.2);
}
.language-menu button:focus-visible {
  outline: 3px solid rgba(8,125,132,.24);
  outline-offset: 2px;
}
.language-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.language-current { line-height: 1; }
.language-chevron {
  width: 10px;
  height: 7px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.language-options {
  width: 154px;
  position: absolute;
  z-index: 1100;
  top: calc(100% + 8px);
  right: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid var(--site-header-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(6,61,67,.16);
  transform: translateY(6px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.language-options::before {
  width: 10px;
  height: 10px;
  position: absolute;
  top: -6px;
  right: 19px;
  content: "";
  border-top: 1px solid var(--site-header-line);
  border-left: 1px solid var(--site-header-line);
  background: #fff;
  transform: rotate(45deg);
}
.language-options a {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--site-header-text);
  font-size: 13px;
  font-weight: 750;
}
.language-options a small {
  color: var(--site-header-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.language-options a.is-current { color: var(--site-header-deep); background: #eaf5f5; }
.language-options a:hover,
.language-options a:focus-visible { color: #fff; background: var(--site-header-accent); outline: 0; }
.language-options a:hover small,
.language-options a:focus-visible small { color: #fff; }
.language-menu:hover .language-options, .language-menu:focus-within .language-options, .language-menu.is-open .language-options { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu:hover .language-chevron, .language-menu:focus-within .language-chevron, .language-menu.is-open .language-chevron { transform: rotate(180deg); }

.site-header .container {
  height: 100%;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 30px;
}

.site-logo-link {
  width: 252px;
  display: block;
}
.site-header .logo { width: 252px; height: 66px; object-fit: contain; }

.site-header .main-nav {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  white-space: nowrap;
}

.site-header .main-nav a {
  position: relative;
  padding-bottom: 5px;
  color: var(--site-header-text);
  font-size: 14px;
  font-weight: 750;
  transition: color .3s ease;
}

.site-header .main-nav small {
  display: block;
  margin-top: 4px;
  color: var(--site-header-muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.site-header .main-nav > a::after,
.site-header .nav-group > a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--site-header-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

.site-header .main-nav > a:hover,
.site-header .main-nav > a[aria-current="page"],
.site-header .nav-group > a:hover,
.site-header .nav-group > a[aria-current="page"] {
  color: var(--site-header-accent);
}

.site-header .main-nav > a:hover::after,
.site-header .main-nav > a[aria-current="page"]::after,
.site-header .nav-group > a:hover::after,
.site-header .nav-group > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header .nav-group { position: relative; }
.site-header .nav-group > a { display: block; }

.site-header .subnav {
  width: 228px;
  position: absolute;
  z-index: 1000;
  top: calc(100% + 18px);
  left: 50%;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid var(--site-header-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(6,61,67,.16);
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.site-header .mega-subnav { width: 250px; }

.site-header .subnav::before {
  position: absolute;
  top: -19px;
  left: 0;
  width: 100%;
  height: 19px;
  content: "";
}

.site-header .subnav a {
  display: block;
  padding: 11px 13px;
  border-radius: 6px;
  color: var(--site-header-deep);
  font-size: 14px;
  font-weight: 700;
}

.site-header .subnav a::after { display: none; }
.site-header .subnav a:hover { color: #fff; background: var(--site-header-accent); }
.site-header .nav-group:hover .subnav,
.site-header .nav-group:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.site-header .header-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}
.site-header .header-phone { text-align: right; line-height: 1.2; }
.site-header .header-phone span { color: #E65100; font-size: 22px; font-weight: 700; }
.site-header .header-phone strong { display: block; color: #E65100; font-size: 16px; font-weight: 800; }

.site-header .header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--site-header-accent);
  border-radius: var(--site-header-radius);
  color: #fff;
  background: var(--site-header-accent);
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.site-header .header-cta:hover {
  color: #fff;
  background: color-mix(in srgb, var(--site-header-accent) 90%, white 10%);
  box-shadow: 0 14px 28px rgba(8,125,132,.30);
  transform: translateY(-1px);
}

.site-header a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--site-header-accent) 45%, white);
  outline-offset: 4px;
}
