:root {
  --site-width: 1180px;
  --header-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.nav,
.wrap,
.hero-inner,
.footer-inner {
  width: min(var(--site-width), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.nav {
  min-height: var(--header-height);
  gap: 24px;
  position: relative;
}

.brand {
  flex: 0 0 auto;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.brokerage-logo {
  flex: 0 0 auto;
  min-height: 44px;
}

.brokerage-logo img {
  width: 124px;
  max-height: 46px;
}

.nav-links {
  gap: 24px;
  font-size: 15px;
  line-height: 1.2;
}

.nav-links > a:not(.button) {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links > a:not(.button):hover,
.nav-links > a:not(.button):focus-visible {
  color: #ea580c;
}

.mobile-menu {
  display: none;
  margin-left: auto;
}

.mobile-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 8px 12px;
  color: #0f1e36;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::before {
  content: "☰";
  color: #ea580c;
  font-size: 20px;
  line-height: 1;
}

.mobile-menu[open] summary::before {
  content: "×";
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 28px));
  border: 1px solid #dbe3ec;
  border-radius: 0 0 10px 10px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 30, 54, 0.16);
}

.mobile-menu-panel a {
  display: block;
  border-radius: 7px;
  padding: 11px 12px;
  color: #0f1e36;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible,
.mobile-menu-panel a[aria-current="page"] {
  color: #ea580c;
  background: #fff7ed;
}

.mobile-menu-panel .mobile-menu-cta {
  margin-top: 6px;
  color: #fff;
  background: #ea580c;
  text-align: center;
}

.mobile-menu-panel .mobile-menu-cta:hover,
.mobile-menu-panel .mobile-menu-cta:focus-visible {
  color: #fff;
  background: #c2410c;
}

.button {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 15px;
  line-height: 1.2;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

#services,
#pricing,
#process,
#faq,
#form {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .brokerage-logo {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 520px) {
  .nav,
  .wrap,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--site-width));
  }
}
