.site-header {
  position: absolute;
  top: 20px;
  z-index: 9999;
  left: 0;
  width: 100%;
  background: transparent;
  color: var(--blaze-color-white);
}

.page_item {
  font-weight: 400;
}

.section-header {
  max-width: 740px;
}

.section-header__description {
  max-width: 650px;
  color: #333333;
  font-size: 0.98rem;
  font-weight: 500;
}

.header-wrapper {
  position: relative;
  width: 100%;
  padding: 12px 0;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    background 0.3s;
}

.header-wrapper.hide-header {
  transform: translateY(-100%);
  opacity: 0;
}

.header-wrapper.show-header {
  transform: translateY(0);
  opacity: 1;
}

.site-header__inner {
  position: relative;
  isolation: isolate;

  height: 100px;

  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);

  width: min(calc(100% - clamp(16px, 3vw, 60px)), 1440px);

  border-radius: 16px;

  background:
    radial-gradient(
      228.36% 147.97% at 0% -8.55%,
      rgba(60, 59, 59, 0.81) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    rgba(0, 0, 0, 0.78);
}

.site-header__inner::before,
.site-header__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.site-header__inner::before {
  padding: 1px;

  background:
    radial-gradient(
      58% 145% at 100% 0%,
      rgba(177, 142, 50, 1) 0 2%,
      rgba(177, 142, 50, 0.5) 9%,
      transparent 22%
    ),
    radial-gradient(
      58% 145% at 100% 100%,
      rgba(128, 128, 127, 1) 0 3%,
      rgba(128, 128, 127, 0.58) 11%,
      transparent 24%
    ),
    radial-gradient(
      44% 120% at 78% 70%,
      rgba(35, 35, 35, 1) 0 12%,
      rgba(35, 35, 35, 0.74) 23%,
      rgba(216, 216, 216, 0) 48%
    ),
    radial-gradient(
      42% 130% at 39% 50%,
      rgba(147, 147, 147, 0.96) 0 7%,
      rgba(147, 147, 147, 0.72) 20%,
      rgba(216, 216, 216, 0) 48%
    ),
    linear-gradient(
      90deg,
      #febe10 0%,
      #e8be42 10%,
      #c5ad68 22%,
      #939393 41%,
      #686868 53%,
      #232323 67%,
      #353535 76%,
      #6c6757 87%,
      #8f8875 95%,
      #b18e32 100%
    );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  z-index: 2;
}

.site-header__inner::after {
  border: 1px solid rgba(0, 0, 0, 0.2);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);

  z-index: 3;
}

.site-header__inner > * {
  position: relative;
  z-index: 5;
}

.site-branding img {
  max-height: clamp(32px, 4.5vw, 45px);
  width: auto;
}

.header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__cta.button--gold {
  color: #000000;
  height: clamp(38px, 5vh, 48px);
  padding: clamp(8px, 1.2vw, 16px) clamp(16px, 3vw, 48px);
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 18px);
  transition: background-color 0.3s;
  border-radius: 8px;
  border: 1px solid var(--blaze-color-primary);
  background: rgba(254, 190, 16, 0.81);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__cta.button--gold:hover {
  background-color: #98720a;
  color: #000000;
}

.site-branding {
  display: none;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.75rem);
  min-width: 0;
  font-family: var(--blaze-font-heading);
  font-size: clamp(0.75rem, 1.2vw, 1.05rem);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}

.custom-logo {
  width: auto;
  max-height: clamp(32px, 4.5vw, 56px);
}

.site-branding__mark {
  display: inline-grid;
  place-items: center;
  width: clamp(32px, 4vw, 44px);
  aspect-ratio: 1;
  background: var(--blaze-color-primary);
  color: var(--blaze-color-black);
  font-weight: 900;
}

