/* Good Works Hub — liquid navigation header (from Header/header.html) */

:root {
  --gwh-yellow: #f0da12;
  --gwh-yellow-dark: #d9c40a;
  --gwh-ink: #241a0f;
  --gwh-header-h: 116px;
  --gwh-header-h-mobile: 68px;
}

.gwh-header * { box-sizing: border-box; }

.gwh-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #f0eee6;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.35s ease;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gwh-header.gwh-header--hidden {
  transform: translateY(-100%);
}

.gwh-header.gwh-header--scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.gwh-header__inner {
  height: var(--gwh-header-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.gwh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
}

.gwh-logo__img,
.gwh-logo .custom-logo {
  height: var(--gw-header-logo-height, 100px);
  max-width: var(--gw-header-logo-max-width, 120px);
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gwh-logo__text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gwh-yellow-dark);
  letter-spacing: -0.02em;
}

.gwh-nav {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.gwh-nav__list {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.gwh-nav__link {
  display: inline-block;
  padding: 10px 16px;
  color: var(--gwh-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.gwh-nav__link--active,
.gwh-nav__link:hover {
  color: #1a1206;
}

.gwh-liquid-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: url(#gwh-goo);
  pointer-events: none;
}

.gwh-liquid {
  position: absolute;
  top: 50%;
  height: 38px;
  margin-top: -19px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gwh-yellow), var(--gwh-yellow-dark));
  opacity: 0;
  transition:
    left 0.55s cubic-bezier(.65, -0.6, .35, 1.6),
    width 0.55s cubic-bezier(.65, -0.6, .35, 1.6),
    opacity 0.25s ease;
  animation: gwh-liquid-idle 4.5s ease-in-out infinite;
}

.gwh-liquid--trail {
  transition-delay: 0.09s, 0.09s, 0s;
  opacity: 0;
}

.gwh-liquid.gwh-liquid--visible,
.gwh-liquid--trail.gwh-liquid--visible {
  opacity: 1;
}

@keyframes gwh-liquid-idle {
  0%, 100% { border-radius: 999px; }
  50% { border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; }
}

.gwh-header__user {
  flex-shrink: 0;
}

.gwh-header__user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gwh-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.gwh-header__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.gwh-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gwh-yellow);
  color: var(--gwh-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gwh-auth:hover {
  background: var(--gwh-yellow-dark);
  transform: translateY(-1px);
  color: var(--gwh-ink);
}

.gwh-auth--ghost {
  background: transparent;
  border: 1px solid rgba(36, 26, 15, 0.18);
}

.gwh-auth--ghost:hover {
  background: rgba(240, 218, 18, 0.18);
}

.gwh-burger {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.gwh-burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gwh-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gwh-burger.gwh-burger--active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.gwh-burger.gwh-burger--active span:nth-child(2) {
  opacity: 0;
}

.gwh-burger.gwh-burger--active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.gwh-mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid #f0eee6;
  transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
}

.gwh-mobile.gwh-mobile--open {
  max-height: 560px;
}

.gwh-mobile__list {
  list-style: none;
  margin: 0;
  padding: 8px 24px 0;
}

.gwh-mobile__list li + li {
  border-top: 1px solid #f5f3ec;
}

.gwh-mobile__list a {
  display: block;
  padding: 16px 4px;
  color: var(--gwh-ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.gwh-mobile__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 24px 24px;
}

body.gwh-no-scroll {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gwh-header__inner {
    height: var(--gwh-header-h-mobile);
    padding: 0 20px;
  }

  .gwh-logo__img,
  .gwh-logo .custom-logo {
    height: 56px;
    max-width: 72px;
  }

  .gwh-nav,
  .gwh-header__user {
    display: none;
  }

  .gwh-burger {
    display: flex;
    margin-left: auto;
  }

  .gwh-mobile {
    display: block;
  }
}

/* Override legacy main.css logo rounding on the public header */
.gwh-header .gwh-logo__img,
.gwh-header .gwh-logo .custom-logo {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
