/* Utility top bar (rendered via astra_header_before in functions.php).
   Mirrors live savvysecurity.co.nz: email (left) · Call pill (centre) ·
   social icons (right). Pure-black strip sitting above the dark main header. */

.savvy-topbar {
  background-color: #000;
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.savvy-topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px var(--container-padding, 20px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4, 16px);
}

/* Email (left) */
.savvy-topbar__email {
  font-size: 13px;
  color: var(--text-on-dark);
  text-decoration: none;
  opacity: 0.9;
  justify-self: start;
}
.savvy-topbar__email:hover { opacity: 1; color: var(--brand-emphasis); text-decoration: underline; }

/* Call pill (centre) */
.savvy-topbar__call {
  justify-self: center;
  display: inline-block;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.savvy-topbar__call:hover { background: var(--brand-emphasis, #ffd500); color: #111; }

/* Socials (right) */
.savvy-topbar__socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.savvy-topbar__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.savvy-topbar__socials a:hover { background: var(--brand-emphasis, #ffd500); transform: translateY(-1px); }
.savvy-topbar__socials svg {
  width: 15px;
  height: 15px;
  fill: #111;
}

/* Tablet/mobile: drop the email so the pill + socials stay clean and centred. */
@media (max-width: 768px) {
  .savvy-topbar__inner { grid-template-columns: 1fr auto; }
  .savvy-topbar__email { display: none; }
  .savvy-topbar__call { justify-self: start; }
}
@media (max-width: 480px) {
  .savvy-topbar__call { font-size: 12px; padding: 5px 14px; }
  .savvy-topbar__socials a { width: 26px; height: 26px; }
}
