/*
 * me-modules-nav.css: Me Modules as a destination in the primary nav (MOCKUP,
 * Rohan 3 Nov 2026: "should stand out ... a primary place to visit").
 *
 * Loaded on every page only while SR_ME_STORE_NAV is on, after header.css.
 *
 * THE CAPSULE. The one dark object on the light header bar: navy, the Me
 * Modules mark in white, and a small live dot in the house accent. It is the
 * first item, so it reads before the menu does.
 *
 * THE PANEL. Every other flyout is a white list. This one is the Me Module
 * register (dark, dimensional): what Me Modules are, the live modules by
 * their own icons, the categories, and Open the store. In the drawer the same
 * markup becomes a dark card at the top of the menu.
 */

/* ----------------------------------------------------------- The capsule */

.sr-header .sr-nav__list > li.srst-nav-top {
  align-items: center;
  margin-inline-end: 6px;
}

.sr-header .sr-nav__list > li.srst-nav-top > .sr-group {
  gap: 8px;
  height: 38px;
  padding-inline: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #13285e, #0a1f44);
  color: #fff;
  font-weight: 600;
  box-shadow:
    inset 0 0 0 1px rgba(127, 178, 255, 0.35),
    0 6px 18px -8px rgba(10, 31, 68, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sr-header .sr-nav__list > li.srst-nav-top > .sr-group::before {
  display: none;
}

.sr-header .sr-nav__list > li.srst-nav-top:hover > .sr-group,
.sr-header .sr-nav__list > li.srst-nav-top:focus-within > .sr-group {
  color: #fff;
  background: linear-gradient(180deg, #1a3680, #0d2656);
  box-shadow:
    inset 0 0 0 1px rgba(127, 178, 255, 0.6),
    0 8px 22px -8px rgba(10, 31, 68, 0.8);
}

.srst-cap-mark {
  display: block;
  width: 18px;
  height: 18px;
}

.srst-cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2CE5A7;
  box-shadow: 0 0 0 0 rgba(44, 229, 167, 0.6);
  animation: srst-live 2.6s ease-out infinite;
}

@keyframes srst-live {
  0% { box-shadow: 0 0 0 0 rgba(44, 229, 167, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(44, 229, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 229, 167, 0); }
}

/* ------------------------------------------------- The panel (desktop) */

.sr-header .sr-nav__list > li.srst-nav-top > .sub-menu {
  top: calc(100% - 4px);
  width: min(880px, calc(100vw - 48px));
  padding: 0;
  border: 1px solid rgba(127, 178, 255, 0.22);
  border-radius: 0 18px 18px 18px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(77, 138, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #0b1640, #060b22);
  box-shadow: 0 30px 60px -20px rgba(2, 6, 25, 0.65);
  overflow: hidden;
}

.sr-header .sr-nav__list > li.srst-nav-top > .sub-menu > li {
  display: block;
}

.srst-mega {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.8fr;
  color: #EAF0FF;
  font-family: var(--font-ui, "Inter Tight", sans-serif);
  text-align: left;
}

.srst-mega > div {
  padding: 26px 26px 28px;
}

.srst-mega > div + div {
  border-left: 1px solid rgba(234, 240, 255, 0.1);
}

.srst-mega p {
  margin: 0;
}

.srst-mega-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.srst-mega-kicker,
.srst-mega-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, 0.62);
}

.srst-mega-head {
  margin-top: 6px !important;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.srst-mega-line {
  margin-top: 10px !important;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(234, 240, 255, 0.72);
}

.sr-header .sr-nav__list .sub-menu .srst-mega a,
.sr-drawer .srst-mega a {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  white-space: normal;
  text-decoration: none;
  translate: none;
}

.sr-header .sr-nav__list .sub-menu .srst-mega a::before,
.sr-header .sr-nav__list .sub-menu .srst-mega a::after,
.sr-drawer .srst-mega a::before,
.sr-drawer .srst-mega a::after {
  display: none !important;
}

.sr-header .sr-nav__list .sub-menu .srst-mega a.srst-mega-cta,
.sr-drawer .srst-mega a.srst-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #4d8aff;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease;
}

.sr-header .sr-nav__list .sub-menu .srst-mega a.srst-mega-cta:hover,
.sr-header .sr-nav__list .sub-menu .srst-mega a.srst-mega-cta:focus-visible,
.sr-drawer .srst-mega a.srst-mega-cta:hover {
  background: #6a9dff;
  color: #fff;
}

.srst-mega-grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
}

.sr-header .sr-nav__list .sub-menu .srst-mega a.srst-mega-app,
.sr-drawer .srst-mega a.srst-mega-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: 14px;
  color: #EAF0FF;
  text-align: center;
  transition: background 0.2s ease;
}

