/* ==========================================
   ZAGABE OVERRIDES (FINAL CLEAN)
   - Mobile header + fullscreen mobile menu
   - Hero responsive fit
   - Floating particles across full site
   - Clean footer styling
   - White clean website look
   - Header/menu always clickable
========================================== */

/* =========================================================
   0) GLOBAL BASE
========================================================= */
body {
  background: #ffffff !important;
}

/* =========================================================
   1) HEADER: always above content + clickable
========================================================= */
#header.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(6px);
  overflow: visible !important;
}

#header .container {
  position: static !important;
}

#header .mobile-nav-toggle {
  position: relative !important;
  z-index: 1000002 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Prevent hero from sitting above header */
#hero,
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  position: relative !important;
  z-index: 1 !important;
}

/* Hero images should not steal taps */
#hero img {
  pointer-events: none !important;
}

/* =========================================================
   2) MOBILE HEADER + FINAL MOBILE MENU FIX
========================================================= */
@media (max-width: 1199px) {
  #header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #header .logo img {
    margin-right: 0 !important;
    max-height: 54px !important;
    height: auto !important;
    width: auto !important;
  }

  /* hide desktop socials + CTA until menu opens */
  #header .header-social-links,
  #header .btn-getstarted {
    display: none !important;
  }

  #header #navmenu {
    margin-left: auto !important;
    position: static !important;
  }

  /* FULLSCREEN DARK OVERLAY */
  body.mobile-nav-active #navmenu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(33, 37, 41, 0.82) !important;
    z-index: 1000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* WHITE MENU PANEL */
  body.mobile-nav-active #navmenu > ul {
    display: block !important;
    position: fixed !important;
    top: 72px !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    margin: 0 !important;
    padding: 18px 0 170px 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
    z-index: 1000001 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
  }

  /* top-level links */
  body.mobile-nav-active #navmenu > ul > li,
  body.mobile-nav-active #navmenu .dropdown ul li {
    display: block !important;
    width: 100% !important;
  }

  body.mobile-nav-active #navmenu a,
  body.mobile-nav-active #navmenu a:focus {
    display: flex !important;
    width: 100% !important;
    padding: 14px 22px !important;
    color: #444444 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
  }

  body.mobile-nav-active #navmenu a:hover,
  body.mobile-nav-active #navmenu .active,
  body.mobile-nav-active #navmenu .active:focus {
    color: #0160a1 !important;
  }

  /* dropdown panel */
  body.mobile-nav-active #navmenu .dropdown ul {
    position: static !important;
    display: none !important;
    margin: 6px 16px 10px 16px !important;
    padding: 8px 0 !important;
    background: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body.mobile-nav-active #navmenu .dropdown > .dropdown-active {
    display: block !important;
  }

  body.mobile-nav-active #navmenu .dropdown ul li a {
    font-size: 15px !important;
    padding: 10px 18px !important;
  }

  /* CTA at bottom of overlay */
  body.mobile-nav-active #header .btn-getstarted {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 95px !important;
    z-index: 1000003 !important;
    width: calc(100% - 80px) !important;
    max-width: 360px !important;
    margin: 0 !important;
  }

  /* socials at bottom of overlay */
  body.mobile-nav-active #header .header-social-links {
    display: flex !important;
    position: fixed !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 35px !important;
    z-index: 1000003 !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  body.mobile-nav-active #header .header-social-links a {
    padding-left: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  }

  /* close icon color */
  body.mobile-nav-active #header .mobile-nav-toggle {
    color: #ffffff !important;
  }
}

/* =========================================================
   3) HERO: desktop/tablet sizing
========================================================= */
#hero.hero {
  padding: 0 !important;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  height: clamp(420px, 70vh, 720px);
}

@media (max-width: 992px) {
  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item {
    height: clamp(360px, 60vh, 620px);
  }
}

#hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   4) HERO MOBILE: full banner visible
========================================================= */
@media (max-width: 768px) {
  #hero,
  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item {
    height: auto !important;
    min-height: 0 !important;
  }

  #hero .carousel-item img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
    display: block !important;
  }

  body.index-page section,
  body.index-page .section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  body.index-page #hero.section {
    padding: 0 !important;
  }

  body.index-page #about.section {
    padding-top: 18px !important;
  }
}

/* =========================================================
   5) PRELOADER: must not block clicks
========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.preloader.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader.hide * {
  pointer-events: none !important;
}

/* =========================================================
   6) GLOBAL FLOATING PARTICLES BACKGROUND
========================================================= */
#particles-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1 !important;
  pointer-events: none;
  opacity: 1 !important;
}

/* Keep real content above particles */
#header,
main,
footer,
section,
.section,
#scroll-top,
#samuella-launcher,
#samuella-widget {
  position: relative;
  z-index: 2;
}

/* Let particles show through more clearly */
main,
section,
.section {
  background: rgba(255, 255, 255, 0.60) !important;
}

/* Hero also slightly transparent */
#hero.dark-background {
  background: rgba(255, 255, 255, 0.60) !important;
}

/* =========================================================
   7) FOOTER STYLING
========================================================= */
#footer,
footer.footer {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #444444 !important;
  backdrop-filter: blur(4px);
}

#footer .footer-top {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

#footer h4,
#footer .footer-about .logo span,
#footer .footer-contact strong,
#footer .copyright,
#footer .copyright p,
#footer .credits {
  color: #111111 !important;
}

#footer p,
#footer a,
#footer li,
#footer span {
  color: #444444 !important;
}

#footer a:hover {
  color: #0160a1 !important;
}

#footer .social-links a {
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  color: #444444 !important;
  background: transparent !important;
}

#footer .social-links a:hover {
  color: #0160a1 !important;
  border-color: #0160a1 !important;
}

/* Newsletter styling */
#footer .newsletter-form {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

#footer .newsletter-form input[type=email] {
  background: transparent !important;
  color: #444444 !important;
}

#footer .newsletter-form input[type=submit] {
  background: #0160a1 !important;
  color: #ffffff !important;
}

/* =========================================================
   8) SCROLL TOP BUTTON
========================================================= */
#scroll-top,
.scroll-top {
  position: fixed !important;
  right: 18px !important;
  left: auto !important;
  bottom: 22px !important;
  z-index: 999999 !important;
}

@media (max-width: 768px) {
  #scroll-top,
  .scroll-top {
    right: 14px !important;
    bottom: 18px !important;
  }
}