/*
Theme Name:  Nexifyr
Theme URI:   https://rouell.com
Author:      Rouell
Author URI:  https://rouell.com
Description: Strategic hiring partners for technology startups and scaling organisations. Dark minimal WordPress theme for Nexifyr Consulting Pvt. Ltd. v2.1.1
Version:     2.2.6
License:     GNU General Public License v2 or later
Text Domain: nexifyr
Tags:        dark, minimal, recruitment, custom-colors, custom-logo
*/

/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:            #050A30;
  --bg-2:          #0C213A;
  --bg-3:          #193350;
  --accent:        #4A8FA8;
  --accent-dim:    rgba(74,143,168,0.10);
  --accent-border: rgba(74,143,168,0.25);
  --silver:        #B1B4B4;
  --muted:         #5A6A7A;
  --line:          rgba(177,180,180,0.09);
  --white:         #D4D8D8;
  --warn:          #C8892A;
  --danger:        #C84A4A;
  --nav-h:         64px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--silver);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.9rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 3.5vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-family: 'Geist', sans-serif; font-weight: 500; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; }

.nx-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: 'Geist', sans-serif;
}
.nx-lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  max-width: 520px;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 5px;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 26px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Geist', sans-serif;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}
/* Icons inside buttons MUST use their own font-family, not the button's */
.nx-btn i,
.nx-btn i[class*="fa-"],
.nx-btn .fa-solid,
.nx-btn .fa-brands,
.nx-btn .fa-regular {
  font-family: inherit !important; /* Will be overridden by FA's own specificity */
  font-synthesis: none;
}
/* Force FA font families on icons — beats button font-family declaration */
.nx-btn i.fa-solid,
.nx-btn i[class*="fa-solid"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.nx-btn i.fa-brands,
.nx-btn i[class*="fa-brands"],
.nx-btn i.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
.nx-btn i.fa-regular,
.nx-btn i[class*="fa-regular"],
.nx-btn i.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

/* Same fix for any icon anywhere that might be inside a Geist container */
.nx-c-icon i,
.nx-value-row i,
.nx-tick i,
.nx-s-link i {
  font-synthesis: none;
}
.nx-c-icon i.fa-solid   { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.nx-c-icon i.fa-brands  { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
.nx-s-link i.fa-brands  { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }

.nx-btn-primary { background: var(--accent); color: #fff; }
.nx-btn-primary:hover { background: #5AA0B8; color: #fff; }
.nx-btn-ghost { background: transparent; color: var(--muted); padding: 11px 0; font-size: 0.84rem; }
.nx-btn-ghost:hover { color: var(--silver); }
.nx-btn-outline { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 9px 20px; font-size: 0.82rem; }
.nx-btn-outline:hover { border-color: var(--accent-border); color: var(--accent); }

/* ═══════════════════════════════════════════
   BADGES
═══════════════════════════════════════════ */
.nx-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'Geist', sans-serif;
  letter-spacing: 0.03em;
}
.nx-badge-accent  { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.nx-badge-warn    { background: rgba(200,137,42,0.10); color: var(--warn); border: 1px solid rgba(200,137,42,0.22); }
.nx-badge-danger  { background: rgba(200,74,74,0.10); color: var(--danger); border: 1px solid rgba(200,74,74,0.22); }

/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════ */
#nx-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
#nx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(5,10,48,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

/* ── NAV LOGO ──
   FIX v2.1.2: the_custom_logo() outputs its own <a class="custom-logo-link">.
   We now wrap it in <div class="nx-logo"> NOT <a class="nx-logo">.
   This prevents nested anchor tags breaking the layout.

   Actual DOM structure:
   <div class="nx-logo">
     <a class="custom-logo-link" href="/">
       <img class="custom-logo" src="..." width="X" height="Y">
     </a>
   </div>

   WordPress also injects width/height attributes on the img based on upload size.
   We override with !important + max-height to hard-clamp to nav height.
─────────────────────────────────────── */

/* Logo container — hard clamp to nav height */
.nx-logo {
  display: flex;
  align-items: center;
  height: 44px;
  max-height: 44px;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}

/* WP's custom-logo-link anchor */
.nx-logo a,
.nx-logo .custom-logo-link,
.nx-logo a.custom-logo-link {
  display: flex;
  align-items: center;
  height: 44px;
  max-height: 44px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  border: none;
  outline: none;
}

/* The logo image — override WP's inline width/height attributes */
.nx-logo img,
.nx-logo img.custom-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 220px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  object-fit: contain;
  display: block !important;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.nx-logo a:hover img { opacity: 0.85; transition: opacity 0.2s; }

/* Fallback mark + text — used when no custom logo is set */
.nx-logo-mark {
  width: 32px; height: 32px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-dim);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.nx-logo-text {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  font-family: 'Geist', sans-serif;
  margin-left: 10px;
}

/* Footer logo */
#nx-footer .nx-logo {
  height: 48px;
  max-height: 48px;
  overflow: visible;
}
#nx-footer .nx-logo img,
#nx-footer .nx-logo img.custom-logo {
  height: 48px !important;
  max-height: 48px !important;
  max-width: 200px !important;
}

/* Footer logo link — flex row with brand name */
.nx-footer-logo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-bottom: 0.875rem;
}
.nx-footer-logo-link .custom-logo-link {
  height: 48px;
  max-height: 48px;
  overflow: hidden;
}
.nx-footer-logo-link .nx-logo-text {
  display: block !important;
  font-size: 0.88rem;
}

/* Primary menu */
.nx-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nx-nav-links > li { position: relative; }
.nx-nav-links > li > a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.90rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Geist', sans-serif;
  transition: color 0.2s;
  white-space: nowrap;
}
.nx-nav-links > li > a:hover,
.nx-nav-links > .current-menu-item > a,
.nx-nav-links > .current-menu-ancestor > a { color: var(--silver); }

/* Dropdown */
.nx-nav-links .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 230px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 600;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.nx-nav-links li:hover > .sub-menu { display: block; }
.nx-nav-links .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 18px;
  width: 10px; height: 10px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nx-nav-links .sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.81rem;
  color: var(--muted);
  font-family: 'Geist', sans-serif;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nx-nav-links .sub-menu li a:hover { color: var(--accent); background: rgba(74,143,168,0.06); }

/* CTA nav item */
.nx-nav-links .menu-cta > a {
  border: 1px solid var(--accent-border) !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
  padding: 7px 18px !important;
  border-radius: 5px !important;
  font-size: 0.81rem !important;
  margin-left: 0.5rem;
  transition: all 0.2s !important;
}
.nx-nav-links .menu-cta > a:hover {
  background: rgba(74,143,168,0.2) !important;
  color: var(--white) !important;
}

/* Submit resume — subtle */
.nx-nav-links .menu-resume > a {
  color: var(--muted) !important;
  font-size: 0.80rem !important;
}
.nx-nav-links .menu-resume > a:hover { color: var(--silver) !important; }

/* Hamburger */
.nx-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nx-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--silver);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile menu */
.nx-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 5vw 2rem;
  z-index: 490;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nx-mobile-menu.open { display: block; }
