header.wp-block-template-part,
.wp-site-blocks > header {
  margin: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.hh-site-header {
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--hh-sand) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, white 50%, var(--hh-sand-deep));
  font-family: var(--hh-font-body);
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  --wp--style--font-weight: var(--hh-font-nav-weight);
}

.hh-site-header__bar {
  margin-inline: auto;
  max-width: 72rem;
  padding: 1rem clamp(1.25rem, 3vw, 1.35rem);
}

@media (min-width: 782px) {
  .hh-site-header__bar {
    padding-block: 1.25rem;
  }
}

.hh-site-header__inner {
  align-items: center !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  justify-content: flex-start !important;
  width: 100%;
}

.hh-site-header .wp-block-shortcode,
.hh-site-header__inner > .wp-block-shortcode {
  flex: 0 0 auto;
  margin: 0;
  max-width: none;
  width: auto;
}

.hh-site-header__inner > .wp-block-shortcode:has(.hh-lang-switch),
.hh-site-header__inner > .wp-block-shortcode:has(.hh-header-nav),
.hh-site-header__inner > .wp-block-group.hh-site-header__controls {
  display: contents !important;
}

.hh-site-header__brand,
.hh-site-header__inner > .wp-block-shortcode:first-child {
  flex: 0 1 auto;
  margin-right: auto !important;
  min-width: 0;
}

.hh-site-header__brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.hh-site-header__inner .hh-lang-switch {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

.hh-site-header__inner .hh-header-nav,
.hh-site-header__inner .hh-site-header__nav.wp-block-navigation {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

.hh-logo-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--hh-brand), var(--hh-brand-dark));
  border-radius: 1rem;
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--hh-brand) 32%, transparent),
    inset 0 0 0 2px color-mix(in srgb, white 45%, transparent);
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  height: 2.75rem;
  justify-content: center;
  text-decoration: none;
  width: 2.75rem;
}

.hh-logo-mark svg {
  display: block;
  height: 1.45rem;
  width: 1.45rem;
}

.hh-logo-mark--image {
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  flex-shrink: 0;
  height: auto;
  line-height: 0;
  max-height: 3.5rem;
  overflow: hidden;
  width: auto;
}

.hh-logo-mark__img {
  display: block;
  height: auto !important;
  max-height: 3.5rem !important;
  max-width: min(10.5rem, 42vw) !important;
  object-fit: contain;
  width: auto !important;
}

.hh-site-header__brand--has-logo {
  flex: 0 1 auto;
  max-width: min(11rem, 46vw);
}

.hh-site-header__brand--has-logo .hh-site-header__title {
  display: none;
}

.hh-site-header__brand--has-logo .hh-site-header__tagline {
  display: none;
}

.hh-site-header__brand-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.hh-site-header__title,
.hh-site-header__title a {
  color: var(--hh-ink);
  font-family: var(--hh-font-brand);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-decoration: none;
}

.hh-site-header__title a:hover {
  color: var(--hh-brand-dark);
}

