/* ===========================================================
   LidFlow.ai — Mobile Menu Overlay
   Triggered by the .menu-toggle button in the hero nav.
   =========================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

.mm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mm-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fbf9f4;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -20px 0 60px rgba(12, 28, 23, 0.18);
  overflow: hidden;
}
.mobile-menu.open .mm-panel { transform: translateX(0); }

/* ---------- HEAD ---------- */
.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(12, 28, 23, 0.06);
  flex-shrink: 0;
}
.mm-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary, #0c1c17);
}
.mm-logo .lid  { color: var(--text-primary, #0c1c17); }
.mm-logo .flow { color: var(--green-mid, #2d7a5e); }
.mm-logo .ai   { color: var(--text-muted, #5b6f68); font-size: 13px; font-weight: 500; margin-left: 1px; }

.mm-close {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(12, 28, 23, 0.08);
  background: #fff;
  color: var(--text-primary, #0c1c17);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.mm-close svg { width: 18px; height: 18px; }
.mm-close:active { transform: scale(0.94); }
.mm-close:hover  { background: #f3efe6; }

/* ---------- NAV (scrollable) ---------- */
.mm-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 16px 12px;
  -webkit-overflow-scrolling: touch;
}

.mm-group {
  padding: 6px 0 16px;
  border-bottom: 1px dashed rgba(12, 28, 23, 0.08);
  margin-bottom: 14px;
}
.mm-group:last-child { border-bottom: none; margin-bottom: 0; }
.mm-group-flat { padding-top: 4px; }

.mm-group-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green-mid, #2d7a5e);
  padding: 6px 8px 10px;
}

/* Rich row (icon + title + desc + arrow) */
.mm-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary, #0c1c17);
  transition: background 160ms ease, transform 160ms ease;
}
.mm-row:active { transform: scale(0.985); }
.mm-row:hover  { background: rgba(82, 196, 145, 0.08); }
.mm-row-icn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #e8f4ed;
  color: var(--green-mid, #2d7a5e);
  display: flex; align-items: center; justify-content: center;
}
.mm-row-icn svg { width: 18px; height: 18px; }
.mm-row-body { display: flex; flex-direction: column; gap: 2px; }
.mm-row-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary, #0c1c17);
}
.mm-row-desc {
  font-size: 13px;
  color: var(--text-muted, #5b6f68);
  line-height: 1.35;
}
.mm-row-arr {
  font-size: 16px;
  color: var(--text-muted, #5b6f68);
  font-weight: 500;
}

/* Simple link */
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary, #0c1c17);
  transition: background 160ms ease;
}
.mm-link:hover { background: rgba(82, 196, 145, 0.08); }
.mm-link span {
  color: var(--text-muted, #5b6f68);
  font-weight: 400;
}
.mm-link.big {
  font-size: 18px;
  font-weight: 600;
  padding: 16px 10px;
}

/* Numbered step (werkwijze) */
.mm-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary, #0c1c17);
  transition: background 160ms ease;
}
.mm-step:hover { background: rgba(82, 196, 145, 0.08); }
.mm-step .n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-mid, #2d7a5e);
  background: #e8f4ed;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.mm-step b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mm-step em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-muted, #5b6f68);
  margin-top: 1px;
}

/* ---------- FOOT ---------- */
.mm-foot {
  flex-shrink: 0;
  padding: 14px 16px 22px;
  border-top: 1px solid rgba(12, 28, 23, 0.06);
  background: #fbf9f4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-cta {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: var(--text-primary, #0c1c17);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background 160ms ease;
}
.mm-cta:hover  { background: #1b3d31; }
.mm-cta:active { transform: scale(0.98); }

.mm-wa {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(12, 28, 23, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary, #0c1c17);
  transition: border-color 160ms ease, transform 160ms ease;
}
.mm-wa:hover  { border-color: var(--green-mid, #2d7a5e); }
.mm-wa:active { transform: scale(0.99); }
.mm-wa-icn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #e8f4ed;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mm-wa-body { display: flex; flex-direction: column; }
.mm-wa-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mm-wa-sub {
  font-size: 12.5px;
  color: var(--text-muted, #5b6f68);
  margin-top: 1px;
}

.mm-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5b6f68);
  padding-top: 4px;
}
.mm-meta .sep { opacity: 0.4; }

/* Lock body scroll when open */
body.mm-locked { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mm-panel { transition: none !important; }
}
