/* ==========================================================================
   J H WEB SOLUTIONS - HEADER & MEGAMENU STYLESHEET 
   ========================================================================== */

/* --- Top Utility Bar --- */
.jh-topbar {
  background: var(--jh-brand-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 0;
  font-size: 0.8125rem;
  color: #E2E8F0;
  position: relative;
  z-index: 1001;
}

.jh-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jh-topbar-left,
.jh-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.jh-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #CBD5E1;
  text-decoration: none;
  transition: var(--jh-transition);
  font-weight: 500;
}

.jh-topbar-item:hover {
  color: #FFFFFF;
}

.jh-topbar-item i {
  color: var(--jh-brand-gold);
  font-size: 0.875rem;
}

.jh-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(114, 184, 26, 0.18);
  border: 1px solid rgba(114, 184, 26, 0.4);
  color: #A3E635;
  padding: 2px 10px;
  border-radius: var(--jh-radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

.jh-topbar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jh-topbar-socials a {
  color: #94A3B8;
  transition: var(--jh-transition);
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.jh-topbar-socials a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.jh-topbar-socials a[aria-label="Facebook"]:hover {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.2);
}

.jh-topbar-socials a[aria-label*="X"]:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.25);
}

.jh-topbar-socials a[aria-label="YouTube"]:hover {
  color: #FF0000;
  background: rgba(255, 0, 0, 0.2);
}

.jh-topbar-socials a[aria-label="LinkedIn"]:hover {
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.2);
}

/* Topbar Navigation & Auth Links */
.jh-topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jh-topbar-link {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: var(--jh-transition);
}

.jh-topbar-link:hover {
  color: #FFFFFF;
}

.jh-topbar-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.jh-topbar-auth {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--jh-transition);
}

.jh-topbar-login {
  color: #F8FAFC;
}

.jh-topbar-login:hover {
  color: var(--jh-brand-gold);
}

.jh-topbar-signup {
  background: linear-gradient(135deg, var(--jh-brand-gold), var(--jh-brand-gold-hover));
  color: var(--jh-navy-950);
  padding: 2px 10px;
  border-radius: var(--jh-radius-full);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 184, 0, 0.3);
}

.jh-topbar-signup:hover {
  background: #FFFFFF;
  color: var(--jh-navy-950);
  transform: translateY(-1px);
}

/* --- Main Navigation Bar --- */
.jh-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--jh-transition-smooth);
}

.jh-header-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(34, 28, 120, 0.1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  transition: var(--jh-transition-smooth);
}

.jh-header-scrolled .jh-header-bar {
  background: #FFFFFF;
  box-shadow: 0 8px 30px -4px rgba(25, 20, 89, 0.12);
  border-bottom-color: var(--jh-brand-indigo);
}

.jh-topbar .jh-container,
.jh-header-bar .jh-container {
  max-width: 1400px;
}

.jh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Brand Logo (Official Image - Small & Sleek) */
.jh-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--jh-transition);
  padding: 2px 0;
}

.jh-logo-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.jh-brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
  display: block;
}

/* Desktop Nav Menu */
.jh-nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.jh-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  flex-shrink: 0;
}

.jh-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.jh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-family: var(--jh-font-heading);
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--jh-navy-900);
  text-decoration: none;
  border-radius: var(--jh-radius-md);
  transition: var(--jh-transition);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.jh-nav-link span {
  white-space: nowrap !important;
  display: inline-block;
}

.jh-nav-link:hover,
.jh-nav-item:hover .jh-nav-link,
.jh-nav-link.is-active {
  color: var(--jh-sapphire);
  background: rgba(2, 102, 200, 0.08);
}


.jh-nav-link i.jh-caret {
  font-size: 0.6875rem;
  transition: transform 0.25s ease;
  color: var(--jh-text-muted);
}

.jh-nav-item:hover .jh-nav-link i.jh-caret,
.jh-nav-item.is-open .jh-nav-link i.jh-caret {
  transform: rotate(180deg);
  color: var(--jh-sapphire);
}

.jh-nav-item.is-open .jh-nav-link {
  color: var(--jh-sapphire);
  background: rgba(2, 102, 200, 0.08);
}

/* --- Megamenu Dropdown Pane --- */
.jh-dropdown-pane {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #FFFFFF;
  border: 1px solid var(--jh-border-light);
  border-radius: var(--jh-radius-lg);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1100;
}

/* Hover bridge so cursor never drops when moving between nav link and dropdown */
.jh-dropdown-pane::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

/* For the first menu item (Website Design), align to the left of nav item so it doesn't clip on the left */
.jh-nav-item:first-child .jh-dropdown-pane {
  left: 0;
  transform: translateY(10px);
}

