/* ==========================================================================
   NEXA365 theme styles
   Brand colours come from NEXA365 → Settings → Branding (--nx-brand, --nx-accent, --nx-dark).
   ========================================================================== */

:root {
	--nx-brand: #8dbd3e;
	--nx-accent: #5e8a1f;
	--nx-dark: #202020;
	--nx-dark-2: color-mix(in srgb, var(--nx-dark) 82%, var(--nx-accent));
	--nx-ink: #1f2328;
	--nx-muted: #5b636e;
	--nx-soft: #f5f8f0;
	--nx-line: #e3e8dc;
	--nx-white: #ffffff;
	--nx-tint: color-mix(in srgb, var(--nx-brand) 15%, #ffffff);
	--nx-radius: 20px;
	--nx-radius-sm: 12px;
	--nx-shadow: 0 10px 30px rgba(20, 24, 16, .08);
	--nx-shadow-lg: 0 24px 60px rgba(20, 24, 16, .16);
	--nx-ease: cubic-bezier(.4, 0, .2, 1);
	--nx-header-h: 76px;
	--nx-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nx-header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--nx-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--nx-ink);
	background: var(--nx-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, iframe, video { max-width: 100%; height: auto; }
a { color: var(--nx-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--nx-brand); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--nx-ink); margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--nx-brand); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-skip { position: absolute; left: -9999px; top: 8px; z-index: 10001; background: var(--nx-dark); color: #fff; padding: 10px 16px; border-radius: 8px; }
.nx-skip:focus { left: 16px; color: #fff; }

.nx-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nx-main { padding-top: var(--nx-header-h); }
.nx-grad, .nx-head h2 strong, .nx-cta-band h2 strong {
	background: linear-gradient(135deg, var(--nx-brand), var(--nx-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: inherit;
}

/* ---------- Buttons ---------- */
.nx-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .9em 1.8em; border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1.2 var(--nx-font); cursor: pointer; text-decoration: none;
	transition: transform .25s var(--nx-ease), box-shadow .25s var(--nx-ease), background .25s, color .25s, border-color .25s;
}
.nx-btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); }
.nx-btn i { transition: transform .25s var(--nx-ease); }
.nx-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.nx-btn-primary, .wp-block-button__link {
	background: linear-gradient(135deg, var(--nx-brand), color-mix(in srgb, var(--nx-brand) 75%, var(--nx-accent)));
	color: #12160c; box-shadow: 0 8px 24px color-mix(in srgb, var(--nx-brand) 40%, transparent);
}
.nx-btn-primary:hover, .wp-block-button__link:hover { color: #12160c; box-shadow: 0 12px 30px color-mix(in srgb, var(--nx-brand) 55%, transparent); }
.nx-btn-outline, .is-style-outline .wp-block-button__link { background: transparent; color: var(--nx-ink); border-color: var(--nx-ink); box-shadow: none; }
.nx-btn-outline:hover, .is-style-outline .wp-block-button__link:hover { background: var(--nx-ink); color: #fff; }
.nx-btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.nx-btn-ghost:hover { background: #fff; color: var(--nx-dark); }
.nx-btn-sm { padding: .6em 1.2em; font-size: .9rem; }
.nx-btn-lg { padding: 1.05em 2.2em; font-size: 1.05rem; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.nx-badge {
	display: inline-flex; align-items: center; gap: .5em; padding: .45em 1.1em; border-radius: 999px;
	background: color-mix(in srgb, var(--nx-brand) 18%, transparent); color: var(--nx-brand);
	border: 1px solid color-mix(in srgb, var(--nx-brand) 45%, transparent);
	font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 1.4rem;
}

/* ---------- Header ---------- */
.nx-header {
	position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nx-header-h);
	background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.nx-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); border-color: var(--nx-line); }
.admin-bar .nx-header { top: 32px; }
.nx-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.nx-logo { display: flex; align-items: center; flex-shrink: 0; }
.nx-logo img { height: 48px; width: auto; display: block; }
.nx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nx-menu > li { position: relative; }
.nx-link {
	display: inline-flex; align-items: center; gap: .4em; padding: .6em 1em; border-radius: 10px;
	font: 500 .98rem/1.2 var(--nx-font); color: var(--nx-ink); background: none; border: 0; cursor: pointer; position: relative;
}
.nx-link::after {
	content: ""; position: absolute; left: 1em; right: 1em; bottom: .25em; height: 2px; border-radius: 2px;
	background: var(--nx-brand); transform: scaleX(0); transition: transform .25s var(--nx-ease);
}
.nx-link:hover, .nx-link.is-current, .nx-has-dd.is-current > .nx-link { color: var(--nx-ink); }
.nx-link:hover::after, .nx-link.is-current::after, .nx-has-dd.is-current > .nx-link::after { transform: scaleX(1); }
.nx-dd-toggle .fa-chevron-down { font-size: .7em; transition: transform .25s; }
.nx-has-dd.open .fa-chevron-down { transform: rotate(180deg); }
.nx-dd {
	position: absolute; top: calc(100% + 10px); left: 50%; width: 320px; padding: 10px;
	background: #fff; border-radius: 16px; border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .25s var(--nx-ease);
}
.nx-dd::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nx-has-dd.open .nx-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) {
	.nx-has-dd:hover .nx-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.nx-has-dd:hover .fa-chevron-down { transform: rotate(180deg); }
}
.nx-dd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--nx-ink); font-weight: 500; font-size: .95rem; }
.nx-dd-item:hover, .nx-dd-item.is-current { background: var(--nx-soft); color: var(--nx-ink); }
.nx-dd-icon {
	width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px;
	background: var(--nx-tint); color: var(--nx-accent); transition: background .2s, color .2s;
}
.nx-dd-item:hover .nx-dd-icon { background: var(--nx-brand); color: #12160c; }
.nx-menu-cta { margin-left: 8px; }
.nx-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; border-radius: 10px; }
.nx-burger span { display: block; height: 2px; background: var(--nx-ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nx-burger span + span { margin-top: 6px; }
.nx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
	.nx-burger { display: block; }
	.nx-menu {
		position: fixed; top: var(--nx-header-h); left: 0; right: 0; max-height: calc(100vh - var(--nx-header-h)); overflow-y: auto;
		flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 24px;
		background: #fff; border-top: 1px solid var(--nx-line); box-shadow: 0 20px 40px rgba(0,0,0,.12);
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .25s var(--nx-ease);
	}
	.admin-bar .nx-menu { top: calc(var(--nx-header-h) + 46px); }
	.nx-menu.open { opacity: 1; visibility: visible; transform: none; }
	.nx-link { width: 100%; justify-content: space-between; padding: .9em 1em; font-size: 1.02rem; }
	.nx-link::after { display: none; }
	.nx-dd { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 0 8px; display: none; opacity: 1; visibility: visible; }
	.nx-has-dd.open .nx-dd { display: block; transform: none; }
	.nx-menu-cta { margin: 12px 0 0; }
	.nx-menu-cta .nx-btn { width: 100%; padding: .9em; }
}
@media (max-width: 782px) { .admin-bar .nx-header { top: 46px; } }

/* ---------- Heroes ---------- */
.nx-hero { position: relative; overflow: hidden; display: flex; align-items: center; text-align: center; isolation: isolate; }
.nx-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.nx-hero-content { position: relative; padding-top: 60px; padding-bottom: 110px; }
.nx-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .45em; }
.nx-hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 720px; margin: 0 auto 2rem; }
.nx-hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.nx-hero-home { min-height: min(calc(100vh - var(--nx-header-h)), 920px); background: radial-gradient(ellipse at 50% 40%, var(--nx-soft) 0%, #fff 70%); }
.nx-hero-home p { color: var(--nx-muted); }
.nx-partner-line { display: inline-block; font-weight: 600; }
.nx-type { display: inline-block; min-width: 1ch; }
.nx-type::after { content: "|"; margin-left: 2px; color: var(--nx-brand); -webkit-text-fill-color: var(--nx-brand); animation: nx-blink 1s steps(1) infinite; }
@keyframes nx-blink { 50% { opacity: 0; } }

.nx-hero-page { min-height: min(72vh, 680px); background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--nx-brand) 22%, transparent), transparent 55%), linear-gradient(160deg, var(--nx-dark) 0%, var(--nx-dark-2) 100%); color: #fff; }
.nx-hero-page h1 { color: #fff; }
.nx-hero-page p { color: rgba(255,255,255,.82); }
.nx-hero-page .nx-grad { background: linear-gradient(135deg, var(--nx-brand), color-mix(in srgb, var(--nx-brand) 60%, #fff)); -webkit-background-clip: text; background-clip: text; }
.nx-hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 56px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.14); }
.nx-hero-stats div { display: flex; flex-direction: column; }
.nx-hero-stats strong { font-size: 2rem; color: var(--nx-brand); line-height: 1.1; }
.nx-hero-stats span { font-size: .9rem; color: rgba(255,255,255,.7); }

.nx-scroll {
	position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--nx-muted);
}
.nx-hero-page .nx-scroll { color: rgba(255,255,255,.7); }
.nx-scroll i { animation: nx-bounce 2s infinite; color: var(--nx-brand); }
@keyframes nx-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Page head (simple pages) ---------- */
.nx-page-head { background: linear-gradient(160deg, var(--nx-dark), var(--nx-dark-2)); color: #fff; padding: 80px 0 64px; text-align: center; }
.nx-page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }
.nx-page-head p { color: rgba(255,255,255,.7); margin: 0; }
.nx-page-head .nx-badge { margin-bottom: 1rem; }

/* ---------- Sections ---------- */
.nx-section { padding: 96px 0; }
.nx-alt { background: var(--nx-soft); }
.nx-content > .nx-section, .nx-content > .nx-cta-band, .nx-content-home > * {
	padding-left: max(20px, calc((100% - 1160px) / 2));
	padding-right: max(20px, calc((100% - 1160px) / 2));
	margin: 0;
}
.nx-content > .nx-section, .nx-content-home > .nx-section { padding-top: 96px; padding-bottom: 96px; }
.nx-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.nx-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 0 0 .35em; }
.nx-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 18px auto 0; background: linear-gradient(90deg, var(--nx-brand), var(--nx-accent)); }
.nx-head p { color: var(--nx-muted); font-size: 1.1rem; margin: 0; }
.nx-head > * { margin-top: 0; }

