/**
 * Compass Law — horizontal top navigation bar
 * Transparent over hero; solid background after scroll (Elementor / Customizer controlled).
 */

.header-wrap .home-hero-scroll-txt,
.header-wrap .g-home-hero-scroll-txt,
.header-wrap .sub-header .sound-toggle,
.header-wrap .g-sound-toggle-2 {
  display: none !important;
}

.header-wrap.mod-top-bar {
  --hdr-bg: #ede9e8;
  --hdr-bg-top: #ede9e8;
  --hdr-bg-scrolled: #ede9e8;
  --hdr-border-top: transparent;
  --hdr-border-scrolled: rgba(16, 25, 41, 0.08);
  --hdr-ink: #101929;
  --hdr-muted: rgba(16, 25, 41, 0.55);
  --hdr-rule: rgba(16, 25, 41, 0.18);
  --hdr-cta: transparent;
  --hdr-cta-border: #ba9d4e;
  --hdr-cta-ink: #ba9d4e;
  --hdr-cta-hover: #ba9d4e;
  --hdr-h: 9.6rem;

  inset: auto 0 auto 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: auto;
  min-height: var(--hdr-h);
  padding: 0;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--hdr-bg, #ede9e8) !important;
  background-image: none;
  color: var(--hdr-ink);
  border-bottom: 1px solid transparent;
  filter: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate;
  z-index: 99999;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  will-change: transform;
}

/* Kill legacy whiskey-site invert (was making logo black on dark heroes) */
.header-wrap.mod-top-bar.dark-mode,
.header-wrap.mod-top-bar.dark-mode * {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Transparent until scrolled (or mobile menu open) */
.header-wrap.mod-top-bar.is-transparent-top:not(.scrolled):not(.is-nav-open) {
  background-color: var(--hdr-bg-top, transparent) !important;
  background-image: none !important;
  border-bottom-color: var(--hdr-border-top, transparent);
  box-shadow: none;
}

.header-wrap.mod-top-bar.is-transparent-top.scrolled,
.header-wrap.mod-top-bar.is-transparent-top.is-nav-open,
.header-wrap.mod-top-bar:not(.is-transparent-top),
.header-wrap.mod-top-bar.scrolled,
.header-wrap.mod-top-bar.is-nav-open {
  background-color: var(--hdr-bg-scrolled, var(--hdr-bg, #ede9e8)) !important;
  border-bottom-color: var(--hdr-border-scrolled);
}

.header-wrap.mod-top-bar.scrolled:not(.no-scroll-shadow),
.header-wrap.mod-top-bar.is-nav-open:not(.no-scroll-shadow) {
  box-shadow: 0 10px 28px rgba(16, 25, 41, 0.08);
}

.header-wrap.mod-top-bar.no-scroll-shadow.scrolled,
.header-wrap.mod-top-bar.no-scroll-shadow.is-nav-open {
  box-shadow: none;
}

.header-wrap.mod-top-bar .header-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  /* Match site content width (home banner / intro containers) */
  max-width: 140rem;
  min-height: var(--hdr-h);
  margin-left: auto;
  margin-right: auto;
  padding: 2.2rem 6rem 2.2rem 8rem;
  grid-template-columns: none;
  grid-template-rows: none;
  background: transparent;
  box-sizing: border-box;
}

.header-wrap.mod-top-bar.is-full-width .header-top-bar,
.header-wrap.mod-top-bar.is-full-width .header-mobile-nav {
  max-width: none;
}

.header-wrap.mod-top-bar .header-logo,
.header-wrap.mod-top-bar .g-header-logo {
  grid-area: auto;
  justify-self: auto;
  flex: none;
  display: flex;
  align-items: center;
  width: auto;
  max-width: min(48rem, 42vw);
  margin: 0;
  padding-right: 3.6rem;
  margin-right: 0.4rem;
  border-right: 1px solid var(--hdr-rule);
  z-index: 2;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.header-wrap.mod-top-bar .header-logo-img,
.header-wrap.mod-top-bar .mod-header-logo,
.header-wrap.mod-top-bar .g-mod-header-logo,
.header-wrap.mod-top-bar .header-logo img,
.header-wrap.mod-top-bar .g-header-logo img {
  width: auto !important;
  height: clamp(6.8rem, 7.6vw, 8.4rem) !important;
  max-height: calc(var(--hdr-h) - 2.4rem);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background: transparent !important;
  -webkit-filter: none !important;
}

.header-wrap.mod-top-bar .header-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
}

.header-wrap.mod-top-bar .header-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.header-wrap.mod-top-bar .header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--hdr-ink);
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  padding: 0 2.2rem;
  border-right: 1px solid var(--hdr-rule);
  text-shadow: none;
  filter: none !important;
  mix-blend-mode: normal !important;
  transition: color 0.25s, opacity 0.25s;
}

