/* Shared navbar + footer (layout.js loads /navbar.html, /footer.html) */
:root {
  --nf-border: #E5E7EB;
  --nf-ink-s: #374151;
  --nf-blue-pale: #f0f5ff;
  --nf-blue: #1a56db;
  --nf-blue-h: #1648c0;
  --nf-navy: #0f1b5c;
  --nf-dark: #141f31;
  ;
}

.nav a,
.mob-menu a,
.footer a {
  text-decoration: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-color: var(--nf-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Homepage only: white glass bar for logo visibility */
body.page-home .nav:not(.scrolled) {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.page-home .nav:not(.scrolled) .nav-links a {
  color: #111928;
}

body.page-home .nav:not(.scrolled) .nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a56db;
}

body.page-home .nav:not(.scrolled) .nav-btn-ghost {
  color: #111928;
  border-color: rgba(0, 0, 0, 0.15);
}

body.page-home .nav:not(.scrolled) .nav-btn-ghost:hover {
  border-color: #1a56db;
  color: #1a56db;
  background: rgba(0, 0, 0, 0.03);
}

body.page-home .nav:not(.scrolled) .hb span {
  background: #111928;
}

body.page-home .nav:not(.scrolled)+.mob-menu {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.page-home .nav:not(.scrolled)+.mob-menu a {
  color: #111928;
}

body.page-home .nav:not(.scrolled)+.mob-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a56db;
}

body.page-home .nav:not(.scrolled)+.mob-menu .mob-menu-btns {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.page-home .nav:not(.scrolled)+.mob-menu .nav-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

body.page-home .nav:not(.scrolled)+.mob-menu .nav-btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav .nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--nf-navy);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  margin-right: 8px;
}

.nl-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

/* logo.png is 125×30; lock height so it fits the 66px nav row */
.nl-logo-img,
.nl-logo-svg {
  height: 30px;
  width: auto;
  max-width: 125px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Logo styling */
.nl-logo-img,
.nl-logo-svg {
  height: 30px;
  width: auto;
  max-width: 125px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 400px) {

  .nl-logo-img,
  .nl-logo-svg {
    height: 26px;
    max-width: 108px;
  }
}

/* Meta Business Partner badge (same asset as homepage hero) */
.nav-mbp {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 6px;
  line-height: 0;
}

.nav-mbp-img {
  height: 30px;
  width: auto;
  max-width: 112px;
  display: block;
  object-fit: contain;
  object-position: left center;
  opacity: 0.92;
}

body.page-home .nav:not(.scrolled) .nav-mbp-img {
  opacity: 0.95;
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  .nav-mbp-img {
    height: 24px;
    max-width: 92px;
  }
}

@media (max-width: 400px) {
  .nav-mbp-img {
    height: 22px;
    max-width: 80px;
  }
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nf-ink-s);
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: var(--nf-blue-pale);
  color: var(--nf-blue);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn-ghost {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nf-ink-s);
  border: 1.5px solid var(--nf-border);
  transition: all 0.18s;
  text-decoration: none;
}

.nav-btn-ghost:hover {
  border-color: var(--nf-blue);
  color: var(--nf-blue);
}

.nav-btn-solid {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--nf-blue);
  transition: all 0.18s;
  text-decoration: none;
}

.nav-btn-solid:hover {
  background: var(--nf-blue-h);
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.22);
}

@media (max-width: 1100px) {
  .nav-inner {
    padding: 0 18px;
    gap: 4px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .nav-ctas {
    gap: 8px;
  }

  .nav-btn-ghost,
  .nav-btn-solid {
    font-size: 13px;
  }
}

.hb {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.hb span {
  width: 100%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mob-menu {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--nf-border);
  padding: 12px 16px 20px;
  z-index: 899;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mob-menu.open {
  display: flex;
}

.mob-menu a {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--nf-ink-s);
}

.mob-menu a:hover {
  background: var(--nf-blue-pale);
  color: var(--nf-blue);
}

.mob-menu-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--nf-border);
}

.mob-menu-btns a {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.footer {
  background: #080e2e;
  color: #94a3b8;
  padding: 45px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h4 {
  color: #fff;
}

.footer a {
  color: #94a3b8;
}

.footer a:hover {
  color: #fff;
}

.footer .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.ft-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  margin-bottom: 36px;
}

.ft-brand .ft-logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  margin-bottom: 14px;
}

.ft-brand .ft-logo {
  height: 30px;
  width: auto;
  max-width: 125px;
  display: block;
  margin-bottom: 0;
  object-fit: contain;
  object-position: left center;
}

.ft-about {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 12px;
}

.ft-def {
  font-size: 12px;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 16px;
}

.ft-mbp-badge {
  margin: 0 0 4px;
  padding: 0;
  line-height: 0;
}

.ft-mbp-img {
  height: auto;
  max-height: 36px;
  width: auto;
  max-width: 130px;
  display: block;
  object-fit: contain;
  object-position: left center;
  opacity: 0.95;
}

.ft-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin: 0 0 14px;
}

.ft-col a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: color 0.18s;
  text-decoration: none;
}

.ft-col a:hover {
  color: #f1f5f9;
}

.ft-bot {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ft-copy {
  font-size: 12px;
  color: #64748b;
}

/* ft-links removed */

.ft-links a {
  font-size: 12px;
  color: #64748b;
  transition: color 0.18s;
}

.ft-links a:hover {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-ctas {
    display: none;
  }

  .hb {
    display: flex;
  }
}

@media (max-width: 900px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ft-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .terms-shell {
    padding-top: 104px;
  }

  .ft-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    padding: 0 16px;
  }
}

/* Social Media Icons */
.ft-social,
.footer-social {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
  width: max-content;
  max-width: none;
}

.ft-social {
  margin-left: auto;
}

.ft-social a,
.footer-social a {
  color: #64748b;
  line-height: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ft-social a:hover,
.footer-social a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.ft-social a svg,
.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* Brand Colors */
.ft-social a[aria-label*="Facebook"],
.footer-social a[aria-label*="Facebook"] {
  color: #1877f2;
  opacity: 1;
}

.ft-social a[aria-label*="Twitter"],
.ft-social a[aria-label*="X"],
.footer-social a[aria-label*="Twitter"],
.footer-social a[aria-label*="X"] {
  color: #ffffff;
  opacity: 1;
}

.ft-social a[aria-label*="Instagram"],
.footer-social a[aria-label*="Instagram"] {
  color: #e4405f;
  opacity: 1;
}

.ft-social a[aria-label*="LinkedIn"],
.footer-social a[aria-label*="LinkedIn"] {
  color: #0077b5;
  opacity: 1;
}

.ft-social a[aria-label*="YouTube"],
.footer-social a[aria-label*="YouTube"] {
  color: #ff0000;
  opacity: 1;
}

.ft-social a[aria-label*="Email"],
.footer-social a[aria-label*="Email"] {
  color: #64748b;
  opacity: 1;
}

.ft-social a[aria-label*="Email"]:hover,
.footer-social a[aria-label*="Email"]:hover {
  color: #4285f4;
}



.ft-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
}

.ft-social a:nth-child(n),
.footer-social a:nth-child(n) {
  display: inline-flex !important;
  visibility: visible !important;
}

@media (max-width: 768px) {

  .ft-bot,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .ft-social,
  .footer-social {
    justify-content: center;
    margin-left: 0;
    width: max-content;
  }
}

@media (max-width: 650px) {
  .ft-bot {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .ft-social,
  .footer-social {
    justify-content: center;
    margin-top: 12px;
    flex-wrap: nowrap;
  }

  .ft-links {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}