.nav-toggle {
  display: none;

  appearance: none;
  -webkit-appearance: none;

  background: transparent;
  border: 0;
  outline: none;

  padding: 0;
  margin: 0;

  cursor: pointer;

  align-items: center;
  justify-content: center;

  color: #fff;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: clamp(16px, 2vw, 20px);
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle__bar::before {
  transform: translateY(-7px);
}

.nav-toggle__bar::after {
  transform: translateY(5px);
}

.primary-nav {
  position: absolute;
  top: 100%;
  right: var(--blaze-gutter);
  left: var(--blaze-gutter);
  display: none;
  padding: 1rem;
  background: var(--blaze-color-black);
  border-top: 3px solid var(--blaze-color-primary);
  box-shadow: var(--blaze-shadow);
}
.primary-nav__cta {
  display: none;
}

.primary-nav .sub-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 0;
  flex-direction: column;

  width: 260px;

  margin: 0;
  padding: 0;

  list-style: none;

  background:
    radial-gradient(
      228.36% 147.97% at 0% -8.55%,
      rgba(60, 59, 59, 0.81) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(
      225.88% 148.66% at 0.21% -5.92%,
      rgba(123, 123, 123, 0.01) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    rgba(0, 0, 0, 0.95);

  border-radius: 0 0 16px 16px;

  overflow: hidden;

  isolation: isolate;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.25s;
}

.primary-nav .sub-menu::before,
.primary-nav .sub-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.primary-nav .sub-menu::before {
  border-radius: 0 0 16px 16px;
  padding: 1px;

  background:
    radial-gradient(
      58% 145% at 100% 0%,
      rgba(177, 142, 50, 1) 0 2%,
      rgba(177, 142, 50, 0.5) 9%,
      transparent 22%
    ),
    radial-gradient(
      58% 145% at 100% 100%,
      rgba(128, 128, 127, 1) 0 3%,
      rgba(128, 128, 127, 0.58) 11%,
      transparent 24%
    ),
    radial-gradient(
      44% 120% at 78% 70%,
      rgba(35, 35, 35, 1) 0 12%,
      rgba(35, 35, 35, 0.74) 23%,
      transparent 48%
    ),
    radial-gradient(
      42% 130% at 39% 50%,
      rgba(147, 147, 147, 0.96) 0 7%,
      rgba(147, 147, 147, 0.72) 20%,
      transparent 48%
    ),
    linear-gradient(
      90deg,
      #febe10 0%,
      #e8be42 10%,
      #c5ad68 22%,
      #939393 41%,
      #686868 53%,
      #232323 67%,
      #353535 76%,
      #6c6757 87%,
      #8f8875 95%,
      #b18e32 100%
    );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  mask-composite: exclude;

  z-index: 2;
}

.primary-nav .sub-menu::after {
  border-radius: 0 0 16px 16px;

  border: 1px solid rgba(0, 0, 0, 0.2);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);

  z-index: 3;
}

.primary-nav .sub-menu > li:not(:first-child) {
  position: relative;
}

.primary-nav .sub-menu > li:not(:first-child)::before {
  content: "";
  position: absolute;

  left: 0;
  right: 0;
  top: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    #febe10 0%,
    #e8be42 10%,
    #c5ad68 22%,
    #939393 41%,
    #686868 53%,
    #232323 67%,
    #353535 76%,
    #6c6757 87%,
    #8f8875 95%,
    #b18e32 100%
  );

  opacity: 0.9;

  z-index: 6;
}

.sub-menu .menu-item {
  background: #000000f2;
}

.primary-nav .sub-menu li:first-child {
  background:
    radial-gradient(
      228.36% 147.97% at 0% -8.55%,
      rgba(60, 59, 59, 0.81) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(
      225.88% 148.66% at 0.21% -5.92%,
      rgba(123, 123, 123, 0.01) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    rgba(0, 0, 0, 0.95);
}

.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(10px, 2vw, 25px);
}

.primary-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(13px, 1.2vw, 16px);
  transition: color 0.3s;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: #febe10;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
  color: #febe10;
}

.primary-nav.is-open {
  display: block;
}

.menu {
  display: flex;
  justify-content: center;
  gap: clamp(0.1rem, 1vw, 0.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: clamp(0.4rem, 0.8vw, 0.7rem) clamp(0.4rem, 1vw, 0.85rem);
  color: inherit;
  text-decoration: none;
  font-size: clamp(13px, 1.2vw, 16px);
  text-transform: none;
  white-space: nowrap;
}

.menu .current-menu-item > a,
.menu a:hover,
.menu a:focus-visible {
  background: transparent;
  color: var(--blaze-color-primary);
}

/* submenu items */
.menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-item-has-children > a {
  display: block;
  padding-right: 6px;
}

.menu-item-has-children.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 2px;
}

.submenu-toggle img {
  width: 10px;
  height: 10px;
}

.menu-item-has-children.open .submenu-toggle img {
  transform: rotate(180deg);
}
.sub-menu li {
  width: 100%;
}

.sub-menu a {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 72px;

  color: #fff;
  text-decoration: none;

  transition: 0.25s;
}

