/* Immobau Header Navigation — all selectors scoped to the shortcode. */
.imhnav,
.imhnav *,
.imhnav *::before,
.imhnav *::after { box-sizing: border-box; }

.imhnav {
  --imhnav-bg: #000000;
  --imhnav-fg: #ffffff;
  --imhnav-button-bg: #666675;
  --imhnav-button-hover: #797989;
  background: var(--imhnav-bg);
  color: var(--imhnav-fg);
  position: relative;
  z-index: 900;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.imhnav--contained { width: 100%; max-width: 100%; margin-left: 0; }
.imhnav--sticky { position: sticky; top: 0; }
body.admin-bar .imhnav--sticky { top: 32px; }
.imhnav__inner {
  width: 100%;
  max-width: var(--imhnav-content-width, 1250px);
  height: 112px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.imhnav__logo {
  display: flex;
  grid-column: 1;
  justify-self: start;
  width: var(--imhnav-logo-width, 255px);
  min-width: var(--imhnav-logo-width, 255px);
  height: var(--imhnav-logo-height, 102px);
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.imhnav__logo img {
  display: block;
  width: var(--imhnav-logo-width, 255px);
  height: var(--imhnav-logo-height, 102px);
  object-fit: contain;
  max-width: none;
}
.imhnav__desktop {
  display: flex;
  grid-column: 2;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.75vw, 30px);
  width: max-content;
  margin: 0 !important;
  white-space: nowrap;
}
.imhnav .imhnav__link,
.imhnav .imhnav__projects-trigger {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #fff !important;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none !important;
  text-transform: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.imhnav .imhnav__link:hover,
.imhnav .imhnav__projects-trigger:hover { opacity: .78; }
.imhnav__dropdown { position: relative; }
.imhnav__chevron {
  display: inline-block;
  color: currentColor;
  flex: none;
  transition: transform .18s ease;
}
.imhnav__dropdown.is-open .imhnav__chevron,
.imhnav__dropdown:hover .imhnav__chevron { transform: rotate(180deg); }
.imhnav__submenu {
  display: none;
  position: absolute;
  z-index: 30;
  top: 100%;
  left: -10px;
  padding-top: 10px; /* Keeps the hover bridge between label and submenu */
  width: 226px;
  min-width: 226px;
  text-transform: none;
}
.imhnav__dropdown:hover > .imhnav__submenu,
.imhnav__dropdown:focus-within > .imhnav__submenu,
.imhnav__dropdown.is-open > .imhnav__submenu { display: block; }
.imhnav__submenu-surface { background: #000; padding: 5px 0; }
.imhnav .imhnav__submenu a {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 13px 16px;
  background: #000;
  color: #fff !important;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .14s ease;
}
.imhnav .imhnav__submenu a:hover,
.imhnav .imhnav__submenu a:focus-visible { background: #161616; }
.imhnav .imhnav__cta {
  flex: none;
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 115px;
  height: 40px;
  padding: 0 12px;
  border-radius: 3px;
  background: var(--imhnav-button-bg);
  color: #fff !important;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color .15s ease;
}
.imhnav .imhnav__cta:hover { background: var(--imhnav-button-hover); }
.imhnav a:focus-visible,
.imhnav button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.imhnav__mobile-toggle,
.imhnav__mobile { display: none; }

@media (max-width: 1120px) {
  .imhnav__inner { height: 90px; padding: 0 22px; display: flex; justify-content: space-between; }
  .imhnav__desktop,
  .imhnav .imhnav__cta { display: none !important; }
  .imhnav__logo { width: var(--imhnav-mobile-logo-width, 195px); min-width: var(--imhnav-mobile-logo-width, 195px); height: var(--imhnav-mobile-logo-height, 78px); }
  .imhnav__logo img { width: var(--imhnav-mobile-logo-width, 195px); height: var(--imhnav-mobile-logo-height, 78px); }
  .imhnav .imhnav__mobile-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 43px;
    height: 43px;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .imhnav__mobile-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .16s ease, opacity .16s ease;
  }
  .imhnav__mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .imhnav__mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .imhnav__mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .imhnav__mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    padding: 8px 22px 23px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    background: #000;
    box-shadow: 0 10px 18px rgba(0,0,0,.35);
  }
  .imhnav__mobile.is-open { display: block; }
  .imhnav .imhnav__mobile > a,
  .imhnav .imhnav__mobile-projects {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 49px;
    padding: 12px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #222;
    border-radius: 0;
    background: #000;
    color: #fff !important;
    text-align: left;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
    cursor: pointer;
  }
  .imhnav .imhnav__mobile > a:hover { color: #ddd !important; }
  .imhnav__mobile-dropdown { width: 100%; }
  .imhnav__mobile-dropdown .imhnav__submenu {
    display: none;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .imhnav__mobile-dropdown:hover > .imhnav__submenu,
  .imhnav__mobile-dropdown:focus-within > .imhnav__submenu { display: none; }
  .imhnav__mobile-dropdown.is-open > .imhnav__submenu { display: block; }
  .imhnav__mobile-dropdown .imhnav__submenu-surface { padding: 0; background: #0e0e0e; }
  .imhnav .imhnav__mobile-dropdown .imhnav__submenu a {
    min-height: 45px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    background: #0e0e0e;
    white-space: normal;
  }
  .imhnav .imhnav__mobile-dropdown .imhnav__submenu a:hover { background: #181818; }
  .imhnav .imhnav__mobile > .imhnav__mobile-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 17px;
    padding: 12px;
    border: 0;
    border-radius: 3px;
    background: var(--imhnav-button-bg);
    font-size: 13px;
  }
}
@media (max-width: 782px) {
  body.admin-bar .imhnav--sticky { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .imhnav *, .imhnav *::before, .imhnav *::after { transition: none !important; }
}