.hh-site-header__tagline {
  color: var(--hh-ink-muted);
  font-family: var(--hh-font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  margin: 0;
  max-width: 22rem;
  text-transform: uppercase;
}

:lang(sq) .hh-site-header__tagline,
:lang(sq-AL) .hh-site-header__tagline {
  letter-spacing: 0.08em;
}

.hh-site-header__controls,
.hh-site-header__controls.wp-block-group,
.hh-site-header__controls.is-layout-flex {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  justify-content: flex-end !important;
  margin-left: 0 !important;
  padding: 0;
  width: auto !important;
}

.hh-site-header__controls > .wp-block-shortcode {
  display: contents !important;
}

.hh-site-header__controls .hh-lang-switch,
.hh-site-header__controls .hh-header-nav {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  width: auto !important;
}

.hh-site-header__controls .wp-block-button__link,
.hh-site-header__controls .wp-element-button {
  font-weight: var(--hh-font-nav-weight);
}

.wp-block-polylang-language-switcher,
.wp-block-polylang-navigation-language-switcher,
.wp-block-trp-language-switcher,
.widget_polylang,
.trp-floating-switcher,
.trp-language-switcher.trp-floating-switcher {
  display: none !important;
}

.hh-lang-switch,
.hh-site-header__nav.wp-block-navigation {
  align-items: center;
  backdrop-filter: blur(12px);
  background: var(--hh-header-pill-bg) !important;
  border: var(--hh-header-pill-border) !important;
  border-radius: var(--hh-radius-pill);
  box-shadow: none !important;
  box-sizing: border-box;
  display: inline-flex;
  gap: 0.15rem;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 0.3rem !important;
  width: auto;
}

.hh-lang-switch {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  line-height: 1;
  width: auto !important;
}

.hh-lang-switch__link,
.hh-site-header__nav .wp-block-navigation-item__content,
.hh-site-header__nav a {
  align-items: center;
  border: 0;
  border-radius: var(--hh-radius-pill);
  box-shadow: none;
  box-sizing: border-box;
  color: var(--hh-ink-muted);
  display: inline-flex !important;
  font-family: var(--hh-font-body);
  font-size: var(--hh-header-tab-size) !important;
  font-weight: 500 !important;
  justify-content: center;
  line-height: 1.2 !important;
  margin: 0;
  outline: none;
  padding: var(--hh-header-tab-pad-y) var(--hh-header-tab-pad-x) !important;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.hh-lang-switch__link:hover,
.hh-site-header__nav a:hover,
.hh-site-header__nav .wp-block-navigation-item__content:hover {
  background: var(--hh-white-hover);
  color: var(--hh-ink);
}

.hh-lang-switch__link.is-active,
.hh-site-header__nav :is(
    .wp-block-navigation-item__content[aria-current="page"],
    a[aria-current="page"],
    .hh-nav-link--active,
    .current-menu-item > .wp-block-navigation-item__content,
    .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
    .wp-block-navigation-item.current-menu-item a
  ) {
  background: var(--hh-brand) !important;
  color: var(--hh-ink) !important;
}

.hh-site-header__nav.wp-block-navigation :is(
    .wp-block-navigation__responsive-container,
    .wp-block-navigation__responsive-container-content,
    .wp-block-navigation__responsive-dialog,
    .wp-block-navigation__container,
    ul.wp-block-navigation__container
  ) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0;
  outline: none !important;
  padding: 0 !important;
  position: static;
  width: auto;
}

.hh-site-header__nav .wp-block-navigation__responsive-container-open,
.hh-site-header__nav .wp-block-navigation__responsive-container-close {
  display: none;
}

.hh-header-nav {
  align-items: center;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  position: relative;
  width: auto !important;
}

@media (min-width: 782px) {
  .hh-header-nav__toggle {
    display: none !important;
  }

  .hh-header-nav .hh-site-header__nav.wp-block-navigation,
  .hh-header-nav .hh-site-header__nav.wp-block-navigation.is-layout-flex {
    display: inline-flex !important;
    position: static !important;
    width: auto !important;
  }
}

.hh-header-nav__toggle {
  align-items: center;
  background: var(--hh-header-pill-bg);
  border: var(--hh-header-pill-border);
  border-radius: var(--hh-radius-pill);
  color: var(--hh-ink);
  cursor: pointer;
  display: none;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  width: 2.75rem;
}

.hh-header-nav__toggle-icon,
.hh-header-nav__toggle-icon::before,
.hh-header-nav__toggle-icon::after {
  background: currentcolor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 1.15rem;
}

.hh-header-nav__toggle-icon {
  position: relative;
}

.hh-header-nav__toggle-icon::before,
.hh-header-nav__toggle-icon::after {
  content: "";
  left: 0;
  position: absolute;
}

.hh-header-nav__toggle-icon::before {
  top: -0.35rem;
}

.hh-header-nav__toggle-icon::after {
  top: 0.35rem;
}

.hh-header-nav.is-open .hh-header-nav__toggle-icon {
  background: transparent;
}

.hh-header-nav.is-open .hh-header-nav__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hh-header-nav.is-open .hh-header-nav__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

body.hh-nav-open {
  overflow: hidden;
}

body.hh-nav-open::before {
  background: color-mix(in srgb, var(--hh-ink) 20%, transparent);
  content: "";
  inset: 0;
  pointer-events: auto;
  position: fixed;
  z-index: 40;
}

body.hh-nav-open header.wp-block-template-part,
body.hh-nav-open .wp-site-blocks > header {
  z-index: 100;
}

.hh-site-header__nav .wp-block-navigation__container,
.hh-site-header__nav ul.wp-block-navigation__container {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  list-style: none;
}

.hh-site-header__nav .wp-block-navigation-item {
  margin: 0;
}

.hh-site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
  background: color-mix(in srgb, var(--hh-sand) 96%, white);
  border-radius: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
}

