/* =========================================
   CHEADER.CSS
   Ajustes finos do Header (o grosso fica no global_utils.css)
   ========================================= */



   /* =========================================
   HEADER (BASE)
   ========================================= */

.navbar {
  background: #7B2C3A;
  color: #ffffff;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ------------------------------
   Brand
------------------------------ */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* ------------------------------
   Menu desktop
------------------------------ */
.menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.menu-link:hover {
  text-decoration: underline;
}

.menu-cta {
  background: #F97316;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
}

.menu-cta:hover {
  filter: brightness(0.98);
}

/* ------------------------------
   Botão hambúrguer
------------------------------ */
.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-burger {
  width: 20px;
  height: 2px;
  background: #ffffff;
  position: relative;
  display: block;
  border-radius: 999px;
}

.menu-burger::before,
.menu-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.menu-burger::before { top: -6px; }
.menu-burger::after  { top:  6px; }

/* ------------------------------
   Responsivo
------------------------------ */
@media (max-width: 720px) {
  .menu {
    display: none;
  }
}



/* ------------------------------
   Wrapper e alinhamentos
------------------------------ */
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
}


/* ============================
   DRAWER: layout tipo vitrine
============================ */

.drawer-panel {
  max-width: 1100px;
  width: calc(100% - 28px);
  border-radius: 22px;
  padding: 18px;
}

.drawer-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* layout geral dentro do painel */
.drawer-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 10px;
}

/* coluna esquerda: bloco 300x250 */
.drawer-left {
  width: 300px;
}

.drawer-ad {
  position: relative;
  display: block;
  width: 300px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  text-decoration: none;
}

.drawer-ad img {
  width: 300px;
  height: 250px;
  object-fit: cover;
  display: block;
}

.drawer-ad-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #F97316;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

/* coluna direita: grid de cards */
.drawer-right {
  min-width: 0;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* card */
.drawer-card {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 12px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #E5E7EB;

  text-decoration: none;
  color: #111827;

  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);

  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.drawer-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #F97316;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

/* ícone */
.drawer-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(123, 44, 58, 0.10);
  border: 1px solid rgba(123, 44, 58, 0.18);
}

.drawer-ico .icon-tech,
.drawer-ico [data-lucide] {
  width: 18px;
  height: 18px;
  color: #7B2C3A;
}

/* texto */
.drawer-txt {
  font-size: 13px;
  font-weight: 900;
  color: #7B2C3A;
  line-height: 1.2;
}

/* “Ver mais” destacado */
.drawer-card.is-more {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.drawer-card.is-more:hover {
  border-color: #F97316;
}

/* responsivo */
@media (max-width: 980px) {
  .drawer-layout {
    grid-template-columns: 1fr;
  }

  .drawer-left {
    width: 100%;
  }

  .drawer-ad {
    width: 100%;
    height: auto;
  }

  .drawer-ad img {
    width: 100%;
    height: auto;
  }

  .drawer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================
   FIX: DRAWER VITRINE (sobrescreve estilos antigos)
   ========================================= */

/* overlay: começa logo abaixo do header (JS seta drawer.style.top) */
.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;                 /* o JS vai sobrescrever com drawer.style.top */
  z-index: 2200;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  background: rgba(15, 23, 42, 0.65);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.drawer.is-open,
.drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* painel: REMOVE o margin-top gigante que estava te sabotando */
.drawer-panel {
  position: relative;

  margin: 12px auto 0 auto;   /* << aqui corrige a “seta 2 pontos” */
  max-width: 1100px;
  width: calc(100% - 28px);

  background: rgba(15, 23, 42, 0.96);
  border-radius: 22px;
  padding: 18px;

  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.7),
              0 0 0 1px rgba(15, 23, 42, 0.6);
}

/* botão fechar: exatamente no canto superior direito do painel */
.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 42px;
  height: 42px;

  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.18);

  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* layout interno: esquerda 300x250 + direita cards */
.drawer-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;

}

.drawer-left {
  width: 300px;
}

.drawer-ad {
  position: relative;
  display: block;
  width: 300px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  text-decoration: none;
}

.drawer-ad img {
  width: 300px;
  height: 250px;
  object-fit: cover;
  display: block;
}

.drawer-ad-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #F97316;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

/* =========================
   CARDS (AQUI nasce a beleza)
   ========================= */

.drawer-right {
  min-width: 0;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* garante que link não fique azul sublinhado */
.drawer-card {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 12px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #E5E7EB;

  text-decoration: none;
  color: #111827;

  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);

  transition: transform 0.16s ease-out,
              box-shadow 0.16s ease-out,
              border-color 0.16s ease-out,
              background 0.16s ease-out;
}

.drawer-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #F97316;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

/* icone */
.drawer-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(123, 44, 58, 0.10);
  border: 1px solid rgba(123, 44, 58, 0.18);
}

.drawer-ico .icon-tech,
.drawer-ico [data-lucide] {
  width: 18px;
  height: 18px;
  color: #7B2C3A;
}

/* texto */
.drawer-txt {
  font-size: 13px;
  font-weight: 900;
  color: #7B2C3A;
  line-height: 1.2;
}

/* ver mais destacado */
.drawer-card.is-more {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.drawer-card.is-more:hover {
  border-color: #F97316;
}

/* responsivo */
@media (max-width: 980px) {
  .drawer-layout {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .drawer-left {
    width: 100%;
  }

  .drawer-ad {
    width: 100%;
    height: auto;
  }

  .drawer-ad img {
    width: 100%;
    height: auto;
  }

  .drawer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------
   Responsivo (ajustes pequenos)
------------------------------ */
@media (max-width: 640px) {
  .nav-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}



/* =========================================
   HEADER (AJUSTE: logo ao lado do hambúrguer)
   ========================================= */

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 12px;
}

/* ------------------------------
   Brand ao lado do hambúrguer
------------------------------ */
.brand {
  margin-right: auto;
}

/* menu continua à direita */
.menu {
  display: flex;
  align-items: center;
  gap: 14px;
}
