/* Shared with static pages: header nav + footer logo (matches index.html) */
.header .header-inner {
  justify-content: space-between !important;
  gap: 1.25rem;
}
.hp-header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.hp-header-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hp-header-link:hover {
  color: var(--accent-blue);
}
.hp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(40, 55, 155, 0.2);
}
.hp-header-cta:hover {
  transform: translateY(-1px);
}

footer img,
.footer img {
  max-width: 100%;
  height: auto;
  max-height: 68px !important;
  object-fit: contain;
}
.footer .logo,
.footer .footer-logo,
.footer .brand-logo {
  display: inline-flex;
  max-width: 240px;
}

@media (max-width: 1024px) {
  .hp-header-nav {
    gap: 0.9rem;
  }
  .hp-header-link {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 0.65rem 0.9rem !important;
  }
  .header .header-inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .header .logo img,
  .header .logo-img {
    height: 40px !important;
  }
  .hp-header-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    min-width: 0;
  }
  .hp-header-link {
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
  }
  .hp-header-cta {
    padding: 0.52rem 0.72rem;
    font-size: 0.78rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  .footer .logo,
  .footer .footer-logo,
  .footer .brand-logo {
    max-width: 180px;
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .header .logo img,
  .header .logo-img {
    height: 34px !important;
  }
  .hp-header-link {
    display: none !important;
  }
  .hp-header-nav {
    gap: 0.35rem;
  }
  /* Keep Experts visible on very small screens (icon-style entry to directory) */
  .hp-header-link.hp-header-link--experts {
    display: inline-flex !important;
    font-size: 0.72rem;
    max-width: 4.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hp-header-cta {
    padding: 0.5rem 0.68rem;
    font-size: 0.76rem;
  }
}


.footer-nav-desktop {
  display: none !important;
}