@media (max-width: 781px) {
  :root {
    --hh-header-height: 4.5rem;
    --hh-header-tab-pad-x: 0.65rem;
    --hh-header-tab-size: 0.75rem;
  }

  .hh-site-header__bar {
    padding: 0.75rem 0.85rem;
  }

  .hh-site-header__inner {
    align-items: center !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .hh-site-header__brand {
    flex: 1 1 auto;
    gap: 0.45rem;
    min-width: 0;
  }

  .hh-site-header__title,
  .hh-site-header__title a {
    font-size: 1rem;
  }

  .hh-logo-mark {
    height: 2.5rem;
    width: 2.5rem;
  }

  .hh-logo-mark--image {
    max-height: 2.5rem;
  }

  .hh-logo-mark__img {
    max-height: 2.5rem !important;
    max-width: min(7.5rem, 34vw) !important;
  }

  .hh-site-header__brand--has-logo {
    max-width: min(8rem, 36vw);
  }

  .hh-site-header__tagline {
    display: none;
  }

  .hh-site-header__controls {
    align-items: center !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.55rem;
    justify-content: flex-end !important;
    margin-left: auto;
    width: auto;
  }

  .hh-site-header__inner .hh-lang-switch {
    margin-left: 0 !important;
  }

  .hh-lang-switch,
  .hh-site-header__nav.wp-block-navigation {
    padding: 0.25rem !important;
  }

  .hh-lang-switch__link {
    min-width: 2.35rem;
    padding: 0.4rem 0.55rem !important;
  }

  .hh-header-nav__toggle {
    display: inline-flex !important;
    flex-shrink: 0;
    height: 2.6rem;
    width: 2.6rem;
  }

  .hh-header-nav {
    z-index: 101;
  }

  .hh-header-nav__toggle {
    position: relative;
    z-index: 102;
  }

  .hh-header-nav .hh-site-header__nav.wp-block-navigation,
  .hh-header-nav .hh-site-header__nav.wp-block-navigation.is-layout-flex {
    background: color-mix(in srgb, var(--hh-sand) 98%, white) !important;
    border: var(--hh-header-pill-border) !important;
    border-radius: 1rem;
    box-shadow: var(--hh-shadow-card);
    display: none !important;
    flex-direction: column;
    left: 0.85rem;
    margin-top: 0;
    padding: 0.5rem;
    pointer-events: auto;
    position: fixed;
    right: 0.85rem;
    top: calc(
      var(--hh-header-height) + var(--wp-admin--admin-bar--height, 0px) + 0.45rem
    );
    width: auto;
    z-index: 101;
  }

  .hh-header-nav.is-open .hh-site-header__nav.wp-block-navigation,
  .hh-header-nav.is-open .hh-site-header__nav.wp-block-navigation.is-layout-flex {
    display: block !important;
  }

  .hh-site-header__nav .wp-block-navigation__container,
  .hh-site-header__nav ul.wp-block-navigation__container {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    width: 100%;
  }

  .hh-site-header__nav .wp-block-navigation-item {
    margin: 0;
    width: 100%;
  }

  .hh-site-header__nav .wp-block-navigation-item__content,
  .hh-site-header__nav a {
    align-items: center;
    border-radius: 0.65rem !important;
    box-sizing: border-box;
    display: flex !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
    min-height: 2.75rem;
    padding: 0.7rem 1rem !important;
    text-align: left;
    width: 100%;
  }

  .hh-site-header__nav :is(
      .wp-block-navigation-item__content[aria-current="page"],
      a[aria-current="page"],
      .hh-nav-link--active
    ) {
    background: var(--hh-brand) !important;
    color: var(--hh-ink) !important;
  }
}