.nx-mobile-menu ul { list-style: none; }
.nx-mobile-menu > ul > li { border-bottom: 1px solid var(--line); }
.nx-mobile-menu > ul > li > a { display: block; padding: 0.9rem 0; font-size: 0.95rem; color: var(--silver); font-family: 'Geist', sans-serif; }
.nx-mobile-menu .sub-menu { display: none; list-style: none; padding: 0 0 0.875rem 1rem; }
.nx-mobile-menu .sub-menu.open { display: block; }
.nx-mobile-menu .sub-menu li a { display: block; padding: 0.45rem 0; font-size: 0.84rem; color: var(--muted); font-family: 'Geist', sans-serif; }
.nx-mobile-menu .menu-item-has-children > a::after { content: ' +'; color: var(--muted); font-size: 0.7rem; }
.nx-mobile-menu .menu-cta > a { color: var(--accent) !important; font-weight: 500; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.nx-section { padding: 100px 5vw; border-bottom: 1px solid var(--line); }
.nx-section-alt  { background: var(--bg-2); }
.nx-section-deep { background: var(--bg); }
.nx-inner { max-width: 1100px; margin: 0 auto; width: 100%; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#nx-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5vw 80px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nx-hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 6rem;
  align-items: center;
}
.nx-hero-content h1 { margin-bottom: 1.25rem; }
.nx-hero-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: 'Geist', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nx-hero-tagline::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.nx-hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.nx-hero-stats {
  display: flex;
  gap: 0;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.nx-hero-stat {
  flex: 1;
  padding-right: 2rem;
  border-right: 1px solid var(--line);
  margin-right: 2rem;
}
.nx-hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.nx-stat-n {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
  display: block;
}
.nx-stat-l {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.03em;
  font-family: 'Geist', sans-serif;
  display: block;
  line-height: 1.4;
}

/* Hero panel */
.nx-hero-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.nx-panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nx-panel-title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Geist', sans-serif;
}
.nx-panel-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.nx-panel-role:last-of-type { border-bottom: none; }
.nx-panel-role:hover { background: rgba(74,143,168,0.05); }
.nx-panel-role-name {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--silver);
  font-family: 'Geist', sans-serif;
  line-height: 1.3;
}
.nx-panel-role-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
  font-family: 'Geist', sans-serif;
}
.nx-panel-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}
.nx-panel-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  transition: gap 0.2s;
}
.nx-panel-view-all:hover { gap: 10px; }

