/* ============================================================
   GLASS NAVIGATION — Exact match to reference screenshot
   Dark floating pill · SPH logo · center nav · green CTA
   SkillPeopleHire
   ============================================================ */

:root {
  --g-green:        #6BBF2B;
  --g-green-glow:   rgba(107,191,43,.35);
  --g-green-tint:   rgba(107,191,43,.08);
  --g-green-soft:   rgba(107,191,43,.12);
  --g-ease:         cubic-bezier(.4,0,.2,1);
  --g-spring:       cubic-bezier(.34,1.56,.64,1);
}

/* ============================================================
   FLOATING GLASS HEADER
   ============================================================ */
.gn {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1380px;
  z-index: 1000;
  height: 68px;
  transition: top 320ms var(--g-ease), box-shadow 320ms var(--g-ease);
}

.gn.scrolled {
  top: 8px;
}

/* The pill */
.gn__inner {
  width: 100%;
  height: 100%;
  background: rgba(7,20,14,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  padding: 0 1.625rem;
  gap: 0;
  position: relative;
  overflow: visible;
  transition: background 320ms var(--g-ease), box-shadow 320ms var(--g-ease);
}

.gn.scrolled .gn__inner {
  background: rgba(7,20,14,.96);
  box-shadow: 0 10px 48px rgba(0,0,0,.32), 0 2px 10px rgba(0,0,0,.14);
  border-color: rgba(255,255,255,.12);
}

/* Top reflection line */
.gn__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  border-radius: 16px;
  pointer-events: none;
}

/* ---- Logo ------------------------------------------------ */
.gn__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2rem;
}

/* Real logo image */
.gn__logo-img {
  height: 42px;
  width: auto;
  display: block;
  /* The logo has a black bg — make it transparent on the dark nav */
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.05);
  transition: filter .3s, transform .3s;
}

.gn__logo:hover .gn__logo-img {
  filter: brightness(1.2) contrast(1.1);
  transform: scale(1.03);
}

/* Fallback — shown when logo.png is not yet saved */
.gn__logo-fallback {
  display: none;
  align-items: center;
  gap: .625rem;
}

/* Keep old logomark styles as fallback (hidden when img loads) */
.gn__logomark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6BBF2B 0%, #2D5A3D 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: .04em;
  box-shadow: 0 0 20px rgba(107,191,43,.4), inset 0 1px 0 rgba(255,255,255,.2);
  flex-shrink: 0;
  transition: box-shadow .3s;
}

.gn__logo:hover .gn__logomark {
  box-shadow: 0 0 32px rgba(107,191,43,.6), inset 0 1px 0 rgba(255,255,255,.2);
}

.gn__brandname {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,.92);
  letter-spacing: -.025em;
  white-space: nowrap;
}

/* ---- Nav links ------------------------------------------- */
.gn__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.gn__links > li {
  position: relative;
}

.gn__links > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .825rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms var(--g-ease), background 200ms var(--g-ease), transform 200ms var(--g-ease);
}

.gn__links > li > a:hover {
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.gn__links > li > a.active {
  color: #6BBF2B;
}

/* Green underline indicator */
.gn__links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  background: #6BBF2B;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(107,191,43,.6);
  transition: transform 240ms var(--g-ease), opacity 240ms;
  opacity: 0;
}

.gn__links > li > a.active::after,
.gn__links > li > a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Services dropdown arrow */
.gn__arrow {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: rgba(255,255,255,.38);
  transition: transform 280ms var(--g-spring), color 200ms;
}

.has-mega:hover > a .gn__arrow,
.has-mega.open > a .gn__arrow {
  transform: rotate(180deg);
  color: #6BBF2B;
}

