/* ==============================
   Navbar
============================== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 1rem 5%;
  box-sizing: border-box;
}

.navbar .logo {
  max-width: 150px;
  height: auto;
}

.contact-icons {
  display: flex;
  gap: 1rem;
}

.contact-icons img {
  width: 30px;
  height: auto;
}

/* Burger menu */
#menu-toggle {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

#menu-toggle:checked + .burger span:nth-child(1) {
  transform: rotate(45deg) translateY(14px);
}
#menu-toggle:checked + .burger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .burger span:nth-child(3) {
  transform: rotate(-45deg) translateY(-14px);
}

/* Mobile Menu */
.menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; /* below navbar */
  right: 10px;
  width: 30%;
  max-width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(
    to right,
    rgba(127, 127, 127, 0.3),
    rgba(255, 255, 255, 0.7)
  );
  padding: 2rem 1rem;
  z-index: 11;
}

.menu a {
  text-decoration: none;
  color: #000;
  padding: 1rem 0;
  font-size: 1.2rem;
  display: block;
}

#menu-toggle:checked ~ .menu {
  display: flex;
}

/* Desktop Menu */
@media (min-width: 750px) {
  .burger {
    display: none;
  }

  .menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    gap: 3rem;
    background: transparent;
    padding: 0;
  }

  .menu a {
    color: #fff;
    font-weight: 600;
  }
  .reach {
    padding: 12px 24px;
    background-color: #fff;
    color: #000 !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10; /* stays above background */
  }
}