.sr-header .sr-nav__list .sub-menu .srst-mega a.srst-mega-app:hover,
.sr-header .sr-nav__list .sub-menu .srst-mega a.srst-mega-app:focus-visible {
  background: rgba(234, 240, 255, 0.07);
  color: #fff;
}

.srst-mega-ic {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 22.5%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(234, 240, 255, 0.12), 0 8px 18px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}

.srst-mega-app:hover .srst-mega-ic {
  transform: translateY(-2px);
}

.srst-mega-ic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srst-mega-ic--tile-white { background: #fff; }
.srst-mega-ic--tile-navy { background: #0a1f44; }

.srst-mega-ic--mark img {
  box-sizing: border-box;
  padding: 19%;
  object-fit: contain;
}

.srst-mega-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.srst-mega-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.srst-mega-list--more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 240, 255, 0.1);
}

.sr-header .sr-nav__list .sub-menu .srst-mega .srst-mega-list a,
.sr-drawer .srst-mega .srst-mega-list a {
  display: block;
  padding: 6px 0;
  color: rgba(234, 240, 255, 0.82);
  font-size: 15px;
  transition: color 0.2s ease;
}

.sr-header .sr-nav__list .sub-menu .srst-mega .srst-mega-list a:hover,
.sr-header .sr-nav__list .sub-menu .srst-mega .srst-mega-list a:focus-visible {
  color: #fff;
}

/* ---------------------------------------------------- The drawer card */

.sr-drawer .sr-drawer__list > li.srst-nav-top {
  margin-bottom: 8px;
}

.sr-drawer .sr-drawer__list > li.srst-nav-top > .sr-group {
  display: none;
}

.sr-drawer .sr-drawer__list > li.srst-nav-top > .sub-menu {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(127, 178, 255, 0.22);
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(77, 138, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #0b1640, #060b22);
}

.sr-drawer .sr-drawer__list > li.srst-nav-top > .sub-menu > li {
  display: block;
  padding: 0;
  border: 0;
}

.sr-drawer .srst-mega {
  grid-template-columns: 1fr;
}

.sr-drawer .srst-mega > div {
  padding: 20px 20px 4px;
}

.sr-drawer .srst-mega > div + div {
  border-left: 0;
}

.sr-drawer .srst-mega-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.sr-drawer .srst-mega-mark {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  margin: 0;
}

.sr-drawer .srst-mega-head {
  font-size: 20px;
  margin-top: 2px !important;
}

.sr-drawer .srst-mega-line {
  grid-column: 1 / -1;
}

.sr-drawer .srst-mega a.srst-mega-cta {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 14px;
}

.sr-drawer .srst-mega-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sr-drawer .srst-mega-cats {
  padding-bottom: 20px !important;
}

.sr-drawer .srst-mega-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .srst-cap-dot { animation: none; }
  .srst-mega-ic, .srst-mega-app, .srst-mega a { transition: none !important; }
}

/*
 * 1260 to 1439: the burger takes over below 1260, and the capsule costs the
 * bar about 150px, so between the two the other items give a little room
 * back rather than pushing "Book a demo" off the edge.
 */
@media (min-width: 1260px) and (max-width: 1439px) {
  .sr-header .sr-nav__list > li > a,
  .sr-header .sr-nav__list > li > .sr-group {
    padding-inline: 0.5rem;
  }
  .sr-header .sr-nav__list > li.srst-nav-top > .sr-group {
    padding-inline: 11px 13px;
  }
  .sr-header .sr-nav__list > li.srst-nav-top {
    margin-inline-end: 2px;
  }
  .srst-cap-dot {
    display: none;
  }
}

/*
 * 1260 to 1339: still about 80px short, so the capsule becomes a round navy
 * button carrying the mark alone. The name stays for screen readers, and the
 * panel it opens says Me Modules in full.
 */
@media (min-width: 1260px) and (max-width: 1339px) {
  .sr-header .sr-nav__list > li.srst-nav-top > .sr-group {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .srst-cap-mark {
    width: 20px;
    height: 20px;
  }
  .srst-cap-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
