/* Main menu in the site header (Sell, Lease, Buy, Invest & Remodel, Our Work,
   About). Inline on wide screens, a drop-down panel behind the Menu button on
   narrower ones (assets/js/nav.js). The ad-only neighborhood pages leave it
   out on purpose so ad clicks stay on the form. */

.site-nav { display: none; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle .bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: background 0.2s ease; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease; }
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Narrow: the panel drops below the sticky header */
.nav-open .site-nav {
  display: grid; position: absolute; top: 100%; left: 0; right: 0;
  padding: 6px 20px 18px; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(21, 32, 28, 0.35);
}
.nav-open .site-nav a { font-size: 1.12rem; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; }
.nav-open .site-nav a:last-child { border-bottom: 0; }
.nav-open .site-nav a[aria-current="page"] { color: var(--brass); }

/* Wide: one row between the brand and the actions */
@media (min-width: 1140px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav {
    display: flex; position: static; padding: 0; background: none; border: 0; box-shadow: none;
    gap: 2px; margin: 0 auto; align-items: center;
  }
  .site-nav a, .nav-open .site-nav a { position: relative; font-size: 0.93rem; padding: 8px 11px; border: 0; border-radius: 8px; display: inline-block; white-space: nowrap; }
  .site-nav a:hover { background: var(--paper-2); color: var(--ink); }
  .site-nav a[aria-current="page"] { color: var(--ink); }
  .site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--brass-bright); }
  /* Room for the menu: the page column tops out near 1120px, so the long
     brokerage line under the name stays in the footer whenever the menu shows. */
  .brand span { display: none; }
}
.site-nav .ext { color: var(--ink-soft); }

/* Small phones: icon-only button so the name and brokerage line keep their room.
   The word stays in the button for screen readers. */
@media (max-width: 440px) {
  .nav-toggle { font-size: 0; gap: 0; padding: 12px 11px; }
}
