/* ==========================================================================
   Push Digital Insights - Dynamic Floating Navbar
   Directly ported from components/navbar.jsx & components/navbar.css
   ========================================================================== */

:root {
  --ease-figma: cubic-bezier(0, 0, 0.58, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.navbar-header {
  pointer-events: none;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

@media (min-width: 640px) {
  .navbar-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* WordPress Admin Bar Compatibility */
.admin-bar .navbar-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .navbar-header {
    top: 46px;
  }
}

.navbar-header.is-collapsed {
  box-shadow: none;
}

.navbar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-right: 6px;
  transition: background-color 200ms ease, transform 150ms ease;
}

.navbar-search-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.navbar-mobile-cta-link {
  color: #39b54a !important;
  font-weight: 700 !important;
}

.navbar-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  height: 52px;
  width: 100%;
  max-width: 644px;
  align-items: center;
  border-radius: 36px;
  background: #000;
  padding: 0 8px;
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.45);
  transition: max-width 300ms var(--ease-figma) 150ms;
}

.navbar-logo {
  position: relative;
  display: flex;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: #fff;
  text-decoration: none;
  transition:
    width 300ms var(--ease-figma) 150ms,
    opacity 300ms var(--ease-figma) 150ms;
}

.navbar-logo-mark {
  height: 24px;
  width: auto;
  max-width: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  border: 0;
  outline: none;
  transition: opacity 300ms var(--ease-figma) 150ms;
}

.navbar-logo-full {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  opacity: 0;
  transition: opacity 300ms var(--ease-figma) 150ms;
}

.navbar-logo-full img {
  height: 25px;
  width: auto;
  max-width: 164px;
  object-fit: contain;
  display: block;
}

.navbar-links {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
    /* Full bar height, so the dropdown can hang off the bar's bottom edge rather than
       from the middle of it. align-items keeps the links themselves centred. */
    align-self: stretch;
  }
}

.navbar-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #fff;
  text-decoration: none;
  /* Inactive links sit back; the active one is full white. Same colour throughout - only
     the opacity differs. */
  opacity: 0.55;
  transition: opacity 150ms ease;
  white-space: nowrap;
}

.navbar-link:hover,
.navbar-link.is-active {
  opacity: 1;
}

.navbar-cta {
  position: relative;
  margin-left: auto;
  display: none;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: #fff;
  text-decoration: none;
  transition:
    width 300ms var(--ease-figma) 150ms,
    opacity 300ms var(--ease-figma) 150ms;
}

@media (min-width: 1024px) {
  .navbar-cta {
    display: flex;
  }
}

.navbar-cta-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms var(--ease-figma) 150ms;
}

.navbar-cta-icon svg {
  width: 18px;
  height: 18px;
  stroke: #1c1c1c;
}

.navbar-cta-label {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #1c1c1c;
  opacity: 0;
  transition: opacity 300ms var(--ease-figma) 150ms;
}

.navbar-toggle {
  margin-left: auto;
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .navbar-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {

  /* Dynamic expansion on hover */
  .navbar-bar:hover {
    max-width: 904px !important;
  }

  .navbar-bar:hover .navbar-logo {
    width: 190px !important;
  }

  .navbar-bar:hover .navbar-logo-mark {
    opacity: 0 !important;
  }

  .navbar-bar:hover .navbar-logo-full {
    opacity: 1 !important;
  }

  .navbar-bar:hover .navbar-cta {
    width: 153px !important;
  }

  .navbar-bar:hover .navbar-cta-icon {
    opacity: 0 !important;
  }

  .navbar-bar:hover .navbar-cta-label {
    opacity: 1 !important;
  }
}

/* Sticky compact bar styles */
.navbar-header.is-collapsed .navbar-bar {
  pointer-events: auto;
}

@media (min-width: 640px) {
  .navbar-header.is-collapsed .navbar-bar {
    margin-top: 28px;
  }
}

.navbar-mobile {
  pointer-events: auto;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 68px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border-radius: 24px;
  background: #000;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

@media (min-width: 1024px) {
  .navbar-mobile {
    display: none !important;
  }
}

.navbar-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-mobile-link {
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #fff;
  text-decoration: none;
  display: block;
}

.navbar-mobile-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-mobile-services-heading {
  display: flex;
  align-items: center;
}

.navbar-mobile-services-heading>.navbar-mobile-link {
  flex: 1;
}

.navbar-mobile-services-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.navbar-mobile-services-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-mobile-services-toggle svg {
  transition: transform 180ms ease;
}

.navbar-mobile-services.is-open .navbar-mobile-services-toggle svg {
  transform: rotate(180deg);
}

.navbar-mobile-services-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.navbar-mobile-services-sublink {
  border-radius: 12px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.navbar-mobile-services-sublink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #2f6bff;
}

/* Limelight: sits on the top edge of the black bar and slides to the lit nav item, with a
   soft beam fanning down inside it. Reuses the links' own #fff - no new colours. */
.navbar-limelight {
  position: absolute;
  top: 0;
  left: -999px;
  z-index: 1;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: left 320ms var(--ease-figma), opacity 200ms ease;
}

.navbar-limelight.is-on {
  opacity: 1;
}

.navbar-limelight-beam {
  position: absolute;
  left: -30%;
  top: 3px;
  width: 160%;
  height: 46px;
  clip-path: polygon(5% 100%, 25% 0, 75% 0, 95% 100%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* The links row is hidden below 1024px, so there is nothing for the light to mark. */
@media (max-width: 1023px) {
  .navbar-limelight {
    display: none;
  }
}

/* ------------------------------- services dropdown -------------------------------- */

/* Stretched to the height of the links row - which .navbar-links stretches to the full
   bar - so the pointer never leaves the wrapper on its way down from the label to the
   bar's bottom edge, where the panel's hover bridge takes over. */
.navbar-item {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 4px;
  position: static;
}

.navbar-item-arrow {
  color: #fff;
  opacity: 0.55;
  transition: opacity 150ms ease, transform 200ms ease;
}

.navbar-item:hover .navbar-item-arrow,
.navbar-item.is-open .navbar-item-arrow {
  opacity: 1;
  transform: rotate(180deg);
}

/*
 * Anchored to .navbar-bar, not to the SERVICES item: three columns are nearly as wide as
 * the bar itself, and the bar grows to 904px on hover while the links slide across with
 * it. Centred on the bar, the panel holds still through all of that.
 */
.navbar-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 99;
  width: 720px;
  max-width: calc(100vw - 24px);
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px) scale(0.96);
  transform-origin: top center;
  transition: opacity 200ms ease, transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1), visibility 200ms ease;
  pointer-events: none;
}

.navbar-item.is-open .navbar-menu,
.navbar-item:hover .navbar-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Three columns of three, filled top-to-bottom */
.navbar-menu-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 2px 8px;
  padding: 10px;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

.navbar-menu-item {
  display: flex;
  align-items: center;
  border-radius: 16px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.navbar-menu-item:hover {
  color: #2f6bff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1023px) {
  .navbar-menu {
    display: none !important;
  }
}