.jh-nav-item:hover .jh-dropdown-pane,
.jh-nav-item.is-open .jh-dropdown-pane {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.jh-nav-item:first-child:hover .jh-dropdown-pane,
.jh-nav-item:first-child.is-open .jh-dropdown-pane {
  transform: translateY(0);
}

.jh-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 8px;
}

.jh-dropdown-pane.is-wide .jh-dropdown-grid {
  grid-template-columns: repeat(2, minmax(270px, 1fr));
}

.jh-dropdown-pane.is-triple .jh-dropdown-grid {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.jh-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--jh-radius-md);
  text-decoration: none;
  transition: var(--jh-transition);
}

.jh-dropdown-item:hover {
  background: rgba(34, 28, 120, 0.05);
  transform: translateX(3px);
}

.jh-drop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 28, 120, 0.08);
  color: var(--jh-brand-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: var(--jh-transition);
}

.jh-dropdown-item:hover .jh-drop-icon {
  background: var(--jh-sapphire);
  color: #FFFFFF;
}

.jh-drop-content {
  display: flex;
  flex-direction: column;
}

.jh-drop-title {
  font-family: var(--jh-font-heading);
  font-size: 0.90625rem;
  font-weight: 700;
  color: var(--jh-navy-950);
  line-height: 1.3;
}

.jh-drop-desc {
  font-size: 0.75rem;
  color: var(--jh-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.jh-dropdown-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--jh-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--jh-text-muted);
}

.jh-dropdown-footer a {
  color: var(--jh-sapphire);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jh-dropdown-footer a:hover {
  gap: 8px;
}

/* Header Right Actions */
.jh-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header Quick Nav Links (About Us & Contact Us) */
.jh-hdr-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--jh-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jh-navy-900);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--jh-radius-md);
  transition: var(--jh-transition);
  white-space: nowrap;
}

.jh-hdr-link:hover {
  color: var(--jh-brand-indigo);
  background: rgba(34, 28, 120, 0.06);
}

/* Auth Buttons */
.jh-btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--jh-radius-full);
  background: transparent;
  color: var(--jh-brand-indigo);
  border: 1.5px solid rgba(34, 28, 120, 0.25);
  font-family: var(--jh-font-heading);
  font-size: 0.84375rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--jh-transition);
  white-space: nowrap;
}

.jh-btn-header-login:hover {
  background: rgba(34, 28, 120, 0.08);
  border-color: var(--jh-brand-indigo);
  color: var(--jh-navy-950);
  transform: translateY(-1px);
}

.jh-btn-header-signup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--jh-radius-full);
  background: linear-gradient(135deg, var(--jh-brand-indigo), #3B32B8);
  color: #FFFFFF;
  border: 1.5px solid transparent;
  font-family: var(--jh-font-heading);
  font-size: 0.84375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px -2px rgba(34, 28, 120, 0.35);
  transition: var(--jh-transition);
  white-space: nowrap;
}

.jh-btn-header-signup:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, #191459, #2D2599);
  box-shadow: 0 8px 20px -3px rgba(34, 28, 120, 0.5);
  transform: translateY(-2px);
}

.jh-action-calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--jh-radius-full);
  background: rgba(255, 184, 0, 0.12);
  color: var(--jh-brand-indigo);
  border: 1.5px solid var(--jh-brand-gold);
  font-family: var(--jh-font-heading);
  font-size: 0.84375rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--jh-transition);
}

.jh-action-calc-btn:hover {
  background: var(--jh-brand-gold);
  color: var(--jh-brand-navy);
  border-color: var(--jh-brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px rgba(255, 184, 0, 0.4);
}

.jh-btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--jh-radius-full);
  background: linear-gradient(135deg, var(--jh-brand-lime), #5B9912);
  color: #FFFFFF;
  font-family: var(--jh-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px -3px rgba(114, 184, 26, 0.45);
  transition: var(--jh-transition);
  white-space: nowrap;
}

.jh-btn-header-wa:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(114, 184, 26, 0.6);
  background: linear-gradient(135deg, #619E15, #4A7F0B);
}

/* Mobile Hamburger Toggle */
.jh-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--jh-radius-md);
  align-items: center;
  justify-content: center;
}

.jh-hamburger {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jh-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--jh-navy-950);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.jh-mobile-toggle.is-open .jh-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.jh-mobile-toggle.is-open .jh-hamburger span:nth-child(2) {
  opacity: 0;
}

.jh-mobile-toggle.is-open .jh-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Off-Canvas Drawer --- */
.jh-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 25, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1200;
}

.jh-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.jh-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1250;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jh-mobile-drawer.is-active {
  transform: translateX(0);
}

.jh-drawer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--jh-border-light);
}

.jh-drawer-close-btn {
  background: var(--jh-bg-surface-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jh-navy-950);
  font-size: 1rem;
}

.jh-drawer-quick-strip {
  display: flex;
  padding: 12px 18px;
  gap: 10px;
  background: var(--jh-bg-surface-alt);
  border-bottom: 1px solid var(--jh-border-light);
}

