/* ============================================================
   BRUNCH & BUILD — SHARED HEADER & EDITORIAL NAVIGATION DRAWER
   Minimal · Classy · 100% Figtree
   ============================================================ */

.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(247, 245, 252, .1);
  background: rgba(13, 11, 22, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: background .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  background: rgba(13, 11, 22, .95);
  border-color: var(--line, rgba(247, 245, 252, .12));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 122;
}

.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
  margin-left: auto;
}

.nav-links a {
  color: #C7C2DC;
  font-family: var(--font-sans, 'Figtree', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--coral, #FF6846);
}

.nav-links .nav-number {
  color: var(--gold, #F5B935);
  margin-right: 6px;
  font-size: 10px;
  font-weight: 700;
}

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

.nav-cta {
  flex-shrink: 0;
  min-height: 44px;
  padding: 12px 18px;
  gap: 14px;
}

.nav-cta .icon {
  width: 14px;
  height: 14px;
}

/* Clean Icon-Only Hamburger Button */
.menu-toggle {
  position: relative;
  z-index: 125;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(247, 245, 252, .18);
  background: rgba(20, 17, 34, .65);
  color: var(--white, #F7F5FC);
  cursor: pointer;
  transition:
    border-color .25s ease,
    background .25s ease,
    color .25s ease;
}

.menu-toggle:hover {
  border-color: rgba(247, 245, 252, .42);
  background: rgba(255, 255, 255, .06);
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--coral, #FF6846);
}

.hamburger-bars {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
  flex-shrink: 0;
}

.hamburger-bars span {
  display: block;
  width: 100%;
  height: 1.75px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, width .25s ease;
}

.hamburger-bars span:nth-child(2) {
  width: 68%;
  margin-left: auto;
  background: var(--gold, #F5B935);
}

.menu-toggle:hover .hamburger-bars span:nth-child(2) {
  width: 100%;
}

.menu-toggle[aria-expanded="true"] .hamburger-bars span:nth-child(1) {
  transform: translateY(5.1px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-bars span:nth-child(2) {
  opacity: 0;
  width: 100%;
}

.menu-toggle[aria-expanded="true"] .hamburger-bars span:nth-child(3) {
  transform: translateY(-5.1px) rotate(-45deg);
}

/* Backdrop + Minimal Editorial Drawer */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 123;
  background: rgba(8, 6, 16, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.nav-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 124;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(28px, 4vw, 48px) 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(247, 245, 252, .11);
  background:
    radial-gradient(circle at 92% 10%, rgba(119, 85, 232, .13), transparent 45%),
    #0F0C1B;
  box-shadow: -28px 0 80px rgba(5, 4, 12, .75);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    visibility .4s ease;
}

.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(247, 245, 252, .14);
  background: transparent;
  color: var(--muted, #A6A1BC);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.drawer-close:hover {
  border-color: rgba(247, 245, 252, .4);
  color: var(--white, #F7F5FC);
  background: rgba(255, 255, 252, .05);
}

.drawer-close .icon {
  width: 18px;
  height: 18px;
}

.drawer-body {
  margin-block: auto;
  padding-block: 28px;
}

.drawer-pages {
  display: flex;
  flex-direction: column;
}

.drawer-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 245, 252, .08);
  color: rgba(247, 245, 252, .78);
  font-family: var(--display, 'Figtree', sans-serif);
  font-size: clamp(26px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  transition:
    color .25s ease,
    border-color .25s ease,
    transform .28s cubic-bezier(.22, 1, .36, 1);
}

.drawer-page-link:first-child {
  border-top: 1px solid rgba(247, 245, 252, .08);
}

.drawer-page-link:hover {
  color: var(--white, #F7F5FC);
  border-bottom-color: rgba(247, 245, 252, .24);
  transform: translateX(6px);
}

.drawer-page-link.is-active {
  color: var(--gold, #F5B935);
}

.drawer-page-link .icon {
  width: 19px;
  height: 19px;
  color: var(--dim, #736D8C);
  opacity: .55;
  transform: scale(1);
  transition:
    opacity .25s ease,
    transform .28s cubic-bezier(.22, 1, .36, 1),
    color .25s ease;
}

.drawer-page-link:hover .icon,
.drawer-page-link.is-active .icon {
  opacity: 1;
  transform: scale(1.1);
}

.drawer-page-link.is-active .icon {
  color: var(--gold, #F5B935);
}

.drawer-page-link:hover .icon {
  color: var(--coral, #FF6846);
}

.drawer-sections {
  display: none;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
}

.drawer-section-link {
  color: var(--dim, #736D8C);
  font-family: var(--font-sans, 'Figtree', sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .22s ease;
}

.drawer-section-link:hover {
  color: var(--white, #F7F5FC);
}

.drawer-section-link.is-active {
  color: var(--coral, #FF6846);
}

.drawer-footer {
  padding-top: 22px;
}

.drawer-footer .btn {
  width: 100%;
  justify-content: space-between;
  min-height: 50px;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 10px;
  }
}

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

  .drawer-sections {
    display: flex;
  }

  .nav-inner {
    min-height: 73px;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    background: rgba(13, 11, 22, .86);
  }

  .nav-inner {
    min-height: 70px;
    gap: 10px;
  }

  .brand-logo {
    height: 33px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-cta {
    min-height: 39px;
    padding: 9px 12px;
    font-size: 10px;
    gap: 7px;
  }

  .nav-cta .icon {
    width: 13px;
    height: 13px;
  }

  .menu-toggle {
    width: 39px;
    height: 39px;
  }
}