/* ---- Right: socials + CTA -------------------------------- */
.gn__right {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.gn__socials {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.gn__social {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  transition: border-color 200ms, color 200ms, background 200ms, transform 200ms var(--g-ease);
}

.gn__social:hover {
  border-color: rgba(107,191,43,.5);
  color: #6BBF2B;
  background: rgba(107,191,43,.08);
  transform: translateY(-1px);
}

/* GREEN CTA — "DROP YOUR CV" */
.gn__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  background: #6BBF2B;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9px;
  border: 1.5px solid rgba(107,191,43,.7);
  box-shadow: 0 2px 12px rgba(107,191,43,.4), inset 0 1px 0 rgba(255,255,255,.18);
  white-space: nowrap;
  transition: background 200ms, box-shadow 200ms, transform 200ms var(--g-ease);
}

.gn__cta:hover {
  background: #5BAF23;
  box-shadow: 0 4px 22px rgba(107,191,43,.55);
  transform: translateY(-1px);
  color: #fff;
}

/* ---- Mobile toggle --------------------------------------- */
.gn__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
  margin-left: auto;
}

.gn__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: all .22s var(--g-ease);
}

/* ============================================================
   SERVICES MEGA MENU
   ============================================================ */
.gn__mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 920px;
  max-width: 96vw;
  background: #061410;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--g-ease), transform 260ms var(--g-spring), visibility 260ms;
  pointer-events: none;
  overflow: hidden;
}

.gn__mega::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  pointer-events: none;
}

.has-mega:hover > .gn__mega,
.has-mega.open > .gn__mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Mega grid */
.mega__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 420px;
}

/* Left list */
.mega__left {
  padding: 1.5rem 1rem 1.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.mega__list-header {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: .5rem .875rem .75rem;
}

.mega__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .875rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 160ms var(--g-ease), transform 160ms var(--g-ease);
}
/* Show a subtle "go" arrow on hover to indicate it's clickable */
.mega__item:hover .mega__item__arrow {
  opacity: 1;
}
.mega__item .mega__item__arrow {
  opacity: .4;
  transition: opacity 160ms, color 160ms, transform 160ms var(--g-ease);
}

.mega__item:hover { background: rgba(107,191,43,.08); transform: translateX(3px); }
.mega__item.active { background: rgba(107,191,43,.12); }

.mega__item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%;
  background: #6BBF2B;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(107,191,43,.5);
  transition: transform 180ms var(--g-ease);
}

.mega__item.active::before,
.mega__item:hover::before { transform: translateY(-50%) scaleY(1); }

.mega__item__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
  transition: background 160ms, color 160ms;
}

.mega__item.active .mega__item__icon,
.mega__item:hover .mega__item__icon {
  background: rgba(107,191,43,.12);
  color: #6BBF2B;
}

.mega__item__text { display: flex; flex-direction: column; gap: 1px; }

.mega__item__name {
  font-family: 'Inter', sans-serif;
  font-size: .875rem; font-weight: 600;
  color: rgba(255,255,255,.72);
  transition: color 160ms;
}

.mega__item.active .mega__item__name,
.mega__item:hover .mega__item__name { color: rgba(255,255,255,.95); }

.mega__item__count {
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: 500;
  color: rgba(255,255,255,.28);
}

.mega__item__arrow {
  margin-left: auto;
  color: rgba(255,255,255,.2);
  flex-shrink: 0;
  transition: color 160ms, transform 160ms var(--g-ease);
}

.mega__item.active .mega__item__arrow,
.mega__item:hover .mega__item__arrow { color: #6BBF2B; transform: translateX(2px); }

.mega__all {
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.mega__all a {
  display: flex; align-items: center; gap: .5rem;
  padding: .625rem .875rem;
  font-family: 'Inter', sans-serif;
  font-size: .8125rem; font-weight: 700;
  color: #6BBF2B; text-decoration: none;
  border-radius: 8px;
  transition: background 160ms;
}

.mega__all a:hover { background: rgba(107,191,43,.08); }

/* Right preview */
.mega__right {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
}

.mega__preview {
  display: none;
  flex-direction: column; gap: 1.25rem;
  height: 100%;
  animation: previewFadeIn 200ms var(--g-ease) forwards;
}

.mega__preview.visible { display: flex; }

@keyframes previewFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mega__preview__img {
  width: 100%; height: 200px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}

.mega__preview__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6) 100%);
  border-radius: 14px;
}

