/* ================================================
   BLUESTONE — Header Fixes (Patched Version)
   ================================================ */

/* ── HEADER ── */
.bs-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 31, 60, 0.96);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Safe backdrop filter (with fallback) */
@supports (backdrop-filter: blur(12px)) {
  .bs-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Scroll state */
.bs-header--scrolled {
  background: rgba(13, 31, 60, 0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.bs-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

/* Prevent content overlap */
body {
  padding-top: 72px;
}

/* ── LOGO ── */
.bs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.bs-logo__img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  /* Removed forced white filter for flexibility */
}

.bs-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.bs-logo__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.bs-logo__sub {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* ── NAV ── */
.bs-nav {
  
  display: grid;
  justify-content: center;
}

.bs-nav__list {
  display: grid;
  align-items: center;
  gap: 4px;
  list-style: column;
}

.bs-nav__link {
  display: grid;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.82);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}

.bs-nav__link:hover,
.bs-nav__link.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ── DROPDOWN (FIXED) ── */
.bs-nav__item--dropdown {
  position: relative;
}

.bs-dropdown {
  position: absolute;
  top: 100%;
  margin-top: 6px; /* removes hover gap */
  left: 50%;
  transform: translateX(-50%) translateY(6px); /* FIXED */
  width: 260px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(13,31,60,0.2);
  border: 1px solid rgba(13,31,60,0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}

.bs-nav__item--dropdown:hover .bs-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* ── CTA ── */
.bs-header__cta { flex-shrink: 0; }

/* ── HAMBURGER ── */
.bs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.bs-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 100px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── MOBILE MENU (FIXED) ── */
.bs-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  padding: 100px 28px 40px;
  overflow-y: auto;
  z-index: 1200; /* FIXED (above header) */
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  pointer-events: none;
}

.bs-mobile-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {

  /* Hide desktop nav */
  .bs-header__nav {
    display: none;
  }

  /* Show hamburger */
  .bs-header__cta { display: none; }
  .bs-header__hamburger { display: flex; }

  /* MOBILE MENU PANEL */
  .bs-header__nav.bs-nav--open {
    display: flex;

    position: fixed;
    top: 72px;
    left: 0;
    right: 0;

    background: var(--navy);
    padding: 20px;

    flex-direction: row;      /* ✅ THIS FIXES YOUR ISSUE */
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    z-index: 1200;
  }

  /* FIX LINKS (they are currently full width) */
  .bs-header__nav .bs-nav__link {
    display: inline-block;
    width: auto;

    padding: 10px 14px;
    font-size: 16px;

    border: none;
    border-radius: 6px;

    background: rgba(255,255,255,0.05);
  }

}