/* Shared Nexus header + footer (blog + services) */
:root {
  --nx-ink: #0F172A;
  --nx-muted: #64748B;
  --nx-border: #E2E8F0;
  --nx-bg: #F8FAFC;
  --nx-blue: #2563EB;
  --nx-blue-2: #3B82F6;
}

.nx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nx-border);
}
.nx-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nx-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nx-header__logo img {
  height: 2.35rem;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 768px) {
  .nx-header__logo img { height: 2.55rem; }
}
.nx-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nx-header__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}
.nx-header__nav a:hover { color: var(--nx-blue); }
.nx-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--nx-blue-2), var(--nx-blue));
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nx-header__cta:hover { filter: brightness(1.05); }
.nx-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--nx-border);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--nx-ink);
  cursor: pointer;
}
.nx-header__mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid var(--nx-border);
  background: #fff;
}
.nx-header__mobile a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.nx-header__mobile a:hover { color: var(--nx-blue); }
.nx-header.is-open .nx-header__mobile { display: flex; }

@media (min-width: 768px) {
  .nx-header__nav { display: flex; }
  .nx-header__toggle { display: none; }
  .nx-header__mobile { display: none !important; }
}

.nx-footer {
  position: relative;
  margin-top: 3rem;
  background: #fff;
  border-top: 1px solid var(--nx-border);
  color: var(--nx-muted);
}
.nx-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 55%, #93C5FD 100%);
}
.nx-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.75rem;
}
.nx-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .nx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
}
.nx-footer__brand img {
  height: 2.25rem;
  width: auto;
  display: block;
  margin-bottom: 0.85rem;
}
.nx-footer__bio {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 28rem;
  color: var(--nx-muted);
}
.nx-footer__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-blue);
}
.nx-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.nx-footer__links a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.nx-footer__links a:hover { color: var(--nx-blue); }
.nx-footer__contact {
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.nx-footer__contact a {
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.nx-footer__contact a:hover { color: var(--nx-blue); }
.nx-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.nx-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  border: 1px solid var(--nx-border);
  background: #fff;
  color: #475569;
  text-decoration: none;
}
.nx-footer__social a:hover {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.1);
}
.nx-footer__social a[aria-label="Facebook"]:hover { color: #1877F2; border-color: #BFDBFE; background: #EFF6FF; }
.nx-footer__social a[aria-label="LinkedIn"]:hover { color: #0A66C2; border-color: #BFDBFE; background: #EFF6FF; }
.nx-footer__social a[aria-label="Instagram"]:hover { color: #DB2777; border-color: #FBCFE8; background: #FDF2F8; }
.nx-footer__social a[aria-label="TikTok"]:hover { color: #111827; border-color: #CBD5E1; background: #F8FAFC; }
.nx-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--nx-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--nx-muted);
}
.nx-footer__bottom a {
  color: var(--nx-blue);
  text-decoration: none;
  font-weight: 600;
}
.nx-footer__bottom a:hover { text-decoration: underline; }
