/* Shared site navigation — matches index.html */

:root {
  --gold-2: var(--gold2, #f1d777);
  --ease: 260ms cubic-bezier(.2,.8,.2,1);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container.nav {
  width: min(calc(100% - 2rem), 1220px);
  margin: 0 auto;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: opacity var(--ease);
  text-decoration: none;
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.nav-dropdown > button {
  color: #dedcd4;
  font-size: 0.92rem;
  transition: color var(--ease);
  text-decoration: none;
}

.nav-links a:hover,
.nav-dropdown > button:hover {
  color: var(--gold-2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  min-height: 42px;
  border: 1px solid rgba(216, 180, 74, 0.22);
  background: rgba(216, 180, 74, 0.07);
  cursor: pointer;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.nav-dropdown > button::after {
  content: "Menu";
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(216, 180, 74, 0.16);
  color: var(--gold-2);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-dropdown > button::before {
  content: "⌄";
  order: 2;
  color: var(--gold-2);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 245px;
  padding: 10px;
  display: grid;
  gap: 6px;
  background: rgba(8, 9, 12, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease);
}

/* Transparent hover bridge: spans the gap between the button and the menu
   so the dropdown stays open while the cursor travels down to it. */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.dropdown-menu a {
  min-height: 42px;
  display: grid;
  align-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none;
}

.dropdown-menu a span {
  display: block;
  color: rgba(185, 184, 177, 0.72);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 2px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown:hover > button,
.nav-dropdown:focus-within > button {
  border-color: rgba(216, 180, 74, 0.48);
  background: rgba(216, 180, 74, 0.12);
  color: #fff6d6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .btn {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease),
    opacity var(--ease);
  font-weight: 700;
  background: none;
  color: var(--text);
  text-decoration: none;
}

.site-header .btn:hover {
  transform: translateY(-2px);
}

.site-header .btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold, #d8b44a));
  color: #17120a;
  box-shadow: 0 14px 40px rgba(216, 180, 74, 0.18);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(8, 9, 12, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a,
.mobile-menu .btn,
.mobile-menu-label {
  min-height: 48px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: inherit;
}

.mobile-menu-label {
  display: flex;
  align-items: center;
  color: var(--gold, #d8b44a);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 34px;
  background: rgba(216, 180, 74, 0.08);
}

@media (max-width: 600px) {
  .brand-mark-img {
    height: 26px;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions > .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
}
