@import url(
  "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap"
);

/* =========================================================
   MERSAD HEADER
   ========================================================= */

.mersad-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  width: 100%;
  padding: 12px 18px;

  pointer-events: none;

  transition:
    padding 220ms ease;
}

.mersad-header__shell {
  position: relative;

  width: min(100%, 1380px);
  margin-inline: auto;

  pointer-events: auto;

  transition:
    width 240ms ease;
}

/* =========================================================
   HEADER INNER
   ========================================================= */

.mersad-header__inner {
  min-height: 72px;

  display: grid;
  grid-template-columns:
    270px
    minmax(0, 1fr)
    220px;

  gap: 20px;
  align-items: center;

  padding: 0 16px;

  background:
    rgba(7, 7, 7, 0.68);

  border:
    1px solid rgba(255, 255, 255, 0.075);

  border-radius: 18px;

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.2);

  -webkit-backdrop-filter:
    blur(16px) saturate(125%);

  backdrop-filter:
    blur(16px) saturate(125%);

  transition:
    min-height 220ms ease,
    padding 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    border-radius 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

/* =========================================================
   SCROLLED STATE
   ========================================================= */

.mersad-header.is-scrolled {
  padding: 8px 18px;
}

.mersad-header.is-scrolled
.mersad-header__shell {
  width: min(100%, 1160px);
}

.mersad-header.is-scrolled
.mersad-header__inner {
  min-height: 62px;

  grid-template-columns:
    238px
    minmax(0, 1fr)
    205px;

  padding-inline: 14px;

  background:
    rgba(10, 10, 10, 0.84);

  border-color:
    rgba(255, 255, 255, 0.1);

  border-radius: 17px;

  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  -webkit-backdrop-filter:
    blur(18px) saturate(130%);

  backdrop-filter:
    blur(18px) saturate(130%);
}

/* =========================================================
   BRAND
   ========================================================= */

.mersad-header__brand {
  width: fit-content;
  max-width: 100%;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: #ffffff;

  text-decoration: none;

  white-space: nowrap;
}

