/*******************************************************************************
*
* Header styles 
*
*******************************************************************************/

/* Default Desktop */

/* Header bar */
header {
  height: 100px;
  background-image: linear-gradient(rgb(0,0,0,1), rgb(0,0,0,0));
  position: absolute;
  width: 100vw;
  backdrop-filter: blur(3px);
  z-index: 1000;
}

/* madesnappy logo */
header .logo {
  left: 43px;
  top: 16px;
  width: 200px;
  z-index: 5;
  position: absolute;
}

/* burger */
.navigation_open, .navigation_close {
  display: none;
}

/* Call us button */
.call_us {
  display: none;
}

/* Nav bar items container */
.main_navigation {
  display: flex;
  position: absolute;
  left: 280px;
  top: 33px;
  height: 28px;
  font-size: 16px;
}

/* Nav bar item */
.navigation_item {
  position: relative;
  color: white;
  line-height: 28px;
  white-space: nowrap;
  text-decoration: none;
}

/* Nav bar dropdown titles or static links */
.navigation_title {
  margin-right: 20px;
  display: inline-block;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.navigation_title:hover {
  color: #dadada !important;
}

/* Login/Myaccount and Callus style buttons */
.book_button {
  position: absolute;
  z-index: 3;
  background-color: transparent;
  color: white;
  padding: 5px 10px !important;
  border: 2px solid #FAF9F6;
  border-radius: 6px;
  right: 34px;
  top: 24px;
}

/* Header drop down styles */
.dropdown {
  position: relative;
  display: inline-block;
}
.navigation_dropdown {
  position: relative;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.navigation_dropdown::after {
  content: " ❯";
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
  margin-left: 10px;
}
.navigation_dropdown.open::after {
  transform: rotate(90deg); 
}
.dropdown:hover .navigation_dropdown::after {
  transform: rotate(90deg); 
}
.dropdown_menu {
  position: absolute;
  top: 100%;
  min-width: 250px;
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  padding: 10px 10px 15px 10px;
  border-radius: 5px;
}
.dropdown:hover .dropdown_menu {
  display: block;
}
.dropdown_menu.show {
  display: block;
}
.dropdown_menu .navigation_item {
  display: block;
  padding: 15px 20px;
  line-height: 32px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.dropdown_menu .navigation_item:hover {
  text-decoration: underline; 
}

/* We add scale_navigation and bold to the navbar title when we are on that page */
.scale_navigation {
  transform: scale(1.1) !important;
  transform-origin: left center;
}

/* First breakpoint */
/* Under 1000px smaller laptops */
@media only screen and (max-width: 1000px) {

  .main_navigation {
    display: flex;
    flex-direction: column;
    gap:1.2rem;
    top:100px;
    left:40px;
    height: calc(100vh - 120px);
  }
  .navigation {
    position: fixed;
    top: 0px;
    left: 0px;
    box-sizing: border-box;
    background-color: #2b2b2b;
    z-index: 4;
    width: 300px;
    height: 1100px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
  }
  .navigation_dropdown .navigation_item {
    padding-left: 20px;
  }
  .navigation.navigation_active {
    visibility: visible;
    opacity: 1;
  }
  .utility_block {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .navigation_close {
    display: block !important;
    position: absolute;
    left: 240px;
    top: 30px;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
    text-align: center;
    z-index: 6;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
  }
  .navigation_close.hidden {
    display: none !important;
  }
  header .logo {
    left: 23px;
    top: 16px;
  }
  .navigation_open {
    display: block;
    position: absolute;
    top: 15px;
    right: 130px;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    color: white;
    z-index: 5;
  }
  .book_button {
    right: 18px;
    top: 26px;
  }
  .dropdown_menu {
    position: static;
    display: block !important;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
    margin-top: 0;
  }
  .dropdown_menu.show {
    display: block;
  }
  .navigation.navigation_active .navigation_dropdown::after {
    transform: rotate(90deg);
  }
  .dropdown_menu .navigation_item {
    color: #ffffff;
  }
  
  /* Ensure close button is visible when sidebar is active */
  .navigation.navigation_active .navigation_close:not(.hidden) {
    display: block !important;
    visibility: visible;
    opacity: 1;
  }
}

/* Second breakpoint */
/* Tablets */
@media only screen and (max-width: 768px) {
  .dropdown_menu .navigation_item:hover {
    color: #ffffff;
  }
  header {
    height: 80px;
  }
  .navigation_open {
    top: 6px;
    right: 115px;
  }
  .book_button {
    right: 26px;
    top: 17px;
  }
}

/* Third breakpoint */
/* Phones */
@media only screen and (max-width: 500px) {
  header {
    height: 60px;
  }
  header .logo {
    left: 10px;
    top: 9px;
    width: 125px;
  }
  .navigation_open {
    top: -1px;
    right: 195px;
  }
  .call_us {
    display: inline-block;
    transform:translateX(-100px) !important;
  }
  .book_button {
    right: 16px;
    top: 9px;
  }
}


