/* Custom Navbar Styles */
body {
  overflow-x: hidden;
}
.custom-navbar {
  background: #000;
  z-index: 1000;
  position: relative;
  border-bottom: 1px solid #ffd700;
  /* padding-top: 1.5rem;
  padding-bottom: 1.5rem; */
  padding: 0.5rem 0rem;
  transition: padding 0.3s;
}

.custom-navbar-brand {
  color: #ffd700;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-navbar-brand img {
  height: 3rem;
  margin-right: 0.75rem;
}

.custom-navbar-toggler {
  border: none;
  background: transparent;
  margin-left: auto;
  position: relative;
  z-index: 1051;
}

.custom-navbar-toggler-icon {
  width: 2rem;
  height: 2rem;
  background: url('data:image/svg+xml;utf8,<svg fill="%23ffd700" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path stroke="rgba(255,215,0,1)" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/></svg>') center/contain no-repeat;
  display: inline-block;
}

.custom-navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
}

.custom-nav-link {
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
}

.custom-nav-item {
  position: relative;
}

.custom-nav-link {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  transition: color 0.2s, background 0.3s;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.custom-nav-link:hover,
.custom-nav-link:focus {
  color: #ffd700;
  background: rgba(255,215,0,0.08);
}

.custom-navbar-quote-btn {
  background: linear-gradient(45deg, #ffd700 0%, #fff5cc 100%);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(253, 215, 0, 0.3);
  transition: all 0.3s;
  font-size: 0.95rem;
  white-space: nowrap;
}

.custom-navbar-quote-btn:hover {
  background: black !important;
  color: #ffd700;
}

/* Dropdown Styles */
.custom-dropdown-menu {
  background: #111;
  border: 1px solid #ffd700;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  min-width: 18rem;
  margin-top: 0.5rem;
  display: none;
  position: absolute;
  left: 0;
  top: 80%;
  z-index: 1050;
  padding: 1rem 0;
  list-style: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.custom-dropdown.show > .custom-dropdown-menu,
.custom-dropdown-menu.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-dropdown-toggle::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0.4rem;
  font-size: 0.8em;
  color: #ffd700;
  transition: transform 0.3s ease;
}

.custom-dropdown.show > .custom-dropdown-toggle::after,
.custom-dropdown-toggle:hover::after {
  transform: rotate(180deg);
}

.custom-dropdown-menu .custom-dropdown-item {
  color: #fff;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  display: block;
  border-radius: 0.25rem;
  transition: background 0.2s, color 0.2s;
}

.custom-dropdown-menu .custom-dropdown-item:hover,
.custom-mega-menu-list a:hover {
  background: #ffd700;
  color: #000;
}

/* Mega Menu Styles */
.custom-dropdown-mega-menu {
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important;
  padding: 2rem 1rem !important;
  background: #111 !important;
  border: 1px solid #ffd700 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25) !important;
  position: absolute !important;
  top: 100% !important;
  z-index: 1050 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.custom-dropdown.custom-dropdown-mega.show > .custom-dropdown-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
}

.custom-mega-menu-title {
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: left;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.custom-mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  /* text-align: center; */
}

.custom-mega-menu-list li {
  margin-bottom: 0.5rem;
}

.custom-mega-menu-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  display: block;
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  text-align: left;
}

.custom-mega-menu-list a i {
  margin-right: 0.5rem;
  /* Bootstrap's .me-2 equivalent */
}

/* Remove column separators in mega menu */
.custom-mega-menu-col:not(:last-child) {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .custom-navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .custom-dropdown-menu,
  .custom-dropdown-mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0.5rem 0;
    transform: none !important;
  }
  
  .custom-dropdown-mega-menu .row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .custom-mega-menu-col {
    max-width: 100%;
    padding-right: 0;
    margin-right: 0;
    border-right: none;
  }
  
  .custom-navbar-collapse {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .custom-navbar-collapse.show {
    display: flex;
  }
}

/* Desktop Styles */
@media (min-width: 992px) {
  .custom-navbar-toggler {
    display: none !important;
  }
  
  .custom-navbar-collapse {
    display: flex !important;
    /* justify-content: center !important; */
  }
  
  .custom-dropdown-mega-menu {
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    width: 90vw !important;
    max-width: none !important;
    min-width: 80vw !important;
    transform: translateX(-50%) translateY(20px) !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
    opacity: 0;
    pointer-events: none;
    margin-top: 8px;
  }
  .custom-dropdown.show > .custom-dropdown-menu,
  .custom-dropdown-menu.show {
    margin-top: 8px;
  }
  .custom-dropdown.custom-dropdown-mega.show > .custom-dropdown-mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
  }
  
  .custom-dropdown-mega-menu .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    width: 100%;
  }
  
  .custom-mega-menu-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: center; */
  }
}

.custom-dropdown {
  position: relative;
}

/* Marketing Dropdown: Fixed height and scroll on all devices */
ul[aria-labelledby="customMarketingDropdown"] {
  max-height: 320px;
  top: 36% !important;
  overflow-y: auto;
  width: 19rem !important;
  left: 0 !important;
  transform: translateY(20px) !important;
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #fff;
}
ul[aria-labelledby="customMarketingDropdown"]::-webkit-scrollbar {
  width: 8px;
  background: #fff;
}
ul[aria-labelledby="customMarketingDropdown"]::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 8px;
}

/* Services Mega Dropdown: Fixed height and scroll on md devices */
@media (max-width: 767.98px) {
  div[aria-labelledby="customServicesDropdown"] {
    max-height: 320px;
    overflow-y: auto;
    width: 18rem !important;
    left: 0 !important;
    transform: translateY(20px) !important;
  }
}

div[aria-labelledby="customServicesDropdown"] {
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #fff;
}
div[aria-labelledby="customServicesDropdown"]::-webkit-scrollbar {
  width: 8px;
  background: #fff;
}
div[aria-labelledby="customServicesDropdown"]::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 8px;
}

