
/* ============================================
   TCS-STYLE MEGA MENU
   ============================================ */
.lp-mega {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--lp-z-fixed) - 1);
  pointer-events: none;
}

.lp-mega.lp-mega--open {
  pointer-events: auto;
}

.lp-mega__panel {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 36, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.lp-mega__panel--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lp-mega__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: var(--lp-container-wide);
  margin: 0 auto;
  min-height: 400px;
}

.lp-mega__sidebar {
  padding: 48px 40px 48px 48px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.lp-mega__heading {
  font-family: var(--lp-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--lp-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.lp-mega__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 28px;
}

.lp-mega__categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.lp-mega__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-family: var(--lp-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--lp-transition-fast);
  text-align: left;
  width: 100%;
}

.lp-mega__cat:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lp-mega__cat:hover {
  color: var(--lp-white);
  background: rgba(255,255,255,0.04);
}

.lp-mega__cat--active {
  color: var(--lp-white);
  background: rgba(255,255,255,0.06);
  border-bottom-color: var(--lp-red);
}

.lp-mega__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lp-white);
  transition: var(--lp-transition-fast);
}

.lp-mega__cta-link:hover {
  color: var(--lp-red-light);
}

.lp-mega__content {
  padding: 48px 48px 48px 40px;
}

.lp-mega__tab {
  display: none;
}

.lp-mega__tab--active {
  display: block;
}

.lp-mega__links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.lp-mega__links-grid a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  border-radius: var(--lp-radius-sm);
  transition: var(--lp-transition-fast);
}

.lp-mega__links-grid a:hover {
  color: var(--lp-white);
  background: rgba(255,255,255,0.06);
}

.lp-mega__simple-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-mega__simple-links a {
  display: block;
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--lp-transition-fast);
}

.lp-mega__simple-links a:hover {
  color: var(--lp-white);
  background: rgba(255,255,255,0.04);
}

/* Active nav link indicator */
.lp-nav__link[aria-expanded="true"] {
  color: var(--lp-white) !important;
}

.lp-nav__link[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--lp-red);
}

.lp-nav__item--mega {
  position: relative;
}

.lp-nav__item--mega .lp-nav__link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--lp-font-body);
  position: relative;
}

/* Click-outside overlay */
.lp-mega__backdrop {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: none;
}

.lp-mega--open .lp-mega__backdrop {
  display: block;
}

/* ============================================
   HEADER FIXES
   ============================================ */
.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--lp-gutter);
  height: 72px;
  max-width: var(--lp-container-wide);
  margin: 0 auto;
}

.lp-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-header__cta {
  margin-left: 16px;
}

.lp-header--scrolled {
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ============================================
   MOBILE MENU (Full Redesign)
   ============================================ */
.lp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: calc(var(--lp-z-fixed) + 1);
}

.lp-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lp-white);
  margin: 5px 0;
  transition: var(--lp-transition);
  border-radius: 1px;
}

.lp-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 22, 40, 0.99);
  backdrop-filter: blur(20px);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}

.lp-mobile-menu--open {
  right: 0;
}

.lp-mobile-menu__inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lp-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lp-mobile-menu__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--lp-radius-sm);
  transition: var(--lp-transition-fast);
}

.lp-mobile-menu__close:hover {
  color: var(--lp-white);
  background: rgba(255,255,255,0.08);
}

.lp-mobile-nav {
  flex: 1;
}

.lp-mobile-nav__group {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lp-mobile-nav__link,
.lp-mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  font-weight: 500;
  font-family: var(--lp-font-body);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: var(--lp-transition-fast);
}

.lp-mobile-nav__link:hover,
.lp-mobile-nav__toggle:hover {
  color: var(--lp-white);
}

.lp-mobile-nav__toggle svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.lp-mobile-nav__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lp-mobile-nav__dropdown {
  display: none;
  padding: 0 4px 16px;
}

.lp-mobile-nav__dropdown.open {
  display: block;
}

.lp-mobile-nav__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lp-red-light);
  padding: 8px 0 4px;
}

.lp-mobile-nav__dropdown a {
  display: block;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: var(--lp-transition-fast);
}

.lp-mobile-nav__dropdown a:hover {
  color: var(--lp-white);
}

.lp-mobile-menu__cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lp-mobile-menu__info {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-mobile-menu__info a {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  text-decoration: none;
}

/* Mobile overlay background */
.lp-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--lp-transition);
}

.lp-mobile-overlay--open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 1024px) {
  .lp-header__nav { display: none; }
  .lp-mobile-toggle { display: block; }
  .lp-mega { display: none; }
}

@media (max-width: 768px) {
  .lp-header__inner { height: 64px; }
  .lp-header__logo-text { font-size: 0.9375rem; }
}

/* ============================================
   FLOATING SECTION NAVIGATOR
   ============================================ */
.lp-section-nav {
  position: sticky;
  top: 72px;
  z-index: var(--lp-z-sticky);
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease;
}

.lp-section-nav--shadow {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.lp-section-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lp-section-nav__inner::-webkit-scrollbar {
  display: none;
}

.lp-section-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lp-section-nav__link:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.04);
}

.lp-section-nav__link--active {
  color: var(--lp-white);
  border-bottom-color: var(--lp-red);
}

@media (max-width: 768px) {
  .lp-section-nav { top: 64px; }
  .lp-section-nav__link { padding: 14px 16px; font-size: 0.8125rem; }
}



/* ============================================================
   LP STUDIO ARCHITECTURE V7 OVERRIDES
   ============================================================ */
.lp-mega__inner {
  max-width: none !important;
  width: 100%;
}

.lp-mega__content,
.lp-mega__sidebar {
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}

.lp-mega__links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1400px) {
  .lp-mega__links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
