/* GCExperts shared site header — GCE-987 (2026-10-17)
   Full-width white bar, centred inner container, one nav row.
   Client-result links live in a native <details> dropdown so the
   header keeps a single nav line and works with or without JS. */

#gcx-topnav.gcx-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 40;
}

#gcx-topnav .gcx-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

#gcx-topnav .gcx-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  line-height: 1.05;
}

#gcx-topnav .gcx-brand-mark {
  width: 2rem;
  height: 2.1rem;
  flex-shrink: 0;
  color: #dc2626;
}

#gcx-topnav .gcx-brand-name {
  display: block;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #dc2626;
}

#gcx-topnav .gcx-brand-tagline {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

#gcx-topnav .gcx-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

#gcx-topnav .gcx-nav > a,
#gcx-topnav .gcx-clients > summary {
  color: #334155;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}

#gcx-topnav .gcx-nav > a:hover,
#gcx-topnav .gcx-clients > summary:hover {
  color: #b91c1c;
  border-bottom-color: #dc2626;
}

#gcx-topnav .gcx-nav > a:focus-visible,
#gcx-topnav .gcx-clients > summary:focus-visible,
#gcx-topnav .gcx-brand:focus-visible,
#gcx-topnav .gcx-client-menu a:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 3px;
  border-radius: 3px;
}

#gcx-topnav .gcx-clients {
  position: relative;
}

#gcx-topnav .gcx-clients > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#gcx-topnav .gcx-clients > summary::-webkit-details-marker {
  display: none;
}

#gcx-topnav .gcx-clients > summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.12s ease;
}

#gcx-topnav .gcx-clients[open] > summary {
  color: #b91c1c;
  border-bottom-color: #dc2626;
}

#gcx-topnav .gcx-clients[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

#gcx-topnav .gcx-client-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 60;
  min-width: 15rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

#gcx-topnav .gcx-client-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

#gcx-topnav .gcx-client-menu a:hover,
#gcx-topnav .gcx-client-menu a:focus-visible {
  background: #fef2f2;
  color: #b91c1c;
}

#gcx-topnav .gcx-client-menu .gcx-client-all {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
  color: #b91c1c;
}

@media (max-width: 900px) {
  #gcx-topnav .gcx-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
  }

  #gcx-topnav .gcx-brand {
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
  }

  #gcx-topnav .gcx-brand-mark {
    width: 1.75rem;
    height: 1.85rem;
  }

  #gcx-topnav .gcx-brand-name {
    font-size: 1.35rem;
  }

  #gcx-topnav .gcx-brand-tagline {
    font-size: 0.575rem;
  }

  #gcx-topnav .gcx-nav {
    width: 100%;
    justify-content: center;
    gap: 0.25rem 0.85rem;
    font-size: 0.8125rem;
  }

  #gcx-topnav .gcx-nav > a,
  #gcx-topnav .gcx-clients > summary {
    padding: 0.3rem 0;
  }

  #gcx-topnav .gcx-clients {
    position: static;
  }

  #gcx-topnav .gcx-client-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    min-width: 0;
    margin-top: 0.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  #gcx-topnav * {
    transition: none !important;
  }
}
