/*
 * Den-SHOW Stability Layer v0.7.2
 * Final safety overrides for critical UI only.
 * Purpose: restore visible six hero trails, mobile menu interaction,
 * safe watermark on light canvas, and business CTA spacing.
 */

/* ---------- Hero Light Trails: visible six real lines ---------- */
body.denshow-theme .ds-hero-v23,
body.denshow-theme .ds-business-hero{
  position:relative !important;
  overflow:hidden !important;
  isolation:isolate !important;
}

body.denshow-theme .ds-hero-v23 .ds-hero-light-trails,
body.denshow-theme .ds-business-hero .ds-hero-light-trails{
  display:block !important;
  visibility:visible !important;
  position:absolute !important;
  inset:0 !important;
  z-index:6 !important;
  pointer-events:none !important;
  overflow:hidden !important;
  opacity:1 !important;
  mix-blend-mode:screen !important;
}

body.denshow-theme .ds-hero-v23 .ds-hero-light-trail,
body.denshow-theme .ds-business-hero .ds-hero-light-trail{
  display:block !important;
  visibility:visible !important;
  position:absolute !important;
  left:-72vw !important;
  height:1px !important;
  min-height:1px !important;
  border-radius:999px !important;
  opacity:.38 !important;
  background:linear-gradient(90deg, transparent 0%, rgba(116,230,92,.10) 16%, rgba(255,255,255,.90) 48%, rgba(116,230,92,.26) 72%, transparent 100%) !important;
  box-shadow:0 0 16px rgba(116,230,92,.38), 0 0 42px rgba(116,230,92,.20) !important;
  filter:blur(.55px) !important;
  transform:translate3d(0,0,0) !important;
  animation-name:ds-v072-trail-horizontal !important;
  animation-timing-function:linear !important;
  animation-iteration-count:infinite !important;
  will-change:transform !important;
}

body.denshow-theme .ds-page--place .ds-business-hero .ds-hero-light-trail{
  background:linear-gradient(90deg, transparent 0%, rgba(201,174,114,.10) 16%, rgba(255,255,255,.92) 48%, rgba(201,174,114,.30) 72%, transparent 100%) !important;
  box-shadow:0 0 16px rgba(201,174,114,.38), 0 0 42px rgba(201,174,114,.22) !important;
}

body.denshow-theme .ds-hero-v23 .ds-hero-light-trail::after,
body.denshow-theme .ds-business-hero .ds-hero-light-trail::after{
  content:"" !important;
  position:absolute !important;
  right:42% !important;
  top:50% !important;
  width:5px !important;
  height:5px !important;
  border-radius:50% !important;
  transform:translate(50%,-50%) !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 0 14px rgba(255,255,255,.72), 0 0 28px currentColor !important;
}

body.denshow-theme .ds-hero-light-trail--one{top:22% !important;width:38vw !important;animation-duration:9.2s !important;animation-delay:-7.4s !important;}
body.denshow-theme .ds-hero-light-trail--two{top:32% !important;width:54vw !important;animation-duration:10.8s !important;animation-delay:-2.0s !important;}
body.denshow-theme .ds-hero-light-trail--three{top:45% !important;width:42vw !important;animation-duration:8.8s !important;animation-delay:-5.7s !important;}
body.denshow-theme .ds-hero-light-trail--four{top:57% !important;width:62vw !important;animation-duration:11.6s !important;animation-delay:-8.9s !important;}
body.denshow-theme .ds-hero-light-trail--five{top:69% !important;width:46vw !important;animation-duration:10.2s !important;animation-delay:-1.1s !important;}
body.denshow-theme .ds-hero-light-trail--six{top:79% !important;width:58vw !important;animation-duration:9.8s !important;animation-delay:-4.6s !important;}

@keyframes ds-v072-trail-horizontal{
  from{transform:translate3d(0,0,0) !important;}
  to{transform:translate3d(190vw,0,0) !important;}
}

