/*
 * VoltNiq — Homepage styles. Enqueued only on the front page (see enqueue.php).
 * Consumes tokens.css; reuses .container, .btn, .badge and the .current-line
 * motif. No new visual language — same dark instrument-panel system.
 */

/* =====================================================================
 * SHARED SECTION RHYTHM
 * ================================================================== */
.home-section {
	padding-block: var(--sp-8);
}
.home-section__head {
	margin-bottom: var(--sp-6);
	max-width: var(--w-prose);
}
.home-section__title {
	font-size: var(--fs-xl);
}
.home-section__intro {
	color: var(--c-text-dim);
	margin-top: var(--sp-2);
}

/* =====================================================================
 * HERO — above the fold
 * ================================================================== */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(420px, 64vh, 640px);
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(105deg,
		rgba(11, 15, 20, 0.96) 30%,
		rgba(11, 15, 20, 0.78) 60%,
		rgba(11, 15, 20, 0.55) 100%);
}
.hero__inner {
	padding-block: var(--sp-8);
}
.hero__eyebrow {
	color: var(--c-volt);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: var(--fs-sm);
	margin-bottom: var(--sp-3);
}
.hero__title {
	font-size: var(--fs-3xl);
	max-width: 16ch;
	margin: 0;
}
.hero__subhead {
	color: var(--c-text-dim);
	font-size: var(--fs-md);
	max-width: 52ch;
	margin-top: var(--sp-4);
}
.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-6);
}
/* Pin the signature motif to the base of the hero. */
.hero .current-line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
}

/* =====================================================================
 * TRUST BAR
 * ================================================================== */
.trust-bar {
	background: var(--c-surface-2);
	border-block: 1px solid var(--c-line);
}
.trust-bar__list {
	list-style: none;
	margin: 0;
	padding-block: var(--sp-4);
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-5);
	justify-content: center;
}
.trust-bar__item {
	position: relative;
	padding-left: var(--sp-4);
	color: var(--c-text);
	font-weight: var(--fw-semibold);
	font-size: var(--fs-sm);
}
.trust-bar__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 8px;
	height: 8px;
	transform: translateY(-50%);
	background: var(--c-volt);
	border-radius: var(--r-pill);
}

/* =====================================================================
 * CATEGORY GRID
 * ================================================================== */
.cat-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--sp-5);
}
.cat-card {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.cat-card:hover {
	border-color: color-mix(in srgb, var(--c-volt) 40%, var(--c-line));
	transform: translateY(-2px);
}
.cat-card__link {
	display: flex;
	flex-direction: column;
	color: var(--c-text);
}
.cat-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--c-surface-2);
	overflow: hidden;
}
.cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cat-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.cat-card__placeholder .current-line {
	width: 70%;
}
.cat-card__title {
	display: block;
	padding: var(--sp-4);
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	font-size: var(--fs-base);
}
.cat-card:hover .cat-card__title {
	color: var(--c-volt);
}

/* =====================================================================
 * FEATURED PRODUCTS
 * (the .products grid + .product-card come from woocommerce.css, which is
 * also enqueued on the front page)
 * ================================================================== */
.featured-empty {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	padding: var(--sp-7);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
}
.featured-empty__text {
	color: var(--c-text-dim);
	max-width: 44ch;
}

/* =====================================================================
 * WHY VOLTNIQ
 * ================================================================== */
.why-home__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: var(--sp-7);
	align-items: center;
}
.why-home__image {
	width: 100%;
	height: auto;
	border-radius: var(--r-lg);
	border: 1px solid var(--c-line);
}
.why-home__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--sp-5);
	margin-top: var(--sp-5);
}
.why-home__col-title {
	font-size: var(--fs-base);
	color: var(--c-volt);
	margin-bottom: var(--sp-2);
}
.why-home__col p {
	color: var(--c-text-dim);
	font-size: var(--fs-sm);
}
.why-home__badges {
	list-style: none;
	display: flex;
	gap: var(--sp-2);
	margin: var(--sp-3) 0 0;
	padding: 0;
}

/* =====================================================================
 * SOCIAL PROOF
 * ================================================================== */
.review-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--sp-5);
}
.review-card {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}
.review-card__stars {
	color: var(--c-volt);
	font-size: var(--fs-md);
	margin: 0;
	letter-spacing: 0.1em;
}
.review-card__quote {
	margin: 0;
	color: var(--c-text);
	font-style: italic;
}
.review-card__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: var(--fs-sm);
}
.review-card__author { font-weight: var(--fw-semibold); }
.review-card__product { color: var(--c-text-dim); }
.social-proof__empty {
	background: var(--c-surface);
	border: 1px dashed var(--c-line);
	border-radius: var(--r-lg);
	padding: var(--sp-7);
	text-align: center;
	color: var(--c-text-dim);
}

/* =====================================================================
 * RESPONSIVE
 * ================================================================== */
@media (max-width: 860px) {
	.why-home__inner {
		grid-template-columns: 1fr;
	}
	.why-home__media {
		order: 2;
	}
}
