/* ---------------------------------- */
/*      Header and Navigation         */
/* ---------------------------------- */


#header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  
  background-color: transparent;
  backdrop-filter: blur(0px);
  padding: 1rem 1.5rem;
  
  transition: max-width 0.4s ease-in-out,
    background-color 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out,
    backdrop-filter 0.4s ease-in-out;

}

#header-nav.scrolled {
  background-color: white; 
  backdrop-filter: blur(10px); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
  max-width: 1050px;
}

#header-nav #header-nav-logo,
#header-nav #header-nav-logo-img {
  width: unset;
  height: 30px;
  margin: auto 10px auto 0;
}

/* ---------------------------------- */
/*          Navigation Links          */
/* ---------------------------------- */

.nav-links-desktop {
  display: none;
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  width: 72px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: #1f2937;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 250ms ease-in-out;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-link:hover {
  background-color: rgb(255, 255, 255, 0.4);
}

#header-nav.scrolled .nav-link:hover{
  background-color: #ededed;
}

/* ---------------------------------- */
/*           Header CTA Button        */
/* ---------------------------------- */

.header-cta-desktop {
  display: none;
}

/* Base button styles */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
  cursor: pointer;
}


/* Global buttons UI */
.btn-filled {
  width: fit-content;
  height: fit-content;
  min-width: 150px;
  background: #FD8559;
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  justify-content: center;
  display: flex;
  border: 1px solid #FD8559;
  transition: all ease 0.3s;
}

.btn-filled:hover {
  background-color: #00000000;
  color: #FD8559;
}

.btn-filled span {
  width: fit-content;
  display: block;
  margin: auto;
}

.btn-border-only {
  width: fit-content;
  height: fit-content;
  min-width: 100px;
  background: #00000000;
  color: #0A181A;
  padding: 5px 15px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  justify-content: center;
  display: flex;
  border: 1px solid #F27123;
}

.btn-border-only span {
  width: fit-content;
  display: block;
  margin: auto;
}

/* dropdown styles */
#nav-item-products {
  position: relative;
}

.products-dropdown {
  position: absolute;
  top: 100%; 
  left: 20rem;
  transform: translateX(-50%);
  padding-top: 15px; 
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) translateX(-50%); 
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 50;
}

#nav-item-products:hover .products-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-50%); 
}

.dropdown-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 630px; 
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.dropdown-link-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1px 0;
  text-decoration: none;
  color: #6b7481; 
  font-weight: 500;
  transition: color 0.2s ease;
}

.dropdown-link-item a:hover {
  color: #111827; 
}

.dropdown-image-wrapper img {
  width: auto; 
  max-width: 175px;
  height: 170px;
  object-fit: contain;
}


.dropdown-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #F27123; 
}

.dropdown-view-text {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-link-item a:hover .dropdown-view-text {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-arrow {
  color: #9ca3af;
  font-size: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-link-item a:hover .dropdown-arrow {
  color: #F27123;
  transform: translateX(10px);
}


/* ---------------------------------- */
/*          Mobile Menu Button        */
/* ---------------------------------- */

.mobile-menu-button {
  display: block;
}

.mobile-menu-button button {
  background: black;
  border: none;
  cursor: pointer;
  color: white;
  padding: 14px;
  border-radius: 12px;
}

#mob-navbar {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
  right: -1000px;
  visibility: hidden;
  transition: visibility 500ms linear, right 500ms linear, background-color 1500ms linear;
  backdrop-filter: blur(7px);
}

.mob-navbar-open {
  visibility: visible !important;
  background: #000000b0;
  right: 0px !important;
}

#mob-navbar #mob-navbar-container {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  background: #ffffffe6;
  padding: 0 15px;
  box-sizing: border-box;
}

#mob-navbar #mob-navbar-head {
  width: 100%;
  height: fit-content;
  display: flex;
  margin: 15px 0 30px 0;
}

#mob-navbar #mob-navbar-logo {
  height: 35px;
  display: block;
}

#mob-navbar #mob-navbar-btn-close {
  width: 30px;
  height: 30px;
  display: flex;
  padding: 5px;
  box-sizing: border-box;
  margin: auto 0 auto auto;
}

#mob-navbar #mob-navbar-btn-close img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#mob-navbar #mob-navbar-list {
  width: 100%;
  height: fit-content;
}

#mob-navbar #mob-navbar-list .mob-navbar-list-item {
  width: 100%;
  height: fit-content;
  margin-bottom: 20px;
  color: #191C1F;
}

#mob-navbar #mob-navbar-list .mob-navbar-list-item a {
  width: 100%;
  height: 40px;
  display: flex;
  color: #191C1F;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 19px;
}

#mob-navbar #mob-navbar-list #mob-navbar-product {
  width: 100%;
  height: 40px;
  display: flex;
  color: #191C1F;
  padding: 0 10px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 19px;
}

#mob-navbar #mob-navbar-list #mob-navbar-product img {
  height: fit-content;
  margin: auto 0 auto auto;
}

#mob-navbar #mob-navbar-list #mob-navbar-product #mob-prod-up-arrow {
  display: none;
}

#mob-navbar #mob-navbar-list #mob-product-dropdown {
  display: none;
  border-bottom: 1px solid #F27123;
}

#mob-navbar #mob-navbar-list #mob-product-dropdown .mob-dropdown-list-item {
  width: 100%;
  font-family: 'open-sans-regular';
  display: flex;
  font-size: 16px !important;
  padding: 12px 10px 12px 16px;
}

#mob-navbar #mob-navbar-list #mob-product-dropdown .mob-dropdown-list-item img {
  height: fit-content;
  margin: auto 0 auto auto;
}

#mob-navbar #mob-navbar-list #mob-product-dropdown a {
  height: fit-content;
  padding: 0px;
}

#mob-navbar #mob-navbar-list .mob-navbar-list-item .mob-navbar-list-item-active {
  color: #F27123;
  border-bottom: 1px solid #F27123;
}

#mob-navbar #mob-navbar-list .mob-navbar-list-btn {
  width: 100%;
  height: fit-content;
  margin-top: 10px;
}

#mob-navbar #mob-navbar-list .mob-navbar-list-btn a {
  width: 100%;
  height: 45px;
  box-sizing: border-box;
}

#mob-navbar #mob-navbar-social {
  width: fit-content;
  height: fit-content;
  display: flex;
  position: absolute;
  flex-wrap: wrap;
  box-sizing: border-box;
  right: 0;
  left: 0;
  bottom: 10px;
  margin: 0 auto;
}

#mob-navbar #mob-navbar-social .mob-navbar-social-item {
  width: 40px;
  height: 40px;
  background: #42A8C3;
  display: flex;
  border-radius: 10px;
  margin: 5px;
}

#mob-navbar #mob-navbar-social .mob-navbar-social-item a {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 8px;
  box-sizing: border-box;
}

#mob-navbar #mob-navbar-social .mob-navbar-social-item a img {
  width: 100%;
  height: 100%;
  display: block;
}


/* ---------------------------------- */
/*     Responsive Styles (Desktop)    */
/* ---------------------------------- */

@media (min-width: 1200px) {

  #header-nav{
    margin-top: 20px;
    border-radius: 16px;
  }
  
}
@media (min-width: 1200px) {

  .nav-links-desktop,
  .header-cta-desktop {
    display: block;
  }

  .mobile-menu-button {
    display: none;
  }
}