/*
Theme Name: Nextus Atlas
Theme URI: https://nextusworks.org/
Author: Nextus Workforce Initiative
Author URI: https://nextusworks.org/
Description: A clean, modern, high-contrast nonprofit theme for Nextus Workforce Initiative. Single-column readability with purposeful CTAs.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextus-atlas
Tags: one-column, custom-colors, custom-logo, blog, accessibility-ready
*/

/* =========================================================
   Nextus Atlas — Design System
   Brand: Orange #FF7A00, Navy #0A2540
   ========================================================= */

:root {
  --nx-orange:#FF7A00;
  --nx-navy:#0A2540;
  --nx-ink:#07101f;
  --nx-paper:#ffffff;
  --nx-soft:#f4f7fb;
  --nx-muted:rgba(7,16,31,.74);
  --nx-border:rgba(10,37,64,.14);
  --nx-shadow: 0 16px 40px rgba(0,0,0,.10);
  --nx-radius: 22px;
  --nx-radius-sm: 14px;
  --nx-max: 920px;
}

* { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--nx-ink);
  background: var(--nx-paper);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--nx-navy); text-decoration: none; }
a:hover { color: var(--nx-orange); text-decoration: underline; }

.nx-skip {
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.nx-skip:focus { left: 16px; top: 16px; width:auto; height:auto; background:#fff; padding:10px 12px; border-radius: 10px; z-index: 9999; }

.nx-wrap {
  max-width: calc(var(--nx-max) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.nx-section { padding: 72px 0; }
@media (max-width: 768px) {
  .nx-section { padding: 44px 0; }
  .nx-wrap { padding: 0 18px; }
}

.nx-divider { border-top: 1px solid var(--nx-border); }

.nx-hero {
  background: radial-gradient(1200px 520px at 15% 0%, rgba(255,122,0,.22), rgba(10,37,64,.96) 55%, rgba(10,37,64,1));
  color: #fff;
}
.nx-hero h1, .nx-hero h2, .nx-hero h3 { color: #fff; }
.nx-hero p { color: rgba(255,255,255,.88); }

.nx-eyebrow {
  display: inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
}
.nx-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--nx-orange);
}

.nx-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  margin: 14px 0 14px;
  letter-spacing: -.03em;
}
.nx-lede {
  font-size: 1.1rem;
  max-width: 68ch;
}

.nx-actions {
  display:flex; flex-wrap: wrap; gap: 12px;
  margin-top: 22px;
}

.nx-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .08s ease, background-color .12s ease, border-color .12s ease;
}
.nx-btn:active { transform: translateY(1px); }
.nx-btn-primary {
  background: var(--nx-orange);
  border-color: var(--nx-orange);
  color:#fff;
}
.nx-btn-primary:hover {
  background: #ff8f1f;
  border-color: #ff8f1f;
  text-decoration:none;
}
.nx-btn-ghost {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  color:#fff;
}
.nx-btn-ghost:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.30);
  text-decoration:none;
}
.nx-btn-outline {
  background: transparent;
  border-color: var(--nx-border);
  color: var(--nx-navy);
}
.nx-btn-outline:hover {
  border-color: rgba(255,122,0,.45);
  text-decoration:none;
}

.nx-grid {
  display:grid;
  gap: 18px;
}
.nx-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .nx-grid-3 { grid-template-columns: 1fr; }
}

.nx-card {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.nx-card h3 { margin: 0 0 8px; color: var(--nx-navy); letter-spacing: -.02em; }
.nx-card p { margin: 0; color: var(--nx-muted); line-height: 1.75; }

.nx-band {
  background: var(--nx-soft);
}

.nx-kpi {
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .nx-kpi { grid-template-columns: 1fr; }
}
.nx-kpi .nx-card {
  padding: 18px 20px;
}
.nx-kpi .nx-kpi-num {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--nx-navy);
  margin-bottom: 4px;
}