.header-wrap.mod-top-bar .header-nav-link:last-child,
.header-wrap.mod-top-bar .header-nav-item:last-child .header-nav-link {
  border-right: 0;
}

.header-wrap.mod-top-bar .header-nav-link:hover,
.header-wrap.mod-top-bar .header-nav-link:focus-visible,
.header-wrap.mod-top-bar .header-nav-item:hover > .header-nav-link,
.header-wrap.mod-top-bar .header-nav-item:focus-within > .header-nav-link {
  opacity: 1;
  color: #ba9d4e;
}

.header-wrap.mod-top-bar .header-nav-arrow {
  display: inline-block;
  width: 0.9rem;
  height: 0.6rem;
  stroke: currentColor;
  fill: none;
  margin-top: -1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrap.mod-top-bar .header-nav-item:hover .header-nav-arrow,
.header-wrap.mod-top-bar .header-nav-item:focus-within .header-nav-arrow {
  transform: rotate(180deg);
}

/* Desktop Dropdown Container */
.header-wrap.mod-top-bar .header-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 29rem;
  padding-top: 0.8rem;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.header-wrap.mod-top-bar .header-nav-item:hover > .header-dropdown-menu,
.header-wrap.mod-top-bar .header-nav-item:focus-within > .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-wrap.mod-top-bar .header-dropdown-inner {
  background: #101929;
  border: 1px solid rgba(186, 157, 78, 0.35);
  border-radius: 4px;
  padding: 0.8rem 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 4px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header-wrap.mod-top-bar .header-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.15rem 2.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.header-wrap.mod-top-bar .header-dropdown-link:last-child {
  border-bottom: none;
}

.header-wrap.mod-top-bar .header-dropdown-link-arrow {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #ba9d4e;
  flex-shrink: 0;
}

.header-wrap.mod-top-bar .header-dropdown-link:hover,
.header-wrap.mod-top-bar .header-dropdown-link:focus-visible {
  background-color: rgba(186, 157, 78, 0.12);
  color: #ba9d4e;
  padding-left: 2.6rem;
}

.header-wrap.mod-top-bar .header-dropdown-link:hover .header-dropdown-link-arrow,
.header-wrap.mod-top-bar .header-dropdown-link:focus-visible .header-dropdown-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.header-wrap.mod-top-bar .header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
  flex: none;
}

.header-wrap.mod-top-bar .header-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.6rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--hdr-ink);
  cursor: pointer;
  text-decoration: none;
  transform: none;
  opacity: 1;
}

.header-wrap.mod-top-bar .header-sound-toggle:hover {
  opacity: 0.72;
}

.header-wrap.mod-top-bar .header-sound-toggle.disable {
  opacity: 0.42;
}

.header-wrap.mod-top-bar .header-sound-label {
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
}

.header-wrap.mod-top-bar .header-sound-toggle .ic-sound-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1px);
  gap: 0.28rem;
  align-items: end;
  width: auto;
  height: 1.4rem;
}

.header-wrap.mod-top-bar .header-sound-toggle .ic-sound {
  background-color: currentColor;
  width: 1.5px;
  height: 100%;
}

