/* Shared glass header for the public FixerAPP landing pages. */
:root { --public-header-height: 72px; }
html { scroll-padding-top: calc(var(--public-header-height) + 16px); }

.site-header,
.legacy-public-header {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(4, 17, 19, .52) !important;
  box-shadow: 0 5px 22px rgba(0,0,0,.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header { color: #fff; }
.site-header .header-inner { min-height: var(--public-header-height); padding-inline: clamp(18px, 3.2vw, 62px); }
.site-header .brand,
.site-header .main-nav,
.site-header .location-pill { color: rgba(255,255,255,.96); }
.site-header .main-nav a:hover { color: #fff; }
.site-header .main-nav a::after { bottom: -7px; height: 3px; background: #14c8b5; }
.site-header .main-nav a.is-active::after,
.site-header .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .location-pill svg { color: #14c8b5; }
.site-header .login-button {
  min-height: 42px;
  border-color: rgba(255,255,255,.5);
  background: rgba(3,13,15,.46);
  color: #fff;
}
.site-header .login-button:hover { background: rgba(255,255,255,.12); }
.site-header .menu-button { border-color: rgba(255,255,255,.36); background: rgba(3,13,15,.42); color: #fff; }
.site-header .mobile-menu { border-top-color: rgba(255,255,255,.14); background: rgba(4,17,19,.94); }
.site-header .mobile-menu a { border-bottom-color: rgba(255,255,255,.1); color: rgba(255,255,255,.94); }
.site-header .mobile-menu a[aria-current="page"] { color: #20d2bf; }

.catalog-page main { padding-top: var(--public-header-height); }

.legacy-public-page { padding-top: var(--public-header-height) !important; }
.legacy-public-header { color: #fff; }
.legacy-header-inner {
  width: 100%;
  max-width: none;
  min-height: var(--public-header-height);
  margin: 0;
  padding: 0 clamp(18px, 3.2vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.legacy-header-inner .legacy-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #fff !important;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.legacy-brand img { width: 34px !important; height: 34px !important; object-fit: contain; }
.legacy-brand-app { color: #19d3bf; }
.legacy-main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.7vw, 28px);
  color: rgba(255,255,255,.94);
}
.legacy-main-nav a {
  position: relative;
  padding: 0 !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.94) !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}
.legacy-main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #14c8b5;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}
.legacy-main-nav a[aria-current="page"] { background: transparent !important; color: #fff !important; }
.legacy-main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.legacy-main-nav a:hover { color: #fff !important; }
.legacy-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.legacy-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.legacy-location-pill svg { width: 16px; height: 16px; color: #14c8b5; }
.legacy-login-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(3,13,15,.46);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.legacy-google-play-link { flex: 0 0 auto; }
.legacy-google-play-link[aria-current="page"] { position: relative; }
.legacy-google-play-link[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: -7px;
  left: 12px;
  height: 3px;
  border-radius: 999px;
  background: #14c8b5;
  content: "";
}
.legacy-menu-button { display: none !important; }
.legacy-mobile-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(4,17,19,.96) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.legacy-mobile-panel.hidden { display: none !important; }
.legacy-mobile-nav { padding: 8px clamp(18px, 4vw, 28px) 16px !important; }
.legacy-mobile-nav a {
  padding: 12px 2px !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.95) !important;
  font-size: 14px !important;
}
.legacy-mobile-nav a[aria-current="page"] { color: #20d2bf !important; }
.legacy-mobile-nav .legacy-mobile-location { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1190px) {
  .legacy-main-nav { display: none !important; }
  .legacy-menu-button { display: inline-flex !important; }
  .legacy-public-header .legacy-mobile-panel:not(.hidden) { display: block !important; }
}

@media (max-width: 760px) {
  :root { --public-header-height: 66px; }
  html { scroll-padding-top: 72px; }
  .legacy-header-inner,
  .site-header .header-inner { min-height: var(--public-header-height); padding-inline: 16px; gap: 10px; }
  .legacy-header-inner .legacy-brand { gap: 9px; font-size: 20px; }
  .legacy-brand img { width: 31px !important; height: 31px !important; }
  .legacy-header-actions { display: none; }
}

@media (max-width: 520px) {
  .legacy-header-inner { padding-inline: 16px; gap: 10px; }
  .legacy-header-inner .legacy-brand { gap: 9px; font-size: 20px; }
  .legacy-brand img { width: 31px !important; height: 31px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header *, .legacy-public-header * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