/* ═══════════════════════════════════════════
   TRUSTED BY — LOGO STRIP
═══════════════════════════════════════════ */
/* ── TRUSTED BY — LOGO STRIP v2.1.4 ─────────────
   Full width strip, no borders.
   Supports rectangular, square, or mixed logos.
   Images are greyscale at rest, colour on hover.
   Tooltip shows brand name on hover.
────────────────────────────────────────────── */
#nx-trusted {
  padding: 56px 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.nx-trusted-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.nx-trusted-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'Geist', sans-serif;
}

/* Strip container — no border, no border-radius */
.nx-logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 0;
}

/* Each logo cell */
.nx-logo-item {
  position: relative;
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 220px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: default;
  /* No borders between items */
}

.nx-logo-item:hover { background: rgba(74,143,168,0.06); border-radius: 6px; }

/* Logo image — fixed height, auto width preserves aspect ratio
   Works for rectangular (wide), square, and portrait logos */
.nx-logo-item img {
  height: 48px;             /* Comfortable size for all logo shapes */
  width: auto;
  max-width: 160px;         /* Cap for very wide rectangular logos */
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) brightness(0.55);
  transition: filter 0.25s;
  display: block;
}

.nx-logo-item:hover img {
  filter: grayscale(0) brightness(0.9);
}

/* Square logos — don't get stretched, stay square */
.nx-logo-item img[width][height] {
  height: 48px;
  width: auto;
}

/* Placeholder text for when no image is uploaded */
.nx-logo-placeholder {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-family: 'Geist', sans-serif;
  white-space: nowrap;
  transition: color 0.2s;
  text-transform: uppercase;
}
.nx-logo-item:hover .nx-logo-placeholder { color: var(--silver); }

/* Tooltip on hover */
.nx-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--silver);
  font-size: 0.72rem;
  font-family: 'Geist', sans-serif;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}
.nx-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--line);
}
.nx-logo-item:hover .nx-tooltip { opacity: 1; }

/* ═══════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════ */
#nx-stats {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nx-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.nx-stat-cell {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--line);
  text-align: left;
}
.nx-stat-cell:last-child { border-right: none; }
.nx-stat-big {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  display: block;
}
.nx-stat-desc {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.5;
  font-family: 'Geist', sans-serif;
}

/* ═══════════════════════════════════════════
   ABOUT (homepage strip)
═══════════════════════════════════════════ */
.nx-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}
.nx-nums-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.nx-num-cell { background: var(--bg-2); padding: 2rem; }
.nx-num-cell:nth-child(3), .nx-num-cell:nth-child(4) { background: var(--bg-3); }
.nx-cell-n { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--white); line-height: 1; }
.nx-cell-l { font-size: 0.76rem; color: var(--muted); margin-top: 6px; line-height: 1.4; font-family: 'Geist', sans-serif; }
.nx-value-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--silver);
  font-family: 'Geist', sans-serif;
  line-height: 1.5;
}
.nx-value-row:first-child { border-top: 1px solid var(--line); }
.nx-tick {
  width: 17px; height: 17px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   WHO WE WORK WITH
═══════════════════════════════════════════ */
#nx-who {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nx-who-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.nx-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.nx-who-card {
  background: var(--bg-2);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
  position: relative;
}
.nx-who-card:hover { background: var(--bg-3); }
.nx-who-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.nx-who-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-family: 'Geist', sans-serif;
  line-height: 1.3;
}
.nx-who-desc {
  font-size: 0.90rem;
  color: var(--muted);
  line-height: 1.7;
  font-family: 'Geist', sans-serif;
}

/* ═══════════════════════════════════════════
   RECRUITMENT SERVICES
═══════════════════════════════════════════ */
.nx-services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.nx-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.nx-svc {
  background: var(--bg-2);
  padding: 2rem;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}
.nx-svc:hover { background: var(--bg-3); }
.nx-svc-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.nx-svc-title { font-size: 1.0rem; font-weight: 500; color: var(--silver); margin-bottom: 0.5rem; font-family: 'Geist', sans-serif; }
.nx-svc-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; font-family: 'Geist', sans-serif; }

