/* ==========================================================================
   Texvian IT — FOOTER FOUNDATION
   The footer intentionally stays on the inverse (dark ink) surface in both
   light and dark themes for consistent brand grounding, mirroring the
   pattern used by most premium ThemeForest IT/SaaS templates.
   ========================================================================== */

.nx-footer {
  background: var(--nx-footer-bg);
  color: var(--nx-footer-text);
  padding-block-start: var(--nx-section-space-y);
  position: relative;
  overflow: hidden;
}

.nx-footer a {
  color: var(--nx-footer-text);
}

.nx-footer a:hover {
  color: var(--nx-white);
}

.nx-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  font-family: var(--nx-font-display);
  font-weight: var(--nx-fw-bold);
  font-size: var(--nx-fs-xl);
  color: var(--nx-white);
  margin-bottom: var(--nx-space-4);
  text-transform: uppercase;
}

.nx-footer__tagline {
  color: var(--nx-footer-text);
  max-width: 32ch;
  margin-bottom: var(--nx-space-5);
}

.nx-footer__heading {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-lg);
  font-weight: var(--nx-fw-medium);
  letter-spacing: var(--nx-ls-eyebrow);
  text-transform: uppercase;
  color: var(--nx-footer-heading);
  margin-bottom: var(--nx-space-5);
}

.nx-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-footer__links a {
  font-size: var(--nx-fs-sm);
  transition: var(--nx-transition-colors), transform var(--nx-duration-fast) var(--nx-ease-standard);
  display: inline-block;
}

.nx-footer__links a:hover {
  transform: translateX(3px);
}

.nx-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-space-3);
  font-size: var(--nx-fs-sm);
}

.nx-footer__contact-item .bi {
  color: var(--nx-secondary);
  margin-top: 3px;
}

/* Newsletter form */
.nx-footer__newsletter {
  display: flex;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-footer-border);
  border-radius: var(--nx-radius-pill);
  transition: var(--nx-transition-base);
}

/* The inner input intentionally suppresses the default outline (below)
   since it sits on a pill-shaped dark surface where a square outline
   would look visually broken — this rule supplies the required visible
   focus indicator on the container instead, matching the same pattern
   used by the search overlay's input (see components/search-overlay.css). */
.nx-footer__newsletter:focus-within {
  border-color: var(--nx-primary);
  background: rgba(255, 255, 255, 0.07);
}

.nx-footer__newsletter .form-control:focus {
  background-color: transparent !important;
  color: var(--nx-white);
  box-shadow: none;
  outline: none;
}

.nx-footer__newsletter .form-control {
  background: transparent;
  border: none;
  color: var(--nx-white);
  padding-inline: var(--nx-space-4);
}

/* Autofill hoye thakle background transparent rakhar jonno */
.nx-footer__newsletter .form-control:-webkit-autofill,
.nx-footer__newsletter .form-control:-webkit-autofill:hover,
.nx-footer__newsletter .form-control:-webkit-autofill:focus,
.nx-footer__newsletter .form-control:-webkit-autofill:active {
  -webkit-transition: color 9999s ease-out, background-color 9999s ease-out;
  -webkit-transition-delay: 9999s;
  -webkit-text-fill-color: var(--nx-white, #ffffff) !important;
}

.nx-footer__newsletter .form-control::placeholder {
  color: var(--nx-footer-text);
}

.nx-footer__newsletter .form-control:focus {
  box-shadow: none;
  outline: none;
}

/* Social icon row */
.nx-social {
  display: flex;
  gap: var(--nx-space-2);
}

.nx-social__link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-circle);
  border: 1px solid var(--nx-footer-border);
  color: var(--nx-white);
  transition: var(--nx-transition-base);
}

.nx-social__link:hover {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
  color: var(--nx-primary-contrast);
  transform: translateY(-3px);
}

/* Bottom bar */
.nx-footer__bottom {
  margin-top: var(--nx-space-9);
  padding-block: var(--nx-space-5);
  border-top: 1px solid var(--nx-footer-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
  font-size: var(--nx-fs-md);
  color: var(--nx-footer-text);
}

.nx-footer__bottom-links {
  display: flex;
  gap: var(--nx-space-5);
}

/* Decorative circuit-grid backdrop (signature motif, subtle) */
.nx-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.nx-footer__inner {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   FOOTER STYLE VARIANTS
   The markup in index.html ships "Style 01" (the multi-column layout
   above). These modifier classes are complete, ready-to-use alternates —
   apply one to the `.nx-footer` element to switch styles.
   ========================================================================== */

/* ---------------- Style 02: minimal single row ----------------
   For a lighter footprint: brand + short nav + socials + copyright, all
   on one row. Markup: drop the column `.row` and newsletter block,
   keep `.nx-footer__brand`, a flat `.nx-footer__links` list, `.nx-social`
   and `.nx-footer__bottom` directly inside `.nx-footer__inner`. */
.nx-footer--minimal {
  padding-block: var(--nx-space-8);
}

.nx-footer--minimal .nx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-5);
}

.nx-footer--minimal .nx-footer__links {
  flex-direction: row;
  gap: var(--nx-space-6);
}

.nx-footer--minimal .nx-footer__bottom {
  width: 100%;
  margin-top: var(--nx-space-6);
}

/* ---------------- Style 03: centered, CTA-forward ----------------
   Leads with a centered call-to-action band above a slimmer link/social
   row — suited to a template's final "ready to start a project?" moment.
   Markup: wrap an `.nx-footer__cta` block (eyebrow + heading + button,
   all `text-align:center`) before `.nx-footer__inner`. */
.nx-footer--centered .nx-footer__cta {
  text-align: center;
  max-width: var(--nx-container-narrow);
  margin-inline: auto;
  padding-bottom: var(--nx-space-9);
  margin-bottom: var(--nx-space-9);
  border-bottom: 1px solid var(--nx-footer-border);
  position: relative;
  z-index: 1;
}

.nx-footer--centered .nx-footer__cta .nx-eyebrow {
  justify-content: center;
  color: var(--nx-circuit-400);
}

.nx-footer--centered .nx-footer__cta h2,
.nx-footer--centered .nx-footer__cta h3 {
  color: var(--nx-white);
}

.nx-footer--centered .nx-footer__inner {
  text-align: center;
}

.nx-footer--centered .nx-footer__brand {
  justify-content: center;
}

.nx-footer--centered .nx-footer__tagline {
  margin-inline: auto;
}

.nx-footer--centered .nx-social {
  justify-content: center;
  margin-top: var(--nx-space-5);
}

.nx-footer--centered .nx-footer__bottom {
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.nx-footer__map-container {
  height: 300px;
  overflow: hidden;
  border-radius: var(--nx-radius-lg);
}