.header-wrap.mod-top-bar .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 4.8rem;
  padding: 1.15rem 2.2rem;
  background-color: var(--hdr-cta, transparent) !important;
  color: var(--hdr-cta-ink, #ba9d4e) !important;
  -webkit-text-fill-color: var(--hdr-cta-ink, #ba9d4e) !important;
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--hdr-cta-border, #ba9d4e) !important;
  border-radius: 0;
  white-space: nowrap;
  filter: none !important;
  mix-blend-mode: normal !important;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.header-wrap.mod-top-bar .header-cta:hover,
.header-wrap.mod-top-bar .header-cta:focus-visible {
  background-color: var(--hdr-cta-hover, #ba9d4e) !important;
  border-color: var(--hdr-cta-hover, #ba9d4e) !important;
  color: #101929 !important;
  -webkit-text-fill-color: #101929 !important;
}

.header-wrap.mod-top-bar .header-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: inherit !important;
}

.header-wrap.mod-top-bar .header-cta-phone svg,
.header-wrap.mod-top-bar .header-cta .compass-btn-icon,
.header-wrap.mod-top-bar .header-cta .compass-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
  fill: none;
  stroke: currentColor;
}

.header-wrap.mod-top-bar .header-cta-label,
.header-wrap.mod-top-bar .header-cta-number {
  color: inherit;
}

.header-wrap.mod-top-bar .header-cta-number {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.header-wrap.mod-top-bar .header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--hdr-ink);
}

.header-wrap.mod-top-bar .header-burger-line {
  display: block;
  width: 2.2rem;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.header-wrap.mod-top-bar.is-nav-open .header-burger-line:nth-child(1) {
  transform: translateY(0.65rem) rotate(45deg);
}

.header-wrap.mod-top-bar.is-nav-open .header-burger-line:nth-child(2) {
  opacity: 0;
}

.header-wrap.mod-top-bar.is-nav-open .header-burger-line:nth-child(3) {
  transform: translateY(-0.65rem) rotate(-45deg);
}

.header-wrap.mod-top-bar .header-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 140rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.8rem 6rem 2rem 8rem;
  background-color: var(--hdr-bg-scrolled, var(--hdr-bg));
  border-top: 1px solid var(--hdr-border-scrolled);
  box-sizing: border-box;
}

.header-wrap.mod-top-bar .header-mobile-nav .header-nav-link {
  display: block;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hdr-rule);
  border-right: 0;
  font-size: 1.5rem;
}

.header-wrap.mod-top-bar .header-mobile-nav .header-mobile-nav-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-bottom: 1px solid var(--hdr-rule);
}

.header-wrap.mod-top-bar .header-mobile-nav .header-mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-wrap.mod-top-bar .header-mobile-nav .header-mobile-nav-item .header-nav-link {
  border-bottom: none;
  padding: 1.4rem 0;
  flex: 1;
}

.header-wrap.mod-top-bar .header-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  background: transparent;
  border: none;
  color: var(--hdr-ink);
  cursor: pointer;
  padding: 0;
}

.header-wrap.mod-top-bar .header-mobile-toggle-ic {
  width: 1.2rem;
  height: 0.8rem;
  transition: transform 0.25s ease;
}

.header-wrap.mod-top-bar .header-mobile-nav-item.is-submenu-open .header-mobile-toggle-ic {
  transform: rotate(180deg);
}

.header-wrap.mod-top-bar .header-mobile-dropdown {
  display: none;
  flex-direction: column;
  padding: 0 0 1.2rem 1.6rem;
  gap: 0.2rem;
}

.header-wrap.mod-top-bar .header-mobile-nav-item.is-submenu-open .header-mobile-dropdown {
  display: flex;
}

.header-wrap.mod-top-bar .header-mobile-sublink {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--hdr-ink);
  opacity: 0.85;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 25, 41, 0.08);
  transition: color 0.2s, opacity 0.2s, padding-left 0.2s;
}

.header-wrap.mod-top-bar .header-mobile-sublink:last-child {
  border-bottom: none;
}

