/* ===========================
       TOP BAR (desktop only)
    =========================== */
.topbar {
  background: var(--navy);
  color: var(--white);
  height: 50px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 0 40px;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-email {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-email a{
    color: #fff;
}

.topbar-email a:hover{
    color: #e17b1d;
}
.question-flx {
  display: flex;
  align-items: center;
  gap: 10px;
}

.question-flx img {
  width: 80%;
}

.question-flx .question {
  font-size: 14px;
  font-weight: 400;
  padding: 0 0 1.5% 0;
  margin: 0;
  color: #858688;
  text-transform: uppercase;
}

.topbar-email img {
  width: 12%;
  margin: -3px 0 0 0;
}

.topbar-email i {
  color: var(--orange);
  font-size: 12px;
}

.topbar-socials {
  display: flex;
  gap: 15px;
}

.topbar-socials a {
  color: var(--white);
  font-size: 13px;
  transition: opacity 0.2s;
  text-decoration: none;
}

.topbar-socials a:hover {
  opacity: 1;
  color: var(--orange);
}

/* ===========================
       NAVBAR
    =========================== */
.spg-navbar {
  background: var(--white);
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 74px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(13, 15, 48, 0.08);
}

.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#servicesBtn {color: #858688;}
#servicesBtn:hover {color: #261D74;}

.brand img {
  width: 60%;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
}

.nav-links>li>a {
  display: block;
  padding: 22px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #858688;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  text-transform: uppercase;
}

/* Underline bar — collapsed by default */
.nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  right: 50%;
  height: 3px;
  background: linear-gradient(90deg, #261D74, #00A3FF);
  border-radius: 2px;
  transition: left 0.25s ease, right 0.25s ease;
}

/* Expand on hover & active */
.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
  left: 16px;
  right: 16px;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: #261D74;
  font-weight: 700;
  font-size: 16px;
}

.nav-cta {
  font-size: 25px;
  align-items: center;
  gap: 10px;
  color: #261D74;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.vh-t {height: 30px; width: 1.2px;background-color: #858688;}

.nav-cta:hover {
  color: #e17b1d;
  background: transparent;
}

/* ===========================
       MEGA MENU (desktop)
    =========================== */
.mega-menu {
  position: fixed;
  top: 124px; /* topbar(50) + navbar(74) */
  left: 0;
  right: 0;
  background: linear-gradient(120deg, #261D74, #00A3FF);
  color: var(--white);
  padding: 50px 0 40px;
  z-index: 999;
  display: none;
  box-shadow: 0 8px 32px rgba(13, 15, 48, 0.2);
  bottom: 40px;

  /* FIX: clamp height and allow scroll on short screens */
  max-height: calc(100vh - 124px);
  overflow-y: auto;
}

/* Subtle scrollbar styled to match the menu */
.mega-menu::-webkit-scrollbar {
  width: 5px;
}
.mega-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}
.mega-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.30);
  border-radius: 3px;
}
.mega-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

.mega-menu.open {
  display: block;
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2% 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%; /* reduced from 8% — was pushing content off screen */
}

.mega-col h6 {
  font-size: 18px; /* slightly reduced from 18px */
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 15px; /* reduced from 18px */
  color: var(--white);
  padding: 0 0 12px 0;
 border-bottom: 1px solid #ffffff4f;
}

.mega-col h6 a{
    color: #fff;
}
.mega-col h6 a:hover {
    color: var(--orange);
    transition: 0.4s;
}

.mega-col ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.mega-col ul li {
  list-style-type: none;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #fff;
  margin: 0 0 14px 0; /* reduced from 10px */
}

.mega-col ul li a { color: #fff;display: flex; justify-content: center; align-items: center;}
.mega-col ul li a:hover {transition: 0.4s; color: var(--orange);}

.mega-col ul li:hover {
  opacity: 1;
  color: var(--orange);
}

.mega-col ul li:hover::before {
  opacity: 1;
}

.mega-col ul li.highlight {
  color: var(--orange);
  opacity: 1;
}

.mega-col ul li a span {
    margin: 0;
    font-size: 5px;
    background-color: #fff;
    border-radius: 25px;
    padding: 3px 15px;
}

.mega-col ul li a:hover span {   background-color: var(--orange);}

.mega-col ul li.highlight::before {
  opacity: 1;
}

/* ===========================
       HAMBURGER (mobile only)
    =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 6px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
       DRAWER OVERLAY
    =========================== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 48, 0.55);
  z-index: 1050;
  opacity: 0;
  transition: opacity var(--transition);
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* ===========================
       DRAWER
    =========================== */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-width);
  height: 100%;
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  background: linear-gradient(135deg, var(--purple), var(--navy));
  padding: 28px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.drawer-brand span {
  color: var(--orange);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.drawer-nav {
  flex: 1;
  padding: 12px 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f6;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.drawer-link:hover {
  background: var(--gray);
  color: var(--orange);
}

.drawer-link .arrow {
  font-size: 20px;
  color: #aaa;
  transition: transform 0.3s;
  line-height: 1;
}

.drawer-link.services-open .arrow {
  transform: rotate(90deg);
  color: var(--orange);
}

/* Services Accordion */
.services-accordion {
  max-height: 0;
  overflow: hidden;
  background: #f8f8fc;
  transition: max-height 0.4s ease;
}

.services-accordion.open {
  max-height: 900px;
  border-bottom: 1px solid #e8e8f0;
}

.acc-section-title a{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--purple);
  padding: 14px 24px 6px;
  text-transform: uppercase;
  opacity: 0.8;
}

.acc-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px 9px 32px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}

.acc-item a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.5;
  flex-shrink: 0;
}

.acc-item a:hover {
  color: var(--orange);
}

.acc-item.highlight {
  color: var(--orange);
  font-weight: 600;
}

.acc-item.highlight::before {
  opacity: 1;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--purple), var(--navy));
  color: var(--white);
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

/* ===========================
       RESPONSIVE
    =========================== */

@media (max-width: 1390px) {
  .mega-col ul li { font-size: 13px; margin: 0 0 10px 0; }
}

@media (max-width: 991px) {
  body {
    padding-top: 74px;
  }

  .topbar {
    display: none;
  }

  .spg-navbar {
    top: 0;
  }

  .navbar-inner {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mega-menu {
    display: none !important;
  }
  .vh-t { display: none;}
    
}

/* Tighten spacing on shorter screens (13-14" laptops) */
@media (max-height: 750px) {
  .mega-menu {
    padding: 20px 0 28px;
  }

  .mega-col h6 {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .mega-col ul li {
    font-size: 12.5px;
    margin: 0 0 10px 0;
  }
}

@media (max-height: 650px) {
  .mega-menu {
    padding: 25px 100px 20px;
  }
  .mega-inner { gap: 10%}

  .mega-col h6 {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .mega-col ul li {
    font-size: 13.5px;
    margin: 0 0 12px 0;
  }
}