/* =============================================
   BrandDid Digital – mobile-menu.css
   Hamburger, mobile sidebar panel, mobile nav,
   accordion menu, mobile overlay
   ============================================= */

/* --- Dark overlay behind panel --- */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1098;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mob-overlay.active {
  display: block;
  opacity: 1;
}

/* --- Panel --- */
.mob-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  z-index: 1099;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(15,23,42,0.18);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.mob-menu.open {
  transform: translateX(0);
}

/* --- Top bar --- */
.mob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  flex-shrink: 0;
}
.mob-logo {
  display: flex;
  align-items: center;
}
.mob-logo-img {
  height: 36px;
  width: auto;
}
.mob-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  color: var(--heading-color);
  flex-shrink: 0;
}
.mob-close:hover {
  background: #fff3ee;
  border-color: rgba(255,90,0,0.3);
  color: var(--primary);
  transform: rotate(90deg);
}

/* --- Divider --- */
.mob-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  flex-shrink: 0;
}

/* --- Nav scrollable area --- */
.mob-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  -webkit-overflow-scrolling: touch;
}

/* --- Nav item row --- */
.mob-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.mob-nav-item svg {
  color: var(--gray-dim);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mob-nav-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateX(4px);
}
.mob-nav-item:hover svg { color: var(--primary); }

/* --- Accordion trigger --- */
.mob-accordion-btn.open {
  background: var(--primary-soft);
  color: var(--primary);
}
.mob-accordion-btn.open svg { color: var(--primary); }
.mob-accordion-btn.open .mob-acc-chevron {
  transform: rotate(180deg);
}
.mob-acc-chevron { transition: transform 0.3s ease; }

/* --- Accordion panel --- */
.mob-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mob-accordion-panel.open {
  max-height: 600px;
}

/* --- Sub items inside accordion --- */
.mob-sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 20px;
  margin: 1px 0;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.mob-sub-item:hover {
  background: rgba(255,90,0,0.06);
  color: var(--primary);
  transform: translateX(4px);
}

/* --- Sub item icon badge --- */
.mob-sub-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mob-sub-icon--orange { background: rgba(255,90,0,0.10); color: var(--primary); }
.mob-sub-icon--blue   { background: rgba(59,130,246,0.10); color: #3b82f6; }
.mob-sub-icon--purple { background: rgba(139,92,246,0.10); color: #8b5cf6; }
.mob-sub-icon--green  { background: rgba(34,197,94,0.10); color: #16a34a; }

/* --- Bottom CTA area --- */
.mob-cta-area {
  flex-shrink: 0;
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Trust row */
.mob-trust {
  display: flex;
  gap: 12px;
  padding: 12px 4px 2px;
  flex-wrap: wrap;
}
.mob-trust span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-dim);
}

/* Primary CTA button */
.mob-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff5a00 0%, #e14d00 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255,90,0,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mob-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,90,0,0.40);
}

/* Ghost CTA button */
.mob-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid rgba(255,90,0,0.35);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mob-btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- Only show mob-menu on mobile --- */
@media (min-width: 769px) {
  .mob-menu,
  .mob-overlay { display: none !important; }
}
