/* ── Mobile nav: hamburger esquerda, logo centro, CTA direita ── */

/* Hamburger button — só aparece no mobile */
.cc-mobile-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.cc-mobile-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-1);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Mobile breakpoint ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .bc-nav {
    display: flex !important;
    align-items: center;
    gap: 0;
    padding: 10px 16px !important;
    /* Layout: hamburger | logo (cresce) | cta */
  }
  .cc-mobile-burger {
    display: inline-flex;
    order: 0;
  }
  .bc-nav .cc-logo {
    order: 1;
    margin: 0 auto;          /* centraliza */
    flex: 0 0 auto;
  }
  .bc-nav .cc-logo .cc-logo-img {
    max-height: 28px;
    width: auto;
  }
  .bc-nav-links { display: none !important; }    /* itens vão pro drawer */
  .bc-nav-right { order: 2; gap: 0; }
  .bc-nav-login { display: none !important; }    /* Entrar vai pro drawer */
  .bc-nav-cta {
    padding: 10px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0;
  }
  .bc-nav-cta .cc-cta-arrow { display: none !important; }
}

/* Backdrop */
.cc-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 14, 28, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 998;
}
body.cc-drawer-open .cc-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.cc-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: 6px 0 32px rgba(14, 39, 77, 0.18);
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.cc-drawer-open .cc-drawer { transform: translateX(0); }

.cc-drawer[aria-hidden="true"] { pointer-events: none; }
body.cc-drawer-open .cc-drawer { pointer-events: auto; }

/* Drawer header */
.cc-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.cc-drawer-logo .cc-logo-img { max-height: 26px; }
.cc-drawer-close {
  background: transparent; border: 0; cursor: pointer;
  padding: 6px; border-radius: 8px;
  color: var(--fg-1);
  display: inline-flex; align-items: center; justify-content: center;
}
.cc-drawer-close:hover { background: var(--bc-blue-50); }

/* Drawer nav */
.cc-drawer-nav {
  display: flex; flex-direction: column;
  padding: 8px 8px 24px;
  gap: 2px;
}
.cc-drawer-link,
.cc-drawer-group summary {
  display: flex; align-items: center;
  padding: 14px 14px;
  color: var(--fg-1);
  font-size: 15px; font-weight: 600;
  text-decoration: none !important;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.cc-drawer-link:hover,
.cc-drawer-group summary:hover {
  background: var(--bc-blue-50);
  color: var(--brand);
}
.cc-drawer-group { border: 0; }
.cc-drawer-group summary {
  list-style: none;
  justify-content: space-between;
}
.cc-drawer-group summary::-webkit-details-marker { display: none; }
.cc-drawer-group summary svg {
  transition: transform .2s ease;
  color: var(--fg-3);
}
.cc-drawer-group[open] summary svg { transform: rotate(180deg); }
.cc-drawer-sub {
  display: flex; flex-direction: column;
  padding: 4px 0 8px 8px;
}
.cc-drawer-sub a {
  display: flex; align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--fg-2);
  font-size: 14px; font-weight: 500;
  text-decoration: none !important;
  border-radius: 8px;
}
.cc-drawer-sub a:hover { background: var(--bc-blue-50); color: var(--brand); }
.cc-drawer-sub a i,
.cc-drawer-sub a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand); }

.cc-drawer-login {
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px !important;
  border-radius: 0 !important;
}

/* Desktop: esconde drawer e backdrop */
@media (min-width: 881px) {
  .cc-drawer, .cc-drawer-backdrop { display: none !important; }
}

/* Trava scroll do body quando drawer aberto */
body.cc-drawer-open {
  overflow: hidden;
  touch-action: none;
}
