/* ==========================================================================
   NAVBAR.CSS — Fixed navigation, mobile overlay
   ========================================================================== */

/* ---- Main Nav Bar ---- */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
  backdrop-filter: none;
  transition: background 0.4s ease,
              backdrop-filter 0.4s ease,
              box-shadow 0.4s ease;
}

#site-nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 26px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}


/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 8px;
}

.nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}


/* ---- Center Links (absolute-centered) ---- */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-num {
  display: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-highlight);
  transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

#site-nav.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}
#site-nav.nav-scrolled .nav-link:hover,
#site-nav.nav-scrolled .nav-link.active {
  color: #fff;
}


/* ---- Right Actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--color-highlight);
  color: #000;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  cursor: none;
}

.btn-nav-cta:hover {
  background: var(--color-highlight-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}


/* ---- Hamburger (mobile) ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: calc(var(--z-nav) + 10);
  background: none;
  border: none;
  cursor: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ---- Mobile Nav Overlay ---- */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.6s var(--ease-in-out);
  overflow: hidden;
}

#mobile-nav.open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
}

/* Decorative background text */
.mobile-nav-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(100px, 25vw, 200px);
  letter-spacing: 20px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.3);
  padding: var(--space-3) 0;
  min-height: 48px;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast) ease;
}

.mobile-nav-num {
  display: none;
}

.mobile-nav-sep {
  display: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-text);
}

.mobile-nav-link.active {
  color: var(--color-highlight);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: none;
  min-height: 48px;
  min-width: 48px;
  z-index: 10;
}
.mobile-nav-close:hover,
.mobile-nav-close:active {
  color: #fff;
  border-color: var(--color-highlight);
  background: rgba(201, 168, 76, 0.15);
}
.mobile-nav-close svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.mobile-nav-footer {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav-socials {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.mobile-nav-social {
  color: var(--color-text-muted);
  transition: color var(--dur-fast) ease;
}
.mobile-nav-social:hover { color: var(--color-highlight); }
.mobile-nav-social svg { width: 20px; height: 20px; }

.mobile-nav-location {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
}


/* ---- Responsive ---- */
@media (max-width: 767px) {
  .nav-links,
  .nav-actions .btn-nav-cta {
    display: none;
  }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 48px; }
  .nav-inner {
    padding: 16px 24px;
    position: relative;
  }
}

@media (max-width: 479px) {
  .nav-logo img { height: 42px; }
}

/* Mobile nav CTA button (shown inside overlay) */
.mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-highlight);
  color: #000;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  margin-top: var(--space-6);
  transition: background 0.2s ease;
  min-height: 48px;
}
