/* The main menu (2026-10-09). Decided by Shawn: mockups/main-menu-v2.html. All selectors are new (hl-*), plus two
   that keep the old menu's leftovers out of the way. One row from 1160px up; below that, a call icon, the menu
   button and a full-screen menu. No all-caps labels (Shawn's rule). After a change, bump HL_NAV_VERSION in hl-nav.php. */

.hl-ico { display: block; width: 1em; height: 1em; flex: none; }
.hivelaw-header .hl-nav, .hivelaw-header .hl-bar { margin: 0; }
.hivelaw-header .hl-nav ul, .hivelaw-header .hl-nav li, .hl-mnav ul, .hl-mnav li, .hl-mnav p { margin: 0; padding: 0; list-style: none; }

/* ---------- one row, 1160px and up ---------- */
.hl-nav { display: none; align-items: center; margin-left: auto; }
.hl-nav__list { display: flex; align-items: center; gap: 2px; }
.hl-nav__item { position: relative; }
.hl-nav__link {
	position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; min-height: 44px;
	font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: 0;
	color: #FFFFFF; text-decoration: none; white-space: nowrap; background: none; border: 0; border-radius: 6px; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.hl-nav__link::after {
	content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px; border-radius: 2px; background: #C9A84C;
	transform: scaleX(0); transform-origin: left center; transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.hl-nav__link:hover::after, .hl-nav__link.is-current::after, .hl-nav__trigger[aria-expanded="true"]::after { transform: none; }
.hl-nav__link:focus-visible, .hl-call:focus-visible, .hl-panel__row:focus-visible, .hl-bar__call:focus-visible, .hl-bar__menu:focus-visible,
.hl-mnav a:focus-visible, .hl-mnav__close:focus-visible { outline: 2px solid #C9A84C; outline-offset: 2px; }
.hl-nav__trigger .hl-ico { width: 13px; height: 13px; color: #C9A84C; stroke-width: 2.6; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.hl-nav__trigger[aria-expanded="true"] .hl-ico { transform: rotate(180deg); }

.hl-call { display: flex; flex-direction: column; margin-left: 26px; padding: 2px 0 2px 26px; border-left: 1px solid rgba(255, 255, 255, .16); line-height: 1.1; white-space: nowrap; text-decoration: none; border-radius: 4px; }
.hl-call__label { margin-bottom: 4px; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 500; font-size: 13.5px; line-height: 1.2; color: #D9BC6A; }
.hl-call__num { font-family: var(--font-display, Outfit, system-ui, sans-serif); font-weight: 600; font-size: 23px; line-height: 1.1; letter-spacing: .01em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.hl-call:hover .hl-call__num { color: #F3E3B0; }

/* the Who We Help list */
.hl-panel {
	position: absolute; top: calc(100% + 10px); left: -6px; z-index: 20; width: 400px; max-width: calc(100vw - 32px); padding: 10px;
	background: #FFFFFF; border-radius: 12px;
	box-shadow: 0 22px 60px rgba(26, 26, 32, .20), 0 2px 8px rgba(26, 26, 32, .08), 0 0 0 1px rgba(26, 26, 32, .06);
}
.hl-panel[hidden] { display: none; }
.hl-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* the mouse can cross the gap without the list closing */
.hl-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; border-radius: 8px; color: #2C2C34; text-decoration: none; }
.hl-panel__row:hover, .hl-panel__row:focus-visible { background: #F8F6F2; }
.hl-panel__t { display: block; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 600; font-size: 18px; line-height: 1.3; color: #1A1A20; }
.hl-panel__d { display: block; margin-top: 2px; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 400; font-size: 15px; line-height: 1.4; color: #5F5A52; }
.hl-panel__row .hl-ico { width: 18px; height: 18px; color: #A8862F; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.hl-panel__row:hover .hl-ico { transform: translateX(3px); }
.hl-panel__row[aria-current="page"] .hl-panel__t { text-decoration: underline; text-decoration-color: #C9A84C; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- below 1160px: call icon and menu button ---------- */
.hl-bar { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hl-bar__call, .hl-bar__menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.hl-bar__call { color: #C9A84C; text-decoration: none; }
.hl-bar__call .hl-ico { width: 24px; height: 24px; }
.hl-bar__menu { flex-direction: column; gap: 5px; }
.hl-bar__line { display: block; width: 24px; height: 2px; border-radius: 2px; background: #FFFFFF; }

/* the old menu button is not printed with this menu; if a cached page still has one, it stays out of the way */
.hivelaw-header .hl-bar ~ .hivelaw-menu-toggle { display: none !important; }

@media (min-width: 1160px) {
	.hl-nav { display: flex; }
	.hl-bar { display: none; }
}
@media (max-width: 1159px) {
	/* the header's own phone rules start at 768px; from 769px to 1159px the logo and the two buttons need the same room */
	.hivelaw-header .hivelaw-header__logo { flex: 0 1 auto; min-width: 0; }
}

/* ---------- the full-screen menu ---------- */
.hl-mnav { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: #1A1A20; color: #FFFFFF; }
.hl-mnav[hidden] { display: none; }
.hl-mnav__bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hl-mnav__logo { font-family: var(--font-display, Outfit, system-ui, sans-serif); font-weight: 700; font-size: 20px; color: #FFFFFF; white-space: nowrap; }
.hl-mnav__logo span { color: #C9A84C; }
.hl-mnav__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 8px; color: #FFFFFF; cursor: pointer; -webkit-appearance: none; appearance: none; }
.hl-mnav__close .hl-ico { width: 26px; height: 26px; }
.hl-mnav__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 26px 124px; }
.hl-mnav__list { max-width: 34rem; margin: 0 auto !important; }
.hl-mnav__link { display: block; padding: 11px 0; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 500; font-size: 19px; line-height: 1.3; color: #FFFFFF; text-decoration: none; }
.hl-mnav__group { margin: 6px 0 8px !important; padding: 10px 0 4px 16px !important; border-left: 2px solid #C9A84C; }
.hl-mnav__h { margin-bottom: 2px !important; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 600; font-size: 14px; line-height: 1.3; color: #D9BC6A; }
.hl-mnav__choice { display: block; padding: 8px 0; text-decoration: none; }
.hl-mnav__t { display: block; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 500; font-size: 17px; line-height: 1.3; color: #FFFFFF; }
.hl-mnav__d { display: block; margin-top: 1px; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 400; font-size: 14.5px; line-height: 1.35; color: #B9B6B0; }
.hl-mnav a[aria-current="page"] .hl-mnav__t, .hl-mnav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: #C9A84C; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hl-mnav__call {
	position: absolute; left: 18px; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 2; max-width: 34rem; margin: 0 auto;
	display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
	background: #C9A84C; color: #1A1A20; text-decoration: none; box-shadow: 0 -14px 30px 10px rgba(26, 26, 32, .9);
}
.hl-mnav__call .hl-ico { width: 22px; height: 22px; color: #1A1A20; }
.hl-mnav__call-l { display: block; font-family: var(--font-body, Poppins, system-ui, sans-serif); font-weight: 600; font-size: 13px; line-height: 1.2; color: #1A1A20; }
.hl-mnav__call-n { display: block; font-family: var(--font-display, Outfit, system-ui, sans-serif); font-weight: 700; font-size: 22px; line-height: 1.15; color: #1A1A20; font-variant-numeric: tabular-nums; }
html.hl-mnav-open, html.hl-mnav-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.hl-nav__link::after, .hl-nav__trigger .hl-ico, .hl-panel__row .hl-ico { transition: none; }
}

/* dark mode: the site forces light body text there, so every color here is stated again */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .hl-nav__link, :root:not([data-theme="light"]) .hl-nav__link span, :root:not([data-theme="light"]) .hl-call__num,
	:root:not([data-theme="light"]) .hl-mnav__link, :root:not([data-theme="light"]) .hl-mnav__t, :root:not([data-theme="light"]) .hl-mnav__logo { color: #FFFFFF !important; }
	:root:not([data-theme="light"]) .hl-call__label, :root:not([data-theme="light"]) .hl-mnav__h { color: #D9BC6A !important; }
	:root:not([data-theme="light"]) .hl-mnav__logo span { color: #C9A84C !important; }
	:root:not([data-theme="light"]) .hl-mnav__d { color: #B9B6B0 !important; }
	:root:not([data-theme="light"]) .hl-mnav__call, :root:not([data-theme="light"]) .hl-mnav__call span { color: #1A1A20 !important; }
	:root:not([data-theme="light"]) .hl-panel { background: #26262D; box-shadow: 0 22px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(248, 246, 242, .12); }
	:root:not([data-theme="light"]) .hl-panel__t { color: #FFFFFF !important; }
	:root:not([data-theme="light"]) .hl-panel__d { color: #C9C6C0 !important; }
	:root:not([data-theme="light"]) .hl-panel__row:hover, :root:not([data-theme="light"]) .hl-panel__row:focus-visible { background: #33333B; }
	:root:not([data-theme="light"]) .hl-panel__row .hl-ico { color: #C9A84C; }
}
@media print { .hl-nav, .hl-bar, .hl-mnav { display: none !important; } }
