/* DayTronX — nav.css
   Sticky top nav with mobile hamburger menu.
   iOS Safari quirks handled: -webkit-sticky for sticky, -webkit-flex
   prefixes, explicit flex-wrap: nowrap, display:flex (not inline-flex)
   on the burger so it stays on the same row as the logo. */

.dt-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dt-dark);
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Inner row — ALWAYS horizontal flex, at every breakpoint.
   No display change in any media query. */
.dt-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;

  display: -webkit-box;
  display: -webkit-flex;
  display: flex;

  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;

  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;

  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;

  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.dt-nav-logo {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.dt-nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.dt-nav-links {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 30px;
}
.dt-nav-links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.2px;
  transition: color 0.18s ease;
}
.dt-nav-links a:hover {
  color: var(--dt-teal);
}
.dt-nav-links a.active {
  color: var(--dt-teal);
  font-weight: 500;
}

.dt-nav-cta {
  background: var(--dt-teal);
  color: var(--dt-white);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 4px;
  transition: background 0.18s ease;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.dt-nav-cta:hover {
  background: var(--dt-teal-dark);
  color: var(--dt-white);
}

/* Hamburger — hidden on desktop, ALWAYS flex (never display:none) on mobile.
   Explicit alignment + -webkit-appearance reset so iOS Safari doesn't apply
   default button chrome that breaks layout. */
.dt-nav-burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--dt-white);
  cursor: pointer;
  padding: 8px;
  margin: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.dt-nav-burger i {
  font-size: 24px;
  line-height: 1;
  display: block;
}

/* Mobile slide-down menu */
.dt-nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--dt-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px 24px;
  z-index: 99;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.dt-nav-mobile a {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dt-nav-mobile a:last-of-type {
  border-bottom: none;
}
.dt-nav-mobile a.active {
  color: var(--dt-teal);
}
.dt-nav-mobile-cta {
  margin-top: 12px;
  background: var(--dt-teal);
  color: var(--dt-white) !important;
  text-align: center;
  border-radius: 4px;
  padding: 12px !important;
  font-weight: 500;
}
.dt-nav-mobile.is-open {
  display: -webkit-flex;
  display: flex;
}

@media (max-width: 900px) {
  .dt-nav-inner { padding: 0 24px; }
  .dt-nav-links,
  .dt-nav-cta {
    display: none;
  }
  /* Burger MUST be display: flex on mobile (not inline-flex, not none).
     Same row as the logo, vertically centered in the 64px bar. */
  .dt-nav-burger {
    display: -webkit-flex;
    display: flex;
  }
}