/* Classic themes wrap group content in an inner container; let our grids see the real children. */
.wp-block-group[class*="nx-"] > .wp-block-group__inner-container { display: contents; }

/* ---------- Card grid (block patterns) ---------- */
.nx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.nx-cards > * { margin: 0 !important; }
.nx-card {
	position: relative; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); padding: 32px 28px;
	transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease), border-color .35s; overflow: hidden;
}
.nx-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--nx-brand), var(--nx-accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--nx-ease); }
.nx-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-lg); border-color: transparent; }
.nx-card:hover::before { transform: scaleX(1); }
.nx-card > * { margin: 0; }
.nx-card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.nx-card p { color: var(--nx-muted); font-size: .97rem; }
.nx-card-icon, .nx-solution-icon {
	width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; font-size: 1.45rem;
	background: var(--nx-tint); color: var(--nx-accent); transition: background .3s, color .3s, transform .3s;
}
.nx-card:hover .nx-card-icon { background: var(--nx-brand); color: #12160c; transform: rotate(-6deg) scale(1.05); }
.nx-alt .nx-card { border-color: transparent; box-shadow: var(--nx-shadow); }

/* ---------- Steps ---------- */
.nx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: nx-step; }
.nx-steps > * { margin: 0 !important; }
.nx-step { position: relative; padding: 32px 26px 28px; background: #fff; border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); counter-increment: nx-step; }
.nx-step::before {
	content: counter(nx-step, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	font-weight: 700; font-size: 1.05rem; color: #12160c; background: linear-gradient(135deg, var(--nx-brand), color-mix(in srgb, var(--nx-brand) 70%, var(--nx-accent)));
	box-shadow: 0 8px 20px color-mix(in srgb, var(--nx-brand) 40%, transparent); margin-bottom: 18px;
}
.nx-step > * { margin: 0; }
.nx-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.nx-step p { color: var(--nx-muted); font-size: .96rem; }

/* ---------- Panel (text + checklist) ---------- */
.nx-panel {
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px;
	border-radius: 28px; color: #fff; background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--nx-brand) 25%, transparent), transparent 60%), linear-gradient(150deg, var(--nx-dark), var(--nx-dark-2));
	box-shadow: var(--nx-shadow-lg);
}
.nx-panel > * { margin: 0 !important; }
.nx-panel h3 { color: #fff; font-size: 1.6rem; }
.nx-panel p { color: rgba(255,255,255,.8); margin: 0; }
.nx-panel .nx-checks li { color: #fff; }

.nx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nx-checks li { position: relative; padding-left: 38px; font-weight: 500; }
.nx-checks li::before {
	content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1em;
	width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .75rem;
	background: var(--nx-brand); color: #12160c;
}

/* ---------- CTA ---------- */
.nx-cta-feature, .nx-cta-band {
	position: relative; overflow: hidden; text-align: center; color: #fff; padding: 96px 0;
	background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--nx-brand) 35%, transparent), transparent 60%), linear-gradient(160deg, var(--nx-dark), var(--nx-dark-2));
}
.nx-cta-feature-inner { max-width: 780px; }
.nx-cta-feature h2, .nx-cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.nx-cta-feature p, .nx-cta-band p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.nx-cta-band > * { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.nx-cta-band .wp-block-buttons { justify-content: center; }
.nx-cta-small { font-size: .9rem !important; margin: 1.4rem 0 0 !important; color: rgba(255,255,255,.55) !important; }

/* ---------- Solutions ---------- */
.nx-solutions { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.nx-solution {
	position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
	padding: 30px 28px 26px; color: var(--nx-ink); transition: transform .4s var(--nx-ease), box-shadow .4s var(--nx-ease), border-color .4s; overflow: hidden;
}
.nx-solution::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--nx-brand), var(--nx-accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--nx-ease); }
.nx-solution:hover { color: var(--nx-ink); transform: translateY(-8px); box-shadow: var(--nx-shadow-lg); border-color: transparent; }
.nx-solution:hover::after { transform: scaleX(1); }
.nx-solution:hover .nx-solution-icon { background: var(--nx-brand); color: #12160c; transform: rotate(-6deg) scale(1.05); }
.nx-solution h3 { font-size: 1.2rem; margin: 20px 0 8px; }
.nx-solution p { color: var(--nx-muted); font-size: .96rem; flex: 1; margin-bottom: 16px; }
.nx-stat-badge { position: absolute; top: 22px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.nx-stat-badge strong { font-size: 1.35rem; color: var(--nx-accent); }
.nx-stat-badge small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nx-muted); }
.nx-arrow { align-self: flex-end; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--nx-soft); color: var(--nx-accent); transition: transform .3s, background .3s; }
.nx-solution:hover .nx-arrow { background: var(--nx-brand); color: #12160c; transform: translateX(4px); }

.nx-featured {
	display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon text" "icon chips" "icon more"; gap: 10px 28px; align-items: start;
	margin-top: 28px; padding: 40px; border-radius: 28px; color: #fff;
	background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--nx-brand) 28%, transparent), transparent 55%), linear-gradient(150deg, var(--nx-dark), var(--nx-dark-2));
	box-shadow: var(--nx-shadow-lg); transition: transform .4s var(--nx-ease);
}
.nx-featured:hover { color: #fff; transform: translateY(-4px); }
.nx-featured .nx-solution-icon { grid-area: icon; width: 72px; height: 72px; font-size: 1.8rem; background: var(--nx-brand); color: #12160c; }
.nx-featured-text { grid-area: text; }
.nx-featured h3 { color: #fff; font-size: 1.6rem; margin: 0 0 6px; }
.nx-featured p { color: rgba(255,255,255,.8); margin: 0; }
.nx-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.nx-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.nx-chips i { color: var(--nx-brand); font-size: .8em; }
.nx-more { grid-area: more; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nx-brand); margin-top: 8px; }
.nx-more i { transition: transform .3s; }
.nx-featured:hover .nx-more i, .nx-more:hover i { transform: translateX(5px); }

/* ---------- Stats strip ---------- */
.nx-stats-strip { background: linear-gradient(135deg, var(--nx-dark), var(--nx-dark-2)); padding: 56px 0; }
.nx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.nx-stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--nx-brand); line-height: 1.1; }
.nx-stat span { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Testimonials & partners ---------- */
.nx-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.nx-testimonial { margin: 0; background: #fff; border-radius: var(--nx-radius); padding: 32px; box-shadow: var(--nx-shadow); display: flex; flex-direction: column; }
.nx-stars { color: #f5b400; margin-bottom: 14px; letter-spacing: 2px; }
.nx-testimonial blockquote { margin: 0 0 20px; font-size: 1.02rem; flex: 1; position: relative; }
.nx-testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.nx-testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.nx-testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.nx-testimonial small { color: var(--nx-muted); }

.nx-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.nx-partner { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--nx-radius); padding: 24px; box-shadow: var(--nx-shadow); color: var(--nx-ink); transition: transform .3s; }
.nx-partner:hover { transform: translateY(-4px); color: var(--nx-ink); }
.nx-partner-logo { width: 72px; height: 72px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--nx-soft); font-size: 1.8rem; color: var(--nx-accent); overflow: hidden; }
.nx-partner-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.nx-partner h3 { font-size: 1.05rem; margin: 0 0 4px; }
.nx-partner p { margin: 0; color: var(--nx-muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.nx-contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.nx-contact-option { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 28px; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); color: var(--nx-ink); transition: transform .35s var(--nx-ease), box-shadow .35s; }
.nx-contact-option:hover { color: var(--nx-ink); transform: translateY(-6px); box-shadow: var(--nx-shadow-lg); }
.nx-contact-option:hover .nx-solution-icon { background: var(--nx-brand); color: #12160c; }
.nx-contact-option h3 { margin: 18px 0 4px; font-size: 1.2rem; }
.nx-contact-option p { color: var(--nx-muted); margin-bottom: 12px; }
.nx-contact-option strong { color: var(--nx-accent); font-size: 1.05rem; word-break: break-word; }
.nx-contact-option small { color: var(--nx-muted); margin-top: 4px; }

.nx-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; align-items: start; }
.nx-form-card, .nx-info-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--nx-shadow); }
.nx-form-card h2 { font-size: 1.8rem; }
.nx-info-card h3 { font-size: 1.3rem; }
.nx-info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.nx-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.nx-info-list i { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--nx-tint); color: var(--nx-accent); }
.nx-info-list a, .nx-info-list span { padding-top: 6px; color: var(--nx-ink); }
.nx-info-card .nx-checks { margin-bottom: 24px; }
.nx-info-cta { padding-top: 20px; border-top: 1px solid var(--nx-line); color: var(--nx-muted); }
.nx-info-cta a { font-weight: 600; font-size: 1.1rem; }
.nx-map { margin-top: 24px; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.nx-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.nx-booking-embed { background: #fff; border-radius: 24px; box-shadow: var(--nx-shadow); overflow: hidden; }
.nx-booking-embed iframe { width: 100%; height: 820px; border: 0; display: block; }

/* ---------- Forms ---------- */
.nx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.nx-form p { margin: 0; }
.nx-wide { grid-column: 1 / -1; }
.nx-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.nx-field label span { color: var(--nx-accent); }
.nx-form input, .nx-form select, .nx-form textarea {
	width: 100%; padding: 13px 16px; border: 1.5px solid var(--nx-line); border-radius: var(--nx-radius-sm);
	font: 400 1rem/1.4 var(--nx-font); color: var(--nx-ink); background: #fbfcf9; transition: border-color .2s, box-shadow .2s, background .2s;
}
.nx-form textarea { resize: vertical; min-height: 130px; }
.nx-form input:focus, .nx-form select:focus, .nx-form textarea:focus { outline: none; border-color: var(--nx-brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-brand) 22%, transparent); }
.nx-form button { width: 100%; }
.nx-consent { font-size: .86rem; color: var(--nx-muted); }
.nx-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nx-notice { padding: 16px 20px; border-radius: var(--nx-radius-sm); margin-bottom: 20px; font-weight: 500; }
.nx-ok { background: var(--nx-tint); color: #2d4a0e; border: 1px solid color-mix(in srgb, var(--nx-brand) 50%, transparent); }
.nx-err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3b8b8; }
.nx-form-section .nx-form-wrap { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--nx-shadow); }

