/**
 * NC Muslim Tech landing — modern CSS
 * Version: 2.0.0
 * Bootstrap 5.3 grid + custom design system
 */

:root {
	--ncmst-bg: #061f1b;
	--ncmst-bg-elevated: #0a2e28;
	--ncmst-surface: rgba(255, 255, 255, 0.06);
	--ncmst-surface-strong: rgba(255, 255, 255, 0.1);
	--ncmst-text: #f4f7f6;
	--ncmst-text-muted: #a8bdb8;
	--ncmst-accent: #3dd6c3;
	--ncmst-accent-2: #c9a84c;
	--ncmst-accent-glow: rgba(61, 214, 195, 0.35);
	--ncmst-font: "Plus Jakarta Sans", system-ui, sans-serif;
	--ncmst-serif: "Instrument Serif", Georgia, serif;
	--ncmst-radius: 1.25rem;
	--ncmst-radius-sm: 0.75rem;
	--ncmst-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	--ncmst-header-h: 4.5rem;
	--ncmst-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.ncmst-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
	.ncmst-hero__scroll-line {
		animation: none !important;
	}
}

body.ncmst-landing-page {
	margin: 0;
	font-family: var(--ncmst-font);
	background: var(--ncmst-bg);
	color: var(--ncmst-text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.ncmst-landing-page a {
	color: var(--ncmst-accent);
	text-decoration: none;
	transition: color 0.2s var(--ncmst-ease);
}

body.ncmst-landing-page a:hover {
	color: #6ee8d8;
}

.ncmst-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 0.75rem 1rem;
	background: var(--ncmst-accent);
	color: var(--ncmst-bg);
	font-weight: 600;
}

.ncmst-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Header */
.ncmst-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--ncmst-header-h);
}

.ncmst-nav {
	height: var(--ncmst-header-h);
	background: rgba(6, 31, 27, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ncmst-logo {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--ncmst-text) !important;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

.ncmst-logo__mark {
	width: 2rem;
	height: 2rem;
	border-radius: 0.55rem;
	background: linear-gradient(135deg, var(--ncmst-accent), #1a8f7d);
	box-shadow: 0 0 24px var(--ncmst-accent-glow);
}

.ncmst-graphic--logo {
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	display: block;
	border-radius: 0.65rem;
	object-fit: cover;
	border: 1px solid rgba(61, 214, 195, 0.35);
	filter: drop-shadow(0 0 10px rgba(61, 214, 195, 0.3));
}

/* Graphics */
.ncmst-graphic-wrap {
	width: 100%;
	max-width: 100%;
}

.ncmst-graphic-wrap--hero {
	margin-top: 3rem;
	max-width: 52rem;
	margin-left: auto;
	margin-right: auto;
}

.ncmst-hero-visual {
	position: relative;
	border-radius: var(--ncmst-radius);
	overflow: visible;
	border: none;
	box-shadow: none;
	background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(61, 214, 195, 0.12), transparent 70%);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem 0 0;
}

.ncmst-hero-photo {
	width: auto;
	max-width: min(280px, 72vw);
	height: auto;
	max-height: none;
	display: block;
	object-fit: contain;
	object-position: center center;
}

.ncmst-hero-visual__glow {
	display: none;
}

.ncmst-graphic--hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: auto;
	z-index: 2;
	opacity: 0.9;
}

/* Photo frames */
.ncmst-photo-frame {
	position: relative;
	margin: 0;
	border-radius: var(--ncmst-radius);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--ncmst-shadow);
}

.ncmst-photo-frame img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.ncmst-vision-photo {
	max-height: 20rem;
	object-position: center;
}

.ncmst-vision-photo--illustration {
	max-height: none;
	object-fit: contain;
	background: linear-gradient(160deg, rgba(6, 31, 27, 0.55), rgba(26, 143, 125, 0.12));
}

.ncmst-photo-frame--vision::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(61, 214, 195, 0.15), transparent 60%);
	pointer-events: none;
}

.ncmst-community-photo {
	max-height: 18rem;
	width: 100%;
	object-fit: cover;
	object-position: center top;
}

.ncmst-community-photo--illustration {
	max-height: none;
	object-fit: contain;
	object-position: center;
	background: linear-gradient(160deg, rgba(6, 31, 27, 0.55), rgba(26, 143, 125, 0.12));
}

