/**
 * Neuralumen homepage (Phase 3) — sections, carousel, WooCommerce grid.
 */

.neuralumen-home-main {
	padding: 0;
	overflow-x: clip;
}

/* ——— Hero ——— */
.nl-home-hero {
	position: relative;
	min-height: min(88vh, 820px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(3rem, 8vw, 5rem) 1.25rem;
	overflow: hidden;
}

.nl-home-hero__canvas-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.nl-home-hero__canvas {
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0.95;
}

.nl-home-hero__glow {
	position: absolute;
	inset: 20% 10% auto;
	height: 45%;
	background: radial-gradient(ellipse at center, rgba(0, 245, 255, 0.12) 0%, transparent 65%);
	pointer-events: none;
}

.nl-home-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 52rem;
	text-align: center;
}

.nl-home-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nl-cyan);
}

.nl-home-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2.1rem, 5vw, 3.35rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--nl-text);
	text-shadow: 0 0 40px rgba(0, 245, 255, 0.2);
}

.nl-home-hero__tagline {
	margin: 0 0 2rem;
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	line-height: 1.55;
	color: var(--nl-text-muted);
	max-width: 40rem;
	margin-inline: auto;
}

.nl-home-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
}

.nl-home-hero__cta {
	min-width: 10rem;
}

/* ——— Trust ——— */
.nl-home-trust {
	padding: 1rem 1.25rem 2rem;
	border-bottom: 1px solid var(--nl-glass-border);
	background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, transparent 100%);
}

.nl-home-trust__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 2rem;
}

.nl-home-trust__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--nl-text-muted);
}

.nl-home-trust__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--nl-cyan), var(--nl-violet));
	box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
	flex-shrink: 0;
}

/* ——— Section shell ——— */
.nl-home-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 1.5rem);
}

.nl-home-section__head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.25rem;
}

.nl-home-section__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.65rem, 3.5vw, 2rem);
	font-weight: 700;
	color: var(--nl-text);
}

.nl-home-section__sub {
	margin: 0;
	color: var(--nl-text-muted);
	line-height: 1.55;
}

.nl-home-section__foot {
	text-align: center;
	margin-top: 2rem;
}

.nl-text-link {
	color: var(--nl-cyan);
	font-weight: 600;
	text-decoration: none;
	transition: text-shadow 0.25s ease;
}

.nl-text-link:hover {
	text-shadow: 0 0 12px rgba(0, 245, 255, 0.45);
}

/* ——— WooCommerce grid ——— */
.nl-home-products__loop {
	padding: 1.5rem;
}

.nl-home-products__loop .woocommerce {
	margin: 0;
}

.nl-home-products__loop ul.products {
	margin: 0 !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem !important;
	list-style: none !important;
}

.nl-home-products__loop ul.products::before,
.nl-home-products__loop ul.products::after {
	display: none !important;
}

.nl-home-products__loop ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--nl-glass-border);
	border-radius: var(--nl-radius);
	padding: 1rem !important;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nl-home-products__loop ul.products li.product:hover {
	border-color: rgba(0, 245, 255, 0.35);
	box-shadow: 0 0 20px rgba(0, 245, 255, 0.12);
}

.nl-home-products__loop .woocommerce-loop-product__title,
.nl-home-products__loop .woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--nl-text) !important;
	font-size: 1rem !important;
}

.nl-home-products__loop .price {
	color: var(--nl-cyan) !important;
}

.nl-home-products__loop a.button,
.nl-home-products__loop a.add_to_cart_button {
	background: linear-gradient(135deg, var(--nl-cyan), #5eead4) !important;
	color: var(--nl-bg) !important;
	border: none !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
}

.nl-home-placeholder {
	padding: 2rem;
	text-align: center;
	max-width: 36rem;
	margin: 0 auto;
}

.nl-home-placeholder p {
	color: var(--nl-text-muted);
	margin: 0 0 1.25rem;
}

/* ——— Editorial cards ——— */
.nl-home-editorial__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.nl-home-card {
	overflow: hidden;
	height: 100%;
}

.nl-home-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.nl-home-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nl-bg-elevated);
}

.nl-home-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nl-home-card__link:hover .nl-home-card__thumb img {
	transform: scale(1.05);
}

