/* ============================================================
   header-mega.css  —  cblucid theme mega-menu header
   Ported from the Hire module header (_modules/hire).
   Contains: direct color values (variables stripped), a header-scoped
   normalize (so it never clobbers Bootstrap globally), and the
   full top-bar + mega-menu + mobile-drawer component CSS.
   ============================================================ */

/* ============================================================
   HEADER-SCOPED NORMALIZE (replaces the hire global reset so
   the rest of the Bootstrap theme is untouched)
   ============================================================ */
.site-top, .site-top *, .site-top *::before, .site-top *::after,
.mobile-nav, .mobile-nav *, .mobile-nav *::before, .mobile-nav *::after { box-sizing: border-box; }
.site-top ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.site-top a, .mobile-nav a { text-decoration: none; }
.site-top button, .mobile-nav button { font-family: inherit; }

/* ---- Header component ---- */
/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #343f52;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.top-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.top-bar__contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.top-bar__contact:hover { color: #fff; }
.top-bar__contact-icon { font-size: 13px; opacity: .7; }
.top-bar__contact span { font-weight: 700; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .5px; margin-right: 3px; }
.top-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-bar__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
  text-decoration: none;
  transition: color .15s;
}
.top-bar__email:hover { color: #fff; }
.top-bar__email-icon { font-size: 11px; opacity: .8; }
.top-bar__book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #008060;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background .15s, transform .15s;
}
.top-bar__book:hover { background: #45c4a0; transform: translateY(-1px);color: #fff; }
.top-bar__book-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.35); }
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.site-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e1e1e1;
  box-shadow: 0 2px 12px rgba(15,27,45,.06);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #008060 0%, #45c4a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  letter-spacing: -1px;
}
.site-logo__text { font-family: 'Poppins', system-ui, sans-serif; }
.site-logo__name {
  display: block;
  font-weight: 800;
  font-size: 17px;
  color: #343f52;
  line-height: 1.1;
}
.site-logo__tag {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #008060;
}

/* ============================================================
   PRIMARY NAV
   ============================================================ */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  list-style: none;
}

/* top-level item */
.nav-item {
  position: relative;
}
.nav-item__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1d1f;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.nav-item__link:hover,
.nav-item--active > .nav-item__link {
  background: rgba(0,128,96,.07);
  color: #008060;
}
.nav-item__chevron {
  font-size: 10px;
  opacity: .5;
  transition: transform .2s ease;
  margin-top: 1px;
}
.nav-item:hover .nav-item__chevron,
.nav-item--open .nav-item__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ============================================================
   DROPDOWN — simple
   ============================================================ */
.nav-item__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(52, 63, 82, .12);
  padding: 10px 0;
  z-index: 200;
}
.nav-item--open .nav-item__dropdown {
  display: block;
  animation: dropFade .18s ease;
}
@keyframes dropFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes megaFade {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-item__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1c1d1f;
  transition: background .12s, color .12s;
}
.nav-item__dropdown a:hover {
  background: rgba(0,128,96,.06);
  color: #008060;
}
.nav-item__dropdown a .drop-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* ============================================================
   MEGA MENU
   ============================================================ */
.nav-item--mega {
  position: static;
}
.nav-item__mega {
  display: none;
  position: fixed;
  top: 108px; /* top-bar (~36px) + header (72px) */
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100vw - 56px));
  background: #fff;
  border: 1px solid #e1e1e1;
  border-top: 3px solid #008060;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 32px rgba(52, 63, 82, .12);
  z-index: 300;
  padding: 32px 32px 28px;
}

/* Transparent bridge fills the gap between nav link and mega menu
   so the mouse never loses hover when travelling downward */
.nav-item--mega::after {
  content: '';
  position: fixed;
  top: 72px;          /* bottom of main header bar */
  left: 0;
  width: 100%;
  height: 40px;       /* covers the gap (top-bar height = ~36px) */
  z-index: 299;
  pointer-events: none; /* must not block clicks/hover on sibling nav items */
  display: none;
}
.nav-item--mega.nav-item--open::after {
  display: block;
}

/* JS drives open state — CSS hover is only a fallback */
.nav-item--mega.nav-item--open > .nav-item__mega {
  display: grid;
  animation: megaFade .18s ease;
}

