/* ==========================================================================
   Header Navigation Bar - Custom Engineering (Desktop, Tablet & Mobile)
   ========================================================================== */

html, body {
  overflow-x: hidden !important;
}

/* Header Fixed Container */
.framer-1fz6imn-container {
  z-index: 99999 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header.framer-kLFMT {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 1. At Top of Hero on Homepage (scrollY <= 40): Transparent */
.has-hero-top header.framer-kLFMT:not(.scrolled):not(.framer-v-1ipduzx):not(.framer-v-wru67x):not(.framer-v-1z0sf8u):not(.framer-v-16g2goj):not(.framer-v-1pecqqy):not(.mobile-menu-open) {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid transparent !important;
}

/* Text shadow ONLY when at top of hero over dark hero image */
.has-hero-top header.framer-kLFMT:not(.scrolled):not(.framer-v-1ipduzx):not(.framer-v-wru67x):not(.framer-v-1z0sf8u):not(.framer-v-16g2goj):not(.framer-v-1pecqqy):not(.mobile-menu-open) .framer-8fs7ge .framer-text {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 10px rgba(255, 255, 255, 0.85) !important;
}

/* 2. When Scrolled Down Past Hero (Desktop, Tablet & Mobile): Crisp White Background with Drop Shadow */
header.framer-kLFMT.scrolled,
.framer-1fz6imn-container.scrolled header.framer-kLFMT,
header.framer-kLFMT.framer-v-1ipduzx,
header.framer-kLFMT.framer-v-wru67x,
header.framer-kLFMT.framer-v-1z0sf8u,
body.page-solid-header header.framer-kLFMT {
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* 3. When Mobile Dropdown Menu is Open: Full Solid White Background */
header.framer-kLFMT.framer-v-16g2goj,
header.framer-kLFMT.framer-v-1pecqqy,
header.framer-kLFMT.mobile-menu-open,
.mobile-menu-open header.framer-kLFMT {
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Header Navigation Links Base */
.framer-8fs7ge .framer-rKEM6 .framer-text,
.framer-8fs7ge .framer-rKEM6 p.framer-text,
.framer-8fs7ge a .framer-text,
.framer-8fs7ge .framer-1hjvftd p {
  color: #0056b3 !important;
  --framer-text-color: #0056b3 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  transition: color 0.2s ease !important;
}

/* Remove text shadow completely when scrolled or in dropdown (clean & sharp on white) */
header.scrolled .framer-8fs7ge .framer-text,
.framer-1fz6imn-container.scrolled .framer-8fs7ge .framer-text,
header.framer-v-1ipduzx .framer-8fs7ge .framer-text,
header.framer-v-wru67x .framer-8fs7ge .framer-text,
header.framer-v-16g2goj .framer-8fs7ge .framer-text,
header.framer-v-1pecqqy .framer-8fs7ge .framer-text,
.mobile-menu-open .framer-8fs7ge .framer-text,
body.page-solid-header .framer-8fs7ge .framer-text {
  text-shadow: none !important;
  color: #0056b3 !important;
  --framer-text-color: #0056b3 !important;
}

/* Active Nav link */
.framer-8fs7ge .framer-rKEM6.framer-v-1sodg6c .framer-text,
.framer-8fs7ge [data-framer-page-link-current="true"] .framer-text,
.framer-8fs7ge [data-framer-name="Active"] .framer-text {
  color: #0077dd !important;
  --framer-text-color: #0077dd !important;
  font-weight: 800 !important;
}

/* Hover link effect */
.framer-8fs7ge .framer-rKEM6:hover .framer-text,
.framer-8fs7ge a:hover .framer-text {
  color: #0088ff !important;
  --framer-text-color: #0088ff !important;
}

/* Active & hover underline indicator */
.framer-8fs7ge .framer-14dbit7 {
  background-color: #0066cc !important;
  height: 2px !important;
}

/* Mobile Hamburger Menu icon bars */
.framer-UZlHb div,
.framer-UZlHb .framer-1kvxvi4,
.framer-UZlHb .framer-f0d68v,
.framer-UZlHb .framer-6fklnu {
  transition: background-color 0.25s ease !important;
}

/* When at top of hero: visible bars */
.has-hero-top header.framer-kLFMT:not(.scrolled):not(.mobile-menu-open) .framer-UZlHb div {
  background-color: #0056b3 !important;
}

/* When scrolled or menu open: deep blue bars */
header.scrolled .framer-UZlHb div,
.framer-1fz6imn-container.scrolled .framer-UZlHb div,
header.framer-v-1z0sf8u .framer-UZlHb div,
header.framer-v-16g2goj .framer-UZlHb div,
header.framer-v-1pecqqy .framer-UZlHb div,
.mobile-menu-open .framer-UZlHb div,
body.page-solid-header .framer-UZlHb div {
  background-color: #0056b3 !important;
}

/* Mobile dropdown navigation menu links */
header.framer-v-16g2goj .framer-8fs7ge,
header.framer-v-1pecqqy .framer-8fs7ge {
  background: #ffffff !important;
  padding: 10px 0 20px !important;
}
header.framer-v-16g2goj .framer-8fs7ge a,
header.framer-v-1pecqqy .framer-8fs7ge a {
  padding: 8px 0 !important;
}
header.framer-v-16g2goj .framer-8fs7ge .framer-text,
header.framer-v-1pecqqy .framer-8fs7ge .framer-text {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #0056b3 !important;
  --framer-text-color: #0056b3 !important;
  text-shadow: none !important;
}

/* Search Icon */
header.scrolled .framer-uhjpb1-container svg,
.framer-1fz6imn-container.scrolled .framer-uhjpb1-container svg,
header.framer-v-1z0sf8u .framer-uhjpb1-container svg,
header.framer-v-16g2goj .framer-uhjpb1-container svg,
body.page-solid-header .framer-uhjpb1-container svg {
  color: #0056b3 !important;
}

/* Logo container & image styling */
.framer-17d4daq-container {
  width: 145px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.framer-17d4daq-container a,
.framer-17d4daq-container div,
.framer-17d4daq-container img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 809.98px) {
  .framer-17d4daq-container {
    width: 120px !important;
    height: 38px !important;
  }
}

/* ==========================================================================
   Mobile App Bottom Navigation Bar - Custom Engineering
   ========================================================================== */

#mobile-bottom-nav {
  display: none;
}

@media (max-width: 820px) {
  #mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 64px !important;
    background: rgba(15, 17, 21, 0.94) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45) !important;
    z-index: 9999999 !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
    box-sizing: border-box !important;
    justify-content: space-around !important;
    align-items: center !important;
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mb-nav-item {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #94a3b8 !important;
    position: relative !important;
    padding: 4px 2px !important;
    margin: 0 2px !important;
    border-radius: 12px !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .mb-nav-item:active {
    transform: scale(0.92) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .mb-nav-icon {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 3px !important;
    transition: transform 0.2s ease !important;
  }

  .mb-nav-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: all 0.2s ease !important;
  }

  .mb-nav-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
    color: inherit !important;
    transition: color 0.2s ease, font-weight 0.2s ease !important;
  }

  /* Active State (Engineering Vibrant Orange Accent #e8481c) */
  .mb-nav-item.active {
    color: #e8481c !important;
  }

  .mb-nav-item.active .mb-nav-label {
    font-weight: 700 !important;
    color: #e8481c !important;
  }

  .mb-nav-item.active .mb-nav-icon svg {
    stroke: #e8481c !important;
    filter: drop-shadow(0 0 6px rgba(232, 72, 28, 0.45)) !important;
    transform: translateY(-1px) scale(1.05) !important;
  }

  .mb-nav-item.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    width: 14px !important;
    height: 3px !important;
    border-radius: 3px !important;
    background: #e8481c !important;
    box-shadow: 0 0 8px rgba(232, 72, 28, 0.7) !important;
  }
}
