/* =========================================================================
   Mega menu styles for index v3.html — flat, paired with index v2 language.
   Loaded after homepage.css + homepage-v2.css.
   ========================================================================= */

/* Header positioning anchor for the panel below */
.v3mm-header { position: sticky; top: 0; z-index: 60; overflow: visible; }

/* Nav links + dropdown triggers */
.v3mm-nav { gap: 4px; align-items: center; }
.v3mm-trigger,
.v3mm-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: #475569; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  transition: background .12s, color .12s;
}
.v3mm-trigger:hover,
.v3mm-link:hover { color: #0f172a; background: #f1f5f9; }
.v3mm-trigger.is-open { color: #0f172a; background: #f1f5f9; }
.v3mm-trigger.is-open svg { transform: rotate(180deg); }
.v3mm-trigger svg { color: #94a3b8; }

/* Backdrop dismisses on outside click */
.v3mm-backdrop {
  position: fixed; inset: 68px 0 0; z-index: 1;
  background: transparent;
}

/* Panel container drops below the sticky header */
.v3mm-panel-wrap {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 16px 32px -16px rgba(15,23,42,0.18);
  z-index: 2;
  animation: v3mm-fade .14s ease-out;
}
@keyframes v3mm-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.v3mm-panel { padding: 36px 0 40px; }

.v3mm-panel-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 28px;
}
.v3mm-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #06b6d4; margin-bottom: 6px;
}
.v3mm-panel-title {
  font-size: 22px; font-weight: 700; color: #0f172a;
  letter-spacing: -0.02em; line-height: 1.2;
}
.v3mm-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #0e7490;
  text-decoration: none; white-space: nowrap;
}
.v3mm-cta-link:hover { gap: 10px; transition: gap .15s; }

/* ---------- Suite panel (modules + promo) ---------- */
.v3mm-panel-grid {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .v3mm-panel-grid { grid-template-columns: 1fr; } }

.v3mm-mod-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
@media (max-width: 720px) { .v3mm-mod-grid { grid-template-columns: 1fr; } }

.v3mm-mod {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.v3mm-mod:hover { background: #f8fafc; }
.v3mm-mod-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--mm-tint); color: var(--mm-c);
}
.v3mm-mod-icon svg { width: 18px; height: 18px; }
.v3mm-mod-body { display: flex; flex-direction: column; gap: 2px; }
.v3mm-mod-name { font-size: 14px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.v3mm-mod-sub { font-size: 12px; color: #64748b; }

/* Promo card on the right */
.v3mm-promo {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none; color: inherit;
  transition: border-color .12s, background .12s;
}
.v3mm-promo:hover { border-color: #06b6d4; background: #ecfeff; }
.v3mm-promo-tag {
  align-self: flex-start;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: #0e7490; padding: 3px 8px; border-radius: 999px;
  background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.28);
}
.v3mm-promo-t {
  font-size: 16px; font-weight: 700; color: #0f172a;
  letter-spacing: -0.01em; margin-top: 4px;
}
.v3mm-promo-d {
  font-size: 13px; color: #475569; line-height: 1.5;
  flex: 1;
}
.v3mm-promo-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #0e7490;
  margin-top: 4px;
}

/* ---------- Solutions panel ---------- */
.v3mm-sol-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
@media (max-width: 1024px) { .v3mm-sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .v3mm-sol-grid { grid-template-columns: 1fr; } }

.v3mm-sol {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 10px;
  text-decoration: none; color: inherit;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.v3mm-sol:hover { background: #f8fafc; border-color: #e2e8f0; }
.v3mm-sol-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.v3mm-sol-t { font-size: 14px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.v3mm-sol-d { font-size: 13px; color: #64748b; line-height: 1.5; }

/* Stack of module dots */
.v3mm-dots { display: inline-flex; gap: -6px; }
.v3mm-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  border: 2px solid #fff;
  margin-left: -6px;
  flex-shrink: 0;
}
.v3mm-dot:first-child { margin-left: 0; }

/* ---------- Resources panel ---------- */
.v3mm-res-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
@media (max-width: 1024px) { .v3mm-res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .v3mm-res-grid { grid-template-columns: 1fr; } }

.v3mm-res {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.v3mm-res:hover { background: #f8fafc; }
.v3mm-res-t {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em;
}
.v3mm-res-t svg { color: #94a3b8; transition: transform .15s, color .15s; }
.v3mm-res:hover .v3mm-res-t svg { color: #0e7490; transform: translateX(2px); }
.v3mm-res-d { font-size: 13px; color: #64748b; line-height: 1.5; }
