/* Hybrid Home bridge:
   preserves the H prototype layout while connecting it to the multipage shell. */

.site-header {
  width: 100%;
  background: rgb(8 10 15 / 90%);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo-horizontal {
  width: clamp(174px, 15vw, 220px);
  height: 58px;
  display: block;
  flex: none;
  filter: drop-shadow(0 0 14px rgb(0 0 0 / 45%));
  object-fit: contain;
  object-position: left center;
}

.brand-logo-horizontal--footer {
  width: min(250px, 100%);
  height: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-group {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: -16px;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--mi-border);
  border-radius: var(--mi-radius-md);
  background: rgb(18 23 34 / 98%);
  box-shadow: var(--mi-shadow-raised);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms var(--mi-ease), transform 160ms var(--mi-ease), visibility 160ms var(--mi-ease);
}

.nav-dropdown a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-radius: var(--mi-radius-sm);
}

.nav-dropdown a:hover {
  color: var(--mi-heat-300);
  background: rgb(108 92 231 / 10%);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  color: var(--mi-heat-300);
}

.mobile-subnav {
  display: grid;
  margin: -4px 0 5px 14px;
  padding-left: 13px;
  border-left: 1px solid var(--mi-ember-800);
}

.mobile-menu .mobile-subnav a {
  min-height: 36px;
  color: var(--mi-steel-400);
  font-size: 0.78rem;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--mi-border);
  color: var(--mi-steel-500);
  font-size: 0.72rem;
}

.site-footer a:hover {
  color: var(--mi-flame-400);
}

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

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 650px) {
  .brand-logo-horizontal {
    width: 178px;
    height: 50px;
  }

  .nav-actions > .button {
    display: none;
  }

  .footer-legal {
    flex-direction: column;
  }
}
