/* Apollo Global Exports — Nav Dropdown Styles */

.apollo-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(20, 14.3%, 25%);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.apollo-nav a:hover,
.apollo-nav a.active {
  color: hsl(25, 60%, 38%);
  background-color: rgba(160, 90, 44, 0.08);
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger button */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(20, 14.3%, 25%);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.nav-dropdown-trigger:hover {
  color: hsl(25, 60%, 38%);
  background-color: rgba(160, 90, 44, 0.08);
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Rotate arrow when open */
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Dropdown menu — hidden by default */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  min-width: 185px;
  padding: 6px;
  z-index: 200;
  flex-direction: column;
}

/* Show on hover OR when .open class is toggled via JS */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu {
  display: flex;
}

/* Small arrow pointer on top of dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0, 0, 0, 0.08);
}

.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #ffffff;
}

/* Individual menu links */
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(20, 14.3%, 25%);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  width: 100%;
}

.nav-dropdown-menu a:hover {
  background-color: hsl(25, 60%, 96%);
  color: hsl(25, 60%, 35%);
}

.apollo-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 49;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 12px 20px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.apollo-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  color: hsl(20, 14.3%, 25%);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.apollo-mobile-menu a:hover,
.apollo-mobile-menu a.active {
  color: hsl(25, 60%, 35%);
  background: rgba(160, 90, 44, 0.09);
}

.apollo-mobile-menu-heading {
  margin: 10px 12px 4px;
  color: hsl(20, 10%, 45%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apollo-mobile-menu-cta {
  justify-content: center;
  margin-top: 12px;
  color: #ffffff !important;
  background: hsl(25, 60%, 38%);
}

.apollo-mobile-menu-cta:hover {
  background: hsl(25, 60%, 32%) !important;
}

body.apollo-mobile-menu-open .apollo-mobile-menu {
  display: block;
}

body.apollo-mobile-menu-open {
  overflow: hidden;
}

/* Static export fallback for quote form Radix select controls */
form button[role="combobox"][data-slot="select-trigger"] {
  display: none !important;
}

form button[role="combobox"][data-slot="select-trigger"] + select,
select.apollo-static-select {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  margin: 0 !important;
  padding: 0.5rem 2rem 0.5rem 0.75rem !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  color: hsl(20, 14.3%, 25%) !important;
  background-color: transparent !important;
  border: 1px solid hsl(20, 5.9%, 90%) !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  appearance: auto !important;
}

form button[role="combobox"][data-slot="select-trigger"] + select:focus,
select.apollo-static-select:focus {
  outline: none !important;
  border-color: hsl(24, 60%, 45%) !important;
  box-shadow: 0 0 0 3px rgba(160, 90, 44, 0.18) !important;
}

form button[role="combobox"][data-slot="select-trigger"] + select:invalid,
select.apollo-static-select:invalid {
  color: hsl(20, 10%, 48%) !important;
}

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

  body.apollo-mobile-menu-open {
    overflow: auto;
  }
}