.nl-home-card__body {
	padding: 1.15rem 1.25rem 1.35rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.nl-home-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	font-size: 0.75rem;
}

.nl-home-card__time {
	color: var(--nl-text-muted);
	margin-inline-start: auto;
}

.nl-home-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--nl-text);
}

.nl-home-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--nl-text-muted);
}

.nl-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 6px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(0, 245, 255, 0.12);
	color: var(--nl-cyan);
	border: 1px solid rgba(0, 245, 255, 0.25);
}

.nl-badge--tutorial {
	background: rgba(192, 38, 211, 0.15);
	color: #e879f9;
	border-color: rgba(192, 38, 211, 0.35);
}

.nl-badge--level {
	background: rgba(244, 114, 182, 0.12);
	color: var(--nl-magenta);
	border-color: rgba(244, 114, 182, 0.3);
}

/* ——— Projects ——— */
.nl-home-projects__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.75rem;
}

.nl-filter-pill {
	cursor: pointer;
	padding: 0.4rem 0.95rem;
	font-size: 0.8rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--nl-text-muted);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--nl-glass-border);
	border-radius: 999px;
	transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nl-filter-pill:hover,
.nl-filter-pill.is-active {
	color: var(--nl-cyan);
	border-color: rgba(0, 245, 255, 0.45);
	box-shadow: 0 0 14px rgba(0, 245, 255, 0.15);
}

.nl-home-projects__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.nl-project-card[hidden] {
	display: none !important;
}

.nl-project-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.nl-project-card__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nl-bg-elevated);
}

.nl-project-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nl-project-card__body {
	padding: 1.1rem 1.2rem 1.3rem;
}

.nl-project-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--nl-text);
}

.nl-project-card__excerpt {
	margin: 0;
	font-size: 0.85rem;
	color: var(--nl-text-muted);
	line-height: 1.45;
}

/* ——— Testimonials carousel ——— */
.nl-carousel {
	padding: 1.75rem 1.25rem 1.5rem;
	max-width: 42rem;
	margin: 0 auto;
}

.nl-carousel__viewport {
	overflow: hidden;
	min-height: 11rem;
}

.nl-carousel__track {
	position: relative;
}

.nl-carousel__slide {
	margin: 0;
	padding: 0 0.5rem;
	text-align: center;
	display: none;
	border: none;
}

.nl-carousel__slide.is-active {
	display: block;
	animation: nl-fade-up 0.45s ease;
}

@keyframes nl-fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nl-carousel__quote {
	margin: 0 0 1rem;
	font-size: clamp(1.05rem, 2.5vw, 1.2rem);
	line-height: 1.55;
	font-style: normal;
	color: var(--nl-text);
}

.nl-carousel__cite {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.875rem;
	color: var(--nl-text-muted);
}

.nl-carousel__name {
	font-style: normal;
	font-weight: 600;
	color: var(--nl-cyan);
}

.nl-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.nl-carousel__btn {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid rgba(0, 245, 255, 0.35);
	background: rgba(255, 255, 255, 0.06);
	color: var(--nl-text);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nl-carousel__btn:hover {
	box-shadow: 0 0 16px rgba(0, 245, 255, 0.25);
}

.nl-carousel__dots {
	display: flex;
	gap: 0.4rem;
}

.nl-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: var(--nl-text-muted);
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nl-carousel__dot.is-active {
	opacity: 1;
	background: var(--nl-cyan);
	transform: scale(1.15);
}

/* ——— Final CTA ——— */
.nl-home-final {
	padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.nl-home-final__inner {
	max-width: 48rem;
	margin: 0 auto;
	text-align: center;
	padding: clamp(2rem, 5vw, 2.75rem) 1.5rem;
}

.nl-home-final__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.6rem, 3.5vw, 2rem);
	font-weight: 700;
	color: var(--nl-text);
}

.nl-home-final__text {
	margin: 0 0 1.75rem;
	color: var(--nl-text-muted);
	line-height: 1.55;
}

.nl-home-final__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
	.nl-carousel__slide.is-active {
		animation: none;
	}

	.nl-home-card__thumb img,
	.nl-home-card__link:hover .nl-home-card__thumb img {
		transition: none;
		transform: none;
	}
}
