/* === NAV STYLES === */

.custom-navbar-container {
  background: #ff757d;
  display: flex;
  flex-direction: column; 
  width: 100%;
  box-sizing: border-box;
}

div.nav-group {
  height: 0px;
}

a.nav-link.cta-button.align-right {
    height: 50px;
}

.nav-group {
  display: flex;
  gap: 15px; /* SPACE BETWEEN BUTTONS */
  flex-wrap: wrap; 
}

.nav-link {
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}

.nav-button {
  background-color: #1e1007;
  color: #ffca00;
  padding: 10px;
  font-size: .8em;
  border:1px
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.1); /* transparency*/
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
}
  
.cta-button {
  background-color: #ffca00;
  color: #000;
  padding: 10px 20px;
  border: 1px solid transparent; 
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #e6b200;
  border-color: #ffc803;
  color: #fff;
}

.sticky-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px;
  transition: all 0.3s ease;
}

.sticky-buttons.is-sticky {
  position: fixed;
  top: 0;
  left: 0px;
  right: 0px;
  z-index: 999;
}


a.nav-link,
a.nav-link:hover {
  text-decoration: none;
}

.cta-button:hover {
  background-color: #171000;
  border: 1px solid #ffc803;
  color: #fff; 
}

/* === HAMBURGER MENU === */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
}

#menuToggle {
  position: relative;
  z-index: 1;
 }
 
 #menuToggle input {
  position: absolute;
  width:40px;
  cursor: pointer;
  opacity: 0; 
  z-index: 2; /* in order to place the checkbox over the hamburguer */
  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block; 
  width: 33px;
  height: 4px;
  margin-bottom: 5px; 
  position: relative; 
  background: #cdcdcd;
  border-radius: 3px;
  z-index: 1; 
}

#menuToggle span {
transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
transform-origin: 4px 0px; /* set to 4px 0px to specify the center of rotation for the transform property above. */
}

#menuToggle span:first-child {
  transform-origin: 0% 0%; /*sets the origin of the transform property to the top left corner of the element.*/
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%; /*sets the origin of the transform property to the bottom left corner of the element.*/
}

#menuToggle input:checked ~ .hamburger-line.line-1 {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 24px;
  transform: rotate(45deg);
  background: #00000054;
  transform-origin: center;
}

#menuToggle input:checked ~ .hamburger-line.line-2 {
  opacity: 0;
}

#menuToggle input:checked ~ .hamburger-line.line-3 {
  position: absolute;
  top: 21px; /* ⬅️ Match line 1 */
  left: 12px;
  width: 24px;
  transform: rotate(-45deg);
  background: #00000054;
  transform-origin: center;
}


#menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: #ff757d;
  list-style-type: none;
  z-index: 1000;

}

#menu li {
  padding: 2px 0;
  font-size: 22px;
}

#menuToggle input:checked ~ .hamburger-line.line-3 + #menu {
  display: block;
}

/* Hides the hamburger menu by default on larger screens */
#menuToggle {
  display: none;
}

/* === MOBILE STYLES === */

@media screen and (max-width: 768px) {
  
  .cta-button {
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  .align-right {
    margin-left: 0;
    align-self: flex-start;
    padding-left: 0;
  }
  
  .sticky-button-wrapper {
    display: none;
  }
  
    #menu li.last-button a {
    background-color: #ffc803; /* BUTTON COLOUR */
    color: #171000;
    border: 2px solid #ffc803;
  }
  
    #menu li.last-button a:hover {
    background-color: #171000; /* BUTTON HOVER COLOUR */
    color: #ffc803;
    border: 2px solid #ffc803;
  }
  
   #menu {
    background-color: transparent !important;
  }
  
 #menuToggle {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFCA00; /* yellow box */
    width: 48px;
    height: 48px;
    border-radius: 8px;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  #menuToggle input {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
  }

  #menuToggle span {
    position: absolute;
    background-color: #00000054;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;

  }

  #menuToggle span:nth-child(2) {
    width: 24px;
    height: 3px;
    top: 14px;
  }

  #menuToggle span:nth-child(3) {
    width: 24px;
    height: 3px;
    top: 22px;
  }

  #menuToggle span:nth-child(4) {
    width: 24px;
    height: 3px;
    top: 30px;
  }
  
  #menu li {
  list-style: none;
  text-align: center;
}

#menu li a {
  display: block;
  background-color: #1e1007; /* dark box */
  color: #FFCA00; /* yellow text */
  text-decoration: none;
  padding: 14px 20px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 50vw;
  max-width: 400px;
  margin: 10px auto; 
  text-align: center;
}

#menu li a:hover {
  background-color: rgba(0, 0, 0, 0.1); /* transparency*/
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
}
  
#menuToggle input:checked ~ .hamburger-line.line-3 ~ #menu li {
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.3s forwards;
}


#menuToggle input:checked ~ .hamburger-line.line-3 ~ #menu li:nth-child(1) {
  animation-delay: 0.1s;
}

#menuToggle input:checked ~ .hamburger-line.line-3 ~ #menu li:nth-child(2) {
  animation-delay: 0.2s;
}

#menuToggle input:checked ~ .hamburger-line.line-3 ~ #menu li:nth-child(3) {
  animation-delay: 0.3s;
}

#menuToggle input:checked ~ .hamburger-line.line-3 ~ #menu li:nth-child(4) {
  animation-delay: 0.4s;
}
  
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


