/* ============================================================
   Solace Technologies - shared shell ribbon
   Sits above each product page so users can switch between Iris
   (Waste & Vision) and Solace Stay (Hospitality) and get back
   to the parent landing.
   ============================================================ */

:root {
  --shell-bg: rgba(5, 10, 19, 0.82);
  --shell-line: rgba(255, 255, 255, 0.08);
  --shell-text: #e6edf6;
  --shell-dim: #9bb0c8;
  --shell-green: #34d399;
  --shell-cyan: #38bdf8;
  --shell-gradient: linear-gradient(120deg, #34d399 0%, #38bdf8 100%);
  --shell-h: 56px;
}

.solace-shell,
.solace-shell * { box-sizing: border-box; }

.solace-shell {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--shell-h);
  z-index: 80;
  background: var(--shell-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--shell-line);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--shell-text);
}
.solace-shell-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(14px, 2.4vw, 28px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--shell-text);
  margin-right: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 200ms ease;
}
.shell-brand:hover { opacity: 0.86; }
.shell-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #06111e;
  background: var(--shell-gradient);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.32);
}
.shell-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}
.shell-name { line-height: 1; white-space: nowrap; }

/* Brand suffix label - "Iris", "Stay", etc.
   Sits to the right of the Solace logo on product pages. The whole
   .shell-brand still links to the parent landing page. */
.shell-brand-suffix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--shell-text);
  white-space: nowrap;
}
.shell-brand-suffix::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--shell-line);
}

.shell-products {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--shell-line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.shell-product {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--shell-dim);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.shell-product:hover { color: var(--shell-text); background: rgba(255, 255, 255, 0.06); }
.shell-product .shell-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-dim);
}
.shell-product:hover .shell-tag { color: var(--shell-text); }

body.active-iris .shell-product[data-product="iris"],
body.active-hospitality .shell-product[data-product="hospitality"],
body.active-home .shell-product.is-current {
  color: #06111e;
  background: var(--shell-gradient);
}
body.active-iris .shell-product[data-product="iris"] .shell-tag,
body.active-hospitality .shell-product[data-product="hospitality"] .shell-tag {
  color: rgba(6, 17, 30, 0.75);
}

.shell-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--shell-dim);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, filter 160ms ease;
  white-space: nowrap;
}
.shell-cta:hover,
.shell-cta:focus-visible {
  color: var(--shell-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--shell-line);
  outline: none;
}

/* "Book a demo" variant - the one primary CTA, always visible */
.shell-cta-demo {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #06111e;
  background: var(--shell-gradient);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.30);
}
.shell-cta-demo:hover,
.shell-cta-demo:focus-visible {
  color: #06111e;
  background: var(--shell-gradient);
  border-color: transparent;
  filter: brightness(1.1);
}

/* ----- Visible ribbon links (desktop) ----- */
.shell-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}
.shell-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--shell-dim);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.shell-links a:hover,
.shell-links a:focus-visible {
  color: var(--shell-text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.shell-links a.is-current {
  color: var(--shell-text);
  background: rgba(52, 211, 153, 0.14);
}

/* Page padding/offsets so existing per-page nav doesn't sit under the shell */
body.solace-shell-pad { padding-top: var(--shell-h); }
body.solace-shell-pad .site-header { top: calc(14px + var(--shell-h)); }
body.solace-shell-pad .topnav { top: var(--shell-h); }

/* ============================================================
   SMART MENU TRIGGER (in the shell ribbon)
   ============================================================ */
.shell-menu-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--shell-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--shell-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.shell-menu-trigger:hover,
.shell-menu-trigger:focus-visible {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.40);
  color: var(--shell-text);
  outline: none;
}
.shell-menu-trigger-text { line-height: 1; }
.shell-menu-trigger-icon {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
}
.shell-menu-trigger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), top 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shell-menu-trigger-icon span:nth-child(1) { top: 3px; }
.shell-menu-trigger-icon span:nth-child(2) { top: 8px; }
.shell-menu-trigger.is-open .shell-menu-trigger-icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.shell-menu-trigger.is-open .shell-menu-trigger-icon span:nth-child(2) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ============================================================
   MEGA MENU OVERLAY
   ============================================================ */
