/**
 * Header component styles.
 * SCSS: assets/css/components/header.scss
 * CSS (compiled by IDE): assets/css/components/header.css
 *
 * Top line — desktop: sticky (in flow — no extra main offset).
 * Top line — mobile: fixed + --header-height padding on main.
 * Sidebar — desktop: fixed column, body padded by --header-sidebar-width.
 * Sidebar — mobile: top bar + off-canvas rail.
 */
.header-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 90;
}

.header-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.header__overlay {
  z-index: 110;
}

body.menu-open {
  overflow: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 20px 0;
  background: var(--header-background, #000);
  border-bottom: 1px solid rgba(191, 188, 219, 0.19);
  transition: box-shadow 0.25s ease;
}
.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.header__wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header__logo {
  flex-shrink: 0;
}
.header__logo img {
  display: block;
  max-width: 200px;
  height: auto;
}
.header__desktop-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.header__nav {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  flex: 1;
}
.header__nav .header__button {
  background: none;
  width: fit-content;
  color: rgba(255, 255, 255, 0.88);
}
.header__nav .header__button:hover, .header__nav .header__button:focus-visible {
  color: var(--additional-c-elements, #ffc213);
}
.header__button, .header__overlay-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 16px;
  border: none;
  border-radius: var(--button-border-radius, 25px);
  background: var(--button-bg);
  color: var(--button-text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s ease;
}
.header__actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.header__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 12px 24px;
  border: none;
  border-radius: var(--button-border-radius, 25px);
  background: var(--button-bg);
  color: var(--button-text-color);
  text-decoration: none;
  font-size: var(--button-font-size, 16px);
  font-weight: 400;
  transition: 0.3s ease;
}
.header__action-btn:hover {
  opacity: 0.85;
}
.header__action-btn.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--button-secondary-bg, transparent);
  /* Fallback #fff — --text-color can be dark and disappear on #000 header. */
  color: var(--button-secondary-text-color, #fff);
}
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--additional-c-elements);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.header__toggle span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--header-toggle-color, #fff);
  transition: 0.3s ease;
}
.header__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.header__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.header__overlay {
  display: none;
}