.ncmst-graphic--community-orbit {
	position: absolute;
	top: -1rem;
	right: -1rem;
	width: 5rem;
	height: 5rem;
	opacity: 0.7;
	animation: ncmst-orbit-slow 20s linear infinite;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Pillar card images */
.ncmst-pillar-card__media {
	overflow: hidden;
	max-height: 12rem;
}

.ncmst-pillar-photo {
	width: 100%;
	height: 12rem;
	object-fit: cover;
	object-position: center 22%;
	transition: transform 0.5s var(--ncmst-ease);
}

.ncmst-pillar-photo--mentor {
	object-position: center 18%;
}

.ncmst-pillar-photo--serve {
	object-position: center 20%;
}

.ncmst-pillar-card:hover .ncmst-pillar-photo {
	transform: scale(1.05);
}

.ncmst-pillar-card__body {
	padding: 1.5rem 1.75rem 2rem;
}

.ncmst-graphic-wrap--vision {
	margin-bottom: 1.5rem;
}

.ncmst-graphic-wrap--community {
	position: relative;
	display: flex;
	justify-content: center;
}

@keyframes ncmst-orbit-slow {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.ncmst-graphic-divider {
	width: 100%;
	max-width: 36rem;
	margin: -2rem auto 2rem;
	opacity: 0.8;
}

.ncmst-graphic-divider svg {
	width: 100%;
	height: 2.5rem;
	display: block;
}

.ncmst-pillar-card__icon {
	margin-bottom: 1rem;
	line-height: 0;
}

.ncmst-graphic--pillar {
	width: 3rem;
	height: 3rem;
	display: block;
}

.ncmst-checklist--compact {
	margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.ncmst-graphic--community-orbit,
	.ncmst-pillar-card:hover .ncmst-pillar-photo {
		animation: none !important;
		transform: none !important;
	}
}

@media (max-width: 991.98px) {
	.ncmst-graphic-wrap--vision {
		max-width: 18rem;
		margin-left: auto;
		margin-right: auto;
	}

	.ncmst-graphic-wrap--hero {
		margin-top: 2rem;
	}
}

.ncmst-nav-links .nav-link {
	color: var(--ncmst-text-muted) !important;
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.5rem 0.85rem !important;
	border-radius: var(--ncmst-radius-sm);
	transition: color 0.2s, background 0.2s;
}

.ncmst-nav-links .nav-link:hover {
	color: var(--ncmst-text) !important;
	background: var(--ncmst-surface);
}

.ncmst-nav-toggler {
	border-color: rgba(255, 255, 255, 0.2);
	padding: 0.35rem 0.55rem;
}

.ncmst-nav-toggler .navbar-toggler-icon {
	filter: invert(1);
}

@media (max-width: 991.98px) {
	.ncmst-nav .navbar-collapse {
		background: rgba(6, 31, 27, 0.96);
		border-radius: var(--ncmst-radius);
		padding: 1rem;
		margin-top: 0.5rem;
		border: 1px solid rgba(255, 255, 255, 0.08);
	}
}

/* Buttons */
.ncmst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.65rem 1.35rem;
	border: 1px solid transparent;
	transition: transform 0.25s var(--ncmst-ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.ncmst-btn--lg {
	padding: 0.85rem 1.75rem;
	font-size: 1.05rem;
}

.ncmst-btn--primary {
	background: linear-gradient(135deg, var(--ncmst-accent), #1fa892);
	color: #04241f !important;
	box-shadow: 0 8px 32px var(--ncmst-accent-glow);
}

.ncmst-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px var(--ncmst-accent-glow);
	color: #04241f !important;
}

/* ExamReady — distinct from the teal primary "Join" button. Uses the gold accent so the
   member learning perk reads as its own action. */
.ncmst-btn--examready {
	background: linear-gradient(135deg, var(--ncmst-accent-2), #b08f38);
	color: #04241f !important;
	box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.ncmst-btn--examready:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(201, 168, 76, 0.4);
	color: #04241f !important;
}

.ncmst-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--ncmst-text) !important;
}

.ncmst-btn--ghost:hover {
	background: var(--ncmst-surface);
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--ncmst-text) !important;
}

/* Hero */
.ncmst-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--ncmst-header-h) + 3rem) 0 5rem;
	overflow: hidden;
}

.ncmst-hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.ncmst-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 214, 195, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 50% at 80% 80%, rgba(201, 168, 76, 0.08), transparent 50%),
		linear-gradient(180deg, rgba(6, 31, 27, 0.3) 0%, var(--ncmst-bg) 85%);
	pointer-events: none;
}

.ncmst-hero .container {
	z-index: 2;
}

.ncmst-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ncmst-accent);
	margin-bottom: 1.25rem;
}

.ncmst-eyebrow__dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--ncmst-accent);
	box-shadow: 0 0 12px var(--ncmst-accent);
}

.ncmst-hero__title {
	font-size: clamp(2.35rem, 5.5vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: 1.25rem;
	color: var(--ncmst-text);
}

.ncmst-hero__emphasis {
	font-family: var(--ncmst-serif);
	font-style: italic;
	font-weight: 400;
	color: var(--ncmst-accent);
}

.ncmst-hero__lead {
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	color: var(--ncmst-text-muted);
	max-width: 38rem;
	margin: 0 auto 2rem;
}

.ncmst-hero__actions {
	margin-bottom: 0;
}

.ncmst-hero__tags {
	margin-top: 2.75rem;
}

.ncmst-tag {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 500;
	border-radius: 999px;
	background: var(--ncmst-surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--ncmst-text-muted);
	backdrop-filter: blur(8px);
}

a.ncmst-tag {
	text-decoration: none;
	transition: color 0.2s var(--ncmst-ease), border-color 0.2s var(--ncmst-ease), background 0.2s var(--ncmst-ease);
}

a.ncmst-tag:hover,
a.ncmst-tag:focus-visible {
	color: var(--ncmst-accent);
	border-color: rgba(61, 214, 195, 0.4);
	background: rgba(13, 74, 66, 0.9);
}

#pillar-learn,
#pillar-mentor,
#pillar-serve,
#get-involved {
	scroll-margin-top: 5.5rem;
}

