/* ═══════════════════════════════════════════
   NEXORIX SEO — PROFESSIONAL SHARED STYLES
   ═══════════════════════════════════════════ */

/* ── Google Inter font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', Arial, sans-serif;
}

/* ── NX SVG Logo ── */
.nx-logo {
  display: flex;
  flex-shrink: 0;
}
.nx-logo svg {
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(29,78,216,.5);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: nx-breathe 3s ease-in-out infinite;
}
.snav-logo:hover .nx-logo svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 4px 22px rgba(249,115,22,.55);
}
@keyframes nx-breathe {
  0%,100% { box-shadow: 0 2px 14px rgba(29,78,216,.5); }
  50%      { box-shadow: 0 4px 20px rgba(249,115,22,.45); }
}

/* ── Nav ── */
.snav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,22,46,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: none;
  isolation: isolate;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.snav-inner {
  display: flex;
  align-items: center;
  padding: 0;
  height: 64px;
  box-sizing: border-box;
}

/* Logo */
.snav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 28px;
}
.snav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #f97316);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 10px rgba(29,78,216,.35);
}
.snav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.snav-logo-text {
  font-size: 1.18rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.snav-logo-text strong { color: #ffffff; font-weight: 900; }

/* Nav links */
.snav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.snav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.snav-links > li > a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.snav-links > li > a.active { color: #fff; background: rgba(255,255,255,0.1); }
.snav-links > li.has-drop > a.active,
.snav-links > li.has-drop.active > a { color: #fff; background: rgba(255,255,255,0.1); }

/* Dropdown arrow icon */
.drop-arrow {
  font-size: .65rem;
  color: rgba(255,255,255,0.6);
  margin-left: 1px;
  transition: transform .2s;
}
.has-drop:hover .drop-arrow,
.has-drop:focus-within .drop-arrow { transform: rotate(180deg); }

/* ── Services Dropdown ── */
.has-drop { position: relative; }
.snav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 6px 6px;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  z-index: 9999;
  pointer-events: auto;
  animation: dropFadeIn .15s ease;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.snav-drop li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .855rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background .12s, color .12s;
  font-family: 'Inter', sans-serif;
}
.snav-drop li a .di {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .75rem;
  color: #6b7280;
  transition: background .12s, color .12s;
}
.snav-drop li a:hover { background: #eff6ff; color: #1d4ed8; }
.snav-drop li a:hover .di { background: rgba(29,78,216,.15); color: #1d4ed8; }
.snav-drop li a.active { background: #eff6ff; color: #1d4ed8; }
.has-drop:hover .snav-drop,
.has-drop:focus-within .snav-drop { display: block; }
.has-drop > a,
.has-drop .snav-drop { transition: visibility 0s; }

/* Nav action buttons */
.snav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}
.snav-btn-ghost {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: .855rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.snav-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }
.snav-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #f97316;
  color: #ffffff;
  font-size: .855rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1;
  border: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(249,115,22,.35);
}
.snav-btn-green:hover {
  background: #ea6c0a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,.45);
}

/* Hamburger */
.snav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  cursor: pointer;
  padding: 9px;
  flex-shrink: 0;
  margin-left: auto;
}
.snav-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: .25s;
}
.snav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.snav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.snav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile-cta hidden on desktop */
.snav-links .mobile-cta { display: none; }

/* ── Scrolled state: frosted glass blur ── */
.snav.snav-scrolled {
  background: rgba(10,22,46,0.95);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 32px rgba(2,6,23,0.45);
}


/* ── Footer ── */
.sfooter {
  background: #0d1e3a;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 60px;
  font-family: 'Inter', sans-serif;
}
.sfooter-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.sfooter-brand p {
  font-size: .88rem;
  color: #64748b;
  margin: 14px 0 22px;
  line-height: 1.75;
}
.sfooter-social { display: flex; gap: 10px; }
.sfooter-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  color: #94a3b8;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
  border: 1px solid rgba(255,255,255,.08);
}
.sfooter-social a:hover {
  background: rgba(249,115,22,.15);
  color: #f97316;
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.2);
}
.sfooter-grid h4 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.sfooter-grid ul { list-style: none; margin: 0; padding: 0; }
.sfooter-grid li + li { margin-top: 11px; }
.sfooter-grid a {
  color: #64748b;
  font-size: .875rem;
  text-decoration: none;
  transition: color .15s;
}
.sfooter-grid a:hover { color: #f97316; }
.sfooter-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
}
.sfooter-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: #334155;
}