.menu-item__header {
  display: flex;

  justify-content: space-between;
  align-items: center;
  padding-left: 16px;
}
.sub-menu li:hover > a {
  background: rgba(254, 190, 16, 0.81);
  color: #000;
}
@media (min-width: 993px) {
  .nav-toggle {
    display: none !important;
  }

  .primary-nav {
    position: static;
    display: block !important;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .menu {
    flex-direction: row;
    align-items: center;
    gap: clamp(0.1rem, 1vw, 0.2rem);
  }
}

@media (max-width: 992px) {
  .site-header {
    position: absolute;
    top: 10px;
  }

  .header-wrapper {
    padding: 8px 0;
  }

  .site-header__inner {
    height: clamp(60px, 8vh, 80px);
    padding-inline: clamp(12px, 3vw, 24px);
    width: min(calc(100% - clamp(12px, 3vw, 30px)), 1440px);
  }

  .primary-nav {
    position: fixed;
    top: 86px;
    left: 16px;
    width: min(270px, calc(100vw - 32px));

    display: block;
    padding: 0;

    background: #100f0f;

    border: 1px solid #c79b16;
    border-radius: 16px;

    overflow: hidden;

    transform: translateX(-120%);
    transition: transform 0.35s ease;

    z-index: 999;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav__cta {
    display: none;
  }

  .menu-item-has-children {
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .menu-item-has-children::after {
    display: none;
  }

  .primary-nav.is-open {
    display: block;
    padding: 8px 0;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  #primary-menu li {
    display: flex;
    /* align-items: center; */
  }

  .primary-nav a {
    font-size: 16px;
    white-space: normal;
  }

  .menu a {
    white-space: normal;
    padding: 0.6rem 0;
  }

  .menu {
    display: block;
  }

  .menu > li {
    border-bottom: 1px solid #c79b16;
    min-height: 40px;
    height: auto;
  }

  .menu > li:last-child {
    border-bottom: none;
  }

  .menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 100%;

    padding: 0 16px;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
  }

  .nav-toggle {
    display: inline-grid !important;
    order: 0;
    height: 2px;
  }

  .header__actions {
    margin-left: auto;
    margin-right: clamp(8px, 2vw, 15px);
  }

  .header__cta.button--gold {
    height: clamp(34px, 4.5vh, 42px);
    padding: clamp(6px, 1vw, 12px) clamp(12px, 2.5vw, 28px);
    font-size: clamp(11px, 1.5vw, 14px);
  }

  .custom-logo {
    max-height: clamp(28px, 4vw, 38px);
  }

  .site-branding {
    font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  }

  .site-branding__mark {
    width: clamp(28px, 3.5vw, 36px);
  }

  .primary-nav .sub-menu {
    position: static;

    width: 100%;
    margin-left: 16px;

    transform: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    display: none;

    border-radius: 0;

    background: #100f0f;

    box-shadow: none;
  }

  .primary-nav .sub-menu li:first-child {
    background: #100f0f;
  }

  .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .sub-menu a {
    justify-content: flex-start;

    min-height: 54px;

    padding-left: 16px;

    font-size: 16px;
  }

  .sub-menu li {
    height: 40px;
  }
  .primary-nav .sub-menu::before,
  .primary-nav .sub-menu > li:not(:first-child)::before {
    display: none;
  }

  .sub-menu > li:not(:first-child) {
    border-top: 1px solid var(--blaze-color-primary);
  }

  .sub-menu .menu-item {
    background: #100f0f;
  }
  .sub-menu .current-menu-item > a,
  .sub-menu li:hover > a {
    background: var(--blaze-color-primary);
    color: #000;
  }

  .submenu-toggle {
    margin-left: auto;
    width: 28px;
    height: 28px;
  }

  .submenu-toggle img {
    width: 10px;
    transition: 0.3s;
  }

  .menu-item-has-children.open .submenu-toggle img {
    transform: rotate(180deg);
  }
  .menu-item__header {
    display: flex;

    justify-content: space-between;
    /* align-items: center; */
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .header-wrapper {
    padding: 16px 0;
  }

  .site-header__inner {
    height: 56px;
    padding: 16px;
    gap: 132px;
    width: min(calc(100% - clamp(8px, 2vw, 20px)), 1440px);
    justify-content: space-between;
  }

  .custom-logo-link {
    order: 1;
  }
  .custom-logo {
    max-height: clamp(22px, 3.5vw, 30px);
  }

  .site-branding {
    font-size: clamp(0.5rem, 1.2vw, 0.7rem);
    gap: clamp(0.2rem, 0.8vw, 0.4rem);
  }

  .site-branding__mark {
    width: clamp(22px, 3vw, 28px);
  }

  .header__cta.button--gold {
    height: clamp(28px, 4vh, 34px);
    padding: clamp(4px, 0.8vw, 8px) clamp(8px, 2vw, 16px);
    font-size: clamp(9px, 1.2vw, 11px);
    border-radius: 6px;
  }

  .header__actions {
    display: none;
  }

  .primary-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 8px 16px 0;
    border-radius: 5px;
    background: var(--blaze-color-primary);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .primary-nav a {
    font-size: clamp(12px, 1.8vw, 15px);
  }

  .menu a {
    font-size: 16px;
    font-weight: 500;
    padding: 0.4rem 0;
  }

  .header__cta.button--gold {
    white-space: nowrap;
  }
}

@media (min-width: 1500px) {
  .site-header__inner {
    padding-inline: 80px;
    height: 110px;
  }

  .primary-nav ul {
    gap: 25px;
  }

  .menu a,
  .primary-nav a {
    font-size: 16px;
  }

  .header__cta.button--gold {
    height: 48px;
    padding: 16px 48px;
    font-size: 18px;
  }

  .custom-logo {
    max-height: 56px;
  }
}

@media (max-width: 1430px) {
  .container {
    width: min(calc(100% - 40px), var(--blaze-container)) !important;
  }
}
