/*
 * Site header: utility bar + main menu bar (header.php).
 * Same blue, font and container width as the rest of the blog.
 */
.eq-site-header {
  --hd-blue: #007cc3;
  --hd-blue-dark: #00669f;
  --hd-blue-tint: #eef7fd;
  --hd-ink: #0f1c2e;
  --hd-ink-mid: #2d3f55;
  --hd-ink-soft: #5a6e84;
  --hd-border: #e3e8ef;
}

/* ── Utility bar ── */
.eq-topbar {
  background: var(--hd-blue);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}
.eq-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.eq-topbar-contact,
.eq-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eq-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  opacity: .92;
  text-decoration: none;
  transition: opacity .15s;
}
.eq-topbar a:hover { opacity: 1; text-decoration: underline; }
.eq-topbar svg { width: 14px; height: 14px; flex-shrink: 0; }
.eq-topbar-sep { opacity: .55; }
.eq-topbar-right span { opacity: .8; }
.eq-topbar-right a { font-weight: 600; }

/* ── Main bar ── */
#sticky-header.eq-menu {
  background: #fff;
  border-bottom: 1px solid var(--hd-border);
  padding: 0;
}
#sticky-header.eq-menu.sticky-menu {
  border-bottom: 1px solid var(--hd-border);
  box-shadow: 0 4px 18px rgba(15, 28, 46, .08);
  animation: eq-header-in .25s ease-out;
}
@keyframes eq-header-in {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
/* placeholder that stops the page jumping when the bar becomes fixed */
#header-fixed-height.active-height { height: 73px; }

.eq-menu-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.eq-logo { display: inline-flex; flex-shrink: 0; }
.eq-logo img {
  width: auto;
  height: 46px;
  max-height: none;
}

/* menu links */
.eq-nav {
  display: none;
  flex: 1;
  justify-content: center;
}
#sticky-header .eq-nav .navigation {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#sticky-header .eq-nav .navigation > li > a {
  position: relative;
  display: block;
  padding: 26px 13px;
  color: var(--hd-ink-mid);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
  transition: color .15s;
}
#sticky-header .eq-nav .navigation > li > a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hd-blue);
  transform: scaleX(0);
  transition: transform .2s ease;
}
#sticky-header .eq-nav .navigation > li > a:hover { color: var(--hd-blue); }
#sticky-header .eq-nav .navigation > li > a:hover::after { transform: scaleX(.6); }
#sticky-header .eq-nav .navigation > li.active > a {
  color: var(--hd-ink);
  font-weight: 600;
}
#sticky-header .eq-nav .navigation > li.active > a::after { transform: scaleX(1); }
#sticky-header .eq-nav .navigation > li.eq-nav-guides > a { color: var(--hd-blue); font-weight: 600; }
#sticky-header .eq-nav .navigation > li.eq-nav-guides > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  margin-top: -9px;
  background: var(--hd-border);
}

/* right side */
.eq-menu-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.eq-social {
  display: none;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eq-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  color: var(--hd-ink-soft);
  font-size: 14px;
  transition: color .15s, background .15s, border-color .15s;
}
.eq-social a:hover {
  color: var(--hd-blue);
  background: var(--hd-blue-tint);
  border-color: #cfe3f3;
}

.eq-btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--hd-blue, #007cc3);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s;
}
.eq-btn-header:hover { background: var(--hd-blue-dark, #00669f); }

/* menu button (small screens) - overrides the theme's absolutely positioned toggler */
#sticky-header .eq-burger.mobile-nav-toggler {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--hd-ink);
  cursor: pointer;
  transform: none;
}
.eq-burger svg { width: 22px; height: 22px; }

/* ── Mobile slide-out menu extras ── */
.mobile-menu .navigation li.active > a { color: #007cc3 !important; font-weight: 600; }
.eq-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 25px 10px;
}
.eq-mobile-cta .eq-btn-header { padding: 13px 18px; }
.eq-mobile-contact { color: #2d3f55; font-size: 14px; }
.mobile-menu .nav-logo img { width: auto; height: 42px; max-height: none; }

/* ── Breakpoints ── */
@media (min-width: 1200px) {
  .eq-nav { display: flex; }
  #sticky-header .eq-burger.mobile-nav-toggler { display: none; }
}
@media (min-width: 1400px) {
  .eq-social { display: flex; }
}
@media (max-width: 991px) {
  .eq-topbar-right { display: none; }
  .eq-topbar-inner { justify-content: center; }
}
@media (max-width: 575px) {
  .eq-topbar { display: none; }
  .eq-menu-wrap { min-height: 62px; gap: 12px; }
  .eq-logo img { height: 38px; }
  .eq-menu-actions .eq-btn-header { display: none; }
  #header-fixed-height.active-height { height: 63px; }
}
