/* =====================================================
   BASE
===================================================== */
body.menu-open{
  overflow: hidden;
}

/* =====================================================
   NAVBAR – DESKTOP
===================================================== */
@media screen and (min-width: 769px) {

  .burger-menu {
    display: none;
  }

  .mobile-overlay{
    display: none;
  }

  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 6px 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  .navbar .logo,
  .navbar .logo img {
    opacity: 1 !important;
    filter: none !important;
  }

  .navbar .logo {
    margin-right: 40px;
    pointer-events: auto;
  }

  .navbar .logo img {
    height: 40px;
    width: auto;
    display: block;
  }

  .navbar .logo::after {
    display: none !important;
  }

  .navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
  }

  .navbar li {
    margin: 0;
    position: relative;
  }

  .navbar a {
    position: relative;
    text-decoration: none;
    font-family: 'Poppins', 'Yu Gothic', sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: #222;
    opacity: 0.65;
    transition: opacity 0.3s ease;
  }

  .navbar a:hover,
  .navbar a.active,
  .navbar li.active > a {
    opacity: 1;
    color: #222;
  }
}

/* =====================================================
   NAVBAR – MOBILE
===================================================== */
@media screen and (max-width: 768px) {

@media screen and (max-width: 768px) {

  .burger-menu {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 30;
  }

.burger-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  cursor: pointer;
}

  .burger-icon:active {
    transform: scale(0.97);
  }

  .burger-icon .line {
    width: 20px;
    height: 2px;
    background-color: #131923;
    border-radius: 999px;
    transition:
      transform 0.28s ease,
      opacity 0.22s ease,
      width 0.22s ease;
    transform-origin: center;
  }

  .burger-menu.is-active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-menu.is-active .line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.is-active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.lab-theme .burger-icon {
    background: rgba(34,34,36,0.78);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  }

  body.lab-theme .burger-icon .line {
    background-color: #ffffff;
  }
}

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    z-index: 18;
  }

  .mobile-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .navbar {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 76%;
    max-width: 320px;
    height: 100vh;

    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: -16px 0 40px rgba(0,0,0,0.08);

    padding: 82px 24px 32px;
    z-index: 20;

    transform: translateX(100%) !important;
    transition: transform .32s cubic-bezier(.22,1,.36,1) !important;
    pointer-events: none;
    will-change: transform;
  }

  .navbar.show {
    transform: translateX(0) !important;
    pointer-events: auto;
  }

  .navbar.is-hidden {
    transform: translateX(100%) !important;
  }

  .navbar .logo {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;
  }

  .navbar .logo img {
    height: 32px;
    width: auto;
    display: block;
  }

  .navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .navbar li {
    width: 100%;
    margin: 0;
    position: static;
  }

  .navbar a {
    display: block;
    width: 100%;
    text-decoration: none;
    font-family: 'Poppins', 'Yu Gothic', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    opacity: 0.92;
  }

  .navbar a.active,
  .navbar li.active > a {
    opacity: 1;
  }

  .navbar a::after {
    display: none !important;
  }
}

/* =====================================================
   MIXOLOGY LAB – inverted nav
===================================================== */
body.lab-theme .navbar {
  background: rgba(40, 40, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

body.lab-theme .navbar a {
  color: #ffffff;
}

body.lab-theme .navbar a:hover,
body.lab-theme .navbar li.active > a {
  color: #d8b36a;
}

body.lab-theme .navbar .logo img {
  filter: brightness(1.2) contrast(1.1);
}

body.lab-theme .burger-icon .line {
  background: #ffffff;
}

body.lab-theme .navbar a {
  text-decoration: none;
}

body.lab-theme .navbar .logo img {
  content: url("/media/cinci-white.png");
}

/* =====================================================
   DESKTOP HIDE ON SCROLL ONLY
===================================================== */
@media (min-width: 980px){
  .navbar{
    transition: transform .38s cubic-bezier(.2,.9,.2,1);
    will-change: transform;
  }

  .navbar.is-hidden{
    transform: translateY(-110%);
  }
}