/* =========================================================
   DHIRA CREATIVE — Navbar
========================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-container {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand-text small {
  font-size: 0.5625rem;
  color: var(--gold);
  letter-spacing: 0.32em;
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: 1px solid var(--border-gold);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.nav-button:hover {
  background: var(--gold);
  color: #070707;
  border-color: var(--gold);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  position: relative;
  z-index: 2;
}

.menu-button__lines {
  width: 22px;
  height: 12px;
  position: relative;
  display: block;
}

.menu-button__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s ease,
    top 0.4s var(--ease);
}

.menu-button__lines span:nth-child(1) { top: 0; }
.menu-button__lines span:nth-child(2) { top: 5.5px; width: 70%; }
.menu-button__lines span:nth-child(3) { top: 11px; }

.menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(1) {
  top: 5.5px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(3) {
  top: 5.5px;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgba(7, 7, 7, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    visibility 0.45s var(--ease);
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-panel a {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  transform: translateY(12px);
  opacity: 0;
  transition:
    color 0.3s ease,
    transform 0.5s var(--ease),
    opacity 0.5s var(--ease);
}

.mobile-panel.is-open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-panel.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-panel.is-open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-panel.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-panel.is-open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-panel.is-open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-panel.is-open a:nth-child(6) { transition-delay: 0.3s; }

.mobile-panel a:hover {
  color: var(--gold);
}

.mobile-panel__cta {
  margin-top: 2rem;
  align-self: flex-start;
}
