/* Shared brand navigation: Figma PC 702:9619; existing H5 navigation is retained. */
/* impeccable-disable overused-font, design-system-font-size -- Inter and the 22px/10px type sizes are measured Figma values. */
body[data-brand-page-key] {
  --brand-nav-accent: #f68804;
  background-color: #0a0a0a;
  background-image: none;
}

.brand-top-wash {
  display: none;
}

.brand-site-header {
  position: sticky;
  top: 0;
  inset: 0 0 auto;
  z-index: 110;
  width: 100%;
  height: 72px;
  border: 0;
  color: #fff;
  background: #0a0a0a;
}

.brand-nav {
  width: min(calc(100% - 48px), 1440px);
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 796px 254px;
  align-items: center;
  justify-content: space-between;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.brand-nav-logo {
  width: 180px;
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand-nav-logo img {
  display: block;
  width: 180px;
  height: 44px;
  object-fit: contain;
}

.brand-nav-links {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 48px;
}

.brand-nav-links li { height: 36px; }

.brand-nav-links a {
  position: relative;
  height: 36px;
  display: flex;
  align-items: flex-start;
  color: #aaa;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  white-space: nowrap;
  transition: color .2s ease;
}

.brand-nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 13px;
  height: 3px;
  border-radius: 1.5px;
  background: var(--brand-nav-accent);
  transform: translateX(-50%) scaleX(0);
  transition: transform .2s ease;
}

.brand-nav-links a:hover,
.brand-nav-links a.active { color: #fff; }

.brand-nav-links a.active { font-weight: 600; }
.brand-nav-links a.active::after { transform: translateX(-50%) scaleX(1); }

.brand-nav-actions {
  width: 254px;
  height: 42px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.brand-nav-action {
  width: 41px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: color .2s ease;
}

.brand-nav-action:hover { color: #fff; }

.brand-nav-action > img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-nav-toggle,
.brand-nav-drawer { display: none; }

.brand-nav :focus-visible,
.brand-nav-drawer :focus-visible {
  outline: 2px solid var(--brand-nav-accent);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .brand-site-header {
    position: sticky;
    top: 0;
    inset: 0 0 auto;
    z-index: 110;
    height: 55px;
    background: transparent;
    transition: background-color .24s ease, box-shadow .24s ease, backdrop-filter .24s ease;
  }

  .brand-site-header.is-scrolled {
    background: rgba(10, 10, 10, .92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .brand-nav {
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  .brand-nav-logo { width: 92px; height: 24px; }
  .brand-nav-logo img { width: 92px; height: 24px; }
  .brand-nav-links,
  .brand-nav-actions { display: none; }

  .brand-nav-toggle {
    position: absolute;
    top: 5.5px;
    z-index: 110;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #fff;
    background: transparent;
  }

  .brand-nav-toggle-start { left: 10px; }
  .brand-nav-toggle span {
    width: 14px;
    height: 2px;
    border-radius: 0;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .brand-nav-toggle.on span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .brand-nav-toggle.on span:nth-child(2) { opacity: 0; }
  .brand-nav-toggle.on span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  body.nav-drawer-open .brand-site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 110;
  }

  .brand-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 72px clamp(20px, 8vw, 32px) 24px;
    padding: clamp(68px, 9dvh, 78px) clamp(20px, 8vw, 32px) max(24px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    color: #fff;
    background: #121212;
    opacity: 0;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.16, 1, .3, 1), opacity .24s ease, visibility 0s linear .32s;
    will-change: transform, opacity;
  }

  .brand-nav-drawer.open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .brand-nav-drawer-close {
    position: absolute;
    top: 6px;
    top: max(6px, env(safe-area-inset-top));
    right: 10px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
  }

  .brand-nav-drawer-close svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .brand-nav-drawer-logo {
    width: 132px;
    width: clamp(112px, 16dvh, 132px);
    margin: 0 auto 12px;
    margin: 0 auto clamp(10px, 1.6dvh, 14px);
    display: block;
    flex: 0 0 auto;
  }

  .brand-nav-drawer-logo img { display: block; width: 100%; height: auto; }

  .brand-nav-drawer-links {
    width: min(100%, 420px);
    margin: auto;
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    gap: clamp(6px, 1dvh, 10px);
  }

  .brand-nav-drawer-links a {
    position: relative;
    height: 54px;
    height: clamp(42px, 7.2dvh, 58px);
    min-height: 0;
    padding: 0 clamp(20px, 7vw, 30px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 12px;
    background: #303030;
    color: #fff;
    font: 400 17px/1.4 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  .brand-nav-drawer-links a.active {
    color: var(--brand-nav-accent);
    font-weight: 500;
  }

  .brand-nav-drawer-actions {
    width: min(100%, 420px);
    margin: 0 auto;
    padding-top: 12px;
    padding-top: clamp(8px, 1.5dvh, 14px);
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 7vw, 28px);
  }
}

@media (max-width: 1280px) and (max-height: 540px) {
  .brand-nav-drawer {
    padding-top: 42px;
    padding-bottom: 6px;
    overflow-y: auto;
  }

  .brand-nav-drawer-close { top: max(2px, env(safe-area-inset-top)); }
  .brand-nav-drawer-logo { width: 100px; margin-bottom: 8px; }
  .brand-nav-drawer-links { margin: 0 auto; gap: 5px; }
  .brand-nav-drawer-links a { height: 40px; border-radius: 9px; font-size: 15px; }
  .brand-nav-drawer-actions { margin-top: 8px; padding-top: 0; }
}

@media (min-width: 1281px) {
  .business-page-body .business-hero { margin-top: 24px; }
  .about-page-body .about-document { padding-top: 24px; }
  .faq-page-body .faq-document { padding-top: 104px; }
  .cms-page-body .cms-page-shell { padding-top: 80px; }
  .business-detail-page-body .business-detail { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-site-header,
  .brand-nav-links a,
  .brand-nav-links a::after,
  .brand-nav-toggle span,
  .brand-nav-drawer { transition: none; }
}