/* ---------- Prose, posts ---------- */
.nx-prose { max-width: 860px; margin: 0 auto; padding: 64px 20px 96px; }
.nx-prose h2 { font-size: 1.5rem; margin-top: 2em; }
.nx-prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.nx-prose ul, .nx-prose ol { padding-left: 1.4em; }
.nx-note { background: #fff8e1; border-left: 4px solid #f5b400; padding: 12px 16px; border-radius: 8px; }
.nx-feature-img { border-radius: var(--nx-radius); margin-bottom: 32px; }
.nx-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--nx-line); font-weight: 600; }
.nx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.nx-post-card { background: #fff; border-radius: var(--nx-radius); overflow: hidden; border: 1px solid var(--nx-line); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.nx-post-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-lg); }
.nx-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nx-soft); }
.nx-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-post-ph { display: grid; place-items: center; height: 100%; font-size: 2.4rem; color: var(--nx-brand); }
.nx-post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.nx-post-body time { font-size: .85rem; color: var(--nx-muted); }
.nx-post-body h2 { font-size: 1.25rem; margin: 6px 0 10px; }
.nx-post-body h2 a { color: var(--nx-ink); }
.nx-post-body p { color: var(--nx-muted); flex: 1; }
.nx-post-body .nx-more { color: var(--nx-accent); }
.nx-pagination { margin-top: 48px; }
.nx-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.nx-pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--nx-line); color: var(--nx-ink); font-weight: 600; }
.nx-pagination .page-numbers.current, .nx-pagination .page-numbers:hover { background: var(--nx-brand); border-color: var(--nx-brand); color: #12160c; }

/* ---------- Footer ---------- */
.nx-footer { color: rgba(255,255,255,.78); background: linear-gradient(135deg, var(--nx-dark) 0%, var(--nx-dark) 45%, color-mix(in srgb, var(--nx-accent) 55%, var(--nx-dark)) 100%); padding: 72px 0 0; font-size: .96rem; }
.nx-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.nx-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.1em; position: relative; padding-bottom: 12px; }
.nx-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--nx-brand); }
.nx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nx-footer a { color: rgba(255,255,255,.78); }
.nx-footer a:hover { color: var(--nx-brand); }
.nx-footer p i { color: var(--nx-brand); width: 18px; }
.nx-footer-tagline { margin-top: 18px; font-style: italic; }
.nx-social { display: flex; gap: 10px; flex-wrap: wrap; }
.nx-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .25s, transform .25s, color .25s; }
.nx-social a:hover { background: var(--nx-brand); color: #12160c; transform: translateY(-3px); }
.nx-social-dark a { background: var(--nx-soft); color: var(--nx-ink); }
.nx-footer-badge { display: flex; align-items: flex-start; justify-content: flex-end; }
.nx-footer-badge img { max-width: 140px; height: auto; background: #fff; border-radius: 12px; padding: 6px; }
.nx-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.nx-footer-bottom p { margin: 0; }
.nx-footer-bottom ul { display: flex; gap: 22px; }

.nx-to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--nx-brand); color: #12160c; box-shadow: var(--nx-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.nx-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Scroll animations ---------- */
.nx-js [data-anim], .nx-js .nx-content .nx-card, .nx-js .nx-content .nx-step, .nx-js .nx-content .nx-head, .nx-js .nx-content .nx-panel {
	opacity: 0; transform: translateY(28px); transition: opacity .7s var(--nx-ease), transform .7s var(--nx-ease); transition-delay: var(--d, 0s);
}
.nx-js .in[data-anim], .nx-js .nx-content .in { opacity: 1; transform: none; }
.nx-js .nx-solution.in[data-anim]:hover, .nx-js .nx-content .nx-card.in:hover { transform: translateY(-8px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.nx-js [data-anim], .nx-js .nx-content .nx-card, .nx-js .nx-content .nx-step, .nx-js .nx-content .nx-head, .nx-js .nx-content .nx-panel { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.nx-footer-grid { grid-template-columns: 1fr 1fr; }
	.nx-footer-badge { justify-content: flex-start; }
	.nx-split, .nx-panel { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	:root { --nx-header-h: 68px; }
	.nx-logo img { height: 40px; }
	.nx-section, .nx-content > .nx-section, .nx-content-home > .nx-section, .nx-cta-feature, .nx-cta-band { padding-top: 64px; padding-bottom: 64px; }
	.nx-content > .nx-section, .nx-content > .nx-cta-band, .nx-content-home > * { padding-left: 16px; padding-right: 16px; }
	.nx-container { padding: 0 16px; }
	.nx-head { margin-bottom: 36px; }
	.nx-hero-content { padding: 56px 16px 90px; }
	.nx-hero-buttons .nx-btn { width: 100%; }
	.nx-hero-page { min-height: auto; }
	.nx-panel, .nx-featured, .nx-form-card, .nx-info-card, .nx-form-section .nx-form-wrap { padding: 28px 22px; }
	.nx-featured { grid-template-columns: 1fr; grid-template-areas: "icon" "text" "chips" "more"; }
	.nx-form { grid-template-columns: 1fr; }
	.nx-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.nx-footer-bottom { flex-direction: column; text-align: center; }
	.nx-solutions, .nx-posts, .nx-partners, .nx-testimonials { grid-template-columns: 1fr; }
}

/* ---------- Engineer Portal + Support (1.1) ---------- */
.nx-login-card { max-width: 480px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--nx-shadow); text-align: center; }
.nx-login-card .nx-solution-icon { margin: 0 auto 16px; }
.nx-login-card h2 { font-size: 1.7rem; margin: 0 0 6px; }
.nx-login-card > p { color: var(--nx-muted); }
.nx-login-card form { text-align: left; margin-top: 22px; display: grid; gap: 14px; }
.nx-login-card form p { margin: 0; }
.nx-login-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.nx-login-card input[type=text], .nx-login-card input[type=password] {
	width: 100%; padding: 13px 16px; border: 1.5px solid var(--nx-line); border-radius: var(--nx-radius-sm);
	font: 400 1rem/1.4 var(--nx-font); background: #fbfcf9;
}
.nx-login-card input:focus { outline: none; border-color: var(--nx-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-brand) 22%, transparent); }
.nx-login-card .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.nx-login-card .login-submit input {
	width: 100%; padding: .9em 1.8em; border: 0; border-radius: 999px; cursor: pointer; font: 600 1rem/1.2 var(--nx-font); color: #12160c;
	background: linear-gradient(135deg, var(--nx-brand), color-mix(in srgb, var(--nx-brand) 75%, var(--nx-accent)));
}
.nx-login-help { margin: 16px 0 0; font-size: .92rem; }
.nx-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 28px; }
.nx-doc { display: flex; flex-direction: column; padding: 32px 28px; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); }
.nx-doc h3 { margin: 18px 0 6px; font-size: 1.25rem; }
.nx-doc p { color: var(--nx-muted); margin: 0 0 12px; }
.nx-doc .nx-doc-meta { font-size: .85rem; flex: 1; }
.nx-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.nx-content > .nx-engineer-note { max-width: 1160px; margin: 0 auto 64px; width: calc(100% - 40px); }
@media (max-width: 680px) {
	.nx-login-card { padding: 28px 22px; }
}
/* Header "Login" link (Engineer Portal) */
.nx-menu-login .nx-link { gap: .45em; }
.nx-menu-login .fa-circle-user { font-size: 1.15em; color: var(--nx-accent); }
@media (min-width: 1025px) and (max-width: 1280px) {
	.nx-menu-login .nx-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.nx-menu-login .fa-circle-user { font-size: 1.35em; }
}
/* Keep menu labels on one line now the menu has two dropdowns + Login */
.nx-link, .nx-menu-cta .nx-btn { white-space: nowrap; }
.nx-menu-cta { margin-left: 4px; }
@media (min-width: 1025px) and (max-width: 1320px) {
	.nx-nav { gap: 14px; }
	.nx-menu { gap: 0; }
	.nx-link { padding: .6em .65em; font-size: .92rem; }
	.nx-link::after { left: .65em; right: .65em; }
	.nx-logo img { height: 40px; }
	.nx-menu-cta .nx-btn { padding: .55em 1em; font-size: .85rem; }
}
@media (min-width: 1025px) and (max-width: 1160px) {
	.nx-menu-cta .nx-btn i { display: none; }
	.nx-link { padding: .6em .5em; font-size: .9rem; }
}
/* Header logo with the map of Africa: a little taller so "NEXA 365" stays readable */
.nx-logo img[src*="nexa365-logo-header"] { height: 58px; }
@media (min-width: 1025px) and (max-width: 1320px) { .nx-logo img[src*="nexa365-logo-header"] { height: 50px; } }
@media (max-width: 680px) { .nx-logo img[src*="nexa365-logo-header"] { height: 50px; } }
/* ---------- NEXA AI chat (inc/ai-chat.php, assets/js/ai-chat.js) ---------- */
.has-nx-ai .nx-to-top { bottom: 96px; }
.nx-ai { position: fixed; right: 22px; bottom: 22px; z-index: 950; font-family: var(--nx-font); }
.nx-ai.is-open { z-index: 1200; }   /* above the fixed site header */
.nx-ai-bubble {
	display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--nx-dark); color: #fff; font: 600 .95rem/1 var(--nx-font); box-shadow: 0 10px 30px rgba(0,0,0,.25);
	transition: transform .25s var(--nx-ease), box-shadow .25s;
}
.nx-ai-bubble:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.nx-ai-bubble img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 3px; }
.nx-ai.is-open .nx-ai-bubble-text { display: none; }
.nx-ai.is-open .nx-ai-bubble { padding: 7px; }
.nx-ai-panel {
	position: absolute; right: 0; bottom: 64px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
	display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.28); border: 1px solid var(--nx-line);
}
.nx-ai-panel[hidden] { display: none; }
.nx-ai-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--nx-dark); color: #fff; border-bottom: 3px solid var(--nx-brand); }
.nx-ai-head img { border-radius: 50%; background: #fff; padding: 3px; }
.nx-ai-head div { flex: 1; line-height: 1.2; }
.nx-ai-head small { display: block; color: rgba(255,255,255,.7); font-size: .78rem; }
.nx-ai-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.nx-ai-close:hover { background: rgba(255,255,255,.18); }
.nx-ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--nx-soft); }
.nx-ai-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.nx-ai-msg p { margin: 0 0 .5em; } .nx-ai-msg p:last-child { margin: 0; }
.nx-ai-msg ul { margin: .2em 0 .5em; padding-left: 1.1em; } .nx-ai-msg li { margin: .15em 0; }
.nx-ai-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--nx-line); border-bottom-left-radius: 4px; }
.nx-ai-assistant a { color: var(--nx-accent); font-weight: 600; }
.nx-ai-user { align-self: flex-end; background: var(--nx-brand); color: #12160c; border-bottom-right-radius: 4px; }
.nx-ai-typing { display: flex; gap: 5px; padding: 14px 16px; }
.nx-ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-muted); animation: nx-ai-dot 1.2s infinite ease-in-out; }
.nx-ai-typing span:nth-child(2) { animation-delay: .15s; } .nx-ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nx-ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.nx-ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--nx-line); background: #fff; }
.nx-ai-form textarea {
	flex: 1; resize: none; max-height: 110px; padding: 10px 12px; border: 1.5px solid var(--nx-line); border-radius: 12px;
	font: 400 .95rem/1.4 var(--nx-font); background: #fbfcf9; color: var(--nx-ink);
}
.nx-ai-form textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-ai-form textarea:focus { outline: none; border-color: var(--nx-brand); background: #fff; }
.nx-ai-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; cursor: pointer; background: var(--nx-brand); color: #12160c; }
.nx-ai-send:disabled { opacity: .5; cursor: default; }
.nx-ai-note { margin: 0; padding: 0 14px 10px; background: #fff; font-size: .72rem; line-height: 1.4; color: var(--nx-muted); }
.nx-ai-note a { color: var(--nx-accent); }
@media (max-width: 680px) {
	.nx-ai { right: 14px; bottom: 14px; }
	.nx-ai-bubble-text { display: none; }
	.nx-ai-bubble { padding: 7px; }
	.has-nx-ai .nx-to-top { bottom: 80px; right: 14px; }
	.nx-ai.is-open { left: 0; right: 0; top: 0; bottom: 0; }
	.nx-ai.is-open .nx-ai-bubble { display: none; }
	.nx-ai-panel { position: fixed; inset: 0; width: auto; height: auto; height: 100dvh; border-radius: 0; border: 0; }
	.nx-ai-form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .nx-ai-typing span { animation: none; } }
/* Card grids site-wide: at most 3 per row (6 → 3+3, 5 → 3+2), except exactly 4 cards which stay in one row */
@media (min-width: 1025px) {
	.nx-cards:has(.nx-card:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
	.nx-cards:has(.nx-card:last-child:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 681px) and (max-width: 1024px) {
	.nx-cards:has(.nx-card:nth-child(3)) { grid-template-columns: repeat(2, 1fr); }
}