/* ═══════════════════════════════════════════
   WHY NEXIFYR
═══════════════════════════════════════════ */
.nx-why-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.nx-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
/* 8-point variant — 4 cols × 2 rows */
.nx-why-grid-8 {
  grid-template-columns: repeat(4, 1fr);
}
.nx-why-grid-8 .nx-why-card:nth-child(even) { background: var(--bg-3); }
.nx-why-grid-8 .nx-why-card:nth-child(odd)  { background: var(--bg-2); }
.nx-why-card { background: var(--bg-2); padding: 2rem; }
.nx-why-card:nth-child(even) { background: var(--bg-3); }
.nx-why-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
}
.nx-why-title { font-size: 1.0rem; font-weight: 500; color: var(--silver); margin-bottom: 0.5rem; font-family: 'Geist', sans-serif; }
.nx-why-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; font-family: 'Geist', sans-serif; }

/* ═══════════════════════════════════════════
   JOBS TABLE
═══════════════════════════════════════════ */
.nx-jobs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.nx-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.nx-filter-btn {
  padding: 5px 16px;
  border-radius: 50px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  transition: all 0.15s;
}
.nx-filter-btn:hover, .nx-filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.nx-jobs-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.nx-jobs-header {
  display: grid;
  grid-template-columns: 1fr 155px 155px 115px 36px;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}
.nx-col-head {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Geist', sans-serif;
}
.nx-job-row {
  display: grid;
  grid-template-columns: 1fr 155px 155px 115px 36px;
  align-items: center;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.nx-job-row:last-child { border-bottom: none; }
.nx-job-row:hover { background: rgba(74,143,168,0.05); }
.nx-job-title-text {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Geist', sans-serif;
}
.nx-job-company { font-size: 0.74rem; color: var(--muted); margin-top: 2px; font-family: 'Geist', sans-serif; }
.nx-job-location, .nx-job-salary { font-size: 0.81rem; color: var(--muted); font-family: 'Geist', sans-serif; }
.nx-job-arrow { font-size: 0.78rem; color: var(--muted); text-align: right; transition: color 0.2s; }
.nx-job-row:hover .nx-job-arrow { color: var(--accent); }

.nx-ats-strip {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  font-family: 'Geist', sans-serif;
}
.nx-ats-strip strong { color: var(--silver); font-weight: 500; }
.nx-ats-strip i { color: var(--accent); }

/* ═══════════════════════════════════════════
   FOUNDER
═══════════════════════════════════════════ */
.nx-founder-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6rem;
  align-items: center;
}
.nx-founder-photo {
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
}
.nx-founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.nx-founder-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 3.5rem;
}
.nx-founder-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(5,10,48,0.88));
  font-size: 0.75rem; color: var(--muted);
  font-family: 'Geist', sans-serif;
}
.nx-blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--silver);
  line-height: 1.55;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  margin: 1.5rem 0 1.75rem;
}
.nx-founder-name { font-size: 0.93rem; font-weight: 500; color: var(--white); font-family: 'Geist', sans-serif; }
.nx-founder-role { font-size: 0.76rem; color: var(--accent); margin-top: 3px; letter-spacing: 0.04em; font-family: 'Geist', sans-serif; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.nx-t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3rem;
}
.nx-t-card { background: var(--bg); padding: 2rem; }
.nx-t-stars { color: var(--warn); font-size: 0.76rem; letter-spacing: 2px; margin-bottom: 1rem; }
.nx-t-text {
  font-family: 'Instrument Serif', serif;
  font-size: 0.94rem;
  font-style: italic;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.nx-t-author { display: flex; align-items: center; gap: 10px; }
.nx-t-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Geist', sans-serif;
  overflow: hidden;
}
.nx-t-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nx-t-name { font-size: 0.84rem; font-weight: 500; color: var(--silver); font-family: 'Geist', sans-serif; }
.nx-t-role { font-size: 0.72rem; color: var(--muted); font-family: 'Geist', sans-serif; }

