/* ==========================================================================
   MINIMALIST ENTERPRISE HEADER SERVICES DROPDOWN (header-dropdown.css)
   MARS TechSol / Publisher Box - Clean, Chic, Fast-Scanning Navigation
   ========================================================================== */

/* --- Nav Trigger Alignment --- */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Nav Link Button / Trigger (Matches other .nav-link exactly) */
.nav-dropdown-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #d1d5db;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-btn,
.nav-dropdown-wrapper.is-open .nav-dropdown-btn {
  color: #ffffff !important;
}

.nav-dropdown-btn.active {
  color: #FFC600 !important;
  font-weight: 600;
}

.nav-dropdown-btn.active:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-btn.active,
.nav-dropdown-wrapper.is-open .nav-dropdown-btn.active {
  color: #ffd633 !important;
}

.nav-dropdown-btn.active .dropdown-chevron-svg {
  stroke: #FFC600;
}

.nav-dropdown-btn.active:hover .dropdown-chevron-svg,
.nav-dropdown-wrapper:hover .nav-dropdown-btn.active .dropdown-chevron-svg,
.nav-dropdown-wrapper.is-open .nav-dropdown-btn.active .dropdown-chevron-svg {
  stroke: #ffd633;
}

/* Minimalist Chevron */
.dropdown-chevron-svg {
  display: inline-block;
  width: 8px;
  height: 5px;
  stroke: #94a3b8;
  stroke-width: 2;
  fill: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.nav-dropdown-wrapper:hover .dropdown-chevron-svg,
.nav-dropdown-wrapper.is-open .dropdown-chevron-svg {
  transform: rotate(180deg);
  stroke: #FFC600;
}

/* --- Clean, Chic Floating Panel --- */
.services-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -12px;
  width: 320px;
  background: rgba(15, 17, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.75), 
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.18s;
  z-index: 10000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Invisible hover bridge */
.services-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
  background: transparent;
}

