/* ─────────────────────────────────────────────
   nav.css
───────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.nav-inner {
  width: 100%;
}

/* ── Promo banner ── */
.promo-banner {
  background-color: var(--color-dark);
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

/* ── Nav bar ── */
.nav-bar {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #e0c0c0;
}

.nav-link.active {
  border-bottom: 2px solid var(--color-white);
  margin-bottom: -2px;
}

/* ── Dropdown ── */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--color-dark);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  min-width: 160px;
  padding: 8px 0;
  z-index: 1001;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition), background-color var(--transition);
}

.dropdown li a:hover {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.05);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--color-red);
  z-index: 10002;
  padding: 32px 24px 64px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 24px;
  opacity: 0.8;
}

.drawer-close:hover { opacity: 1; }

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-links > li {
  border-bottom: 1px solid rgba(185,185,185,0.2);
}

.drawer-links > li > a,
.drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.drawer-sub {
  padding: 0 0 12px 16px;
  display: none;
}

.drawer-sub.open { display: block; }

.drawer-sub li a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-text-muted);
}

.drawer-sub li a:hover { color: var(--color-white); }

/* ── Responsive ── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 768px) {
  .mobile-drawer { display: none !important; }
}
