/* =====================================================
   SHARED NAVIGATION & FOOTER STYLES
   Uses CSS variables from each page's :root
   Required vars: --gold, --gold-bright, --gold-dim, --gold-faint,
                  --text-primary, --text-secondary,
                  --font-display, --font-body
   ===================================================== */

/* =====================================================
   NAVIGATION BAR
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 6, 4, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-faint);
}

.nav.scrolled {
  background: rgba(8, 6, 4, 0.97);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  width: auto;
  mix-blend-mode: lighten;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-item {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  color: var(--gold);
}

/* =====================================================
   DROPDOWN MENUS
   ===================================================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(13, 10, 6, 0.97);
  border: 1px solid var(--gold-faint);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gold-faint);
  transition: all 0.3s;
  text-decoration: none;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  color: var(--gold);
  background: var(--gold-faint);
}

/* =====================================================
   LANGUAGE SWITCHER
   ===================================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s;
  text-decoration: none;
  line-height: 1;
}

.lang-switcher a:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lang-switcher a.active-lang {
  opacity: 1;
}

.lang-switcher .lang-sep {
  color: var(--gold-dim);
  font-size: 0.7rem;
  user-select: none;
}

/* =====================================================
   HAMBURGER TOGGLE (hidden on desktop)
   ===================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  border-top: 1px solid var(--gold-faint);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-deep, #080604);
  position: relative;
  z-index: 10;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s;
  text-decoration: none;
}

.footer .social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer .social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer .copyright,
.footer .footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =====================================================
   RESPONSIVE: TABLET
   ===================================================== */
@media (max-width: 900px) {
  .nav-menu {
    gap: 1rem;
  }
}

/* =====================================================
   RESPONSIVE: MOBILE
   ===================================================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 6, 4, 0.98);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--gold-faint);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gold-faint);
    width: 100%;
  }

  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding-left: 1rem;
    min-width: auto;
    margin-top: 0.5rem;
  }

  .nav-dropdown-item {
    padding: 0.5rem 0;
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.8rem 1rem;
  }

  .nav-logo img {
    height: 40px;
  }
}