/* ---------- Mobile Menu: reliable click and open state ---------- */
@media (max-width:900px){
  body.denshow-theme .ds-floating-nav{
    z-index:1000 !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }

  body.denshow-theme .ds-mobile-menu-toggle{
    position:relative !important;
    z-index:1002 !important;
    display:inline-flex !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    touch-action:manipulation !important;
    -webkit-tap-highlight-color:transparent !important;
  }

  body.denshow-theme .ds-floating-nav .ds-nav-links{
    position:absolute !important;
    top:calc(100% + 10px) !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-height:0 !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    overflow:hidden !important;
    transform:translateY(-8px) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }

  body.denshow-theme .ds-floating-nav.is-menu-open .ds-nav-links,
  body.denshow-theme .ds-floating-nav .ds-nav-links.is-open{
    max-height:calc(100dvh - 96px) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    overflow-y:auto !important;
    transform:translateY(0) !important;
  }

  body.denshow-theme .ds-nav-dropdown__menu{
    position:static !important;
    display:none !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    pointer-events:auto !important;
  }

  body.denshow-theme .ds-nav-dropdown.is-submenu-open .ds-nav-dropdown__menu{
    display:block !important;
  }
}

/* ---------- Safe watermark: light background only ---------- */
body.denshow-theme .ds-section,
body.denshow-theme .ds-business-section{
  position:relative !important;
  overflow:hidden !important;
  isolation:isolate !important;
}

body.denshow-theme .ds-section-watermark{
  position:absolute !important;
  inset:auto 0 -2% 0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  user-select:none !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  height:100% !important;
  max-height:100% !important;
  overflow:hidden !important;
  font-family:var(--ds-serif, serif) !important;
  font-size:clamp(96px, 18vw, 300px) !important;
  font-weight:700 !important;
  line-height:.75 !important;
  letter-spacing:-.08em !important;
  white-space:nowrap !important;
  opacity:.42 !important;
  color:rgba(22,32,22,.040) !important;
  mix-blend-mode:multiply !important;
}

body.denshow-theme .ds-business-future > .ds-section-watermark,
body.denshow-theme .ds-business-cta > .ds-section-watermark,
body.denshow-theme .ds-commerce-brands > .ds-section-watermark,
body.denshow-theme .ds-business-hero .ds-section-watermark{
  display:none !important;
}

body.denshow-theme .ds-section > .ds-container,
body.denshow-theme .ds-business-section > .ds-container{
  position:relative !important;
  z-index:2 !important;
}

/* ---------- Place / Commerce: more space before bottom Contact ---------- */
body.denshow-theme .ds-page--place .ds-business-cta,
body.denshow-theme .ds-page--commerce .ds-business-cta{
  padding-top:clamp(132px, 11vw, 184px) !important;
}

@media (max-width:760px){
  body.denshow-theme .ds-hero-v23 .ds-hero-light-trail,
  body.denshow-theme .ds-business-hero .ds-hero-light-trail{
    left:-88vw !important;
  }
  body.denshow-theme .ds-hero-light-trail--one{top:24% !important;width:72vw !important;}
  body.denshow-theme .ds-hero-light-trail--two{top:34% !important;width:84vw !important;}
  body.denshow-theme .ds-hero-light-trail--three{top:46% !important;width:70vw !important;}
  body.denshow-theme .ds-hero-light-trail--four{top:58% !important;width:82vw !important;display:block !important;}
  body.denshow-theme .ds-hero-light-trail--five{top:70% !important;width:68vw !important;display:block !important;}
  body.denshow-theme .ds-hero-light-trail--six{top:80% !important;width:78vw !important;display:block !important;}

  body.denshow-theme .ds-section-watermark{
    font-size:clamp(72px, 26vw, 150px) !important;
    opacity:.30 !important;
  }

  body.denshow-theme .ds-page--place .ds-business-cta,
  body.denshow-theme .ds-page--commerce .ds-business-cta{
    padding-top:104px !important;
  }
}
