@import url('./global.css');

.header {
  height: var(--header-footer-height);
  display: grid;
  place-items: center;

  background-color: white;

  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}

.header .responsive-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

}

.header__logo img {
  width: 100px;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 5px;

  width: 32px;
}

.header__hamburger:hover {
  cursor: pointer;
}

.header__hamburger div {
  width: 100%;
  height: 2px;
  background-color: var(--text-300);
}

nav {
  position: fixed;
  background-color: white;
  width: 100%;
  height: calc(100% - var(--header-footer-height));
  top: var(--header-footer-height);
  left: 0;
  
  z-index: 3;
  display: none;
}

nav.open {
  display: grid;
  place-items: center;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style-type: none;
  text-align: center;
}

li a {
  text-decoration: none;
  font-size: 18px;
  color: var(--text-200);
  white-space: nowrap;
}

li a:hover {
  color: var(--text-400);
}

@media screen and (min-width: 1024px) {
  .header__hamburger {
    display: none;
  }

  nav {
    display: flex;
    flex-direction: row;
    position: initial;
    height: auto;
    width: auto;
  }

  ul {
    flex-direction: row;
  }
}

@media screen and (min-width: 1560px) {
  ul {
    justify-content: space-between;
  }

  li a {
    font-size: var(--fs-m);
  }
}


/* Small >= 576px */

@media screen and (min-width: 576px) {
  :root {
    --header-footer-height: 75px;
  }
}