/* ═══════════════════════════════════════════
   BLOG
═══════════════════════════════════════════ */
.nx-blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.nx-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.nx-b-card {
  background: var(--bg-2);
  display: flex; flex-direction: column;
  transition: background 0.2s;
  text-decoration: none; color: inherit;
}
.nx-b-card:hover { background: var(--bg-3); }
.nx-b-thumb {
  height: 155px; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--line); background: var(--bg-3);
}
.nx-b-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.nx-b-card:hover .nx-b-thumb img { transform: scale(1.04); }
.nx-b-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.5rem;
}
.nx-b-cat {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 2px 9px; border-radius: 50px;
  font-family: 'Geist', sans-serif;
}
.nx-b-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.nx-b-date { font-size: 0.70rem; color: var(--muted); margin-bottom: 0.5rem; font-family: 'Geist', sans-serif; }
.nx-b-title { font-size: 0.96rem; font-weight: 500; color: var(--silver); line-height: 1.45; margin-bottom: 1rem; flex: 1; font-family: 'Geist', sans-serif; }
.nx-b-read { font-size: 0.76rem; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-family: 'Geist', sans-serif; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.nx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.nx-c-detail {
  display: flex; align-items: center; gap: 12px;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.85rem; color: var(--silver);
  font-family: 'Geist', sans-serif;
}
.nx-c-detail:first-of-type { border-top: 1px solid var(--line); }
.nx-c-icon {
  width: 30px; height: 30px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; flex-shrink: 0;
}
.nx-c-reply { margin-top: 1.5rem; font-size: 0.78rem; color: var(--muted); font-family: 'Geist', sans-serif; }
.nx-form { display: flex; flex-direction: column; gap: 14px; }
.nx-f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx-f-group { display: flex; flex-direction: column; gap: 5px; }
.nx-f-group label { font-size: 0.70rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; font-family: 'Geist', sans-serif; text-transform: uppercase; }
.nx-f-group input, .nx-f-group select, .nx-f-group textarea,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea {
  border: 1px solid var(--line); border-radius: 5px;
  padding: 10px 13px; font-size: 0.84rem;
  font-family: 'Geist', sans-serif; color: var(--silver);
  background: var(--bg-2); outline: none;
  transition: border-color 0.2s; width: 100%;
}
.nx-f-group input:focus, .nx-f-group select:focus, .nx-f-group textarea:focus,
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--accent-border); }
.nx-f-group select option, .wpcf7-form select option { background: var(--bg-2); color: var(--silver); }
.nx-f-group textarea, .wpcf7-form textarea { height: 108px; resize: none; }
.wpcf7-submit, .wpcf7-form input[type="submit"] {
  background: var(--accent) !important; color: #fff !important;
  border: none !important; padding: 12px 24px !important;
  border-radius: 5px !important; font-family: 'Geist', sans-serif !important;
  font-size: 0.84rem !important; font-weight: 500 !important;
  cursor: pointer !important; width: 100% !important;
  transition: background 0.2s !important;
}
.wpcf7-submit:hover { background: #5AA0B8 !important; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#nx-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 4rem 5vw 2rem; }
.nx-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1100px; margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.nx-footer-brand { font-size: 0.82rem; line-height: 1.8; color: var(--muted); max-width: 230px; font-family: 'Geist', sans-serif; margin-top: 0.875rem; }
.nx-footer-tagline { font-size: 0.72rem; color: var(--accent); font-family: 'Geist', sans-serif; margin-top: 0.5rem; letter-spacing: 0.02em; }
.nx-footer-col h4 { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); margin-bottom: 1.25rem; font-weight: 500; font-family: 'Geist', sans-serif; }
.nx-footer-col ul { list-style: none; }
.nx-footer-col li { margin-bottom: 0.7rem; }
.nx-footer-col a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; font-family: 'Geist', sans-serif; }
.nx-footer-col a:hover { color: var(--accent); }
.nx-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 2rem auto 0;
  flex-wrap: wrap; gap: 1rem;
}
.nx-footer-copy { font-size: 0.74rem; color: var(--muted); font-family: 'Geist', sans-serif; }
.nx-socials { display: flex; gap: 8px; }
.nx-s-link {
  width: 30px; height: 30px; border: 1px solid var(--line);
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.75rem; font-weight: 600;
  transition: all 0.2s; font-family: 'Geist', sans-serif;
}
.nx-s-link:hover { border-color: var(--accent-border); color: var(--accent); }

