/* Telepresenz — header + mega-menu navigation */

.tp-nav-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
}

/* Brand + tagline */
.tp-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.tp-brand-logo { height: 62px; width: auto; display: block; }
.tp-brand-tag { font-size: 0.6rem; letter-spacing: 0.02em; color: var(--wp--preset--color--muted); margin-top: 3px; }

/* Top-level list */
.tp-menu-list { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.tp-menu-list > li { position: static; }
.tp-top {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #1e293b; font-weight: 500; text-decoration: none;
  padding: 0.55rem 1.15rem; font-size: 1.05rem; cursor: pointer;
  border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.tp-top:hover,
.tp-has-mega:hover > .tp-top,
.tp-top.tp-active {
  color: var(--wp--preset--color--primary);
  background: rgba(139, 92, 246, 0.1);
}
.tp-caret { font-size: 0.65rem; transition: transform 0.2s ease; }
.tp-has-mega:hover .tp-caret { transform: rotate(180deg); }

/* CTA button */
.tp-cta-btn,
.tp-nav .tp-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1;
  font-size: 1rem;
  padding: 0.9rem 2.1rem;
  border: 0;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.tp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  color: #fff !important;
  text-decoration: none !important;
}

/* Drops sub-site teal CTA */
.tp-nav-drops .tp-cta-btn { background: linear-gradient(135deg, #00c9b1, #00a896); box-shadow: 0 4px 15px rgba(0, 201, 177, 0.3); }
.tp-nav-drops .tp-menu-list > li > a:hover { color: #00a896; }
/* Neutralize the Drops legacy stylesheet's bare `nav {position:fixed;...}` bleeding into our header nav. */
.tp-nav-drops nav.tp-menu {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
  z-index: auto !important;
}

/* SmartOPS sub-site (site 3): sky-blue accent, orange CTA */
.tp-nav-smartops .tp-cta-btn { background: linear-gradient(135deg, #f06414, #d6560e); box-shadow: 0 4px 15px rgba(240, 100, 20, 0.3); }
.tp-nav-smartops .tp-menu-list > li > a:hover { color: #0284c7; }
/* Neutralize remote-assistance.css bare `nav {position:fixed;...}` bleeding into our header nav. */
.tp-nav-smartops nav.tp-menu {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
  z-index: auto !important;
}

/* Mega panel */
/* Anchored to the nav container (not the item) + aligned to its right edge,
   so wide panels never run off-screen. */
.tp-mega {
  position: absolute; top: calc(100% + 12px); right: 0; left: auto;
  width: min(760px, calc(100vw - 3rem));
  background: #fff; border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px; box-shadow: 0 24px 48px rgba(99, 102, 241, 0.18);
  overflow: hidden; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* invisible hover bridge across the gap between the bar and the panel */
.tp-mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.tp-mega--right { left: auto; right: 0; }
.tp-has-mega:hover .tp-mega { opacity: 1; visibility: visible; transform: translateY(0); }

.tp-mega-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; color: #fff; }
.tp-mega-head h4 { color: #fff; margin: 0; font-size: 1.05rem; }
.tp-mega-head p { color: rgba(255, 255, 255, 0.9); margin: 0.15rem 0 0; font-size: 0.85rem; }
.tp-badge { background: rgba(255, 255, 255, 0.22); color: #fff; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; }

.tp-mega-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.tp-mega-main { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.tp-mega-grouptitle { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--muted); font-weight: 700; margin: 0.5rem 0.75rem 0.15rem; }
.tp-mega-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0.75rem; border-radius: 10px; text-decoration: none; transition: background 0.15s ease; }
.tp-mega-item:hover { background: var(--wp--preset--color--light); }
.tp-mega-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--wp--preset--color--light); font-size: 1.05rem; flex-shrink: 0; }
.tp-mega-txt strong { display: block; color: var(--wp--preset--color--heading); font-weight: 600; font-size: 0.95rem; }
.tp-mega-txt em { display: block; color: var(--wp--preset--color--muted); font-size: 0.82rem; font-style: normal; line-height: 1.35; }

.tp-mega-side { background: var(--wp--preset--color--gray-50); border-left: 1px solid var(--wp--preset--color--border); padding: 1.15rem; }
.tp-mega-side h5 { margin: 0 0 0.7rem; font-size: 0.95rem; }
.tp-side-bullets { list-style: none; padding: 0; margin: 0 0 1rem; }
.tp-side-bullets li { position: relative; padding-left: 1.4rem; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--wp--preset--color--text); }
.tp-side-bullets li::before { content: "\2713"; position: absolute; left: 0; color: var(--wp--preset--color--success); font-weight: 700; }
.tp-side-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.tp-btn-grad { color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; font-size: 0.88rem; }
.tp-btn-out { border: 1.5px solid; padding: 0.55rem 1rem; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; font-size: 0.88rem; background: #fff; }

/* Hamburger (hidden on desktop) */
.tp-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.tp-burger span { width: 26px; height: 2px; background: #1e293b; border-radius: 2px; transition: 0.25s; }
.tp-burger.tp-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-burger.tp-open span:nth-child(2) { opacity: 0; }
.tp-burger.tp-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile (<=1024px) ---- */
@media (max-width: 1024px) {
  .tp-burger { display: flex; }
  .tp-menu {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.28s ease;
    padding: 1rem 1.25rem 3rem; z-index: 300;
  }
  .tp-menu.tp-open { transform: translateX(0); }
  .tp-menu-list { flex-direction: column; align-items: stretch; gap: 0; }
  .tp-menu-list > li { border-bottom: 1px solid var(--wp--preset--color--border); }
  .tp-top, .tp-menu-list > li > a { justify-content: space-between; padding: 0.9rem 0; font-size: 1.05rem; }
  .tp-cta-li { border-bottom: 0 !important; margin-top: 1rem; }
  .tp-cta-btn { display: block; text-align: center; }

  .tp-mega {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .tp-has-mega.tp-open .tp-mega { max-height: 1600px; }
  .tp-has-mega:hover .tp-mega { opacity: 1; } /* hover no-op on mobile */
  .tp-mega-body { grid-template-columns: 1fr; }
  .tp-mega-side { border-left: 0; border-top: 1px solid var(--wp--preset--color--border); }
  .tp-has-mega:hover .tp-caret { transform: none; }
  .tp-has-mega.tp-open .tp-caret { transform: rotate(180deg); }
}
