/**
 * Navigation Bar Styles - Matching Demo Site
 */

/* Global Font Family for Navbar */
.site-navbar,
.site-navbar * {
  font-family: MyCustomFont, sans-serif, Nunito;
}

/* Main Navbar Container */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #D9D9D9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 500;
  height: 64px;
  overflow: visible;
}

/* Adjust navbar when admin toolbar is present */
body.toolbar-fixed .site-navbar {
  top: 39px;
  z-index: 500;
}

body.toolbar-horizontal.toolbar-tray-open .site-navbar {
  top: 79px;
  z-index: 500;
}

body.toolbar-vertical.toolbar-tray-open .site-navbar {
  top: 39px;
  z-index: 500;
}

/* body.toolbar-fixed main {
  margin-top: calc(64px + 39px);
} */

/* body.toolbar-horizontal.toolbar-tray-open main {
  margin-top: calc(64px + 79px);
} */

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
  max-width: 100%;
}

/* Logo Section */
.navbar-logo-section {
  display: flex;
  align-items: center;
  margin-left: 8px;
  margin-right: 16px;
  cursor: pointer;
  z-index: 501;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .navbar-logo-section {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (min-width: 1024px) {
  .navbar-logo-section {
    margin-left: 40px;
    margin-right: 0px;
  }
}

@media (min-width: 1536px) {
  .navbar-logo-section {
    margin-left: 48px;
    margin-right: 40px;
  }
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo-img {
  width: auto;
  /* height: 48px; */
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Navigation Section with Angled Background */
.navbar-nav-section {
  position: relative;
  width: 75%;
  padding: 24px 32px;
  z-index: 500;
  margin-left: auto;
}

/* Angled background using pseudo-element (doesn't clip children) */
.navbar-nav-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2F3573;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 12% 100%);
  border-bottom-left-radius: 20px;
  z-index: -1;
}

@media (min-width: 1024px) {
  .navbar-nav-section {
    width: 78%;
  }

  .navbar-nav-section::before {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 15% 100%);
  }
}

.navbar-nav-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .navbar-nav-inner {
    justify-content: center;
  }
}

/* Desktop Menu */
.navbar-menu {
  display: none;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-left: 32px;
}

@media (min-width: 1024px) {
  .navbar-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: #bfdbfe;
}

/* Hide Bootstrap default dropdown arrow */
.dropdown-toggle::after {
  display: none !important;
}

/* Custom Dropdown Arrow */
.dropdown-arrow {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  transform: rotate(0deg);
  transition: transform 0.2s;
  display: inline-block;
}

.dropdown.show .dropdown-arrow,
.nav-link[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  display: none;
}

.dropdown.show .dropdown-menu,
.nav-link[aria-expanded="true"]+.dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: rgb(47 53 115);
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  background: transparent;
  text-align: left;
}


.dropdown-divider {
  height: 1px;
  margin: 8px 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
}

/* Phone Button */
.navbar-phone-btn {
  background-color: #ffffff;
  color: #2F3573;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
  display: inline-block;
}

.navbar-phone-btn:hover {
  background-color: #eff6ff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.3s;
}

/* Ensure content doesn't hide behind navbar */
main {
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

/* Override any Bootstrap navbar styles */
.site-navbar .navbar-collapse {
  display: none;
}

@media (min-width: 1024px) {
  .site-navbar .navbar-collapse {
    display: flex;
  }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

/* Mobile Menu Container - Hidden by default */
#mobileNav {
  position: fixed;
  top: 64px;
  /* Below navbar */
  left: 0;
  width: 100%;
  /* height: calc(100vh - 64px); */
  background-color: #2F3573;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: none;
}

/* Show mobile menu when active */
#mobileNav.show {
  transform: translateX(0);
  display: block;
}

/* Adjust when admin toolbar is present */
body.toolbar-fixed #mobileNav {
  top: calc(64px + 39px);
  height: calc(100vh - 64px - 39px);
}

body.toolbar-horizontal.toolbar-tray-open #mobileNav {
  top: calc(64px + 79px);
  height: calc(100vh - 64px - 79px);
}

/* Mobile Menu List */
#mobileNav .navbar-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mobile Menu Items */
#mobileNav .nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

#mobileNav .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

#mobileNav .nav-link:hover {
  color: #bfdbfe;
}

/* Mobile Dropdown Menu */
#mobileNav .dropdown-menu {
  position: relative !important;
  /* Force relative to push content down */
  display: none;
  background-color: rgba(96, 105, 180, 0.3);
  border: none;
  border-left: 3px solid #60A5FA;
  border-radius: 0;
  padding: 0.5rem 0;
  margin: 0;
  width: 100%;
  /* Take full width */
  float: none;
  /* Disable floating behavior */
  transform: none !important;
  /* Disable Bootstrap transform positioning */
  box-shadow: none;
}

#mobileNav .dropdown-menu.show {
  display: block;
}

#mobileNav .nav-item.dropdown.show {
  padding-bottom: 0;
  /* Adjust spacing when open */
}

#mobileNav .dropdown-item {
  padding: 0.75rem 1rem 0.75rem 2rem;
  color: #ffffff;
  font-size: 1rem;
  border-bottom: none;
  text-align: left;
  position: relative;
  white-space: normal;
  /* Allow text wrapping */
}

#mobileNav .dropdown-item::before {
  content: '●';
  position: absolute;
  left: 1rem;
  color: #60A5FA;
  font-size: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

#mobileNav .dropdown-item:last-child {
  border-bottom: none;
}

#mobileNav .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Mobile Phone Button */
#mobileNav .phone-item {
  border-bottom: none;
  margin-top: 1.5rem;
}

#mobileNav .navbar-phone-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Hamburger Icon Animation */
/* Hamburger Icon Animation */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  #mobileNav {
    display: none !important;
  }
}

.dropdown-menu .dropdown-item::before {
  content: '●';
  color: #60A5FA;
  margin-right: 12px;
  font-size: 20px;
  flex-shrink: 0;
  align-items: center;
  padding-top: -3px;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .dropdown-toggle:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300D4FF'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.page-node-1 #webform-submission-get-a-custom-strategy-quote-node-1-add-form {
  padding: 0;
}