.header-wrap.mod-top-bar .header-mobile-sublink:hover,
.header-wrap.mod-top-bar .header-mobile-sublink:focus-visible {
  color: #ba9d4e;
  opacity: 1;
  padding-left: 0.6rem;
}

.header-wrap.mod-top-bar .header-mobile-nav .header-cta {
  margin-top: 1.6rem;
  width: 100%;
}

.header-wrap.mod-top-bar .header-prog-wrap {
  display: none;
}

.header-wrap.mod-top-bar .sub-header {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem clamp(2rem, 4vw, 5.6rem);
  pointer-events: none;
  background: transparent;
}

.header-wrap.mod-top-bar .sub-header > * {
  pointer-events: auto;
}

/* Keep top bar visible over footer (old chrome hid corners near page end) */
.header-wrap.mod-top-bar.hide-on-footer {
  pointer-events: none;
}

.header-wrap.mod-top-bar.is-scroll-hidden:not(.is-nav-open) {
  transform: translate3d(0, -110%, 0);
  opacity: 0 !important;
  pointer-events: none;
}

.header-wrap.mod-top-bar.is-scroll-hidden:not(.is-nav-open) * {
  pointer-events: none !important;
}

/* Offset page content under fixed bar */
body:has(.header-wrap.mod-top-bar) .sc-home-hero.mod-law-banner {
  padding-top: 0;
}

@media screen and (max-width: 991px) {
  .header-wrap.mod-top-bar {
    --hdr-h: 7.6rem;
  }

  .header-wrap.mod-top-bar .header-top-bar {
    gap: 1.6rem;
    padding: 1.4rem clamp(2rem, 4vw, 4rem);
  }

  .header-wrap.mod-top-bar .header-logo,
  .header-wrap.mod-top-bar .g-header-logo {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
    max-width: min(28rem, 58vw);
  }

  .header-wrap.mod-top-bar .header-logo-img,
  .header-wrap.mod-top-bar .mod-header-logo,
  .header-wrap.mod-top-bar .g-mod-header-logo,
  .header-wrap.mod-top-bar .header-logo img,
  .header-wrap.mod-top-bar .g-header-logo img {
    height: clamp(5.6rem, 14vw, 6.8rem) !important;
    max-height: calc(var(--hdr-h) - 1.6rem);
  }

  .header-wrap.mod-top-bar .header-mobile-nav {
    padding: 0.8rem clamp(2rem, 4vw, 4rem) 2rem;
  }

  .header-wrap.mod-top-bar .header-nav {
    display: none;
  }

  .header-wrap.mod-top-bar .header-actions .header-cta {
    display: none;
  }

  .header-wrap.mod-top-bar .header-sound-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .header-wrap.mod-top-bar .header-burger {
    display: inline-flex;
  }

  .header-wrap.mod-top-bar.is-nav-open .header-mobile-nav,
  .header-wrap.mod-top-bar .header-mobile-nav:not([hidden]) {
    display: flex;
  }
}

@media screen and (min-width: 992px) {
  .header-wrap.mod-top-bar .header-mobile-nav {
    display: none !important;
  }
}

/* Elementor editor — preview solid so controls are visible */
.elementor-editor-active .elementor-widget-compass-site-header .header-wrap.mod-top-bar {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  min-height: var(--hdr-h);
  opacity: 1 !important;
  pointer-events: auto !important;
  mix-blend-mode: normal !important;
}

.elementor-editor-active .elementor-widget-compass-site-header .header-wrap.mod-top-bar.is-scroll-hidden {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background-color: var(--hdr-bg-scrolled);
  border-bottom-color: var(--hdr-border-scrolled);
}

/* Fullscreen Nav Submenu Support */
.nav-sub-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0 2rem 2.4rem;
}

.nav-sub-link {
  display: inline-flex;
  align-items: center;
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-sub-link:hover,
.nav-sub-link:focus-visible {
  color: #ba9d4e;
  transform: translateX(4px);
}
