/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.sp-hamburger {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #F6F6F6;
  border-radius: 8px;
  cursor: pointer;
}

.sp-hamburger-icon {
  position: relative;
  width: 16px;
  height: 12px;
}

.sp-hamburger span {
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

.sp-hamburger span:nth-child(1) {
  top: 0;
  left: 0;
}

.sp-hamburger span:nth-child(2) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.sp-hamburger span:nth-child(3) {
  bottom: 0;
  left: 0;
}

.sp-hamburger.is-active span:nth-child(1) {
  top: 5px;
  rotate: 40deg;
  width: 20px;
  left: -2px;
}

.sp-hamburger.is-active span:nth-child(2) {
  width: 0;
}

.sp-hamburger.is-active span:nth-child(3) {
  bottom: 5px;
  rotate: -40deg;
  width: 20px;
  left: -2px;
}

.spp-mobile-menu-overlay {
  opacity: 0;
  /* visibility: hidden; */
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.3);
  transition: opacity 0.25s ease-in-out;
}

.is-active .spp-mobile-menu-overlay {
  opacity: 1;
  /* visibility: visible; */
  pointer-events: unset;
}

.spp-mobile-menu ul {
  flex-direction: column;
  gap: 16px;
}

.spp-footer-link a {
  font-size: 14px;
  color: #666666;
}

.spp-mobile-menu {
  position: fixed;
  padding: 24px;
  top: 80px;
  right: 0;
  width: 375px;
  height: calc( 100dvh - 80px );
  background-color: #FFF;
  transform: translateX(100%);
  transition: transform 0.25s ease-in-out;
  z-index: 10;
}

.is-active .spp-mobile-menu {
  transform: translateX(0);
}
    

@media screen and (min-width: 1023px) {
  .sp-hamburger {
    display: none;
  }
}