/**
 * RAN — Shared Navigation Styles
 * Imported by every page. Works alongside style.css.
 */

/* ── Base nav shell ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 64px;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(5,6,7,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo-text {
  font-family: var(--fd, 'Clash Display', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.nav-logo-text span { color: #e01322; }

/* ── Desktop link list ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

/* ── Nav item + link ── */
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 1rem;
  height: 64px;
  font-family: var(--fb, 'Satoshi', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.is-active,
.nav-item--active > .nav-link { color: #fff; }

.nav-chevron {
  width: 10px; height: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.nav-item--open > .nav-link .nav-chevron,
.nav-link:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: rgba(10,10,12,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  list-style: none;
  padding: 6px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.nav-item--open > .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-dropdown-link:hover { background: rgba(255,255,255,0.06); }

.nav-dropdown-label {
  font-family: var(--fb, 'Satoshi', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.nav-dropdown-desc {
  font-family: var(--fb, 'Satoshi', sans-serif);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}

/* Active indicator — red left bar on active dropdown item */
.nav-item--active > .nav-dropdown .nav-dropdown-link:first-child {
  border-left: 2px solid #e01322;
  padding-left: 12px;
}

/* ── Right side CTA ── */
.nav-right { margin-left: auto; flex-shrink: 0; }

.nav-cta {
  font-family: var(--fb, 'Satoshi', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 4px;
  background: #e01322;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-block;
}
.nav-cta:hover { background: #c8111e; transform: translateY(-1px); }

/* ── Hamburger (mobile only) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile full-screen menu ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,6,7,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 250;
  flex-direction: column;
  align-items: flex-start;
  padding: 5rem 2rem 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-mobile-menu.is-open { transform: translateX(0); }

.nav-mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer; padding: 8px;
}
.nav-mobile-close svg { width: 22px; height: 22px; }

/* Mobile accordion items */
.nav-mobile-links {
  list-style: none;
  width: 100%;
  margin: 0 0 2.5rem;
  padding: 0;
}
.nav-mobile-item { border-bottom: 1px solid rgba(255,255,255,0.06); }

.nav-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background: none; border: none;
  font-family: var(--fd, 'Clash Display', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.nav-mobile-chevron {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-mobile-item.is-open .nav-mobile-chevron { transform: rotate(180deg); }
.nav-mobile-item.is-open .nav-mobile-toggle { color: #e01322; }

.nav-mobile-sub {
  list-style: none;
  padding: 0 0 0.75rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-sub-link {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--fb, 'Satoshi', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-mobile-sub-link:hover, .nav-mobile-sub-link:active { color: #fff; }

.nav-mobile-cta {
  font-family: var(--fb, 'Satoshi', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  background: #e01322;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
.nav-mobile-cta:hover { background: #c8111e; }

/* ── Responsive breakpoints ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right  { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-mobile-menu { display: flex; }
}

@media (max-width: 480px) {
  .nav { padding: 0 1.25rem; }
  .nav-mobile-toggle { font-size: 1.2rem; }
}