.nx-prose {
  max-width: var(--nx-max);
}
.nx-prose p { color: var(--nx-muted); line-height: 1.8; }
.nx-prose h2 {
  margin-top: 34px;
  letter-spacing: -.02em;
  color: var(--nx-navy);
}
.nx-prose blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--nx-soft);
  border-left: 4px solid var(--nx-orange);
  border-radius: var(--nx-radius-sm);
}

.nx-form {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nx-input {
  flex: 1 1 260px;
  min-width: 240px;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 1rem;
}
.nx-input:focus {
  outline: none;
  border-color: rgba(255,122,0,.62);
  box-shadow: 0 0 0 4px rgba(255,122,0,.18);
}

.nx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nx-border);
}
.nx-header .nx-wrap {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nx-brand {
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 180px;
}
.nx-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--nx-orange), #ffb066);
  box-shadow: 0 10px 24px rgba(255,122,0,.22);
}
.nx-brand-title {
  display:flex;
  flex-direction: column;
  line-height: 1.15;
}
.nx-brand-title strong { color: var(--nx-navy); }
.nx-brand-title span { color: var(--nx-muted); font-size: .9rem; }

.nx-nav {
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.nx-nav a {
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--nx-navy);
}
.nx-nav a:hover {
  background: rgba(10,37,64,.06);
  text-decoration:none;
}

.nx-cta a {
  background: var(--nx-orange);
  color:#fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}
.nx-cta a:hover {
  background: var(--nx-navy);
  text-decoration:none;
}

.nx-menu-btn {
  display:none;
  border: 1px solid var(--nx-border);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .nx-nav { display:none; }
  .nx-menu-btn { display:inline-flex; }
  .nx-nav.nx-open {
    display:flex;
    width: 100%;
    padding-top: 10px;
  }
  .nx-header .nx-wrap { flex-wrap: wrap; }
}

.nx-footer {
  border-top: 1px solid var(--nx-border);
  padding: 42px 0;
  background: #fff;
}
.nx-footer .nx-cols {
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .nx-footer .nx-cols { grid-template-columns: 1fr; }
}
.nx-footer small { color: var(--nx-muted); }
.nx-footer a { font-weight: 700; }

/* WP content alignment */
.entry-content, .page-content { max-width: var(--nx-max); margin: 0 auto; }
.wp-block-button__link {
  border-radius: 999px !important;
  font-weight: 900 !important;
}



/* =========================================================
   v1.0.2 fixes & polish
   ========================================================= */

/* Header logo */
.nx-site-logo{
  display:block;
  height: 44px;
  width: auto;
}

/* Primary nav list */
.nx-nav{
  flex: 1;
  justify-content: flex-end;
}
.nx-menu{
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.nx-menu li{ margin:0; padding:0; }
.nx-menu a{
  display:inline-flex;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--nx-navy);
}
.nx-menu a:hover{
  background: rgba(10,37,64,.06);
  text-decoration: none;
}

/* Remove bullets in header/footer navs */
.nx-header ul, .nx-footer ul{
  list-style: none;
  padding-left: 0;
}

/* Follow the Journey CTA hover: navy bg + white text */
.nx-btn-primary:hover{
  background: var(--nx-navy);
  border-color: var(--nx-navy);
  color: #ffffff;
}



/* =========================================================
   v1.0.3 header/menu/footer + journey hover
   ========================================================= */

/* Remove extra brand text -> allow logo to use more vertical space */
.nx-brand{ min-width: 0; }
.nx-site-logo{
  height: 52px; /* maximize within existing header height */
  width: auto;
}

/* Keep menu + CTA on one line (desktop) */
@media (min-width: 901px){
  .nx-header .nx-wrap{ flex-wrap: nowrap; }
  .nx-nav{ flex-wrap: nowrap; }
  .nx-menu{ flex-wrap: nowrap; white-space: nowrap; }
  .nx-cta{ white-space: nowrap; }
}

/* Journey button hover (homepage body): lighter orange + navy text */
.nx-btn-journey:hover{
  background: rgba(255,122,0,.72);
  border-color: rgba(255,122,0,.72);
  color: var(--nx-navy);
}