.ncmst-hero__scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.ncmst-hero__scroll-line {
	display: block;
	width: 1px;
	height: 3rem;
	background: linear-gradient(180deg, var(--ncmst-accent), transparent);
	animation: ncmst-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ncmst-scroll-pulse {
	0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
	50% { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.ncmst-section {
	padding: 5.5rem 0;
	position: relative;
}

.ncmst-section__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ncmst-accent);
	margin-bottom: 0.75rem;
}

.ncmst-section__label--light {
	color: rgba(255, 255, 255, 0.7);
}

.ncmst-section__title {
	font-size: clamp(1.85rem, 3.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-bottom: 0;
}

.ncmst-section__title em {
	font-family: var(--ncmst-serif);
	font-style: italic;
	font-weight: 400;
	color: var(--ncmst-accent-2);
}

.ncmst-section__title--light {
	color: #fff;
}

.ncmst-glass-card {
	padding: 2rem 2.25rem;
	border-radius: var(--ncmst-radius);
	background: var(--ncmst-surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	box-shadow: var(--ncmst-shadow);
}

.ncmst-glass-card p {
	color: var(--ncmst-text-muted);
	margin-bottom: 1rem;
	font-size: 1.05rem;
}

.ncmst-glass-card p:last-child {
	margin-bottom: 0;
}

/* Pillars */
.ncmst-pillars {
	background: linear-gradient(180deg, var(--ncmst-bg) 0%, var(--ncmst-bg-elevated) 100%);
}

.ncmst-pillar-card {
	padding: 0;
	overflow: hidden;
	border-radius: var(--ncmst-radius);
	background: var(--ncmst-surface);
	border: 1px solid rgba(255, 255, 255, 0.07);
	transition: transform 0.35s var(--ncmst-ease), border-color 0.35s, box-shadow 0.35s;
}

.ncmst-pillar-card:hover {
	transform: translateY(-6px);
	border-color: rgba(61, 214, 195, 0.35);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ncmst-pillar-card--featured {
	background: linear-gradient(145deg, rgba(61, 214, 195, 0.12), rgba(255, 255, 255, 0.04));
	border-color: rgba(61, 214, 195, 0.25);
}

.ncmst-pillar-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.ncmst-pillar-card p {
	color: var(--ncmst-text-muted);
	margin: 0;
	font-size: 0.98rem;
}

/* Community panel */
.ncmst-community-panel {
	padding: 3rem 2.5rem;
	border-radius: calc(var(--ncmst-radius) + 0.25rem);
	background: linear-gradient(135deg, #0d4a42 0%, #0a332d 50%, #061f1b 100%);
	border: 1px solid rgba(61, 214, 195, 0.2);
	box-shadow: var(--ncmst-shadow);
}

.ncmst-community__text {
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.05rem;
	max-width: 28rem;
}

.ncmst-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ncmst-checklist li {
	position: relative;
	padding: 0.65rem 0 0.65rem 2rem;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ncmst-checklist li:last-child {
	border-bottom: none;
}

.ncmst-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: rgba(61, 214, 195, 0.2);
	border: 2px solid var(--ncmst-accent);
}

/* CTA */
.ncmst-cta__text {
	max-width: 32rem;
	color: var(--ncmst-text-muted);
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

/* Footer */
.ncmst-footer {
	padding: 2.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: #041512;
}

.ncmst-footer__brand {
	font-weight: 700;
	font-size: 1rem;
}

.ncmst-footer__tagline {
	font-size: 0.88rem;
	color: var(--ncmst-text-muted);
	margin-top: 0.25rem;
}

.ncmst-footer__links a {
	color: var(--ncmst-text-muted);
	font-size: 0.9rem;
}

.ncmst-footer__links a:hover {
	color: var(--ncmst-accent);
}

.ncmst-footer__copy {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.82rem;
	color: var(--ncmst-text-muted);
}

/* Scroll reveal */
.ncmst-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--ncmst-ease), transform 0.7s var(--ncmst-ease);
}

.ncmst-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ncmst-nav--scrolled {
	background: rgba(6, 31, 27, 0.92) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Hide WP block clutter on landing */
body.ncmst-landing-page .wp-block-group,
body.ncmst-landing-page .site-chrome-nav {
	display: none !important;
}