.shell-mega {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shell-mega.is-open {
  opacity: 1;
  pointer-events: auto;
}
.shell-mega[hidden] { display: none; }

.shell-mega-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 800px at 75% 15%, rgba(52, 211, 153, 0.18) 0%, transparent 60%),
    radial-gradient(900px 700px at 15% 85%, rgba(167, 139, 250, 0.18) 0%, transparent 60%),
    rgba(2, 8, 16, 0.86);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.shell-mega-panel {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 9vh, 110px) clamp(20px, 4vw, 60px) clamp(40px, 6vh, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 50px);
  overflow-y: auto;
  transform: translateY(-12px);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--shell-text);
}
.shell-mega.is-open .shell-mega-panel {
  transform: translateY(0);
}

.shell-mega-head {
  position: relative;
  display: grid;
  gap: 6px;
}
.shell-mega-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell-green);
}
.shell-mega-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--shell-text);
}
.shell-mega-close {
  position: absolute;
  top: -10px;
  right: 0;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--shell-line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--shell-text);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shell-mega-close svg { width: 18px; height: 18px; }
.shell-mega-close:hover,
.shell-mega-close:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transform: rotate(90deg);
  outline: none;
}

.shell-mega-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.shell-mega-col { display: flex; flex-direction: column; gap: 18px; }
.shell-mega-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--shell-dim);
}

/* ----- Brand cards in the mega menu ----- */
.shell-mega-brand {
  position: relative;
  padding: 24px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--shell-line);
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: var(--shell-text);
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, background 240ms ease;
}
.shell-mega-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  transition: opacity 280ms ease;
}
.shell-mega-brand-iris::before {
  background: radial-gradient(420px 220px at 95% 0%, rgba(52, 211, 153, 0.40) 0%, transparent 65%),
    radial-gradient(360px 200px at 0% 100%, rgba(56, 189, 248, 0.28) 0%, transparent 65%);
}
.shell-mega-brand-stay::before {
  background: radial-gradient(420px 220px at 5% 0%, rgba(167, 139, 250, 0.40) 0%, transparent 65%),
    radial-gradient(360px 200px at 100% 100%, rgba(56, 189, 248, 0.28) 0%, transparent 65%);
}
.shell-mega-brand-controls::before {
  background: radial-gradient(420px 220px at 95% 0%, rgba(56, 189, 248, 0.40) 0%, transparent 65%),
    radial-gradient(360px 200px at 0% 100%, rgba(34, 211, 238, 0.28) 0%, transparent 65%);
}
.shell-mega-brand:hover,
.shell-mega-brand:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.shell-mega-brand:hover::before,
.shell-mega-brand:focus-visible::before { opacity: 0.75; }
.shell-mega-brand.is-current {
  border-color: rgba(52, 211, 153, 0.50);
}

.shell-mega-brand-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.shell-mega-brand-iris .shell-mega-brand-num { color: #34d399; }
.shell-mega-brand-stay .shell-mega-brand-num { color: #c4b5fd; }
.shell-mega-brand-controls .shell-mega-brand-num { color: #38bdf8; }

.shell-mega-brand strong {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.shell-mega-brand-tag {
  font-size: 13.5px;
  color: var(--shell-dim);
  line-height: 1.45;
}
.shell-mega-brand-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell-text);
}
.shell-mega-brand-link .shell-mega-arrow {
  width: 14px;
  height: 14px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shell-mega-brand:hover .shell-mega-brand-link .shell-mega-arrow,
.shell-mega-brand:focus-visible .shell-mega-brand-link .shell-mega-arrow {
  transform: translateX(4px);
}

/* ----- Vertical groups in the mega menu (Hardware / Software / Data Science & AI) ----- */
.shell-mega-col-caps { gap: 14px; }
.shell-mega-vert {
  position: relative;
  padding: 14px 16px 8px;
  border-radius: 14px;
  border: 1px solid var(--shell-line);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shell-mega-vert + .shell-mega-vert { margin-top: 4px; }
.shell-mega-vert-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--shell-dim);
}
.shell-mega-vert-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--shell-text);
  margin-bottom: 2px;
}
.shell-mega-vert .shell-mega-list a {
  padding: 9px 4px;
  grid-template-columns: 28px 1fr 16px;
  gap: 10px;
}
.shell-mega-vert .shell-mega-label { font-size: 13.5px; }
.shell-mega-vert .shell-mega-num { font-size: 10.5px; }
.shell-mega-vert .shell-mega-list .shell-mega-arrow { width: 14px; height: 14px; }

