/* Navigation */

.logoBoxA {
  text-decoration: none;
}

.navigationBox {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8vw;
  background-color: transparent;
  backdrop-filter: blur(0.5px);
  transition: background-color 0.3s ease;
  height: 80px;
  box-shadow: none;
}

.navigationBox.scrolled {
  background-color: #272361;
  top: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 3.083vw;
  width: auto;
}

.navButtons {
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
}

.navButtons div a {
  cursor: pointer;
  font-size: 0.829vw;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

#getQuote {
  display: flex;
  gap: 0.5vw;
  align-items: center;
  background-color: #ffc631;
  color: black;
  padding: 0.833vw 1.458vw;
  font-size: 0.833vw;
  font-weight: 600;
  margin-left: 10px;
}

.container-fluid {
  position: absolute;
  top: 0;
  background-color: #001f3f;
}

/* Mobile Nav */

.navbar-toggler {
  color: #ffc631 !important;
  font-size: 58px;
  font-weight: bolder;
  border: solid 1.9px #ffc631 !important;
  padding: 5px 10px 8px 10px !important;
}

.logo2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo2 img {
  height: 40px;
  width: auto;
}

.logo2 h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  margin: 0;
  display: flex;
}

.logo2 h1 .white {
  color: white;
}

.logo2 h1 .orange {
  color: #e67817;
}

.logo2 h1 .green {
  color: #005534;
}

.offcanvas-header {
  background-color: #001f3f;
}

.btn-close {
  color: #fff !important;
  font-size: 30px;
  font-weight: bolder;
}

.offcanvas-body {
  background: #001f3f;
}

.offcanvas-body a {
  color: #fff;
}

#offcanvasNavbarLabel .white {
  color: white;
}

#offcanvasNavbarLabel .orange {
  color: #e67817;
}

#offcanvasNavbarLabel .green {
  color: #005534;
}

#offcanvasNavbarLabel img {
  height: 30px;
}

#getQuoteM {
  display: flex;
  width: 170px;
  gap: 10px;
  align-items: center;
  background-color: #ffc631;
  color: black;
  padding: 8px 16px;
  font-weight: 600;
  margin-top: 30px;
}

/* Dropdown Menu */

.dropdown-menu {
  display: none;
  opacity: 0;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 0;
  min-width: 250px;
  transition: opacity 0.3s ease-in-out;
}

@media (min-width: 1025px) {

  .dropdown:hover>.dropdown-menu,
  .dropdown-menu>.dropdown:hover>.dropdown-menu {
    display: block;
    opacity: 1;
  }
}

.dropdown-menu .dropdown-menu {
  left: 100%;
  top: 0;
}

.dropdown-menu .dropdown-item {
  color: black;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
}

.dropdown-menu .deci {
  background-color: #efebe9;
}

.dropdown-menu .expo {
  background-color: #eceff1;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Ensure nested dropdowns work on hover */
@media (min-width: 1025px) {
  .dropdown-menu .dropdown:hover>.dropdown-menu {
    display: block;
    opacity: 1;
  }

  /* Hover Dropdown */
  .hover-dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* .dropdown-menu{
  border-top: solid 1px black;
} */

.headDiv {
  padding: 0;
  margin: 0;
  padding-left: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #292a2b;
}

/* Search Bar Styles */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

#searchInput {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  color: #333;
  width: 150px;
  transition: width 0.3s ease;
  background-color: white;
}

#searchInput:focus {
  width: 200px;
  border-color: #ffc631;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  width: 450px;
  background-color: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  max-height: 450px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 8px 0;
}

/* Custom Scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.suggestion-category-header {
  color: #0da574;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.suggestion-category-header:first-child {
  margin-top: 0;
}

.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ffc631;
  padding-left: 13px;
  /* Keep padding aligned with 3px border */
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.suggestion-desc {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Responsive Hero Banners with Natural Scaling */
.hero img {
  width: 100% !important;
  height: 64vh !important;
}

/* Mobile Navigation Premium Override Styling */
@media (max-width: 1024px) {
  .hero img {
    height: auto !important;
  }

  #hero {
    margin-top: 80px !important;
  }

  #navBarMobile {
    background-color: #000810 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .navbar-toggler {
    color: #ffc631 !important;
    border: none !important;
    font-size: 28px !important;
    padding: 0 !important;
    outline: none !important;
  }

  .offcanvas {
    background-color: #000810 !important;
    width: 320px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .offcanvas-header {
    background-color: #000810 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px !important;
  }

  .offcanvas-title img {
    height: 44px !important;
  }

  .offcanvas-body {
    background-color: #000810 !important;
    padding: 24px 20px !important;
  }

  .offcanvas-body .navbar-nav {
    gap: 12px;
  }

  .offcanvas-body .nav-item>a {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: #e9e6e6 !important;
    padding: 10px 0 !important;
    display: block;
    transition: color 0.2s ease;
  }

  .offcanvas-body .nav-item>a:hover,
  .offcanvas-body .nav-item>a:focus {
    color: #ffc631 !important;
  }

  /* Target mobile dropdown items inside offcanvas */
  .offcanvas-body .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-left: 2px solid #0da574 !important;
    border-radius: 0 !important;
    padding: 8px 0 8px 16px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    box-shadow: none !important;
    display: none;
    /* Toggled dynamically via JavaScript */
  }

  .offcanvas-body .dropdown-item {
    color: #c9c9c9 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
  }

  .offcanvas-body .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffc631 !important;
  }

  .offcanvas-body .dropdown-menu .dropdown-menu {
    border-left: 2px solid #ffc631 !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    margin-left: 8px !important;
  }

  /* Align the text and plus symbol inside parent dropdown titles */
  #productDropdown,
  #servicesDropdown {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  #productDropdown a,
  #servicesDropdown a {
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  #productDropdown a:first-child,
  #servicesDropdown a:first-child {
    flex-grow: 1;
  }

  #productDropdown a:last-child,
  #servicesDropdown a:last-child {
    color: #ffc631 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 0 10px !important;
  }
}