/* ═══════════════════════════════════════════════════════
   NEOSCRIPT — GLOBAL FOOTER  (footer-dark.css  v6)
   Used on every page. Dark by default, light-theme aware.
   ═══════════════════════════════════════════════════════ */

/* ── Base ── */
footer.ns-footer {
  background: #030D1A;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  position: relative;
  font-family: "Poppins", sans-serif;
}

footer.ns-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}

footer.ns-footer * { position: relative; z-index: 1; }

/* ── Container ── */
.ns-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

/* ── Brand column ── */
.ns-footer-brand {}

.ns-footer-logo {
  display: block;
  width: 140px;
  height: auto;
  margin-bottom: 18px;
}

/* logo theme switching */
.ns-footer-logo-dark  { display: block; }
.ns-footer-logo-light { display: none;  }

.ns-footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0 0 24px;
  max-width: 200px;
}

/* Social icons */
.ns-footer-social {
  display: flex;
  gap: 10px;
}

.ns-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s ease;
  text-decoration: none !important;
  transform: none !important;
}

.ns-footer-social a:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-2px) !important;
}

.ns-footer-social a i {
  font-size: 15px;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.ns-footer-social a .fa-linkedin    { color: #0A66C2 !important; -webkit-text-fill-color: #0A66C2 !important; }
.ns-footer-social a .fa-whatsapp    { color: #25D366 !important; -webkit-text-fill-color: #25D366 !important; }
.ns-footer-social a .fa-x-twitter  { color: #e7e9ea !important; -webkit-text-fill-color: #e7e9ea !important; }

/* ── Links grid ── */
.ns-footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.ns-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.9) !important;
  margin: 0 0 16px;
}

.ns-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ns-footer-col ul li {
  margin-bottom: 10px;
}

.ns-footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  display: inline-block;
  transform: none !important;
}

.ns-footer-col ul li a:hover {
  color: rgba(255,255,255,0.9) !important;
}

/* Contact column */
.ns-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.ns-footer-contact-item i {
  font-size: 13px;
  margin-top: 2px;
  color: rgba(0,212,255,0.7) !important;
  -webkit-text-fill-color: rgba(0,212,255,0.7) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  flex-shrink: 0;
}

.ns-footer-contact-item a,
.ns-footer-contact-item span {
  font-size: 13px;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  line-height: 1.5;
}

.ns-footer-contact-item a:hover {
  color: rgba(255,255,255,0.9) !important;
}

/* ── Divider ── */
.ns-footer-divider {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 40px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Bottom bar ── */
.ns-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ns-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35) !important;
  margin: 0;
}

.ns-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.ns-footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35) !important;
  text-decoration: none !important;
  transition: color 0.2s;
  transform: none !important;
}

.ns-footer-bottom-links a:hover {
  color: rgba(255,255,255,0.7) !important;
}

/* ══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════ */
body.light-theme footer.ns-footer {
  background: #f4f6fb !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  color: rgba(26,31,58,0.7) !important;
}

body.light-theme footer.ns-footer::before { opacity: 0.2 !important; }

/* logo swap */
body.light-theme .ns-footer-logo-dark  { display: none  !important; }
body.light-theme .ns-footer-logo-light { display: block !important; }

body.light-theme .ns-footer-tagline {
  color: rgba(26,31,58,0.5) !important;
}

body.light-theme .ns-footer-social a {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
}

body.light-theme .ns-footer-social a:hover {
  background: rgba(255,123,0,0.08) !important;
  border-color: rgba(255,123,0,0.3) !important;
}

body.light-theme .ns-footer-social a .fa-x-twitter {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

body.light-theme .ns-footer-col h4 {
  color: #1a1f3a !important;
}

body.light-theme .ns-footer-col ul li a {
  color: rgba(26,31,58,0.55) !important;
}

body.light-theme .ns-footer-col ul li a:hover {
  color: #ff7b00 !important;
}

body.light-theme .ns-footer-contact-item i {
  color: #ff7b00 !important;
  -webkit-text-fill-color: #ff7b00 !important;
}

body.light-theme .ns-footer-contact-item a,
body.light-theme .ns-footer-contact-item span {
  color: rgba(26,31,58,0.55) !important;
}

body.light-theme .ns-footer-contact-item a:hover {
  color: #ff7b00 !important;
}

body.light-theme .ns-footer-divider {
  border-top-color: rgba(0,0,0,0.08) !important;
}

body.light-theme .ns-footer-bottom p,
body.light-theme .ns-footer-bottom-links a {
  color: rgba(26,31,58,0.4) !important;
}

body.light-theme .ns-footer-bottom-links a:hover {
  color: #ff7b00 !important;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .ns-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ns-footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .ns-footer-inner { padding: 0 24px; }
  .ns-footer-divider,
  .ns-footer-bottom { padding-left: 24px; padding-right: 24px; }

  .ns-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .ns-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