/* ----- Capability and company list ----- */
.shell-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.shell-mega-list li {
  border-bottom: 1px solid var(--shell-line);
}
.shell-mega-list li:last-child { border-bottom: 0; }
.shell-mega-list a {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--shell-text);
  transition: color 200ms ease, padding 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shell-mega-list-plain a { grid-template-columns: 1fr 18px; }
.shell-mega-list a:hover,
.shell-mega-list a:focus-visible {
  outline: none;
  padding-left: 12px;
}
.shell-mega-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--shell-dim);
}
.shell-mega-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.shell-mega-list .shell-mega-arrow {
  width: 16px;
  height: 16px;
  color: var(--shell-dim);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
}
.shell-mega-list a:hover .shell-mega-arrow,
.shell-mega-list a:focus-visible .shell-mega-arrow {
  transform: translateX(4px);
  color: var(--shell-green);
}
.shell-mega-list li.is-current a {
  color: var(--shell-text);
}
.shell-mega-list li.is-current .shell-mega-num,
.shell-mega-list li.is-current .shell-mega-label {
  color: var(--shell-green);
}

/* ----- Discover scan block (priority CTA in company column) ----- */
.shell-mega-scan {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(56, 189, 248, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(52, 211, 153, 0.10), rgba(52, 211, 153, 0.03));
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.shell-mega-scan-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--shell-green);
  font-weight: 800;
}
.shell-mega-scan-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--shell-dim);
  line-height: 1.5;
}

/* ----- Contact block in company column ----- */
.shell-mega-contact {
  margin-top: 10px;
  display: grid;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--shell-line);
}
.shell-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--shell-text);
  text-decoration: none;
  transition: gap 240ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
  word-break: break-all;
}
.shell-mega-cta .shell-mega-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shell-mega-cta:hover,
.shell-mega-cta:focus-visible {
  outline: none;
  gap: 12px;
  color: var(--shell-green);
}
.shell-mega-cta:hover .shell-mega-arrow,
.shell-mega-cta:focus-visible .shell-mega-arrow {
  transform: translateX(3px);
}
.shell-mega-address {
  margin: 0;
  font-size: 12.5px;
  color: var(--shell-dim);
  line-height: 1.5;
}

/* ----- Body lock when menu is open ----- */
body.shell-menu-open { overflow: hidden; }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .shell-mega-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shell-mega-col-co { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .shell-links { display: none; }
}
@media (max-width: 720px) {
  .shell-name { display: none; }
  .shell-brand-suffix { font-size: 12.5px; padding-left: 10px; gap: 6px; }
  .shell-brand-suffix::before { height: 16px; }
  .shell-product { padding: 5px 10px; font-size: 12px; }
  .shell-cta { padding: 4px 10px; font-size: 11.5px; }
  .shell-cta-demo { padding: 6px 13px; font-size: 12px; }
  .shell-menu-trigger-text { display: none; }
  .shell-menu-trigger { padding: 0; width: 36px; height: 36px; justify-content: center; gap: 0; }
  .shell-mega-grid { grid-template-columns: 1fr; gap: 28px; }
  .shell-mega-col-co { grid-column: auto; }
  .shell-mega-panel { padding: clamp(70px, 9vh, 90px) 18px 28px; }
  .shell-mega-close { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  /* Keep the primary CTA visible on the smallest screens; shrink instead of hiding. */
  .shell-cta { padding: 5px 11px; font-size: 11px; }
  .shell-logo { height: 26px; max-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .shell-mega,
  .shell-mega-panel,
  .shell-mega-brand,
  .shell-mega-list a,
  .shell-mega-list .shell-mega-arrow,
  .shell-menu-trigger-icon span {
    transition: none !important;
  }
  .shell-mega-close:hover { transform: none; }
}
