/* ── Findr mega menu ──────────────────────────────────────────────
   "Product" dropdown in the marketing nav: three grouped link
   columns plus a preview panel that swaps a mini demo of whichever
   feature is hovered. Markup is injected by js/menu.js. */

.mega { position: relative; }

.mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--pine-soft);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.mega-btn:hover, .mega.open .mega-btn { color: var(--pine); }

.mega-btn .caret {
  width: 10px;
  height: 10px;
  transition: transform 0.15s ease;
}

.mega.open .mega-btn .caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(880px, calc(100vw - 2rem));
  background: var(--paper);
  border: 1px solid var(--contour);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  display: grid;
  grid-template-columns: 1fr 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 60;
}

.mega.open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Bridge the hover gap between button and panel */
.mega-panel::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: 0;
  right: 0;
  height: 1.2rem;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: 1.5rem 1.6rem;
}

.mega-head {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.mega-col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine);
  padding: 0.42rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.mega-col a:hover, .mega-col a.hot { background: var(--porcelain); color: var(--route-deep); }

.mega-col a svg { flex-shrink: 0; color: var(--route); }

/* Preview panel */
.mega-preview {
  border-left: 1px solid var(--contour);
  background: var(--porcelain);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.3rem;
  min-height: 100%;
}

.mega-prev { display: none; }
.mega-prev.show { display: block; }

.mega-prev b { display: block; font-size: 0.95rem; margin-top: 0.9rem; }

.mega-prev p { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--pine-soft); }

.mp-visual {
  background: var(--paper);
  border: 1px solid var(--contour);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.8rem;
  height: 128px;
  overflow: hidden;
}

/* ── Mini demo sketches used inside previews ── */
.mp-row { display: flex; gap: 0.5rem; }

.mp-card {
  flex: 1;
  background: var(--porcelain);
  border: 1px solid var(--contour);
  border-radius: 5px;
  padding: 0.4rem 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.58rem;
  color: var(--pine);
}

.mp-card b { display: block; font-size: 0.6rem; margin: 0; }
.mp-card span { color: var(--mist); font-size: 0.52rem; }
.mp-card.hot { border-left: 2.5px solid var(--route); }
.mp-card.win { border-left: 2.5px solid var(--brass); }

.mp-col-head {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.35rem;
}

.mp-line {
  height: 6px;
  border-radius: 3px;
  background: var(--porcelain);
  border: 1px solid var(--contour);
  margin-bottom: 0.32rem;
}

.mp-line.hl { background: rgba(228, 87, 46, 0.14); border-color: rgba(228, 87, 46, 0.35); }
.mp-line.w80 { width: 80%; }
.mp-line.w60 { width: 60%; }
.mp-line.w45 { width: 45%; }

.mp-name { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; }

.mp-sect {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--route-deep);
  border-bottom: 1px solid var(--contour);
  margin: 0.4rem 0 0.3rem;
  padding-bottom: 0.12rem;
}

.mp-chips { display: flex; flex-wrap: wrap; gap: 0.22rem; }

.mp-chips span {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  border: 1px solid var(--contour);
  background: var(--porcelain);
  border-radius: 999px;
  padding: 0.08rem 0.35rem;
  color: var(--pine-soft);
}

.mp-chips span.got { border-color: rgba(46, 91, 82, 0.45); background: rgba(123, 168, 160, 0.14); color: var(--pine); }
.mp-chips span.miss, .mp-chips span.add { border-color: rgba(228, 87, 46, 0.4); background: rgba(228, 87, 46, 0.08); color: var(--route-deep); }

.mp-score { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--route); line-height: 1; }

.mp-score small { font-family: var(--font-mono); font-size: 0.44rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); display: block; margin-top: 0.15rem; }

.mp-contact { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0; border-bottom: 1px solid var(--contour); }
.mp-contact:last-child { border-bottom: none; }

.mp-ava {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.42rem;
  flex-shrink: 0;
}

.mp-contact b { font-size: 0.56rem; display: block; }
.mp-contact span { font-size: 0.46rem; color: var(--mist); display: block; }

.mp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }

.mp-stat {
  background: var(--porcelain);
  border: 1px solid var(--contour);
  border-radius: 5px;
  padding: 0.4rem 0.5rem;
}

.mp-stat .n { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1; }
.mp-stat.accent .n { color: var(--route); }
.mp-stat .l { font-family: var(--font-mono); font-size: 0.4rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); margin-top: 0.15rem; }

.mp-bars { display: flex; align-items: flex-end; gap: 0.3rem; height: 34px; margin-top: 0.5rem; border-bottom: 1.5px solid var(--contour); }
.mp-bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--sky); opacity: 0.55; }
.mp-bars i.hi { background: var(--route); opacity: 1; }

.mp-popup {
  border: 1.2px solid var(--pine);
  border-radius: 6px;
  background: var(--paper);
  padding: 0.5rem;
  width: 78%;
  margin: 0.2rem auto 0;
  box-shadow: var(--shadow-card);
}

.mp-popup .t { font-family: var(--font-display); font-weight: 700; font-size: 0.58rem; margin-bottom: 0.3rem; }

.mp-save {
  background: var(--route);
  color: #fff;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.26rem;
  margin-top: 0.28rem;
}

.mp-map { width: 100%; height: 100%; display: block; border-radius: 6px; }

/* Small screens: the whole nav is hidden below 900px (landing.css),
   so the mega menu never needs a mobile layout of its own. */