/* ═══════════════════════════════════════════
   PAGE TEMPLATES
═══════════════════════════════════════════ */
.nx-page-header {
  padding: 140px 5vw 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nx-page-header-inner { max-width: 1100px; margin: 0 auto; }
.nx-page-header-inner .nx-lead { margin-top: 1rem; }
.nx-page-content {
  max-width: 1100px; margin: 0 auto;
  padding: 64px 5vw 100px;
  font-family: 'Geist', sans-serif; line-height: 1.8;
}
.nx-page-content p { margin-bottom: 1.25rem; color: var(--muted); }
.nx-page-content h2, .nx-page-content h3 { color: var(--white); margin: 2rem 0 0.75rem; }

/* About page */
.nx-about-section { padding: 80px 5vw; border-bottom: 1px solid var(--line); }
.nx-about-section:last-child { border-bottom: none; }
.nx-about-section-inner { max-width: 1100px; margin: 0 auto; }
.nx-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.nx-team-card { text-align: center; }
.nx-team-photo {
  width: 100%; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 2rem;
}
.nx-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.nx-team-name { font-size: 0.89rem; font-weight: 500; color: var(--silver); font-family: 'Geist', sans-serif; }
.nx-team-role { font-size: 0.74rem; color: var(--muted); margin-top: 3px; font-family: 'Geist', sans-serif; }

/* Recruitment page */
.nx-rec-section {
  padding: 80px 5vw;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.nx-rec-section:last-child { border-bottom: none; }
.nx-rec-section.alt { background: var(--bg-2); }
.nx-rec-section.alt:nth-child(even) .nx-rec-text { order: 2; }
.nx-rec-section.alt:nth-child(even) .nx-rec-visual { order: 1; }
.nx-rec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--accent-dim);
  color: var(--accent); border: 1px solid var(--accent-border);
  padding: 4px 12px; border-radius: 50px; margin-bottom: 1rem;
  font-family: 'Geist', sans-serif;
}
.nx-rec-text h2 { font-size: clamp(1.7rem, 2.5vw, 2.3rem); margin-bottom: 1rem; }
.nx-rec-text p { margin-bottom: 1rem; }
.nx-rec-visual {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.5rem;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 3.5rem;
}

/* Why Nexifyr standalone page */
.nx-why-page { max-width: 1100px; margin: 0 auto; padding: 64px 5vw 100px; }


/* ═══════════════════════════════════════════
   JOBS EMBED (RecruiterFlow iframe)
═══════════════════════════════════════════ */
.nx-jobs-embed-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 5vw 5rem;
}

.nx-jobs-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none !important;
  outline: none;
  background: transparent;
}

/* Submit resume */
.nx-resume-page { max-width: 700px; margin: 0 auto; padding: 64px 5vw 100px; }

/* Single job */
.nx-single-job { max-width: 1100px; margin: 0 auto; padding: 100px 5vw; display: grid; grid-template-columns: 1fr 310px; gap: 4rem; align-items: start; }
.nx-job-meta-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.25rem 0 2rem; align-items: center; }
.nx-job-content { color: var(--silver); line-height: 1.8; font-family: 'Geist', sans-serif; font-size: 0.94rem; }
.nx-job-content p { margin-bottom: 1rem; color: var(--muted); }
.nx-job-content ul, .nx-job-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.nx-job-content li { margin-bottom: 0.4rem; color: var(--muted); }
.nx-job-content h2, .nx-job-content h3 { color: var(--white); margin: 1.75rem 0 0.75rem; font-family: 'Geist', sans-serif; font-weight: 600; font-size: 1rem; }
.nx-job-sidebar { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; position: sticky; top: 82px; }
.nx-job-sidebar h3 { font-family: 'Geist', sans-serif; font-size: 0.88rem; font-weight: 500; color: var(--silver); margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 0.875rem; }
.nx-job-detail-row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.80rem; font-family: 'Geist', sans-serif; }
.nx-job-detail-row:last-of-type { border-bottom: none; }
.nx-job-detail-label { color: var(--muted); }
.nx-job-detail-val { color: var(--silver); font-weight: 500; }

/* Blog */
.nx-blog-archive { max-width: 1100px; margin: 0 auto; padding: 64px 5vw 100px; }
.nx-blog-loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nx-single-post { max-width: 740px; margin: 0 auto; padding: 100px 5vw; }
.nx-post-header { margin-bottom: 2.5rem; }
.nx-post-header h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 1rem 0; }
.nx-post-meta { font-size: 0.76rem; color: var(--muted); font-family: 'Geist', sans-serif; }
.nx-post-content { color: var(--muted); line-height: 1.9; font-family: 'Geist', sans-serif; font-size: 0.94rem; }
.nx-post-content p { margin-bottom: 1.25rem; }
.nx-post-content h2, .nx-post-content h3 { color: var(--white); margin: 2rem 0 0.75rem; font-family: 'Instrument Serif', serif; }
.nx-post-content ul, .nx-post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.nx-post-content li { margin-bottom: 0.4rem; }
.nx-post-content a { color: var(--accent); }
.nx-post-content blockquote { border-left: 2px solid var(--accent); padding-left: 1.25rem; margin: 1.5rem 0; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.1rem; color: var(--silver); }
.nx-post-content img { border-radius: 6px; margin: 1.5rem 0; border: 1px solid var(--line); }


/* ── JOBS EMBED (RecruiterFlow iframe) ─────────────── */
.nx-jobs-embed-wrap {
  width: 100%;
  background: var(--bg);
  min-height: 600px;
}

