/* Navigation Gradient Premium CSS */
/* Pure CSS implementation - no Tailwind dependencies */

/* ==========================================================================
   1. Root Variables
   ========================================================================== */

:root {
  --nav-orange: #FF7F41;
  --nav-orange-light: #FF9A66;
  --nav-navy-900: #1e293b;
  --nav-navy-700: #334155;
  --nav-navy-600: #475569;
  --nav-cream-50: #FFFDF9;
  --nav-cream-100: #FFF9F0;
}

/* ==========================================================================
   2. Header Positioning
   ========================================================================== */

.gradient-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .gradient-nav-header {
    padding: 1rem 2rem;
  }
}

/* ==========================================================================
   3. Nav Container (Floating Pill)
   ========================================================================== */

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,250,245,0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,127,65,0.08);
  box-shadow:
    0 4px 24px -4px rgba(30,41,59,0.08),
    0 8px 48px -8px rgba(255,127,65,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container:hover {
  box-shadow:
    0 8px 32px -4px rgba(30,41,59,0.1),
    0 12px 56px -8px rgba(255,127,65,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ==========================================================================
   4. Logo Styles
   ========================================================================== */

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  border: 2px solid rgba(255,127,65,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,127,65,0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 2px;
}

.nav-logo-link:hover .nav-logo-badge {
  transform: scale(1.05);
  border-color: rgba(255,127,65,0.5);
}

.nav-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-logo-accent {
  color: #FF7F41;
  -webkit-text-fill-color: #FF7F41;
}

/* ==========================================================================
   5. Desktop Navigation
   ========================================================================== */

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF7F41, #FF9A66);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #1e293b;
  background: rgba(255,127,65,0.06);
}

.nav-link:hover::before {
  width: calc(100% - 2rem);
}

/* ==========================================================================
   6. Dropdown Trigger and Menu
   ========================================================================== */

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.dropdown-trigger .chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,252,248,0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,127,65,0.1);
  border-radius: 16px;
  box-shadow:
    0 12px 40px -8px rgba(30,41,59,0.12),
    0 20px 60px -12px rgba(255,127,65,0.08);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,252,248,0.98) 100%);
  border-left: 1px solid rgba(255,127,65,0.1);
  border-top: 1px solid rgba(255,127,65,0.1);
  border-radius: 4px 0 0 0;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  color: #334155;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(255,127,65,0.08) 0%, rgba(255,127,65,0.04) 100%);
  color: #1e293b;
  transform: translateX(4px);
}

.dropdown-item .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(255,127,65,0.12) 0%, rgba(255,127,65,0.06) 100%);
  border-radius: 10px;
  color: #FF7F41;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover .icon-wrapper {
  background: linear-gradient(135deg, #FF7F41 0%, #FF9A66 100%);
  color: white;
  transform: scale(1.05);
}

/* ==========================================================================
   7. CTA Button
   ========================================================================== */

.nav-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FF7F41 0%, #FF9A66 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 16px -4px rgba(255,127,65,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-decoration: none;
}

.nav-cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E66A2C 0%, #FF7F41 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px -4px rgba(255,127,65,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.nav-cta-button:hover::before {
  opacity: 1;
}

.nav-cta-button span,
.nav-cta-button svg,
.nav-cta-button i {
  position: relative;
  z-index: 1;
}

.nav-cta-button:active {
  transform: translateY(0);
}

.nav-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1023px) {
  .nav-cta-button.desktop-only {
    display: none;
  }
}

/* ==========================================================================
   8. Mobile Menu Button
   ========================================================================== */

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: rgba(255,127,65,0.08);
  border: none;
  border-radius: 10px;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255,127,65,0.12);
  color: #FF7F41;
}

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

/* ==========================================================================
   9. Mobile Navigation Panel
   ========================================================================== */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,250,245,0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10000;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1023px) {
  .mobile-nav {
    display: block;
  }
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,127,65,0.1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: #1e293b;
  font-weight: 600;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(30,41,59,0.06);
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav-link:hover {
  color: #FF7F41;
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown.open {
  max-height: 500px;
}

.mobile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-left: 0.5rem;
  color: #475569;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.mobile-dropdown-item:hover {
  background: rgba(255,127,65,0.08);
  color: #FF7F41;
}

.mobile-dropdown-item i,
.mobile-dropdown-item svg {
  color: #FF7F41;
  width: 16px;
  height: 16px;
}

.mobile-cta {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

.mobile-services-chevron {
  transition: transform 0.3s ease;
}

.mobile-services-chevron.rotated {
  transform: rotate(180deg);
}
