/* Critical nav layout — works even if Tailwind CDN fails */
html, body { margin: 0; padding: 0; }

#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 5rem;
  pointer-events: auto;
}

/* Target the inner flex container (3rd level div) */
#navbar > div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  width: 100%;
}

/* Also style the outer wrapper */
#navbar > div {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}

#navbar img#nav-logo {
  height: 3.5rem;
}

/* Mobile menu button — always far right on mobile */
#mobile-menu-btn {
  padding: 0.75rem;
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

/* Mobile menu panel must scroll */
#mobile-menu-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Force desktop nav hidden on mobile */
@media (max-width: 1023px) {
  #desktop-nav { display: none !important; }
  #desktop-cta { display: none !important; }
}
@media (min-width: 1024px) {
  #mobile-menu-btn { display: none !important; }
}

/* Nav states — NO backdrop-filter (breaks iOS Safari position:fixed) */
.nav-glass {
  background: none;
  border-bottom: none;
}
.nav-solid {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Nav link colors */
.nav-link-light { color: white; }
.nav-link-light:hover { color: rgba(255,255,255,0.8); }
.nav-link-dark { color: #1c1917; }
.nav-link-dark:hover { color: #0d9488; }