.nx-jobs-embed-wrap iframe {
  display: block;
  width: 100% !important;
  border: none !important;
  outline: none;
  background: transparent;
  min-height: 800px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nx-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nx-hero-panel { max-width: 480px; }
  .nx-about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nx-services-head, .nx-services-head, .nx-why-head, .nx-who-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .nx-services-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-why-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-who-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nx-stats-inner .nx-stat-cell:nth-child(2) { border-right: none; }
  .nx-stats-inner .nx-stat-cell:nth-child(3) { border-top: 1px solid var(--line); }
  .nx-founder-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nx-founder-photo { max-width: 300px; }
  .nx-t-grid { grid-template-columns: 1fr 1fr; }
  .nx-blog-grid, .nx-blog-loop { grid-template-columns: 1fr 1fr; }
  .nx-footer-top { grid-template-columns: 1fr 1fr; }
  .nx-single-job { grid-template-columns: 1fr; }
  .nx-rec-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .nx-team-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nx-nav-links { display: none; }
  .nx-hamburger { display: flex; }
  .nx-section { padding: 70px 5vw; }
  #nx-hero { padding: 100px 5vw 70px; }
  .nx-hero-stats { flex-wrap: wrap; gap: 0; }
  .nx-hero-stat { flex: 0 0 50%; border-right: none; margin-right: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  .nx-hero-stat:nth-child(3), .nx-hero-stat:last-child { border-bottom: none; }
  .nx-services-grid { grid-template-columns: 1fr; }
  .nx-why-grid { grid-template-columns: 1fr 1fr; }
  .nx-who-grid { grid-template-columns: 1fr 1fr; }
  .nx-t-grid { grid-template-columns: 1fr; }
  .nx-blog-grid, .nx-blog-loop { grid-template-columns: 1fr; }
  .nx-footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nx-jobs-header, .nx-job-row { grid-template-columns: 1fr 100px 36px; }
  .nx-jobs-header .nx-col-head:nth-child(3),
  .nx-jobs-header .nx-col-head:nth-child(4),
  .nx-job-row .nx-job-location,
  .nx-job-row .nx-job-salary { display: none; }
  .nx-f-row { grid-template-columns: 1fr; }
  .nx-logo-strip { gap: 0; }
  .nx-logo-item { min-width: 90px; padding: 1rem 1rem; }
  .nx-logo-item img { max-height: 40px; max-width: 100px; }
  .nx-stats-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .nx-footer-top { grid-template-columns: 1fr; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  .nx-why-grid { grid-template-columns: 1fr; }
  .nx-who-grid { grid-template-columns: 1fr; }
  .nx-team-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-stats-inner { grid-template-columns: 1fr; }
  .nx-stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .nx-stat-cell:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════
   WORDPRESS CORE OVERRIDES v2.1.3
   Belt-and-braces reset of every WP 6.x layout
   injection that narrows content width.
   Runtime override also in functions.php wp_head.
═══════════════════════════════════════════ */

:root, html {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  --wp--custom--spacing--outer: 0px;
}

html { width: 100%; overflow-x: hidden; }

body {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.wp-site-blocks,
body.wp-site-blocks {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
  margin: 0 !important;
}

.is-layout-constrained,
.is-layout-flow,
.is-layout-flex,
.is-layout-grid {
  padding-inline: 0 !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
}

.is-layout-constrained > *,
.is-layout-flow > * {
  max-width: none !important;
  padding-inline: 0 !important;
}

.wp-block-group,
.wp-block-group__inner-container,
.wp-block-post-content,
.entry-content,
.entry-content > * {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
}

[class*="wp-container-"] {
  max-width: 100% !important;
  padding-inline: 0 !important;
}

#nx-hero,
#nx-trusted,
#nx-stats,
.nx-section,
#nx-footer,
.nx-page-header,
.nx-about-section,
.nx-rec-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

html body.admin-bar #nx-nav { top: 32px; }
html body.admin-bar #nx-mobile-menu { top: calc(var(--nav-h) + 32px); }
@media screen and (max-width: 782px) {
  html body.admin-bar #nx-nav { top: 46px; }
  html body.admin-bar #nx-mobile-menu { top: calc(var(--nav-h) + 46px); }
}

.alignleft, .alignright, .aligncenter, .alignwide, .alignfull { max-width: none; }

/* ═══════════════════════════════════════════
   RECRUITMENT PAGE — SERVICE IMAGES v2.1.7
═══════════════════════════════════════════ */
.nx-rec-visual-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
}
.nx-rec-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.nx-rec-desc p { margin-bottom: 1rem; }
.nx-rec-desc a { color: var(--accent); }
.nx-rec-desc strong { color: var(--silver); font-weight: 600; }

/* ═══════════════════════════════════════════
   JOBS API — 4-column table
═══════════════════════════════════════════ */
.nx-jobs-header,
.nx-job-row {
  grid-template-columns: 1fr 140px 130px 130px 36px;
}

@media (max-width: 768px) {
  .nx-jobs-header,
  .nx-job-row { grid-template-columns: 1fr 36px; }
  .nx-jobs-header .nx-col-head:not(:first-child):not(:last-child),
  .nx-job-row > *:not(.nx-job-title-text):not(.nx-job-arrow):not(:first-child):not(:last-child) {
    display: none;
  }
}

/* Jobs embed wrap */
.nx-jobs-embed-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 5vw 5rem;
}
.nx-jobs-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none !important;
  background: transparent;
}

/* ═══════════════════════════════════════════
   FONT AWESOME FALLBACKS v2.1.8
   If FA fails to load, buttons still look correct
═══════════════════════════════════════════ */

/* Ensure FA icons in buttons have correct sizing */
.nx-btn .fa-solid,
.nx-btn .fa-regular,
.nx-btn .fa-brands,
.nx-btn i[class*="fa-"] {
  font-size: 0.85em;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Fallback: if FA stylesheet hasn't loaded yet, hide broken icon glyphs */
.nx-btn i[class*="fa-"]:not(.loaded) {
  font-family: inherit;
}

/* Nav icon sizing */
#nx-nav i[class*="fa-"] { font-size: 0.9rem; }

/* Footer social icons */
.nx-s-link i[class*="fa-"] { font-size: 0.78rem; }

/* ═══════════════════════════════════════════
   CONTACT SECTION v2.2.1
═══════════════════════════════════════════ */

/* When form is hidden, left column goes full width */
.nx-contact-full {
  grid-template-columns: 1fr !important;
  max-width: 640px;
}
.nx-contact-full .nx-c-detail { border-top: none; }

/* Hyperlinked contact details */
.nx-c-detail a {
  color: var(--silver);
  transition: color 0.2s;
  text-decoration: none;
}
.nx-c-detail a:hover { color: var(--accent); }

/* WhatsApp icon box */
.nx-c-icon-wa {
  background: rgba(37,211,102,0.12) !important;
  border-color: rgba(37,211,102,0.3) !important;
  color: #25D366 !important;
}

/* Maps embed */
.nx-maps-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1.75rem;
}
.nx-maps-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Founder bio line-clamp */
.nx-founder-bio-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* ═══════════════════════════════════════════
   LOGO — NAV + FOOTER  v2.2.6
   Clean rewrite. No conflicts.
═══════════════════════════════════════════ */

/* ── NAV: logo+name combo (custom logo set) ──
   DOM: <div class="nx-logo nx-logo-combo">
          <a class="custom-logo-link"><img></a>  ← from the_custom_logo()
          <a class="nx-brand-name">Name</a>      ← our addition
        </div>
   The div is NOT an anchor so no nested-anchor issue.
*/
.nx-logo-combo {
  overflow: visible !important; /* must be visible so brand name text shows */
  height: var(--nav-h);
  max-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Image anchor from WP — constrain image here, not on outer div */
.nx-logo-combo .custom-logo-link {
  display: flex;
  align-items: center;
  height: 36px;
  max-height: 36px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.nx-logo-combo .custom-logo-link img,
.nx-logo-combo img.custom-logo {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  display: block !important;
}
/* Brand name beside logo */
.nx-brand-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  font-family: 'Geist', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.nx-brand-name:hover { color: var(--accent); }

/* ── FOOTER: logo wrap ──
   DOM: <div class="nx-footer-logo-wrap">
          <a class="custom-logo-link"><img></a>
          <a class="nx-footer-brand-link">Name</a>
        </div>
*/
.nx-footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.875rem;
}
.nx-footer-logo-wrap .custom-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.nx-footer-logo-wrap .custom-logo-link img,
.nx-footer-logo-wrap img.custom-logo {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  display: block !important;
}
.nx-footer-brand-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  font-family: 'Geist', sans-serif;
}
.nx-footer-brand-link:hover { color: var(--white); }

/* Fallback footer logo (no custom logo) */
.nx-footer-logo-fallback {
  margin-bottom: 0.875rem;
}

/* ── MAP EMBED ──
   Fix: z-index so map never overlaps nav or hero sections.
   Also ensure it stays within its container.
*/
.nx-maps-embed {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.nx-maps-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  position: relative;
  z-index: 1;
}