.mersad-header__logo-mark {
  width: 62px;
  height: 62px;

  flex: 0 0 62px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.mersad-header__logo-mark img {
  display: block;

  width: 62px;
  height: 62px;

  max-width: none;

  object-fit: contain;
  object-position: center;

  transition:
    width 220ms ease,
    height 220ms ease,
    transform 220ms ease;
}

.mersad-header__brand-copy {
  position: relative;

  min-width: 0;

  display: inline-flex;
  align-items: baseline;
  gap: 7px;

  overflow: hidden;

  font-family:
    "Space Grotesk",
    "Inter",
    Arial,
    sans-serif;

  font-size: 17px;
  font-weight: 600;
  line-height: 1;

  letter-spacing: -0.035em;
}

.mersad-header__brand-name,
.mersad-header__brand-separator,
.mersad-header__brand-position {
  display: inline-block;
}

.mersad-header__brand-name {
  font-weight: 700;
}

.mersad-header__brand-separator {
  color:
    rgba(255, 255, 255, 0.34);

  font-weight: 500;
}

/* =========================================================
   SHINE ANIMATION
   ========================================================= */

.mersad-header__brand-position {
  position: relative;

  padding-right: 2px;

  color: #d3f200;

  font-weight: 700;

  background-image:
    linear-gradient(
      105deg,
      #93a135 0%,
      #d3f200 20%,
      #f4ff9b 38%,
      #ffffff 48%,
      #d3f200 58%,
      #9daa38 76%,
      #d3f200 100%
    );

  background-size:
    260% 100%;

  background-position:
    180% center;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color:
    transparent;

  animation:
    mersadBrandShine 3.2s
    linear infinite;

  will-change:
    background-position,
    filter;
}

@keyframes mersadBrandShine {
  0% {
    background-position:
      180% center;

    filter:
      drop-shadow(
        0 0 0
        rgba(211, 242, 0, 0)
      );
  }

  45% {
    filter:
      drop-shadow(
        0 0 5px
        rgba(211, 242, 0, 0.14)
      );
  }

  55% {
    filter:
      drop-shadow(
        0 0 9px
        rgba(211, 242, 0, 0.25)
      );
  }

  100% {
    background-position:
      -80% center;

    filter:
      drop-shadow(
        0 0 0
        rgba(211, 242, 0, 0)
      );
  }
}

/* =========================================================
   SCROLLED BRAND
   ========================================================= */

.mersad-header.is-scrolled
.mersad-header__brand {
  gap: 10px;
}

.mersad-header.is-scrolled
.mersad-header__logo-mark {
  width: 52px;
  height: 52px;

  flex-basis: 52px;
}

.mersad-header.is-scrolled
.mersad-header__logo-mark img {
  width: 52px;
  height: 52px;
}

.mersad-header.is-scrolled
.mersad-header__brand-copy {
  font-size: 15px;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.mersad-header__desktop-nav {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.mersad-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.mersad-header__menu > li {
  position: relative;
}

.mersad-header__menu > li > a {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 13px;

  color: #a9a9a6;

  border-radius: 9px;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;

  white-space: nowrap;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.mersad-header__menu > li > a:hover,
.mersad-header__menu > li.current-menu-item > a,
.mersad-header__menu > li.current-menu-ancestor > a {
  color: #f5f5f2;

  background:
    rgba(255, 255, 255, 0.045);
}

.mersad-header__menu
.menu-item-has-children > a::after {
  content: "";

  width: 5px;
  height: 5px;

  margin-left: 8px;

  border-right:
    1.5px solid currentColor;

  border-bottom:
    1.5px solid currentColor;

  transform:
    translateY(-2px)
    rotate(45deg);

  transition:
    transform 180ms ease;
}

.mersad-header__menu
.menu-item-has-children:hover > a::after {
  transform:
    translateY(1px)
    rotate(225deg);
}

/* =========================================================
   DESKTOP SUBMENU
   ========================================================= */

.mersad-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 50;

  width: max-content;
  min-width: 220px;

  margin: 0;
  padding: 9px;

  visibility: hidden;
  opacity: 0;

  list-style: none;

  background:
    rgba(12, 12, 12, 0.94);

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 13px;

  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.42);

  -webkit-backdrop-filter:
    blur(20px);

  backdrop-filter:
    blur(20px);

  transform:
    translate(-50%, 8px);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

.mersad-header__menu li:hover > .sub-menu,
.mersad-header__menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;

  transform:
    translate(-50%, 0);
}

.mersad-header__menu
.sub-menu li + li {
  margin-top: 2px;
}

.mersad-header__menu
.sub-menu a {
  min-height: 42px;

  display: flex;
  align-items: center;

  padding: 0 13px;

  color: #a7a7a4;

  border-radius: 8px;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  font-size: 11px;
  font-weight: 600;
  text-decoration: none;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.mersad-header__menu
.sub-menu a:hover {
  color: #f5f5f2;

  background:
    rgba(211, 242, 0, 0.07);
}

/* =========================================================
   ACTIONS
   ========================================================= */

.mersad-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mersad-header__cta {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 0 18px;

  color: #060606;
  background: #d3f200;

  border:
    1px solid #d3f200;

  border-radius: 10px;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;

  white-space: nowrap;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.mersad-header__cta:hover {
  transform:
    translateY(-2px);

  background: #e1ff00;

  box-shadow:
    0 12px 30px
    rgba(211, 242, 0, 0.12);
}

.mersad-header__cta svg,
.mersad-header__mobile-cta svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 180ms ease;
}

.mersad-header__cta:hover svg,
.mersad-header__mobile-cta:hover svg {
  transform:
    translateX(4px);
}

/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.mersad-header__menu-toggle {
  width: 44px;
  height: 44px;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;

  padding: 0;

  color: #f5f5f2;

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid rgba(255, 255, 255, 0.095);

  border-radius: 11px;

  cursor: pointer;
}

.mersad-header__menu-toggle span {
  width: 19px;
  height: 1.5px;

  display: block;

  background: currentColor;

  border-radius: 999px;

  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.mersad-header__menu-toggle[aria-expanded="true"]
span:first-child {
  transform:
    translateY(3.75px)
    rotate(45deg);
}

.mersad-header__menu-toggle[aria-expanded="true"]
span:last-child {
  transform:
    translateY(-3.75px)
    rotate(-45deg);
}

/* =========================================================
   MOBILE PANEL
   ========================================================= */

.mersad-header__mobile-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  width: 100%;

  padding: 16px;

  overflow: hidden;

  background:
    rgba(9, 9, 9, 0.94);

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 17px;

  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.46);

  -webkit-backdrop-filter:
    blur(22px) saturate(130%);

  backdrop-filter:
    blur(22px) saturate(130%);

  transform-origin: top;

  animation:
    mersadMobileMenuOpen 220ms ease both;
}

.mersad-header__mobile-panel[hidden] {
  display: none;
}

@keyframes mersadMobileMenuOpen {
  from {
    opacity: 0;

    transform:
      translateY(-8px)
      scale(0.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

.mersad-header__mobile-menu {
  display: grid;
  gap: 3px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.mersad-header__mobile-menu li {
  position: relative;
}

.mersad-header__mobile-menu a {
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 14px;

  color: #d0d0cd;

  border-radius: 10px;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  font-size: 13px;
  font-weight: 620;
  text-decoration: none;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.mersad-header__mobile-menu a:hover,
.mersad-header__mobile-menu
.current-menu-item > a {
  color: #f7f7f4;

  background:
    rgba(255, 255, 255, 0.045);
}

/* =========================================================
   MOBILE SUBMENU
   ========================================================= */

.mersad-header__mobile-menu
.sub-menu {
  display: grid;
  gap: 2px;

  margin: 0 0 6px 14px;
  padding: 0 0 0 10px;

  list-style: none;

  border-left:
    1px solid rgba(211, 242, 0, 0.18);
}

.mersad-header__mobile-menu
.sub-menu a {
  min-height: 43px;

  color: #8f8f8f;

  font-size: 11px;
}

/* =========================================================
   MOBILE FOOTER
   ========================================================= */

.mersad-header__mobile-footer {
  margin-top: 14px;
  padding-top: 16px;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);
}

.mersad-header__mobile-footer p {
  margin: 0 0 14px;

  color: #767676;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  font-size: 11px;
  line-height: 1.6;
}

.mersad-header__mobile-cta {
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;

  color: #060606;
  background: #d3f200;

  border-radius: 10px;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
}

/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1180px) {
  .mersad-header {
    padding-inline: 14px;
  }

  .mersad-header__inner {
    grid-template-columns:
      225px
      minmax(0, 1fr)
      200px;

    gap: 12px;

    padding-inline: 14px;
  }

  .mersad-header.is-scrolled
  .mersad-header__inner {
    grid-template-columns:
      205px
      minmax(0, 1fr)
      192px;
  }

  .mersad-header__logo-mark {
    width: 55px;
    height: 55px;

    flex-basis: 55px;
  }

  .mersad-header__logo-mark img {
    width: 55px;
    height: 55px;
  }

  .mersad-header__brand-copy {
    gap: 6px;

    font-size: 14px;
  }

  .mersad-header.is-scrolled
  .mersad-header__logo-mark {
    width: 48px;
    height: 48px;

    flex-basis: 48px;
  }

  .mersad-header.is-scrolled
  .mersad-header__logo-mark img {
    width: 48px;
    height: 48px;
  }

  .mersad-header.is-scrolled
  .mersad-header__brand-copy {
    font-size: 13px;
  }

  .mersad-header__menu > li > a {
    padding-inline: 8px;

    font-size: 11px;
  }

  .mersad-header__cta {
    padding-inline: 14px;

    font-size: 10px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .mersad-header {
    padding: 9px 10px;
  }

  .mersad-header.is-scrolled {
    padding-top: 7px;
  }

  .mersad-header__shell,
  .mersad-header.is-scrolled
  .mersad-header__shell {
    width: 100%;
  }

  .mersad-header__inner,
  .mersad-header.is-scrolled
  .mersad-header__inner {
    min-height: 64px;

    grid-template-columns:
      minmax(0, 1fr)
      auto;

    gap: 8px;

    padding:
      0
      9px
      0
      11px;

    background:
      rgba(9, 9, 9, 0.82);

    border-color:
      rgba(255, 255, 255, 0.09);

    border-radius: 15px;

    box-shadow:
      0 14px 44px rgba(0, 0, 0, 0.3);

    -webkit-backdrop-filter:
      blur(18px) saturate(130%);

    backdrop-filter:
      blur(18px) saturate(130%);
  }

  .mersad-header__desktop-nav {
    display: none;
  }

  .mersad-header__brand,
  .mersad-header.is-scrolled
  .mersad-header__brand {
    max-width:
      calc(100vw - 150px);

    gap: 9px;
  }

  .mersad-header__logo-mark,
  .mersad-header.is-scrolled
  .mersad-header__logo-mark {
    width: 48px;
    height: 48px;

    flex-basis: 48px;
  }

  .mersad-header__logo-mark img,
  .mersad-header.is-scrolled
  .mersad-header__logo-mark img {
    width: 48px;
    height: 48px;
  }

  .mersad-header__brand-copy,
  .mersad-header.is-scrolled
  .mersad-header__brand-copy {
    display: grid;
    grid-template-columns:
      auto
      auto;

    gap: 2px 4px;

    font-size: 13px;
    line-height: 1.05;
  }

  .mersad-header__brand-name {
    grid-column: 1;
    grid-row: 1;

    font-size: 14px;
  }

  .mersad-header__brand-separator {
    display: none;
  }

  .mersad-header__brand-position {
    grid-column: 1 / -1;
    grid-row: 2;

    font-size: 9px;
    line-height: 1;

    letter-spacing: 0.055em;
    text-transform: uppercase;
  }

  .mersad-header__actions {
    gap: 7px;
  }

  .mersad-header__menu-toggle {
    display: flex;
  }

  .mersad-header__cta {
    min-height: 42px;

    padding-inline: 12px;
  }

  .mersad-header__cta svg {
    display: none;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .mersad-header__cta {
    display: none;
  }

  .mersad-header__brand,
  .mersad-header.is-scrolled
  .mersad-header__brand {
    max-width:
      calc(100vw - 84px);
  }

  .mersad-header__logo-mark,
  .mersad-header.is-scrolled
  .mersad-header__logo-mark {
    width: 46px;
    height: 46px;

    flex-basis: 46px;
  }

  .mersad-header__logo-mark img,
  .mersad-header.is-scrolled
  .mersad-header__logo-mark img {
    width: 46px;
    height: 46px;
  }

  .mersad-header__brand-name {
    font-size: 13px;
  }

  .mersad-header__brand-position {
    font-size: 8px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {
  .mersad-header__brand {
    gap: 6px;
  }

  .mersad-header__logo-mark,
  .mersad-header.is-scrolled
  .mersad-header__logo-mark {
    width: 42px;
    height: 42px;

    flex-basis: 42px;
  }

  .mersad-header__logo-mark img,
  .mersad-header.is-scrolled
  .mersad-header__logo-mark img {
    width: 42px;
    height: 42px;
  }

  .mersad-header__brand-name {
    font-size: 12px;
  }

  .mersad-header__brand-position {
    font-size: 7.5px;
  }
}

/* =========================================================
   WORDPRESS ADMIN BAR
   ========================================================= */

.admin-bar .mersad-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .mersad-header {
    top: 46px;
  }
}

/* =========================================================
   PAGE OFFSET
   ========================================================= */

body {
  scroll-padding-top: 100px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .mersad-header,
  .mersad-header__shell,
  .mersad-header__inner,
  .mersad-header__logo-mark img,
  .mersad-header__menu a,
  .mersad-header__cta,
  .mersad-header__cta svg,
  .mersad-header__menu-toggle span,
  .mersad-header__mobile-menu a {
    transition-duration:
      0.01ms !important;
  }

  .mersad-header__brand-position {
    animation:
      none !important;

    background:
      none;

    color:
      #d3f200;

    -webkit-text-fill-color:
      currentColor;
  }

  .mersad-header__mobile-panel {
    animation-duration:
      0.01ms !important;
  }
}