/* ── Dark hero ── */
.dark-hero {
  background: linear-gradient(135deg, #0d1e3a 0%, #1a3a6b 100%);
  padding: 136px 0 72px;
  text-align: center;
}
.dark-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(29,78,216,.12);
  border: 1px solid rgba(29,78,216,.25);
  color: #60a5fa;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
}
.dark-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: #fff;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
}
.dark-hero .hero-grad { color: #60a5fa; }
.dark-hero p {
  color: rgba(226,234,245,.65);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.dark-hero .hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.dark-hero .trust-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.dark-hero .trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 600;
}
.dark-hero .trust-pill .fas {
  color: #60a5fa;
  font-size: .7rem;
}

/* ── Shared section styles ── */
.s-section { padding: 80px 0; }
.s-section.alt { background: #f8fafc; }
.s-section.dark { background: #0d1e3a; }
.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(29,78,216,.1);
  color: #3b82f6;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.s-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 0 0 14px;
  line-height: 1.18;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}
.s-lead { color: #475569; font-size: 1rem; margin: 0; line-height: 1.7; }

/* ── CTA section ── */
.s-cta {
  background: linear-gradient(135deg, #0d1e3a, #1a3a6b);
  padding: 80px 0;
  text-align: center;
}
.s-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}
.s-cta p { color: rgba(226,234,245,.65); margin: 0 0 30px; }
.s-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Service icon box ── */
.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(29,78,216,.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #3b82f6;
  font-size: 1.1rem;
  transition: background .2s, color .2s;
}
.service-card:hover .svc-icon {
  background: #1d4ed8;
  color: #ffffff;
}

/* ── Scroll to top ── */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f97316;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
  transition: background .15s, transform .15s;
  z-index: 999;
}
#scrollTop:hover { background: #ea6c0a; transform: translateY(-2px); }
#scrollTop.visible { display: grid; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .snav-links > li > a { padding: 7px 9px; font-size: .83rem; }
  .snav-logo { margin-right: 14px; }
}

@media (max-width: 1024px) {
  .snav-toggle { display: flex; }
  .snav-actions { display: none; }

  .snav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10,22,46,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    gap: 2px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
  }
  .snav-links.open { display: flex; }

  .snav-links > li > a {
    padding: 11px 14px;
    font-size: .95rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.88);
  }
  .snav-links > li > a:hover { background: rgba(255,255,255,0.07); }

  /* Mobile dropdown */
  .snav-drop {
    position: static;
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: none;
    padding: 4px 0 4px 8px;
    margin: 4px 0 4px 14px;
    animation: none;
  }
  .has-drop.drop-open .snav-drop { display: block; }
  .has-drop:hover .snav-drop,
  .has-drop:focus-within .snav-drop { display: none; }
  .has-drop.drop-open .snav-drop { display: block; }
  .has-drop:hover .drop-arrow,
  .has-drop:focus-within .drop-arrow { transform: none; }

  .snav-drop li a { padding: 9px 12px; font-size: .88rem; color: rgba(255,255,255,0.75); }
  .snav-drop li a .di { display: none; }

  /* Mobile CTA */
  .snav-links .mobile-cta {
    display: flex;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
  }
  .snav-links .mobile-cta a {
    flex: 1;
    text-align: center;
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
  }
}

/* Footer responsive */
@media (max-width: 1024px) {
  .sfooter-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .sfooter-grid { grid-template-columns: 1fr; }
  .dark-hero { padding: 110px 0 48px; }
  .hero-section { padding: 110px 0 52px !important; }
  #scrollTop { bottom: 16px; right: 16px; }
}

/* ── About page & s-cta color fixes ── */

/* Badge inside s-cta dark section */
.s-cta .badge {
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.35);
  color: #fdba74 !important;
  -webkit-text-fill-color: #fdba74 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.s-cta .badge i { color: #fdba74 !important; }

/* s-cta heading and paragraph */
.s-cta h2 { color: #ffffff !important; }
.s-cta p  { color: rgba(226,234,245,.8) !important; }

/* snav-btn-green text always white */
.snav-btn-green,
.snav-btn-green:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* dark-hero badge */
.dark-hero .badge {
  color: #93c5fd !important;
  -webkit-text-fill-color: #93c5fd !important;
}