/* Top line, desktop: one row, scroll, and edge fades when labels overflow. */
@media screen and (min-width: 769px) {
  .header__desktop-menu {
    min-width: 0;
  }
  .header__nav-track {
    position: relative;
    flex: 1;
    min-width: 0;
  }
  .header__nav-track::before, .header__nav-track::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .header__nav-track::before {
    left: 0;
    background: linear-gradient(90deg, var(--header-background, #000) 0%, transparent 100%);
  }
  .header__nav-track::after {
    right: 0;
    background: linear-gradient(270deg, var(--header-background, #000) 0%, transparent 100%);
  }
  .header__nav-track.has-nav-scroll-start::before, .header__nav-track.has-nav-scroll-end::after {
    opacity: 1;
  }
  .header__nav-track .header__nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    justify-content: safe center;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .header__nav-track .header__nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .header__nav-track.is-nav-overflow .header__nav {
    justify-content: flex-start;
  }
  .header__nav-track .header__button {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .header__desktop-menu .header__actions {
    flex-shrink: 0;
  }
}
@media screen and (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 0;
    background: var(--header-background, #000);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .header .container {
    position: relative;
  }
  .header__logo {
    min-width: 0;
    flex: 0 1 auto;
  }
  .header__logo img {
    max-width: 100px;
  }
  .header__wrapper {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  .header__desktop-menu {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-left: 0;
  }
  .header__nav {
    display: none;
  }
  .header__actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: 0;
    min-width: 0;
  }
  .header__toggle {
    display: flex;
    flex-shrink: 0;
    position: relative;
    z-index: 120;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
  }
  .header__overlay {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--header-background, #000);
    max-height: 0;
    min-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .header__overlay.is-open {
    max-height: calc(100dvh - var(--header-height, 84px));
    min-height: calc(100vh - 84px);
    opacity: 1;
    visibility: visible;
  }
  .header__overlay-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px var(--site-gutter, 15px) 32px;
  }
  .header__overlay-top {
    display: none;
  }
  .header__overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .header__overlay-link {
    justify-content: flex-start;
    width: auto;
    padding: 11px 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    text-transform: none;
    font-size: 16px;
    font-weight: 400;
  }
  .header__overlay-actions {
    display: none;
  }
  .header .header__help {
    margin-top: auto;
  }
  .header__action-btn, .header__action-btn.button--secondary {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-height: 35px;
    height: auto;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: none;
  }
  .header__action-btn.button--secondary {
    border-color: var(--button-secondary-text-color, rgba(255, 255, 255, 0.78));
    background: var(--button-secondary-bg, transparent);
    color: var(--button-secondary-text-color, #fff);
  }
  .header__action-btn:not(.button--secondary) {
    border-color: var(--button-fill, var(--button-bg));
    background: var(--button-bg);
    color: var(--button-text-color);
  }
}
/* Sidebar layout — Theme Options → Header → Header type. */
body.header-is-sidebar {
  --header-sidebar-width: 288px;
}
body.header-is-sidebar .header__rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--header-background, #000);
  overflow: hidden;
}
body.header-is-sidebar .header__rail-close {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--header-toggle-color, #fff);
  cursor: pointer;
}
body.header-is-sidebar .header__rail-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  flex-shrink: 0;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(191, 188, 219, 0.19);
}
body.header-is-sidebar .header__rail:not(:has(.header__rail-scroll)) .header__rail-top {
  border-bottom: 0;
}
body.header-is-sidebar .header__rail-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(191, 188, 219, 0.19);
}
body.header-is-sidebar .header__help {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-radius: var(--button-border-radius, 25px);
  background: var(--button-bg);
  color: var(--button-text-color);
  font-family: inherit;
  font-size: var(--button-font-size, 16px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
}
body.header-is-sidebar .header__help:hover {
  opacity: 0.85;
}
body.header-is-sidebar .header__rail .header__logo {
  display: flex;
  justify-content: center;
}
body.header-is-sidebar .header__rail .header__logo img {
  max-width: 180px;
}
body.header-is-sidebar .header__rail .header__actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-left: 0;
}
body.header-is-sidebar .header__rail .header__actions:not(:has(.header__action-btn)) {
  display: none;
}
body.header-is-sidebar .header__rail .header__action-btn {
  width: 100%;
}
body.header-is-sidebar .header__rail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 10px 16px;
  scrollbar-color: rgba(128, 128, 128, 0.45) transparent;
}
body.header-is-sidebar .header__rail-scroll::-webkit-scrollbar {
  width: 4px;
}
body.header-is-sidebar .header__rail-scroll::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.45);
  border-radius: 8px;
}
body.header-is-sidebar .header__rail .header__nav {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
}
body.header-is-sidebar .header__rail .header__nav .header__button {
  justify-content: flex-start;
  width: fit-content;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

@media screen and (min-width: 769px) {
  body.header-is-sidebar {
    padding-left: var(--header-sidebar-width, 288px);
  }
  body.header-is-sidebar.header-sidebar-right {
    padding-left: 0;
    padding-right: var(--header-sidebar-width, 288px);
  }
  body.header-is-sidebar .header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: var(--header-sidebar-width, 288px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    overflow: hidden;
    border-bottom: 0;
    border-right: 1px solid rgba(191, 188, 219, 0.19);
    box-shadow: none;
  }
  body.header-is-sidebar.header-sidebar-right .header {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid rgba(191, 188, 219, 0.19);
  }
  body.header-is-sidebar .header.is-scrolled {
    box-shadow: none;
  }
  body.header-is-sidebar .header__bar {
    display: none;
  }
  body.header-is-sidebar .header__rail {
    height: 100%;
  }
  body.header-is-sidebar .hero {
    width: calc(100vw - var(--header-sidebar-width, 288px));
    margin-left: calc(50% - 50vw + var(--header-sidebar-width, 288px) / 2);
    margin-right: calc(50% - 50vw + var(--header-sidebar-width, 288px) / 2);
  }
  body.header-is-sidebar .bg-block--full::before {
    width: calc(100vw - var(--header-sidebar-width, 288px));
  }
  body.admin-bar.header-is-sidebar .header {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
  }
  body.header-is-sidebar.header-sidebar-right .scroll-top {
    right: calc(var(--header-sidebar-width, 288px) + 24px);
  }
}
@media screen and (max-width: 768px) {
  body.header-is-sidebar .header__rail-close {
    display: flex;
  }
  body.header-is-sidebar .header__rail-top {
    display: none;
  }
  body.header-is-sidebar .header__rail:not(:has(.header__rail-scroll)):not(:has(.header__rail-foot)) {
    display: none;
  }
  body.header-is-sidebar .header__rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 3;
    box-sizing: border-box;
    width: min(var(--header-sidebar-width, 288px), 86vw);
    height: 100%;
    max-height: 100dvh;
    padding: 12px 12px 16px;
    border-right: 1px solid rgba(191, 188, 219, 0.19);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  body.header-is-sidebar .header__rail.is-open {
    transform: translateX(0);
  }
  body.header-is-sidebar.header-sidebar-right .header__rail {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid rgba(191, 188, 219, 0.19);
    transform: translateX(100%);
  }
  body.header-is-sidebar.header-sidebar-right .header__rail-close {
    margin-left: 0;
    margin-right: auto;
  }
  body.header-is-sidebar.header-sidebar-right .header__rail.is-open {
    transform: translateX(0);
  }
  body.header-is-sidebar .header__rail .header__nav {
    display: flex;
  }
  body.admin-bar.header-is-sidebar .header__rail {
    top: var(--wp-admin--admin-bar--height, 46px);
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px));
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px));
  }
}
body.button-gradient .header__action-btn:not(.button--secondary):hover,
body.button-gradient .header__action-btn:not(.button--secondary):focus,
body.button-gradient .header__action-btn:not(.button--secondary):focus-visible,
body.button-gradient .header__help:hover,
body.button-gradient .header__help:focus,
body.button-gradient .header__help:focus-visible,
body.button-bg-image .header__action-btn:not(.button--secondary):hover,
body.button-bg-image .header__action-btn:not(.button--secondary):focus,
body.button-bg-image .header__action-btn:not(.button--secondary):focus-visible,
body.button-bg-image .header__help:hover,
body.button-bg-image .header__help:focus,
body.button-bg-image .header__help:focus-visible {
  background: var(--button-bg);
  color: var(--button-text-color);
  opacity: 1;
}

@media screen and (max-width: 420px) {
  .header__logo img {
    max-width: 100px;
  }
  .header__actions {
    gap: 8px;
  }
  .header__toggle {
    width: 35px;
    height: 35px;
  }
  .header__toggle span {
    width: 100%;
  }
}

/*# sourceMappingURL=header.css.map */
