/* menu scrolling */
#pricing, #features, #story {
  scroll-margin-top: 12rem; /* adjust based on your header height */
}

#nav-left {
  scroll-margin-top: 1rem;
}

#menu a {
  color: var(--clr-dark);
  text-decoration: none;
}



#menu a.menu_active {
  border-bottom: 1px solid var(--clr-accent);
}

#menu {
  display: flex;
  gap: 2rem;
  

  transition: opacity 300ms ease, visibility 300ms ease;
  opacity: 1;
  visibility: visible;
}



.credit_nav p {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.credit_nav p span {
  
  margin-left: 4px;
  text-transform: uppercase;
  font-size: var(--fs-100);
  border: 1px solid var(--clr-accent);
  border-radius: var(--border-radius);
  width: fit-content;
  line-height: 1;
  padding: 2px 0.43rem;
  height: 1rem;
  
}


#logo_name {
  font-weight: 600;
  color: var(--clr-dark);
  font-size: 2rem;
  font-kerning: auto;
}



/* Banner */



.banner {
  position: absolute;
left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;

  width: fit-content;
  top: 6rem;

  background: linear-gradient(to right, 
    var(--clr-background) 1%, 
    var(--clr-background-2) 24%, 
    var(--clr-orange) 50%, 
    var(--clr-background-3) 75%, 
    var(--clr-white) 99%);
  color: var(--clr-dark);
  
  text-align: center;
  z-index: 123;

background-blend-mode: color-burn;
  mix-blend-mode: difference;
border: 1px solid var(--clr-border);
    border-radius: var(--border-radius);
}



.banner svg {
  fill: var(--clr-white) !important;
  
  width: 1rem;
  height: 1rem;
  
}

.banner p {
    display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  min-height: 28px;
  min-height: 2rem;
    
  width: 100%;
  /* max-width: 100rem; */
  /* mix-blend-mode:difference;  */

  
  margin: 0;
  padding: 0.414rem 1rem;
  line-height: 1.25;
  color: var(--clr-dark);

}

/* End Banner */




nav {
  position: fixed;
  top: 0.43rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  margin: 0 1rem;
  /* height: 80px; */
  /* height: 4rem; */
  width: 100%;
  z-index: 123;
}
nav:has(:nth-child(3):last-child) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.nav-left {
  display: flex;
  align-items: center; 
  justify-content: flex-start;
  left: -2rem;
  
  position: relative;

}

.nav-left p {
    font-family: var(--ff-serif);
  font-weight: bold;
  font-size: var(--fs-350);
  /* font-size: 1.8rem;
  top: -3px; */
    left: -1.414rem;
    position: relative;
}



.nav-icon {
  height: auto; 
  max-width: 2rem;
  
  transform: scale(0.6);

  left: -3px;
  top: -0.5px;
  display: block;
  
  position: relative;

}



.logo {
  margin: 0;
  padding: 0;
  
}

nav a:hover {
  color: var(--clr-dark);
}
  


#sidebar-active {
  display: none;

}

#sidebar-active:checked ~ .overlay {
  background-color: var(--clr-yellow);
  
  height: 100%;
  width: 100%;
  position: fixed;
  
  
  top: 0;
  left: 0;
  
  z-index: 123;
  
}

.open-sidebar, .close-sidebar{
  display: none;
}



.nav-hamburger {
  display: none;
}


  
#user-initials {
 
  height: 3.14rem;
  width: 3.14rem;
  
  
  border-radius: var(--border-radius-50);
  
  border-radius: 50%;
  background-color: var(--clr-user);
  background-color: var(--clr-background);
  
  color: var(--clr-dark);
  border: 1px solid var(--clr-user);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-300);
  cursor: pointer;
  
}
#user-initials:hover {
  
  opacity: 0.7;

}

.droptop {
  
  display: flex;
  justify-content: space-between;
  
  padding: 0  0.57rem 0 0rem;
}


.dropdown {
  position: absolute;
  top: 5rem;
  right: 0.43rem;
  width: 13.25rem;

  margin: 2rem 0;
  z-index: 10;
  display: none;

  margin-top: 2rem;
  
  
  
  border-radius: var(--border-radius);
  

  flex-direction: column; 
  align-items: left;
  padding: 0.57rem;
  box-shadow: 0 8px 16px -4px #0000000a;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.02) 0px 1px 1px 0px, rgba(0, 0, 0, 0.04) 0px 4px 8px -4px, rgba(0, 0, 0, 0.06) 0px 16px 24px -8px;


}



.dropdown summary {
  list-style: none;
  cursor: pointer;
}


.dropdown a button {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  
  
  height: 3rem;
}

.dropdown button {
  gap: 0;
}




.dropdown li {
  width: 100%; 
  display: flex;
  justify-content: left;
  
  border-radius: var(--border-radius);
  position: relative;
  padding: 0.43rem;
  padding-left: 0;
}
.dropdown li:nth-of-type(1) {
  
  margin-top: 1rem;
}

.dropdown li:hover {
  background-color: var(--clr-white);
  
}

.dropdown li a, .dropdown li button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.43rem;
  color: var(--clr-dark);
  

}

.dropdown li:hover * {
  color: var(--clr-dark);
}

.dropdown li svg {
  position: absolute;
  right: 0rem;
    fill: var(--clr-medium);
  height: 2rem;
  width:  2rem;
    padding: 0.43rem;
  
  border-radius: var(--border-radius-small);
}


.dropdown li:hover svg {

  fill: var(--clr-dark);
}


#dropdown-active {
  display: none;
}

#dropdown-active:checked ~ .dropdown {
  display: flex;
  z-index: 10000;
}

#dropdown-active:checked ~ .overlay {
  

  height: 100vh;
  width: 100vw;
  position: fixed;

  top: -3rem;
  left: 0;

}



.mobile_nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: var(--rem-100);
  
}

@media(max-width: 100rem) {
  .nav_container, .footer_container {
    margin: auto;
    
    max-width: calc(100% - 0.43rem - 0.43rem);
  }
}

@media(max-width: 1111px) {
  nav {
    position: absolute;
    border-radius: 0;
  }

    #menu {
    display: none;
  }
  .nav-icon {

  
  transform: scale(0.5);
  
  left: -12px;

}

  .nav_container, .footer_container {
    
    border-radius: var(--border-radius-350);
    padding: 0 1rem;
  }

  .banner {
     top: 5rem;
     position: relative;
  }

  /* .banner::before {
     content: none;
    display: none;
  } */

  .sub_nav {
    display: none;
  }

  .dropdown {
    position: absolute;
    right: 1rem;
    top: 4rem;
  }

      .mobile_nav {
    position: absolute;
    right: 1rem;
      
  }
 
}

@media(max-width: 768px) {

  .nav-left p {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;

  visibility: hidden;
  }

  .banner {
     top: 4.5rem;
  }

  .banner p {
     font-size: var(--fs-200);
     padding: 0.414rem;
  }


   .credit_nav_mobile {
    display: none;
  }


    .dropdown {
    position: absolute;
    right: 0rem;
    top: 2rem;
  }


  .nav_box_icon p {
   
    font-size: var(--fs-300);
  }

  #dropdown-active:checked ~ .overlay {
    background-color: var(--clr-background-2);
    opacity: 0.57;
    z-index: 123;
  }
}

@media(max-width: 478px) {

  .nav_box_icon p {
    display: none;
  }

  .nav-icon {

      
    transform: scale(0.5);
    
    left: -12px;

  }

}
