/* =====================================================
   SASHA HEADER AND NAVIGATION
====================================================== */

.sasha-header {
  position: relative;
  z-index: 50;

  width: 100%;
  height: 255px;
}


/* =====================================================
   TOP HEADER BAND
====================================================== */

.sasha-header-bar {
  position: relative;
  z-index: 4;

  display: flex;
  align-items: center;

  width: 100%;
  height: 112px;

  padding:
    0
    clamp(2rem, 7vw, 7rem);

  background: #4f50a2;
}


/* =====================================================
   HOME IMAGE
====================================================== */

.sasha-header-home {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100px;
  height: 100px;

  flex: 0 0 100px;

  margin: 0;
  padding: 0;

  opacity: 0.35;

  text-decoration: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}


.sasha-header-home:hover {
  opacity: 1;
  transform: translateY(-2px);
}


.sasha-header-home img {
  display: block;

  width: 100px;
  height: 100px;

  margin-top: 30px;

  object-fit: contain;
}


/* =====================================================
   ORGANIZATION IDENTITY
====================================================== */

.sasha-header-organization {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;

  margin-left: auto;

  min-height: 112px;

  color: #ffffff;

  text-decoration: none;
}


.sasha-header-organization-label {
  margin: 0;

  color: var(--sasha-pink, #f282aa);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.sasha-header-organization-name {
  margin-top: 0.2rem;

  color: #ffffff;

  font-size: 1rem;
  font-weight: 700;
}


.sasha-header-login {
  margin-left: auto;

  color: #ffffff;

  font-size: 1rem;
  font-weight: 600;

  text-decoration: none;
}


.sasha-header-login:hover,
.sasha-header-organization:hover {
  opacity: 0.8;
}


/* =====================================================
   HEADER WAVE
====================================================== */

.sasha-header-wave {
  position: absolute;
  z-index: 3;

  top: 111px;
  left: 0;

  width: 100%;
  height: 145px;

  overflow: hidden;

  line-height: 0;

  pointer-events: none;
}


.sasha-header-wave svg {
  display: block;

  width: 100%;
  height: 100%;
}


.sasha-header-wave path {
  fill: #4f50a2;
}


/* =====================================================
   DESKTOP SIDE NAVIGATION
====================================================== */

.sasha-side-navigation {
  position: fixed;
  z-index: 100;

  top: 270px;
  right: 0;

  display: flex;
  flex-direction: column;

  gap: 22px;

  width: 155px;
}


.sasha-side-tab {
  position: relative;

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

  width: 145px;
  min-height: 70px;

  margin-left: auto;

  padding:
    0.9rem
    0.8rem
    0.9rem
    1.2rem;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  border-top:
    1px solid rgba(255, 255, 255, 0.28);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.28);

  border-left:
    1px solid rgba(255, 255, 255, 0.28);

  border-right: 0;

  border-radius:
    8px
    0
    0
    8px;

  font-family:
    "Figtree",
    sans-serif;

  text-decoration: none;

  cursor: pointer;

  transition:
    width 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}


.sasha-side-tab::before {
  content: "";

  position: absolute;

  top: 50%;
  left: -12px;

  width: 23px;
  height: 23px;

  background: #4f50a2;

  border-left:
    1px solid rgba(255, 255, 255, 0.28);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.28);

  transform:
    translateY(-50%)
    rotate(45deg);

  border-radius:
    0
    0
    0
    4px;
}


.sasha-side-tab span {
  position: relative;
  z-index: 2;

  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;

  text-align: center;
  text-transform: uppercase;
}


.sasha-side-tab:hover {
  width: 155px;

  background:
    rgba(255, 255, 255, 0.15);

  border-color:
    rgba(255, 255, 255, 0.5);

  transform: translateX(-4px);
}


.sasha-side-tab:hover::before {
  background: #5e5fb0;
}


/* =====================================================
   LOGOUT FORM
====================================================== */

.sasha-side-logout-form {
  width: 100%;

  margin: 0;
  padding: 0;
}


.sasha-side-tab-button {
  border-right: 0;

  font: inherit;
}


/* =====================================================
   FOCUS STATES
====================================================== */

.sasha-side-tab:focus-visible,
.sasha-header-home:focus-visible,
.sasha-header-login:focus-visible,
.sasha-header-organization:focus-visible,
.sasha-mobile-menu-button:focus-visible {
  outline:
    3px solid
    var(--sasha-pink, #f282aa);

  outline-offset: 4px;
}


/* =====================================================
   MOBILE MENU BUTTON
====================================================== */

.sasha-mobile-menu-button {
  display: none;

  width: 48px;
  height: 48px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  margin-left: 1.5rem;
  padding: 0;

  color: #ffffff;

  background: transparent;

  border:
    1px solid
    rgba(255, 255, 255, 0.35);

  border-radius: 50%;

  cursor: pointer;
}


.sasha-mobile-menu-button span {
  display: block;

  width: 21px;
  height: 2px;

  background: currentColor;

  border-radius: 999px;
}


/* =====================================================
   MOBILE NAVIGATION
====================================================== */

.sasha-mobile-navigation {
  position: absolute;
  z-index: 20;

  top: 92px;
  left: 0;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0.8rem;

  width: 100%;

  padding: 1.5rem;

  background: #262262;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.18);
}


.sasha-mobile-navigation[hidden] {
  display: none;
}


.sasha-mobile-navigation a,
.sasha-mobile-logout-button {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 54px;

  width: 100%;

  padding: 0.8rem 1rem;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.07);

  border:
    1px solid
    rgba(255, 255, 255, 0.24);

  border-radius: 12px;

  font-family:
    "Figtree",
    sans-serif;

  font-size: 0.88rem;
  font-weight: 600;

  text-align: center;
  text-decoration: none;

  cursor: pointer;
}


.sasha-mobile-logout-form {
  margin: 0;
}


/* =====================================================
   PAGE BELOW HEADER
====================================================== */

.sasha-main-content {
  position: relative;
  z-index: 1;

  margin: 0;
}


/* =====================================================
   RESPONSIVE HEADER
====================================================== */

@media screen and (max-width: 1100px) {

  .sasha-side-navigation {
    display: none;
  }


  .sasha-mobile-menu-button {
    display: flex;
  }

}


@media screen and (max-width: 680px) {

  .sasha-header {
    height: 200px;
  }


  .sasha-header-bar {
    height: 92px;

    padding:
      0
      1.25rem;
  }


  .sasha-header-wave {
    top: 91px;

    height: 110px;
  }


  .sasha-header-home {
    width: 70px;
    height: 70px;

    flex-basis: 70px;
  }


  .sasha-header-home img {
    width: 70px;
    height: 70px;

    margin-top: 20px;
  }


  .sasha-header-organization {
    min-height: 92px;
  }


  .sasha-header-organization-name {
    font-size: 0.9rem;
  }


  .sasha-header-login {
    font-size: 0.9rem;
  }

}


@media screen and (max-width: 460px) {

  .sasha-header-organization-label {
    display: none;
  }


  .sasha-header-organization-name {
    max-width: 130px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  .sasha-mobile-navigation {
    grid-template-columns: 1fr;
  }

}