/* Table of contents

  1. Header
  2. Navigation - to do: sort stuff
  2.1 Changes for mobile menu - to do: sort stuff
  3, Burger Icon
  4. Media queries


*/

/* 1. Header */
.adac-header {
  height: 72px;
  height: var(--header-height);
}

.adac-nav {
  border-top: 2px solid #33a3dc;
  border-top: 2px solid var(--clr-accent);
  height: 40px;
  height: var(--nav-height);
  display: flex;
}

.rog-header-nav-spacer {
  height: 96px;
  height: calc(var(--header-height) + var(--nav-height));
}

.adac-header-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  max-width: var(--max-width-super);
  height: 100%;
  margin: 0px auto;
}

a.adac-logo-container {
  display: flex;
  align-items: center;
}

a.adac-logo-container>svg.logo {
  width: 81px;
  height: 43px;
}

div.adac-logo-title {
  display: inline-block;
  padding: 0 8px;
  padding: var(--spacer-horizontal-small);
  margin: 0 16px;
  margin: 0 var(--spacer-medium);
}

/* 2. Navigation */
.adac-nav-container {
  display: flex;
  align-content: center;
  align-items: stretch;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  max-width: var(--max-width-super);
  width: 100%;
  position: relative;
  z-index: 1;
}

.adac-nav-site-links,
.adac-nav-special-links {
  align-items: stretch;
  display: flex;
}

.adac-nav-site-links {
  opacity: 0;
  flex-direction: column;
}

.adac-nav-site-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 48px;
  padding: 48px var(--spacer-medium) var(--spacer-large);
  pointer-events: none;
}

.adac-nav-site-links>span,
.adac-nav-special-links>span {
  display: flex;
  align-items: stretch;
}

.adac-nav-link {
  cursor: pointer;
  display: flex;
  padding: 0px 24px;
  padding: 0px var(--spacer-large);
  align-items: center;
  color: #191919;
  color: var(--clr-black);
  font-weight: bold;
  position: relative;
  line-height: 1;
}

.adac-nav-link:hover,
.adac-nav-link:focus,
.adac-nav-link.selected {
  background-color: rgba(255, 255, 255, .4);
}

.adac-nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #191919;
  background-color: var(--clr-black);
  transform: scaleX(0);
  transition: transform 250ms ease;
  transition: transform var(--transition-duration-medium) ease;
}

.adac-nav-link:hover:after,
.adac-nav-link:focus:after,
.adac-nav-link.selected:after {
  transform: scaleX(1);
}

/* 2.1 Changes for mobile menu  */

.adac-nav-site-links.mobile {
  background-color: rgba(255, 255, 255, .75);
  opacity: 1;
  pointer-events: auto;
  transition: all var(--transition-duration-medium) ease;
  border-bottom: 2px solid #191919;
  border-bottom: 2px solid var(--clr-black);
}

.adac-nav-site-links.mobile .adac-nav-link {
  border: 1px solid #666666;
  border: 1px solid var(--clr-medium-grey);
  border-radius: 4px;
  padding: 16px;
  padding: var(--spacer-medium);
  background-color: white;
  width: 100%;
}

.adac-nav-site-links.mobile .adac-nav-link.selected {
  background-color: #e5e5e5;
  background-color: var(--clr-lighter-grey);
}

.adac-nav-site-links.mobile>* {
  margin: 8px 0;
  margin: var(--spacer-vertical-small);
}

.adac-nav-site-links.mobile>*:first-child {
  margin-top: 0;
}

.adac-nav-site-links.mobile>*:last-child {
  margin-bottom: 0;
}

/* 3. Burger Icon */

.adac-nav-burger {
  display: flex;
  align-items: center;
  z-index: 2;
}

button.adac-nav-burger--button {
  display: flex;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  font-family: inherit;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.adac-nav--burger-svg {
  transition: transform 250ms ease;
  transition: transform var(--transition-duration-medium) ease;
}

.adac-nav--burger-svg>path {
  transition: transform 250ms ease, opacity 250ms ease;
  transition: transform var(--transition-duration-medium) ease, opacity var(--transition-duration-medium) ease;
}

.adac-nav--burger-svg>path:nth-child(1) {
  transform-origin: 4px 6px;
}

.adac-nav--burger-svg>path:nth-child(2) {
  opacity: 1;
}

.adac-nav--burger-svg>path:nth-child(3) {
  transform-origin: 3px 18px;
}

.adac-nav--burger-svg.active {
  transition: transform 250ms ease;
  transition: transform var(--transition-duration-medium) ease;
  transform: translateX(3px);
}

.adac-nav--burger-svg.active>path:nth-child(1) {
  transform: rotate(45deg);
}

.adac-nav--burger-svg.active>path:nth-child(2) {
  opacity: 0;
}

.adac-nav--burger-svg.active>path:nth-child(3) {
  transform: rotate(-45deg);
}

/* 4. Media queries */

@media only screen and (min-width: 769px) {
  .adac-nav-burger {
    display: none;
  }

  .adac-nav-site-links {
    opacity: 1;
    flex-direction: row;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    padding: 0;
    background-color: transparent;
    pointer-events: auto;
  }

  .adac-nav-site-links.mobile {
    background-color: transparent;
    border-bottom: none;
  }

  .adac-nav-site-links.mobile>span {
    margin: 0;
  }

  .adac-nav-site-links.mobile .adac-nav-link {
    background-color: transparent;
    border: none;
    padding: 0px 24px;
    padding: 0px var(--spacer-large);
  }

  .adac-nav-site-links.mobile .adac-nav-link.selected {
    background-color: rgba(255, 255, 255, .4);
  }
}