/* ============================================================
   PakhiGST — Shared Navbar & Mega Menu CSS
   Brand: Primary #1a73e8 | Dark #1558b0 | Light #e8f0fe
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   NAVBAR WRAPPER
   ============================================================ */
.mb-navbar {
  background: #ffffff;
  border-bottom: 2px solid #1a73e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(26,115,232,0.12);
  font-family: 'Poppins', sans-serif;
  /* position:sticky creates a containing block —
     mega menu with position:absolute will anchor here */
}

.mb-nav-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ============================================================
   LOGO
   ============================================================ */
.mb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 20px;
  text-decoration: none;
  line-height: 1;
}

.mb-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1558b0, #1a73e8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.mb-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.mb-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a2332;
  letter-spacing: -0.3px;
  line-height: 1;
}

.mb-logo-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: nowrap;
}

/* ============================================================
   PHONE
   ============================================================ */
.mb-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #1558b0;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 24px;
}

.mb-phone-icon {
  width: 32px;
  height: 32px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #1a73e8;
  flex-shrink: 0;
}

/* ============================================================
   NAV LIST
   ============================================================ */
.mb-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}

/* All nav items: relative — needed for small dropdown */
.mb-nav-item {
  position: relative;
}

.mb-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: #2d2d2d;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  line-height: 1.4;
}

.mb-nav-link:hover,
.mb-nav-link.is-active {
  color: #1a73e8;
  background: #e8f0fe;
}

.mb-caret {
  font-size: 10px;
  margin-top: 1px;
  display: inline-block;
  transition: transform 0.22s;
  color: #888;
}

.mb-nav-item:hover > .mb-nav-link .mb-caret,
.mb-nav-item.is-open > .mb-nav-link .mb-caret {
  transform: rotate(180deg);
  color: #1a73e8;
}

/* ============================================================
   AUTH BUTTONS
   ============================================================ */
.mb-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.mb-btn-login {
  padding: 8px 22px;
  border: 2px solid #1a73e8;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #1a73e8;
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}
.mb-btn-login:hover { background: #1a73e8; color: #fff; }

.mb-btn-signup {
  padding: 8px 22px;
  border: 2px solid #1a73e8;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #1a73e8;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}
.mb-btn-signup:hover { background: #1558b0; border-color: #1558b0; }

/* ============================================================
   HAMBURGER
   ============================================================ */
.mb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
}

.mb-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1558b0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   MEGA MENU — Full width anchored to .mb-navbar
   
   NOTE: Hover is handled by JS (navbar.js) using is-open class
   to avoid gap issues with position:fixed
   ============================================================ */
.mb-mega {
  display: none;
  position: fixed;
  top: 68px;
  width: 80%;
    margin: 0 auto;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 3px solid #1a73e8;
  border-bottom: 1px solid #c5d9f8;
  box-shadow: 0 16px 48px rgba(26,115,232,0.15);
  z-index: 999;
  animation: megaFadeIn 0.18s ease;
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Only JS-controlled class opens mega — NO CSS :hover for mega */
.mb-nav-item.is-open .mb-mega { display: block; }

/* Content area — matches navbar max-width + padding */
.mb-mega-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 28px 20px 20px;
}

/* 3-column grid */
.mb-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
}

.mb-mega-col {
  padding-right: 28px;
  border-right: 1px solid #e8f0fe;
}
.mb-mega-col:last-child {
  border-right: none;
  padding-right: 0;
}

/* Column header */
.mb-mega-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
  margin-bottom: 12px;
}

.mb-mega-head-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #e8f0fe, #d0e4fc);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.mb-mega-head-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a73e8;
}

/* Links */
.mb-mega-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f5f8ff;
  text-decoration: none;
  transition: color 0.14s, padding-left 0.14s;
  line-height: 1.45;
}
.mb-mega-item::before {
  content: '›';
  font-size: 15px;
  color: #c5d9f8;
  flex-shrink: 0;
  transition: color 0.14s;
}
.mb-mega-item:last-child { border-bottom: none; }
.mb-mega-item:hover { color: #1a73e8; padding-left: 4px; }
.mb-mega-item:hover::before { color: #1a73e8; }

/* CTA strip at bottom */
.mb-mega-cta-strip {
  background: linear-gradient(90deg, #e8f0fe 0%, #f0f6ff 100%);
  border-top: 1px solid #c5d9f8;
}
.mb-mega-cta-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mb-mega-cta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1a2332;
  font-weight: 500;
}
.mb-mega-cta-left strong { color: #1a73e8; }
.mb-mega-cta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mb-mega-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  border: 2px solid #1a73e8;
}
.mb-mega-cta-btn.outline { color: #1a73e8; background: #fff; }
.mb-mega-cta-btn.outline:hover { background: #1a73e8; color: #fff; }
.mb-mega-cta-btn.filled { color: #fff; background: #1a73e8; }
.mb-mega-cta-btn.filled:hover { background: #1558b0; border-color: #1558b0; }

/* ============================================================
   SMALL DROPDOWN — Company menu
   Uses position:absolute relative to .mb-nav-item (which is relative)
   ============================================================ */
.mb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #fff;
  border: 1px solid #c5d9f8;
  border-top: 3px solid #1a73e8;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 28px rgba(26,115,232,0.13);
  min-width: 210px;
  padding: 6px 0;
  z-index: 1001;
}

.mb-nav-item:hover .mb-dropdown,
.mb-nav-item.is-open .mb-dropdown { display: block; }

.mb-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.mb-dropdown-item:hover { color: #1a73e8; background: #e8f0fe; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mb-mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 900;
  overflow-y: auto;
  padding: 12px 16px 24px;
  border-top: 2px solid #1a73e8;
  box-shadow: 0 8px 24px rgba(26,115,232,0.12);
}

.mb-mobile-nav.is-open { display: block; }

.mb-mob-link {
  display: block;
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2d;
  border-bottom: 1px solid #e8f0fe;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.mb-mob-link:hover { color: #1a73e8; }

.mb-mob-section-title {
  padding: 14px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mb-mob-sub-link {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: #555;
  border-bottom: 1px solid #f0f5ff;
  text-decoration: none;
}
.mb-mob-sub-link:hover { color: #1a73e8; background: #f5f9ff; }

.mb-mob-auth {
  display: flex;
  gap: 10px;
  padding: 16px 8px;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .mb-nav-list, .mb-phone, .mb-auth { display: none; }
  .mb-hamburger { display: flex; }
  .mb-mega { position: fixed; top: 68px; }
}

/* WhatsApp Float Button */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 18px;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  text-decoration: none;
  animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
/* Hamburger open state */
.mb-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mb-hamburger.is-open span:nth-child(2) { opacity: 0; }
.mb-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Navbar scrolled */
.mb-navbar.scrolled { box-shadow: 0 4px 20px rgba(26,115,232,0.18); }