/* =====================================================
   NAV REDESIGN — ThorPowerTechnologies
   Dark navy header with gold accents
   ===================================================== */

/* === HEADER BASE === */
.menu-area,
.header-layout1 .menu-area {
  background: linear-gradient(90deg, #06123a 0%, #0d1e5c 60%, #172f8a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 0 !important;
  transition: background 0.35s ease, box-shadow 0.35s ease !important;
}

/* Sticky: override the theme's white-background sticky */
.sticky-wrapper.sticky {
  background: transparent !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.sticky-wrapper.sticky .menu-area {
  background: linear-gradient(90deg, #040f2d 0%, #09163c 60%, #0f1f58 100%) !important;
  box-shadow: 0 4px 32px rgba(4, 14, 44, 0.65) !important;
}

/* === DESKTOP NAV LINKS === */
.main-menu a {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: color 0.25s ease !important;
}
.main-menu a:hover,
.main-menu > ul > li > a:hover {
  color: #F59E0B !important;
}

/* Active / current page link */
.main-menu > ul > li.active-nav-item > a {
  color: #F59E0B !important;
}

/* Reduce top-level link vertical padding (from theme's 37px) */
.main-menu > ul > li > a {
  padding: 24px 0 !important;
}

/* Dropdown chevron: muted white, gold on hover */
.main-menu ul li.menu-item-has-children > a:after {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 11px !important;
  margin-left: 5px !important;
}
.main-menu ul li.menu-item-has-children > a:hover:after {
  color: #F59E0B !important;
}

/* === DROPDOWN === */
.main-menu ul.sub-menu {
  background: rgba(5, 14, 46, 0.97) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 52px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 8px !important;
  min-width: 220px !important;
}

.main-menu ul.sub-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 0 !important;
  margin: 0 !important;
}
.main-menu ul.sub-menu li:last-child {
  border-bottom: none !important;
}

.main-menu ul.sub-menu li a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  text-transform: capitalize !important;
  letter-spacing: 0.2px !important;
  transition: all 0.22s ease !important;
  display: block !important;
}
.main-menu ul.sub-menu li a:hover {
  color: #F59E0B !important;
  background: rgba(245, 158, 11, 0.1) !important;
  padding-left: 20px !important;
}
.main-menu ul.sub-menu li a:before {
  color: #F59E0B !important;
}
.main-menu ul.sub-menu li a:hover:before {
  opacity: 1 !important;
}

/* === GET QUOTE CTA BUTTON (injected via nav-enhance.js) === */
/* Hidden on mobile, revealed on desktop via the media query below */
.nav-cta-btn {
  display: none !important;
  align-items: center;
  gap: 7px;
  background: #F59E0B;
  color: #142A74;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 18px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 3px 16px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .nav-cta-btn {
    display: inline-flex !important;
  }
}
.nav-cta-btn:hover {
  background: #fbbf24 !important;
  color: #142A74 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 26px rgba(245, 158, 11, 0.5) !important;
}
.nav-cta-btn i {
  font-size: 12px;
}

/* === MOBILE HAMBURGER BUTTON === */
.th-menu-toggle.d-block.d-lg-none {
  color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  transition: all 0.3s !important;
  font-size: 18px !important;
}
.th-menu-toggle.d-block.d-lg-none:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #F59E0B !important;
}

/* === MOBILE MENU OVERLAY === */
.th-menu-wrapper {
  background: #06123a !important;
}
.th-menu-area {
  background: #06123a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Mobile close (×) button */
.th-menu-area .th-menu-toggle {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s !important;
  font-size: 18px !important;
}
.th-menu-area .th-menu-toggle:hover {
  color: #F59E0B !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Mobile nav links */
.th-mobile-menu ul li a {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: all 0.25s !important;
}
.th-mobile-menu ul li a:hover {
  color: #F59E0B !important;
  padding-left: 28px !important;
}
.th-mobile-menu .sub-menu {
  background: rgba(255, 255, 255, 0.04) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.th-mobile-menu ul li.menu-item-has-children > a:after {
  color: rgba(255, 255, 255, 0.45) !important;
}
.th-mobile-menu ul li.active-nav-item > a {
  color: #F59E0B !important;
}

/* ===================================================
   FIX: Some pages have a global `.container` override
   (max-width:1200px; padding:0 20px) that collapses the
   header row and appears to center the nav. These rules
   restore proper full-width flex layout for the header
   container specifically.
   =================================================== */
.th-header .menu-area .container {
  max-width: var(--main-container, 1400px) !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
.th-header .menu-area .container > .row {
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.th-header .menu-area .container > .row > .col-auto {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* === RESPONSIVE FINE-TUNING === */
@media (max-width: 1199px) and (min-width: 992px) {
  .main-menu > ul > li {
    margin: 0 9px !important;
  }
  .main-menu > ul > li > a {
    font-size: 12px !important;
  }
  .nav-cta-btn {
    padding: 8px 16px !important;
    font-size: 11.5px !important;
    margin-left: 10px !important;
  }
}
@media (max-width: 1366px) and (min-width: 1200px) {
  .main-menu > ul > li > a {
    font-size: 12.5px !important;
    padding: 22px 0 !important;
  }
}