.jh-drawer-quick-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--jh-radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.jh-quick-wa {
  background: #25D366;
  color: #FFFFFF;
}

.jh-quick-call {
  background: var(--jh-navy-900);
  color: #FFFFFF;
}

.jh-drawer-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

/* Accordion Nav in Drawer */
.jh-mob-nav-item {
  border-bottom: 1px solid var(--jh-border-light);
}

.jh-mob-nav-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--jh-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--jh-navy-950);
  text-align: left;
}

.jh-mob-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jh-mob-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(34, 28, 120, 0.08);
  color: var(--jh-brand-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.jh-mob-nav-item.open .jh-mob-cat-icon {
  transform: scale(1.08);
}

/* Category Accent Colors in Mobile Drawer */
.jh-icon-about {
  background: rgba(34, 28, 120, 0.1);
  color: var(--jh-brand-indigo);
}

.jh-icon-contact {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.jh-icon-login {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}

.jh-icon-signup {
  background: rgba(255, 184, 0, 0.2);
  color: #B45309;
}

/* Attractive Badges next to Mobile Menubar items */
.jh-mob-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(34, 28, 120, 0.08);
  color: var(--jh-brand-indigo);
  margin-left: 6px;
  line-height: 1.3;
}

.jh-mob-badge.badge-green {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.jh-mob-badge.badge-blue {
  background: rgba(37, 99, 235, 0.14);
  color: #2563EB;
}

.jh-mob-badge.badge-gold {
  background: rgba(255, 184, 0, 0.22);
  color: #B45309;
}

.jh-mob-caret {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  color: var(--jh-text-muted);
}

.jh-mob-nav-item.open .jh-mob-caret,
.jh-mob-nav-item.is-open .jh-mob-caret {
  transform: rotate(180deg);
  color: var(--jh-sapphire);
}

.jh-mob-accordion-body {
  display: none;
  padding: 0 4px 14px 42px;
}

.jh-mob-nav-item.open .jh-mob-accordion-body,
.jh-mob-nav-item.is-open .jh-mob-accordion-body {
  display: block;
}

.jh-mob-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--jh-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.jh-mob-sublink:hover {
  color: var(--jh-sapphire);
  transform: translateX(2px);
}

/* Highlighted Primary Sublink */
.jh-mob-sublink-highlight {
  font-weight: 700;
  color: var(--jh-brand-indigo);
  background: rgba(34, 28, 120, 0.04);
  padding: 8px 10px;
  border-radius: var(--jh-radius-sm);
  margin-bottom: 4px;
}

.jh-mob-sublink-highlight:hover {
  background: rgba(34, 28, 120, 0.09);
  color: var(--jh-sapphire);
}

/* Mobile Drawer Section Divider */
.jh-mob-menu-divider {
  padding: 18px 4px 10px 4px;
  list-style: none;
}

.jh-mob-menu-divider span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--jh-font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--jh-text-muted);
}

.jh-mob-menu-divider span::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--jh-border-light), transparent);
}

.jh-drawer-footer-actions {
  padding: 18px;
  border-top: 1px solid var(--jh-border-light);
  background: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE RULES FOR HEADER
   ========================================================================== */
@media (max-width: 1366px) {
  .jh-hdr-link {
    display: none;
  }
}

@media (max-width: 1200px) {
  .jh-nav-container {
    display: none;
  }
  .jh-mobile-toggle {
    display: flex;
  }
  .jh-action-calc-btn {
    display: none;
  }
  .jh-header-actions {
    gap: 10px;
  }
}

/* Hide Topbar on Mobile and Tablet View so it does NOT show at the top */
@media (max-width: 1024px) {
  .jh-topbar {
    display: none !important;
  }
  .jh-header-inner {
    height: 60px;
  }
}

@media (max-width: 992px) {
  .jh-btn-header-wa .jh-wa-arrow {
    display: none;
  }
  .jh-btn-header-wa {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .jh-topbar {
    display: none !important;
  }
  /* Main Sticky Header on Mobile */
  .jh-header-inner {
    height: 56px;
    gap: 12px;
  }
  .jh-brand-logo-img {
    height: 30px;
    max-width: 140px;
  }
  .jh-header-actions {
    gap: 8px;
  }
  .jh-btn-header-wa .jh-wa-text,
  .jh-btn-header-wa .jh-wa-arrow {
    display: none;
  }
  .jh-btn-header-wa {
    padding: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .jh-mobile-toggle {
    width: 38px;
    height: 38px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .jh-header-inner {
    height: 52px;
  }
  .jh-brand-logo-img {
    height: 25px;
    max-width: 120px;
  }
  .jh-btn-header-wa {
    width: 34px;
    height: 34px;
  }
  .jh-mobile-toggle {
    width: 36px;
    height: 36px;
  }
}


