/* ─────────────────────────────────────────────
   nav-ui.css  —  styles for <nav-ui> component
───────────────────────────────────────────── */

/* Base nav bar */
.nav-ui {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(16px, 4vw, 32px);
  height: 64px;
  transition: box-shadow 0.3s;
}

/* Scrolled state — adds depth shadow */
.nav-ui.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ── Logo / brand ───────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text, #F7F3E8);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand img {
  height: 36px;
  object-fit: contain;
}

/* ── Nav links ──────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  color: var(--color-text, #F7F3E8);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* ── CTA button ─────────────────────────────── */
.nav-cta {
  background: var(--color-accent, #F5B82E);
  color: var(--color-background, #F5B82E);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ── Hamburger ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text, #F7F3E8);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animated X when open */
.nav-ui.open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-ui.open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-ui.open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 860px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--color-primary, #0B0B0B);
    padding: 20px 24px;
    gap: 16px;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--color-border, #222);
  }

  .nav-ui.open .nav-links {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}
