/* ==========================================================================
   UNIFIED TECHMACOOL SITE HEADER & NAVIGATION
   Works consistently across all desktop and mobile pages
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  padding: 0.85rem 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Completely remove the menu bar from the cinematic scroll video */
body.home-page .hero-scroll-container ~ .site-header,
body.home-page:not(.intro-skipped):not(.header-visible) .site-header {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Once the scroll video is dismissed, skipped, or finished, show the sticky menu bar */
html.intro-skipped body.home-page .site-header,
html.intro-skipped body.home-page .hero-scroll-container ~ .site-header,
body.home-page.intro-skipped .site-header,
body.home-page.intro-skipped .hero-scroll-container ~ .site-header,
body.home-page.header-visible .site-header,
body.home-page.header-visible .hero-scroll-container ~ .site-header {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: sticky !important;
  top: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.header-inner,
.container-custom.header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  box-sizing: border-box !important;
}

.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
}

.brand-logo:hover {
  transform: translateY(-1px) scale(1.02) !important;
}

.site-header-logo-img {
  height: 42px !important;
  width: auto !important;
  max-width: 290px !important;
  object-fit: contain !important;
  display: block !important;
}

.header-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.header-nav a {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  position: relative !important;
  padding-bottom: 4px !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.header-nav a:hover {
  color: #0070ba !important;
}

.header-nav a.active {
  color: #0070ba !important;
  font-weight: 700 !important;
}

.header-nav a.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2.5px !important;
  background: #0070ba !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 6px rgba(0, 112, 186, 0.4) !important;
}

.header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.15rem !important;
  flex-shrink: 0 !important;
}

.btn-icon-search {
  display: none !important;
}

.btn-book-service-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.55rem 1.35rem !important;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: #07172b !important;
  border: 1px solid #07172b !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  box-shadow: 0 3px 12px rgba(7, 23, 43, 0.18) !important;
}

.btn-book-service-pill:hover {
  background: #0070ba !important;
  color: #ffffff !important;
  border-color: #0070ba !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 112, 186, 0.3) !important;
}

/* Animated 3-Bar Hamburger Button */
.mobile-menu-btn {
  display: none !important;
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  position: relative !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: all 0.25s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  flex-shrink: 0 !important;
}

.mobile-menu-btn:hover {
  background: rgba(0, 112, 186, 0.08) !important;
  border-color: rgba(0, 112, 186, 0.4) !important;
}

.mobile-menu-btn.active {
  background: rgba(0, 112, 186, 0.12) !important;
  border-color: #0070ba !important;
  box-shadow: 0 0 12px rgba(0, 112, 186, 0.2) !important;
}

.hamburger-line {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  background-color: #0f172a !important;
  border-radius: 2px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease !important;
  transform-origin: center !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
  background-color: #0070ba !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
  background-color: #0070ba !important;
}

@keyframes menuSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-cta-box {
  display: none !important;
}

@media (max-width: 992px) {
  .header-nav {
    display: none !important;
  }
  .header-nav.open {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    padding: 1.25rem 1.25rem 1.75rem 1.25rem !important;
    gap: 0.35rem !important;
    border-bottom: 2px solid #0070ba !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
    z-index: 99999 !important;
    max-height: calc(100vh - 65px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: menuSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
  .header-nav.open li {
    display: block !important;
    width: 100% !important;
  }
  .header-nav.open a {
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    border-radius: 10px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .header-nav.open a::after {
    content: '→' !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    position: static !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
  }
  .header-nav.open a:hover,
  .header-nav.open a:active {
    color: #0070ba !important;
    background: rgba(0, 112, 186, 0.06) !important;
    transform: translateX(3px) !important;
  }
  .header-nav.open a:hover::after,
  .header-nav.open a:active::after {
    color: #0070ba !important;
    transform: translateX(3px) !important;
  }
  .header-nav.open a.active {
    color: #0070ba !important;
    background: rgba(0, 112, 186, 0.08) !important;
    border-left: 3px solid #0070ba !important;
    font-weight: 700 !important;
  }
  .header-nav.open a.active::after {
    color: #0070ba !important;
  }
  
  /* Mobile Drawer Action Hub */
  .header-nav.open .mobile-nav-cta-box {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .mobile-nav-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.8rem 1.25rem !important;
    border-radius: 12px !important;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    transition: all 0.22s ease !important;
  }
  .mobile-nav-cta-tel {
    background: rgba(0, 112, 186, 0.08) !important;
    color: #0070ba !important;
    border: 1px solid rgba(0, 112, 186, 0.25) !important;
  }
  .mobile-nav-cta-tel:active {
    background: rgba(0, 210, 255, 0.2) !important;
    transform: scale(0.98) !important;
  }
  .mobile-nav-cta-wa {
    background: linear-gradient(135deg, #25d366 0%, #1eac52 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35) !important;
  }
  .mobile-nav-cta-wa:active {
    transform: scale(0.98) !important;
  }
  .mobile-nav-badge-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    padding-top: 0.35rem !important;
    text-align: center !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.65rem 0 !important;
  }
  .site-header-logo-img {
    height: 30px !important;
    max-width: 180px !important;
  }
  .header-inner,
  .container-custom.header-inner {
    padding: 0 0.85rem !important;
    gap: 0.5rem !important;
  }
  .header-actions {
    gap: 0.45rem !important;
  }
  .btn-book-service-pill {
    padding: 0.42rem 0.85rem !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.01em !important;
  }
  .mobile-menu-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }
  .hamburger-line {
    width: 16px !important;
  }
  .mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg) !important;
  }
  .mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg) !important;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 0.55rem 0 !important;
  }
  .site-header-logo-img {
    height: 26px !important;
    max-width: 155px !important;
  }
  .header-inner,
  .container-custom.header-inner {
    padding: 0 0.65rem !important;
    gap: 0.35rem !important;
  }
  .header-actions {
    gap: 0.35rem !important;
  }
  .btn-book-service-pill {
    padding: 0.36rem 0.65rem !important;
    font-size: 0.72rem !important;
  }
  .mobile-menu-btn {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 360px) {
  .site-header-logo-img {
    height: 23px !important;
    max-width: 130px !important;
  }
  .btn-book-service-pill {
    padding: 0.32rem 0.55rem !important;
    font-size: 0.68rem !important;
  }
  .mobile-menu-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .hamburger-line {
    width: 14px !important;
  }
}
