/* ========================================
   LANDING PAGE PARALLAX OVERRIDE STYLES
   ======================================== */

/* CRITICAL: Section visibility control for parallax */
@media only screen and (min-width: 1050px) {
  
  /* Base state: All sections absolutely positioned and hidden */
  [data-hijacking="on"] .cd-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
  
  /* ONLY the visible section should be shown */
  [data-hijacking="on"] .cd-section.visible {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }
  
  /* Show inner div of visible section */
  [data-hijacking="on"] .cd-section.visible > div {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  /* Ensure inner divs of hidden sections are hidden */
  [data-hijacking="on"] .cd-section:not(.visible) > div {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* ========================================
   BODY AND WRAP-ALL POSITIONING
   ======================================== */

/* Landing page body */
body.path-node-296016 {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100vh !important;
}

/* Main wrapper */
body.path-node-296016 #wrap-all {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* First section positioning */
body.path-node-296016 .cd-section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ========================================
   HIDE DRUPAL DEFAULT ELEMENTS
   ======================================== */

body.path-node-296016 header,
body.path-node-296016 .header,
body.path-node-296016 #header,
body.path-node-296016 .region-header,
body.path-node-296016 footer,
body.path-node-296016 .footer,
body.path-node-296016 #footer,
body.path-node-296016 .breadcrumb,
body.path-node-296016 .region-primary-menu,
body.path-node-296016 .block-system-branding-block {
  display: none !important;
}

/* Keep admin toolbar visible but don't interfere with layout */
body.path-node-296016 .toolbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

body.path-node-296016 main,
body.path-node-296016 .main-content,
body.path-node-296016 #main-content {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  overflow: hidden !important;
}

/* ========================================
   NAVIGATION POSITIONING
   ======================================== */

.cd-vertical-nav {
  position: fixed !important;
  right: 40px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

/* ========================================
   PRELOADER POSITIONING
   ======================================== */

#preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  background: #000 !important;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media only screen and (max-width: 1049px) {
  /* On mobile/tablet, allow normal scroll */
  body.path-node-296016 {
    overflow-y: auto !important;
  }
  
  body.path-node-296016 #wrap-all {
    position: relative !important;
    height: auto !important;
  }
  
  body.path-node-296016 .cd-section {
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