.mega__preview__emoji {
  font-size: 4rem;
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

.mega__preview--construction .mega__preview__img { background: linear-gradient(135deg, #1a2e1f, #2d4a22, #3d5a2a); }
.mega__preview--it          .mega__preview__img { background: linear-gradient(135deg, #0d1b2a, #162d44, #1a3a5c); }
.mega__preview--engineering .mega__preview__img { background: linear-gradient(135deg, #1a1a2e, #2d2d44, #3a3a5a); }
.mega__preview--healthcare  .mega__preview__img { background: linear-gradient(135deg, #1a0d1a, #2d1a2d, #3d2040); }
.mega__preview--hospitality .mega__preview__img { background: linear-gradient(135deg, #2e1a0d, #44280e, #5a3412); }
.mega__preview--manufacturing .mega__preview__img { background: linear-gradient(135deg, #1a1a14, #2d2d1e, #3d3d28); }
.mega__preview--transport   .mega__preview__img { background: linear-gradient(135deg, #0d1a1a, #142e2e, #1a3d3d); }

.mega__preview__img-label {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 2;
}

.mega__preview__img-badge {
  background: rgba(107,191,43,.2);
  border: 1px solid rgba(107,191,43,.4);
  color: #a8e063;
  font-family: 'Inter', sans-serif;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .75rem; border-radius: 20px;
  backdrop-filter: blur(8px);
}

.mega__preview__content { display: flex; flex-direction: column; gap: .625rem; }

.mega__preview__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem; font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: -.01em; line-height: 1.25;
}

.mega__preview__desc {
  font-family: 'Inter', sans-serif;
  font-size: .875rem; font-weight: 400;
  color: rgba(255,255,255,.48); line-height: 1.7;
}

.mega__preview__stats {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .875rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.mega__preview__stat { display: flex; flex-direction: column; gap: 2px; }

.mega__preview__stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem; font-weight: 700; color: #6BBF2B;
}

.mega__preview__stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: 600;
  color: rgba(255,255,255,.32);
  letter-spacing: .06em; text-transform: uppercase;
}

.mega__preview__cta { display: flex; align-items: center; gap: .75rem; }

.mega__preview__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5625rem 1.25rem;
  background: #6BBF2B; color: #fff;
  font-family: 'Inter', sans-serif; font-size: .8125rem; font-weight: 700;
  text-decoration: none; border-radius: 8px; letter-spacing: .03em;
  box-shadow: 0 2px 12px rgba(107,191,43,.35);
  transition: background 200ms, box-shadow 200ms, transform 200ms var(--g-ease);
}

.mega__preview__btn:hover {
  background: #5BAF23;
  box-shadow: 0 4px 20px rgba(107,191,43,.5);
  transform: translateY(-1px); color: #fff;
}

.mega__preview__link {
  font-family: 'Inter', sans-serif;
  font-size: .8125rem; font-weight: 600;
  color: rgba(255,255,255,.42); text-decoration: none;
  transition: color 180ms;
}

.mega__preview__link:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 960px) {
  .gn { top: 10px; width: 96%; }
  .gn__toggle { display: flex; }
  .gn__links  { display: none; }
  .gn__right  { display: none; }

  .gn__links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: rgba(7,20,14,.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 18px 48px rgba(0,0,0,.35);
    z-index: 999;
    gap: .25rem;
  }

  .gn__links.mobile-open li a {
    padding: .75rem 1rem; border-radius: 8px;
    color: rgba(255,255,255,.72); font-size: .875rem;
  }

  .gn__links.mobile-open li a:hover {
    background: rgba(107,191,43,.08); color: #fff; transform: none;
  }

  .gn__mega { display: none; }
}

/* ============================================================
   BODY OFFSET — push content below fixed nav
   ============================================================ */
body { padding-top: 100px; }
.rh  { margin-top: -100px; }
