﻿.header {
  display: flex;
  width: 100%;
  background-color: var(--white);
  position: relative;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25);
}

.header .header-container {
  width: 100%;
  max-width: 160rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .header-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header .header-logo img {
  width: 100%;
  max-width: 5rem;
}

.header .header-logo span {
  width: 1px;
  height: 3.4rem;
  background-color: var(--gray-03);
}

.header .header-logo a {
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--brand-blue);
}

.header .header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header .header-nav a,
.header .header-nav button {
  padding: 2rem;
  font-size: 1.4rem;
  color: var(--black);
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0);
}

.header .header-nav details {
  position: relative;
  font-size: 1.4rem;
  color: var(--black);
  text-transform: uppercase;
}

.header .header-nav details summary {
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0);
  list-style: none;
  cursor: pointer;
  transition: all 0.05s;
}

.header .header-nav details summary::marker {
  display: none;
}

.header .header-nav details[open] summary {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25);
}

.header .header-nav details > div {
  position: absolute;
  top: 5.9rem;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.header .header-nav details > div a {
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-06);
  background-color: var(--gray-02);
  transition: background-color 0.2s;
}

.header .header-nav details > div a:hover {
  background-color: var(--gray-01);
}

.header .header-nav details > div a:first-of-type {
  border-bottom: 1px solid var(--gray-03);
}

.header .header-btn {
  display: none;
  background-color: rgba(0, 0, 0, 0);
}

.header .header-menu {
  display: none;
}

@media (max-width: 900px) {
  .header {
    height: 6rem;
  }

  .header .header-container {
    z-index: 50;
  }

  .header .header-nav {
    display: none;
  }

  .header .header-btn {
    display: block;
  }

  .header .header-menu {
    position: fixed;
    z-index: 11;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .header .header-menu.menu-active {
    display: block;
  }

  .header .header-menu > div {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .header .header-menu > div nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6.5rem 0 0;
    background-color: var(--white);
  }

  .header .header-menu > div nav a,
  .header .header-menu > div nav button {
    width: 100%;
    padding: 1.6rem 0;
    font-size: 2rem;
    color: var(--black);
    text-align: center;
    border-bottom: 1px solid var(--gray-07);
  }

  .header .header-menu > div nav a:first-of-type {
    border-top: 1px solid var(--gray-07);
  }

  .header .header-menu details {
    width: 100%;
    font-size: 2rem;
    color: var(--black);
    text-align: center;
    border-bottom: 1px solid var(--gray-07);
  }

  .header .header-menu details summary {
    padding: 1.6rem 0;
    list-style: none;
    cursor: pointer;
    transition: all 0.05s;
  }

  .header .header-menu details summary::marker {
    display: none;
  }

  .header .header-menu details > div {
    width: 100%;
    display: none;
    flex-direction: column;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }

  .header .header-menu details[open] > div {
    display: flex;
  }

  .header .header-menu details > div a {
    padding: 2rem 0;
    text-align: center;
    color: var(--gray-06);
    transition: color 0.2s;
    border-bottom: 1px solid var(--gray-03);
  }

  .header .header-menu details > div a:first-of-type {
    border-top: 1px solid var(--gray-05);
  }

  .header .header-menu details > div a:hover {
    color: var(--gray-05);
  }
}
