/* RF Site Navigation Dropdown Styles */

/* Nav container fix */
#mainNav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Nav items with dropdown */
.rf-nav-item {
  position: relative;
}

.rf-nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rf-nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.rf-nav-item:hover .rf-nav-arrow,
.rf-nav-item:focus-within .rf-nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown menu */
.rf-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  visibility: hidden;
  opacity: 0;
  min-width: 240px;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  padding: 8px 0;
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid rgba(30,41,59,0.8);
}

.rf-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1e293b;
  border-left: 1px solid rgba(30,41,59,0.8);
  border-top: 1px solid rgba(30,41,59,0.8);
}

.rf-nav-item:hover > .rf-dropdown,
.rf-nav-item:focus-within > .rf-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rf-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rf-dropdown-item:hover {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  padding-left: 24px;
}

.rf-dropdown-item i,
.rf-dropdown-item svg {
  width: 16px;
  height: 16px;
  text-align: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.rf-dropdown-item:hover i,
.rf-dropdown-item:hover svg {
  opacity: 1;
}

.rf-dropdown-divider {
  height: 1px;
  background: rgba(30,41,59,0.8);
  margin: 6px 12px;
}

/* Mobile menu */
.rf-mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f172a;
  z-index: 999;
  padding: 24px;
  padding-right: 48px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid rgba(30,41,59,0.6);
}

.rf-mobile-menu.is-open {
  transform: translateX(0);
}

.rf-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(30,41,59,0.6);
}

.rf-mobile-title {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rf-mobile-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-mobile-close:hover {
  color: #3b82f6;
}

.rf-mobile-link {
  display: block;
  padding: 14px 0;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(30,41,59,0.4);
  transition: color 0.2s;
}

.rf-mobile-link:hover,
.rf-mobile-link:focus {
  color: #3b82f6;
}

.rf-mobile-group .rf-mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rf-mobile-group .rf-mobile-link .rf-nav-arrow {
  opacity: 0.5;
  font-size: 0.8rem;
}

.rf-mobile-group .rf-mobile-link.is-open .rf-nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.rf-mobile-submenu {
  display: none;
  padding-left: 16px;
  background: rgba(0,0,0,0.2);
  margin: 0 -24px;
  padding: 8px 24px 8px 40px;
}

.rf-mobile-submenu.is-open {
  display: block;
}

.rf-mobile-submenu a {
  display: block;
  padding: 10px 0;
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(30,41,59,0.2);
}

.rf-mobile-submenu a:last-child {
  border-bottom: none;
}

.rf-mobile-submenu a:hover {
  color: #3b82f6;
}

.rf-mobile-cta {
  margin-top: 24px;
}

.rf-mobile-cta .btn-quote {
  display: block;
  text-align: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Responsive - Hide dropdowns on mobile */
@media (max-width: 768px) {
  #mainNav {
    display: none !important;
  }
  #mobileToggle {
    display: block !important;
  }
  .rf-dropdown {
    display: none !important;
  }
  .rf-mobile-menu {
    display: block;
  }
}

@media (min-width: 769px) {
  .rf-mobile-menu {
    display: none !important;
  }
  #mobileToggle {
    display: none !important;
  }
}
