/* ==========================================================================
   RIGSAFELENS · DARK NAVBAR & FOOTER
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.16);
}
.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* VIP Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text-group { display: flex; align-items: center; }
.logo-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.logo-brand span { color: var(--amber); }

/* Nav Links - Guaranteed No Wrapping */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 0;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--amber); font-weight: 700; }
.nav-link svg.arrow-icon { width: 12px; height: 12px; transition: transform 0.2s ease; }
.dropdown-wrap:hover .nav-link svg.arrow-icon { transform: rotate(180deg); }

.dropdown-wrap { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.48), 0 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-wrap:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-inset); color: var(--text-primary); }
.dropdown-item svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }

.nav-cta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-cta .btn { height: 36px; padding: 0 14px; }

/* Responsive Navigation Bar */
@media (max-width: 1080px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-link { padding: 7px 10px; font-size: var(--text-sm); }
}

/* Menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 0;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 992px) {
  .nav-inner { height: 60px; padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }

  /* Collapsible panel */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 12px 14px; font-size: var(--text-body); justify-content: space-between; }
  .nav-link svg.arrow-icon { display: none; }

  /* Dropdown renders inline as a sub-list */
  .dropdown-menu {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 0;
    margin: 0 0 8px 14px;
    padding: 0 0 0 6px;
  }
  .dropdown-item { padding: 9px 12px; white-space: normal; }
}

@media (max-width: 640px) {
  }

body.menu-locked { overflow: hidden; }
@media (min-width: 993px) { body.menu-locked { overflow: auto; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-md);
  padding: 0 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber);
  color: #0A0E16;
  border: 1px solid var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(245, 158, 11, 0.45);
}
.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn-sm { height: var(--control-sm); padding: 0 12px; font-size: var(--text-xs); gap: 6px; }
.btn-lg { height: var(--control-lg); padding: 0 20px; font-size: var(--text-body); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Footer */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-head {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.15s ease;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}
