/* ============================================
   SEPARATE HEADER & NAVIGATION STYLING
   PLAYFAIR DISPLAY FONT FAMILY (FORCED & ISOLATED)
   ============================================ */

/* Global Nav Container (Desktop Default) */
#navbar,
.site-header-nav,
.navbar-custom {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
}

.site-header-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  position: relative;
}

.site-header-nav .logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header-nav .logo-image {
  max-height: 48px;
  width: auto;
  display: block;
}

/* ALL Nav Menu Links (Home, Solution, Industries, How It Works, Pricing, etc.) */
#navbar a,
.site-header-nav a,
.navbar-custom a,
.nav-menu,
.nav-menu > li,
.nav-menu > li > a,
.menu-primary-container > ul > li > a,
.nav-link-custom {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  color: #0B1930;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.1px;
}

.nav-menu > li > a,
.menu-primary-container > ul > li > a,
.nav-link-custom {
  padding: 30px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color 0.25s ease;
}

.nav-menu > li > a:hover,
.menu-primary-container > ul > li > a:hover,
.nav-menu > li:hover > a,
.nav-link-custom:hover {
  color: #FF5C28 !important;
}

/* Active Highlight Line */
.nav-menu > li > a::after,
.menu-primary-container > ul > li > a::after,
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  background: #FF5C28;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.25s ease;
}

.nav-menu > li:hover > a::after,
.menu-primary-container > ul > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.has-mega-menu:hover > a::after,
.nav-link-custom:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.nav-menu > li:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Right Header CTA Button ("Get Started") */
.site-header-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header-nav .btn-get-started,
#navbar .btn-get-started {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  background: linear-gradient(135deg, #FF5C28 0%, #E04818 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(255, 92, 40, 0.3);
  transition: all 0.3s ease;
}

.site-header-nav .btn-get-started:hover,
#navbar .btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 92, 40, 0.45);
  color: #ffffff !important;
}

/* Mega Menu & Dropdowns (Sub-Menus) */
.mega-menu-panel,
.mega-item-info h4,
.mega-promo-title,
.sub-menu,
.sub-menu a,
.children,
.children a {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
}

/* Default Mobile Toggle Hidden on Desktop */
.site-header-nav .mobile-toggle {
  display: none;
}


/* ============================================
   RESPONSIVE MOBILE HEADER & ACCORDION MENU
   ============================================ */

@media (max-width: 991px) {
  /* 1. Compact Mobile Header Height & Edge-to-Edge Spacing */
  .site-header-nav .container-fluid,
  .site-header-nav .container-fluid.px-lg-5 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .site-header-nav .nav-inner {
    height: 64px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 2. Scaled-Down Mobile Logo Alignment (Pushed Far Left) */
  .site-header-nav .logo-wrap {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .site-header-nav .logo-image {
    max-height: 36px !important;
    width: auto;
  }

  /* 3. Hide Desktop Nav Menu & Desktop Button */
  .site-header-nav .nav-menu,
  .site-header-nav .menu-primary-container,
  .site-header-nav .nav-right {
    display: none !important;
  }

  /* 4. Modern Mobile Toggle Button */
  .site-header-nav .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .site-header-nav .mobile-toggle:hover,
  .site-header-nav .mobile-toggle:active {
    background: #FFF0EB;
    border-color: rgba(255, 92, 40, 0.3);
  }

  .site-header-nav .hamburger {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .site-header-nav .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0B1930;
    border-radius: 2px;
    transition: all 0.25s ease;
  }

  .site-header-nav .mobile-toggle:hover .hamburger span {
    background: #FF5C28;
  }

  /* 5. Mobile Drawer Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(11, 25, 48, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 360px;
    height: 100%;
    background: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(11, 25, 48, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 20px;
  }

  .mobile-menu-header .logo-image {
    max-height: 32px !important;
  }

  .mobile-close {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-close:hover {
    background: #FF5C28;
    color: #ffffff;
    border-color: #FF5C28;
  }

  /* Mobile Links Styling with Playfair Display */
  .mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
  }

  .mobile-nav-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-size: 17px;
    font-weight: 600;
    color: #0B1930 !important;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  }

  .mobile-nav-links li a:hover,
  .mobile-nav-links li a:active {
    background: #FFF0EB;
    color: #FF5C28 !important;
  }

  /* Mobile Accordion Dropdowns */
  .mobile-dropdown-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #64748B;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    margin-left: 8px;
    flex-shrink: 0;
    pointer-events: none;
  }

  .mobile-nav-links li.open > a .mobile-dropdown-btn {
    transform: rotate(180deg);
    background: rgba(255, 92, 40, 0.15);
    color: #FF5C28;
  }

  /* Sub-menu hidden by default in mobile drawer */
  .mobile-nav-links ul.sub-menu,
  .mobile-nav-links ul.children {
    display: none;
    list-style: none;
    padding: 4px 0 6px 12px;
    margin: 4px 0 8px 12px;
    border-left: 2px solid #E2E8F0;
  }

  .mobile-nav-links li.open > ul.sub-menu,
  .mobile-nav-links li.open > ul.children {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-nav-links ul.sub-menu li a,
  .mobile-nav-links ul.children li a {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  }

  .mobile-nav-links ul.sub-menu li a:hover,
  .mobile-nav-links ul.sub-menu li a:active {
    background: #FFF0EB !important;
    color: #FF5C28 !important;
  }

  .mobile-menu-panel .btn-primary {
    margin-top: auto;
    background: linear-gradient(135deg, #FF5C28 0%, #E04818 100%) !important;
    color: #ffffff !important;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(255, 92, 40, 0.35);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  }
}

@media (max-width: 576px) {
  .site-header-nav .container-fluid,
  .site-header-nav .container-fluid.px-lg-5 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .site-header-nav .nav-inner {
    height: 58px !important;
  }

  .site-header-nav .logo-image {
    max-height: 32px !important;
  }
}