/* Services mega: list | divider | card */
.mega--services {
  grid-template-columns: 1fr 1px 300px;
  gap: 0 32px;
  align-items: stretch;
}

/* About mega: 3 columns — links | company info | partners card */
.mega--about {
  grid-template-columns: 220px 1fr 300px;
  gap: 0 48px;
}

/* About — left col nav links */
.about-nav-links {
  display: grid;
  gap: 2px;
}
.about-nav-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.about-nav-link:hover {
  background: rgba(0,128,96,.06);
  border-left-color: #008060;
}
.about-nav-link__title {
  font-weight: 700;
  font-size: 14px;
  color: #343f52;
}
.about-nav-link__desc {
  font-size: 12.5px;
  color: #333333;
  line-height: 1.4;
}

/* About — middle col company info */
.about-company {
  padding: 0 10px;
  border-left: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
}
.about-company__title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  color: #343f52;
  margin-bottom: 14px;
}
.about-company__title span { color: #008060; }
.about-company__desc {
  font-size: 13.5px;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 22px;
}
.about-company__contacts { display: grid; gap: 16px; }
.about-company__contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about-company__contact-label {
  font-size: 12px;
  font-weight: 700;
  color: #008060;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.about-company__contact a {
  font-size: 14px;
  font-weight: 600;
  color: #343f52;
  text-decoration: none;
  transition: color .15s;
}
.about-company__contact a:hover { color: #008060; }
.about-company__offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-company__office {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-company__office span {
  font-size: 12px;
  font-weight: 700;
  color: #333333;
}
.about-company__office a {
  font-size: 14px;
  font-weight: 700;
  color: #343f52;
  text-decoration: none;
  transition: color .15s;
}
.about-company__office a:hover { color: #008060; }

/* About — right col partners card */
.about-partners {
  background: linear-gradient(160deg, #1d2f52 0%, #343f52 100%);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-partners__logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #008060, #45c4a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.about-partners__title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: #fff;
}
.about-partners__title span { color: #008060; }
.about-partners__sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.about-partners__badges {
  display: grid;
  grid-template-columns: repeat(2, 76px);
  gap: 8px;
  margin-top: 4px;
}
.partner-badge-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.about-partners__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #008060;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 6px;
  transition: background .15s;
  text-align: center;
}
.about-partners__cta:hover { background: #45c4a0; }

/* Hire mega: categories | divider | panels | divider | card */
.mega--hire {
  grid-template-columns: 200px 1px 1fr 1px 300px;
  gap: 0 32px;
  align-items: stretch;
}

/* Shared divider — thin vertical separator line */
.mega-divider {
  width: 1px;
  background: #e1e1e1;
  align-self: stretch;
}

/* Hire — left category list */
.hire-cats {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hire-cat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.hire-cat:hover,
.hire-cat--active {
  background: rgba(0,128,96,.06);
  border-left-color: #008060;
}
.hire-cat__title {
  font-size: 13px;
  font-weight: 700;
  color: #343f52;
  transition: color .15s;
}
.hire-cat:hover .hire-cat__title,
.hire-cat--active .hire-cat__title {
  color: #008060;
}
.hire-cat__desc {
  font-size: 11px;
  color: #333333;
}

/* Hire — right flyout panels */
.hire-panels { position: relative; }
.hire-panel { display: none; }
.hire-panel--active { display: block; }
.hire-panel__head { margin-bottom: 20px; }
.hire-panel__title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #343f52;
  margin-bottom: 8px;
}
.hire-panel__desc {
  font-size: 13.5px;
  color: #333333;
  line-height: 1.6;
  max-width: 480px;
}
.hire-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.hire-panel__grid a {
  display: block;
  font-size: 13.5px;
  color: #333333;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: color .12s;
}
.hire-panel__grid a:hover { color: #008060; }

.mega-col__title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #008060;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,128,96,.15);
}
.mega-col__list {
  list-style: none;
  display: grid;
  gap: 2px;
}
.mega-col__list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  transition: background .12s, color .12s;
}
.mega-col__list li a:hover {
  background: rgba(0,128,96,.07);
  color: #343f52;
}
.mega-col__list li a .mi {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Mega footer CTA strip */
.mega-footer {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mega-footer__text {
  font-size: 14px;
  color: #333333;
}
.mega-footer__text strong { color: #343f52; }
.mega-footer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mega-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.mega-footer__btn--solid {
  background: #008060;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,128,96,.3);
}
.mega-footer__btn--solid:hover {
  background: #45c4a0;
  transform: translateY(-1px);
}
.mega-footer__btn--outline {
  background: transparent;
  color: #343f52;
  border: 1.5px solid #e1e1e1;
}
.mega-footer__btn--outline:hover {
  border-color: #008060;
  color: #008060;
}


/* ============================================================
   NAV RIGHT — CTA
   ============================================================ */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-cta__quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #008060;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,128,96,.3);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.nav-cta__quote:hover {
  background: #45c4a0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,128,96,.35);
  color: #fff;

}
.nav-cta__phone {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #333333;
  font-weight: 600;
}
.nav-cta__phone a {
  font-size: 14px;
  font-weight: 700;
  color: #343f52;
  transition: color .15s;
}
.nav-cta__phone a:hover { color: #008060; }

/* ============================================================
   MOBILE HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
}
.hamburger__line {
  width: 24px;
  height: 2px;
  background: #343f52;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #e1e1e1;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-nav.is-open {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav__inner {
  padding: 16px 20px 28px;
  display: grid;
  gap: 2px;
}
.mobile-nav__item {
  border-bottom: 1px solid #e1e1e1;
}
.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1c1d1f;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
.mobile-nav__toggle-icon { font-size: 12px; color: #333333; transition: transform .2s; }
.mobile-nav__sub { display: none; padding: 6px 0 14px 16px; }
.mobile-nav__item.is-open > .mobile-nav__toggle .mobile-nav__toggle-icon { transform: rotate(180deg); }
.mobile-nav__item.is-open > .mobile-nav__sub { display: grid; gap: 2px; }
/* Nested category accordions inside Hire Resources */
.mobile-nav__sub .mobile-nav__item { border-bottom: 1px solid #e1e1e1; }
.mobile-nav__sub .mobile-nav__item:last-child { border-bottom: none; }
.mobile-nav__sub .mobile-nav__toggle { font-size: 14px; font-weight: 600; padding: 11px 6px; color: #343f52; }
.mobile-nav__sub .mobile-nav__sub { padding-left: 14px; }
.mobile-nav__sub-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #008060;
  padding: 10px 6px 6px;
}
.mobile-nav__sub a {
  display: block;
  padding: 9px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.mobile-nav__sub a:hover { background: rgba(0,128,96,.07); color: #343f52; }
.mobile-nav__cta {
  display: flex;
  gap: 12px;
  padding: 16px 6px 6px;
  flex-wrap: wrap;
}
.mobile-nav__cta a {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.mobile-nav__cta .btn-primary { background: #008060; color: #fff; }
.mobile-nav__cta .btn-outline  { border: 1.5px solid #e1e1e1; color: #343f52; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav-cta__phone { display: none; }
}
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-cta__quote { display: none; }
}
@media (max-width: 620px) {
  .top-bar__contacts { gap: 16px; }
  .top-bar__contact:not(:first-child) { display: none; }
}

/* ============================================================
   SPONSOR / PARTNER BADGES  (header right cluster + mobile drawer)
   ============================================================ */
.nav-sponsors {
  display: flex;
  align-items: center;
  gap: 18px;
}
/* Logos sit transparently on the header — no chip/box background.
   All three marks are dark/colored artwork meant for a light ground. */
.nav-sponsor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  transition: transform .15s, opacity .15s;
}
.nav-sponsor:hover { transform: translateY(-1px); opacity: .8; }
.nav-sponsor img {
  display: block;
  width: auto;
  height: 26px;          /* uniform logo height across the strip */
  max-width: 118px;
  object-fit: contain;
}
/* subtle hairline separators between logos (desktop strip only) */
.nav-sponsors .nav-sponsor + .nav-sponsor { position: relative; }
.nav-sponsors .nav-sponsor + .nav-sponsor::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #e1e1e1;
}

/* Hide the desktop sponsor cluster once the header gets tight */
@media (max-width: 1280px) {
  .nav-sponsors { display: none; }
}

/* Mobile drawer sponsor row */
.mobile-nav__sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 6px 4px;
}