/* Reveal State */
.nav-dropdown-wrapper:hover .services-dropdown-panel,
.nav-dropdown-wrapper:focus-within .services-dropdown-panel,
.nav-dropdown-wrapper.is-open .services-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Services List */
.dropdown-services-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Minimalist Service Item */
.dropdown-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dropdown-service-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-service-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.dropdown-service-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.dropdown-service-title {
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.dropdown-item-arrow {
  font-size: 13px;
  color: #64748b;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

/* Refined Hover State */
.dropdown-service-item:hover,
.dropdown-service-item.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.dropdown-service-item:hover .dropdown-service-title,
.dropdown-service-item.is-active .dropdown-service-title {
  color: #ffffff;
}

.dropdown-service-item:hover .dropdown-service-icon {
  color: #FFC600;
}

.dropdown-service-item:hover .dropdown-item-arrow {
  opacity: 1;
  color: #FFC600;
  transform: translateX(0);
}

/* ==========================================================================
   MOBILE OFFCANVAS ACCORDION STYLES (Clean & Fast)
   ========================================================================== */
.offcanvas-dropdown-item {
  width: 100%;
}

.offcanvas-dropdown-trigger {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s ease;
}

.offcanvas-dropdown-trigger:hover,
.offcanvas-dropdown-item.is-open .offcanvas-dropdown-trigger {
  color: #FFC600;
}

.offcanvas-chevron {
  width: 10px;
  height: 6px;
  stroke: #64748b;
  stroke-width: 2.2;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.offcanvas-dropdown-item.is-open .offcanvas-chevron {
  transform: rotate(180deg);
  stroke: #FFC600;
}

.offcanvas-subnav-list {
  display: none;
  list-style: none;
  padding: 4px 0 10px 14px;
  margin: 0;
  border-left: 1.5px solid rgba(255, 255, 255, 0.12);
}

.offcanvas-dropdown-item.is-open .offcanvas-subnav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offcanvas-sublink {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.offcanvas-sublink:hover,
.offcanvas-sublink.active {
  color: #FFC600;
  transform: translateX(3px);
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE & OBSIDIAN THEME ENHANCEMENTS
   ========================================================================== */

/* 1. Root & Theme tokens */
:root {
  --dark-bg: #0b0c10 !important;
  --dark-surface: #12141a !important;
  --dark-card: #181c24 !important;
}

html, body {
  background-color: #0b0c10 !important;
  overflow-x: clip !important;
  max-width: 100vw !important;
}

html {
  scroll-padding-top: var(--site-header-height, 70px);
}

/* 2. Header and Fixed Navbar */
:root {
  --site-header-height: 70px;
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 64px;
  }
}

body {
  padding-top: var(--site-header-height) !important;
}

.site-header,
.site-header.header--hidden,
.site-header.header--pinned {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background-color: #000000 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}

.site-header.is-scrolled {
  background-color: #000000 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 3. Mobile Hamburger Toggle */
.mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition: all 0.2s ease !important;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle[aria-expanded="true"] {
  background: rgba(255, 198, 0, 0.12) !important;
  border-color: #FFC600 !important;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line {
  background-color: #FFC600 !important;
}

/* 4. Mobile Offcanvas Navigation Drawer (Obsidian & Gold) */
.offcanvas-panel {
  background-color: #0b0c10 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.offcanvas-close-btn {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.offcanvas-close-btn:hover,
.offcanvas-close-btn:active {
  border-color: #FFC600 !important;
  color: #FFC600 !important;
  background: rgba(255, 198, 0, 0.12) !important;
}

.offcanvas-link {
  color: #f3f4f6 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.offcanvas-link:hover,
.offcanvas-link.active {
  color: #FFC600 !important;
}

.offcanvas-cta-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 5. Mobile Hero Actions across Site */
@media (max-width: 639px) {
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    min-height: 48px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-section {
    background-color: #000000 !important;
  }

  .hero-heading {
    font-size: 32px !important;
    line-height: 1.16 !important;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* 6. Why MARS Fixes (Blue color removal & Obsidian harmony) */
.wm-journey-subtext {
  color: #FFC600 !important;
}

.wm-dark-section {
  background-color: #0b0c10 !important;
}

/* 7. Homepage Dark Sections & Obsidian Preloader Unification */
.fullscreen-loader {
  background-color: #0b0c10 !important;
  background: #0b0c10 radial-gradient(circle at 50% 48%, #1f1b0a 0%, #0b0c10 60%, #0b0c10 100%) !important;
}

.module-section.theme-dark {
  background-color: #0b0c10 !important;
}

.btn-banner-cta {
  background-color: #0b0c10 !important;
  background: #0b0c10 !important;
}

.btn-dark {
  background-color: #0b0c10 !important;
}

/* 8. Mobile Interactive Touch Ergonomics (< 640px) */
@media (max-width: 639px) {
  .btn-banner-cta {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
    text-align: center !important;
  }

  .sec6-range-input::-webkit-slider-thumb {
    width: 24px !important;
    height: 24px !important;
  }

  .sec7-checkbox {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ==========================================================================
   9. Mobile Header Actions & Login Navigation
   ========================================================================== */
.mobile-header-actions {
  display: none !important;
}

@media (max-width: 1023px) {
  .mobile-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-header-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    color: #f3f4f6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 6px 8px !important;
    height: auto !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .mobile-header-login-btn:hover,
  .mobile-header-login-btn:active,
  .mobile-header-login-btn.active {
    background: transparent !important;
    border: none !important;
    color: #FFC600 !important;
  }
}

.offcanvas-btn-login {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 11px 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 198, 0, 0.35) !important;
  border-radius: var(--radius-sm, 6px) !important;
  color: #FFC600 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin-bottom: 4px !important;
}

.offcanvas-btn-login:hover,
.offcanvas-btn-login:active,
.offcanvas-btn-login.active {
  background: rgba(255, 198, 0, 0.14) !important;
  border-color: #FFC600 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}


