/* ============================================
   UNSCARRED GLOBAL HEADER v2.1
   Mobile hamburger + slide-in drawer
   Drawer/overlay are body-level siblings,
   NOT children of the fixed header.
   ============================================ */

/* ── Header ─────────────────────────────────────────────────────────────── */

.global-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: padding 0.3s ease, background 0.3s ease;
}

.global-header.scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 7, 0.99);
}

.global-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */

.global-header .logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #ece8e1;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.global-header .logo:hover { opacity: 0.85; }
.global-header .logo span { color: #a33b5c; }

/* ── Desktop Nav ────────────────────────────────────────────────────────── */

.global-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.global-header nav > a,
.global-nav-dropdown > a {
  font-size: 13.5px;
  font-weight: 500;
  color: #9a958c;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.global-header nav > a:hover,
.global-nav-dropdown > a:hover {
  color: #ece8e1;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Dropdowns ──────────────────────────────────────────────────────────── */

.global-nav-dropdown {
  position: relative;
}

.global-nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.global-nav-dropdown > a::after {
  content: "▾";
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.global-nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.global-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 210px;
  background: rgba(10, 10, 16, 0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 200;
}

.global-nav-dropdown:hover .global-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Bridge gap so dropdown doesn't close when moving mouse */
.global-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}

.global-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: #8a8580;
  text-decoration: none;
  transition: all 0.15s ease;
}

.global-dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: #ece8e1;
  padding-left: 24px;
}

.global-dropdown-menu .dropdown-label {
  display: block;
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #5c5955;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.global-dropdown-menu hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 6px 0;
}

/* ── CTA Button ─────────────────────────────────────────────────────────── */

.global-nav-cta {
  padding: 10px 22px !important;
  background: #a33b5c !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.25s ease !important;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

.global-nav-cta:hover {
  background: #b8446a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(163,59,92,0.45) !important;
}

/* ── Hamburger Button ───────────────────────────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-hamburger:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #9a958c;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Overlay ─────────────────────────────────────────────────────────
   Lives as a direct child of <body>, NOT inside the header.
   Always rendered (not display:none) so transitions work.
   Pointer-events: none when closed so it doesn't block clicks.
   ─────────────────────────────────────────────────────────────────────────── */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 300;
  pointer-events: none;
  transition: background 0.3s ease;
}

.mobile-nav-overlay.open {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

/* ── Mobile Drawer ──────────────────────────────────────────────────────────
   Lives as a direct child of <body>, NOT inside the header.
   Slides in from the right.
   z-index higher than overlay so it sits on top.
   ─────────────────────────────────────────────────────────────────────────── */

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  height: 100dvh;
  background: #07070c;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  z-index: 400;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 48px;
  /* Start off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* Visible at all times, just translated off screen */
  visibility: visible;
}

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

/* ── Drawer Header ──────────────────────────────────────────────────────── */

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  background: #07070c;
  z-index: 1;
}

.mobile-nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #ece8e1;
  text-decoration: none;
}
.mobile-nav-logo span { color: #a33b5c; }

.mobile-nav-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  color: #9a958c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ece8e1;
}

/* ── Drawer Links ───────────────────────────────────────────────────────── */

.mobile-nav-section {
  padding: 4px 0;
}

.mobile-nav-section-label {
  display: block;
  padding: 14px 24px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #5c5955;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mobile-nav-drawer a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 400;
  color: #9a958c;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:active {
  color: #ece8e1;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-drawer a.primary-link {
  font-weight: 600;
  color: #ece8e1;
}

/* ── Drawer CTA ─────────────────────────────────────────────────────────── */

.mobile-nav-cta-wrap {
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 12px;
}

.mobile-nav-cta {
  display: block !important;
  text-align: center;
  padding: 14px 24px !important;
  background: #a33b5c !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s ease !important;
}
.mobile-nav-cta:hover { background: #b8446a !important; }

/* ── Body offset ────────────────────────────────────────────────────────── */

body.global-nav { padding-top: 72px; }

/* ── Responsive breakpoints ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .global-header nav { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  body.global-nav { padding-top: 68px; }
  .global-header .header-inner { padding: 0 20px; }
  .global-header .logo { font-size: 23px; }
}
