/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease,
    box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(11, 4, 4, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  height: 80px; /* fixed height — everything centres inside this */
}

.logo {
  font-family: 'Allura', cursive;
  font-size: 46px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-shadow: 0 0 22px rgba(255, 211, 107, 0.35);
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
  padding-bottom: 8px; /* Allura descender compensation */
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 20px;
  left: 0;
  background-color: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.dropdown-toggle .caret {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px; /* fine-tune if needed */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: linear-gradient(135deg, rgba(43, 11, 11, 0.98) 0%, rgba(26, 7, 7, 0.98) 100%);
  border: 1px solid rgba(255, 211, 107, 0.20);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 100;
  border-radius: 10px;
  overflow: hidden;
}

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

.dropdown-menu a {
  display: block;
  height: auto;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 211, 107, 0.10);
  padding-left: 20px;
}

/* =========================
   MENU TOGGLE (mobile)
========================= */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-inner {
    height: auto;
    padding-top: calc(8px + var(--safe-top));
    padding-bottom: 8px;
  }

  .logo {
    height: auto;
    padding-bottom: 0;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: calc(var(--pad-x) + var(--safe-left));
    right: calc(var(--pad-x) + var(--safe-right));
    display: none;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
    padding: 8px;
    background: rgba(26, 7, 7, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
  }

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

  .nav-links li {
    height: auto;
  }

  .nav-links a {
    height: auto;
    padding: 12px 10px;
    display: block;
  }

  .nav-links a::after {
    display: none;
  }

  .dropdown {
    height: auto;
    display: block;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.3s ease;
    margin-top: 4px;
    border-radius: 12px;
    display: block;
  }

  .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
  }

  .dropdown.open:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
  }

  .logo {
    font-size: 40px;
  }
}