/* ============================================================
   BRESKO — Navbar CSS
   Sticky · Glassmorphism · Mobile Overlay
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: var(--z-navbar);
  padding: 1.6rem 0;
  transition: background 0.5s ease, backdrop-filter 0.5s ease,
              padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 1rem 0;
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
  z-index: calc(var(--z-menu) + 1);
  transition: color 0.3s ease;
}
.nav-logo:hover { color: var(--accent); }

/* Desktop Links */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.8rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.75;
  position: relative;
  transition: opacity 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover,
.nav-link.active { opacity: 1; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Nav CTA */
.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.65rem 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--text); }

/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  z-index: calc(var(--z-menu) + 1);
  position: relative;
  cursor: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: transform 0.45s var(--ease-circ), opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Fullscreen Menu ─────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.75s var(--ease-circ);
  overflow: hidden;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); }

.mobile-nav-links { text-align: center; width: 100%; }
.mobile-nav-links li {
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.mobile-nav-links li:last-child { border-bottom: 1px solid var(--border); }
.mobile-nav-links li a {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
  padding: 1rem 2rem;
  opacity: 0.65;
  transform: translateY(110%);
  transition: transform 0.65s var(--ease-circ), opacity 0.4s ease, color 0.3s ease;
}
.mobile-menu.open .mobile-nav-links li a { transform: translateY(0); }
.mobile-menu.open .mobile-nav-links li:nth-child(1) a { transition-delay: 0.08s; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) a { transition-delay: 0.14s; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) a { transition-delay: 0.20s; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) a { transition-delay: 0.26s; }
.mobile-menu.open .mobile-nav-links li:nth-child(5) a { transition-delay: 0.32s; }
.mobile-nav-links li a:hover { opacity: 1; color: var(--accent); }

.mobile-menu-bottom {
  position: absolute;
  bottom: 3rem; left: 0; right: 0;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}
.mobile-menu.open .mobile-menu-bottom { opacity: 1; transform: translateY(0); }
.mobile-menu-bottom p {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: var(--font-body);
  text-transform: uppercase;
}
.mobile-menu-socials { display: flex; gap: 1rem; }
.mobile-menu-socials a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.mobile-menu-socials a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
}
