/**
 * ./assets/css/header.css
 *
 * Fixed transparent LAB545 site header with black navigation text,
 * tight viewport spacing, and a soft blur fade behind the navigation.
 */

:root {
  --daf-header-height: 2.7rem;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  overflow: visible;
  background: transparent;
  color: var(--daf-color-black);
  pointer-events: none;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 54%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 44%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 44%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) auto;
  gap: clamp(0.6rem, 1.5vw, 1.4rem);
  align-items: center;
  min-height: var(--daf-header-height);
  padding: 0.42rem clamp(0.8rem, 2.4vw, 2rem);
  font-family: var(--daf-font-mono);
  font-size: clamp(0.74rem, 0.78vw, 0.88rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  pointer-events: auto;
}

.site-header__brand,
.site-header__nav a {
  color: var(--daf-color-black);
  text-decoration: none;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  font-family: var(--daf-font-mono);
  font-size: clamp(0.78rem, 0.84vw, 0.94rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  opacity: 0 !important;
  pointer-events: none;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: center;
  justify-content: flex-end;
}

.site-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--daf-color-black);
  transition:
    color var(--daf-transition-fast),
    text-decoration-color var(--daf-transition-fast);
}

.site-header__brand:hover,
.site-header__brand:focus-visible,
.site-header__nav a:hover,
.site-header__nav a:focus-visible,
.site-header__nav .current-menu-item > a,
.site-header__nav .current_page_item > a,
.site-header__nav a[aria-current="page"] {
  color: var(--daf-color-black);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

@media (max-width: 782px) {
  :root {
    --daf-header-height: 4.2rem;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header::before {
    height: var(--daf-header-height);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.9rem;
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    min-height: auto;
  }

  .site-header__brand {
    grid-column: 1;
  }

  .site-header__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  :root {
    --daf-header-height: 4.9rem;
  }

  .site-header__inner {
    padding-right: var(--daf-space-sm);
    padding-left: var(--daf-space-sm);
  }

  .site-header__brand {
    font-size: 0.76rem;
  }

  .site-header__nav {
    gap: 0.75rem;
  }

  .site-header__nav a {
    font-size: 0.7rem;
  }
}

/* === DAF editable primary menu START === */
/**
 * ./assets/css/header.css
 *
 * Styles native WordPress menu output inside the site header.
 */

.site-header__menu {
  display: flex;
  align-items: center;
  gap: var(--daf-space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__menu .menu-item {
  margin: 0;
  padding: 0;
}

.site-header__menu a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible,
.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

@media (max-width: 700px) {
  .site-header__menu {
    display: none;
  }
}
/* === DAF editable primary menu END === */
