/**
 * Tapgrix Child — Premium Homepage Sections
 *
 * Parent Theme: Blocksy
 * Store: Tapgrix — GPCB Pay Demo Store
 *
 * Sections:
 * 1. Product Spotlight
 * 2. Store Benefits
 * 3. FAQ
 *
 * Presentation only.
 * No payment, order or authentication logic.
 *
 * Transitional tnx-* selectors are retained
 * for compatibility with front-page.php.
 *
 * All selectors are scoped to .tgx-home
 * to avoid affecting WooCommerce Checkout.
 */

/* =========================================================
   1. PRODUCT SPOTLIGHT
   ========================================================= */

.tgx-home .tnx-spotlight {
	padding: 78px 0;

	background: linear-gradient(
		180deg,
		#f8fbff 0%,
		#f1f7ff 100%
	);
}

/* Spotlight Panel */

.tgx-home .tnx-spotlight__panel {
	position: relative;
	isolation: isolate;

	display: grid;
	grid-template-columns:
		minmax(0, 1.06fr)
		minmax(0, 0.94fr);

	align-items: center;

	gap: clamp(28px, 4vw, 66px);

	min-height: 460px;

	padding: clamp(28px, 5vw, 68px);

	overflow: hidden;

	border: 1px solid rgba(34, 211, 238, 0.2);
	border-radius: 24px;

	background:
		radial-gradient(
			ellipse at 80% 24%,
			rgba(37, 99, 235, 0.35),
			transparent 45%
		),
		linear-gradient(
			117deg,
			#061126 0%,
			#0a1c3a 54%,
			#102e59 100%
		);

	box-shadow:
		0 28px 65px rgba(6, 17, 38, 0.15);
}

/* Technology Grid */

.tgx-home .tnx-spotlight__panel::before {
	content: "";

	position: absolute;
	z-index: -1;

	inset: 0;

	pointer-events: none;

	background-image:
		linear-gradient(
			rgba(34, 211, 238, 0.045) 1px,
			transparent 1px
		),
		linear-gradient(
			90deg,
			rgba(34, 211, 238, 0.045) 1px,
			transparent 1px
		);

	background-size: 46px 46px;

	mask-image: linear-gradient(
		90deg,
		transparent,
		#000000
	);
}

/* Decorative Glow */

.tgx-home .tnx-spotlight__panel::after {
	content: "";

	position: absolute;
	z-index: -1;

	top: -145px;
	right: -145px;

	width: 520px;
	height: 520px;

	border: 1px solid rgba(34, 211, 238, 0.17);
	border-radius: 50%;

	box-shadow:
		0 0 0 60px rgba(34, 211, 238, 0.035),
		0 0 0 125px rgba(34, 211, 238, 0.018);

	pointer-events: none;
}

/* Copy and Visual */

.tgx-home .tnx-spotlight__copy,
.tgx-home .tnx-spotlight__visual {
	position: relative;
	z-index: 1;

	min-width: 0;
}

/* Eyebrow */

.tgx-home .tnx-spotlight__eyebrow {
	margin: 0 0 14px;

	color: #22d3ee;

	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.5;

	letter-spacing: 0.17em;
	text-transform: uppercase;
}

/* Main Heading */

.tgx-home .tnx-spotlight__heading {
	max-width: 550px;

	margin: 0;

	color: #ffffff;

	font-size: clamp(2rem, 3.6vw, 3.2rem);
	font-weight: 850;
	line-height: 1.12;

	letter-spacing: -0.035em;
	text-wrap: balance;
}

/* Intro */

.tgx-home .tnx-spotlight__intro {
	max-width: 500px;

	margin: 20px 0 0;

	color: #d0e2f5;

	font-size: 1rem;
	line-height: 1.7;
}

/* Product Name */

.tgx-home .tnx-spotlight__product-name {
	max-width: 520px;

	margin: 26px 0 0;

	color: #ffffff;

	font-size: clamp(1.07rem, 1.6vw, 1.32rem);
	font-weight: 780;
	line-height: 1.4;
}

/* Product Description */

.tgx-home .tnx-spotlight__description {
	max-width: 500px;

	margin: 10px 0 0;

	color: #bbd2eb;

	font-size: 0.93rem;
	line-height: 1.7;
}

/* Product Price */

.tgx-home .tnx-spotlight__price {
	margin-top: 16px;

	color: #ffffff;

	font-size: 1.42rem;
	font-weight: 850;
	line-height: 1.3;
}

.tgx-home .tnx-spotlight__price :is(
	.amount,
	bdi,
	ins
) {
	color: inherit;
	font-weight: inherit;
}

.tgx-home .tnx-spotlight__price del {
	margin-right: 6px;

	color: #a3b9d1;

	font-size: 0.9rem;
	font-weight: 500;
}

.tgx-home .tnx-spotlight__price ins {
	text-decoration: none;
}

/* Product Actions */

.tgx-home .tnx-spotlight__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: 15px 22px;

	margin-top: 25px;
}

/* Primary Button */

.tgx-home .tnx-spotlight__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 12px;

	min-height: 50px;

	padding: 12px 22px;

	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;

	background: linear-gradient(
		120deg,
		#3b82f6,
		#2563eb
	);

	color: #ffffff;

	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.35;

	text-decoration: none;

	box-shadow:
		0 10px 25px rgba(37, 99, 235, 0.25);

	transition:
		transform 180ms ease,
		box-shadow 180ms ease;
}

.tgx-home .tnx-spotlight__button:hover {
	transform: translateY(-2px);

	color: #ffffff;

	box-shadow:
		0 15px 30px rgba(37, 99, 235, 0.34);
}

/* Secondary Link */

.tgx-home .tnx-spotlight__secondary {
	color: #d5eaff;

	font-size: 0.91rem;
	font-weight: 750;

	text-decoration: underline;

	text-decoration-color:
		rgba(213, 234, 255, 0.4);

	text-underline-offset: 5px;
}

.tgx-home .tnx-spotlight__secondary:hover {
	color: #22d3ee;
}

/* Product Visual */

.tgx-home .tnx-spotlight__visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Product Image Container */

.tgx-home .tnx-spotlight__image-link {
	display: grid;
	place-items: center;

	width: 100%;
	max-width: 440px;

	aspect-ratio: 1 / 1;

	padding: clamp(16px, 2.5vw, 32px);

	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;

	background: radial-gradient(
		circle at 50% 25%,
		#ffffff,
		#edf4ff
	);

	box-shadow:
		0 22px 55px rgba(0, 8, 25, 0.24);

	text-decoration: none;

	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

.tgx-home .tnx-spotlight__image-link:hover {
	transform: translateY(-5px) rotate(-1deg);

	box-shadow:
		0 28px 65px rgba(0, 8, 25, 0.31);
}

/* Product Image */

.tgx-home .tnx-spotlight__image {
	display: block;

	width: 100%;
	height: 100%;
	max-height: 100%;

	margin: 0;

	object-fit: contain;
	object-position: center;
}

/* =========================================================
   2. STORE BENEFITS
   ========================================================= */

.tgx-home .tnx-home-benefits {
	padding: 82px 0 88px;

	background: #ffffff;
}

/* Benefits Heading */

.tgx-home .tnx-home-benefits__header {
	max-width: 710px;

	margin: 0 auto 38px;

	text-align: center;
}

/* Shared Eyebrows */

.tgx-home .tnx-home-benefits__eyebrow,
.tgx-home .tnx-home-faq__eyebrow {
	margin: 0 0 12px;

	color: #2563eb;

	font-size: 0.75rem;
	font-weight: 850;
	line-height: 1.5;

	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Shared Section Headings */

.tgx-home .tnx-home-benefits__header h2,
.tgx-home .tnx-home-faq__intro h2 {
	margin: 0;

	color: #061126;

	font-size: clamp(1.9rem, 3.1vw, 2.7rem);
	font-weight: 850;
	line-height: 1.15;

	letter-spacing: -0.035em;
	text-wrap: balance;
}

/* Shared Section Description */

.tgx-home .tnx-home-benefits__header > p:last-child,
.tgx-home .tnx-home-faq__intro > p:not(
	.tnx-home-faq__eyebrow
) {
	margin: 14px 0 0;

	color: #60758c;

	font-size: 1rem;
	line-height: 1.7;
}

/* Benefits Grid */

.tgx-home .tnx-home-benefits__grid {
	display: grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap: 20px;
}

/* Benefit Card */

.tgx-home .tnx-home-benefits__card {
	position: relative;

	min-width: 0;

	padding: 30px;

	border: 1px solid #e0eaf7;
	border-radius: 18px;

	background: linear-gradient(
		145deg,
		#ffffff,
		#f8fbff
	);

	box-shadow:
		0 10px 30px rgba(6, 17, 38, 0.04);

	transition:
		border-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.tgx-home .tnx-home-benefits__card:hover {
	transform: translateY(-4px);

	border-color: #bfdbfe;

	box-shadow:
		0 18px 40px rgba(6, 17, 38, 0.085);
}

/* Benefit Icon */

.tgx-home .tnx-home-benefits__icon {
	display: grid;
	place-items: center;

	width: 55px;
	height: 55px;

	margin-bottom: 23px;

	border: 1px solid #d3e8ff;
	border-radius: 16px;

	background: #eff6ff;

	color: #2563eb;
}

.tgx-home .tnx-home-benefits__icon svg {
	width: 26px;
	height: 26px;

	stroke: currentColor;
	stroke-width: 1.7;

	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Benefit Title */

.tgx-home .tnx-home-benefits__card h3 {
	margin: 0 0 11px;

	color: #0a1c3a;

	font-size: 1.16rem;
	font-weight: 850;
	line-height: 1.3;
}

/* Benefit Description */

.tgx-home .tnx-home-benefits__card p {
	margin: 0;

	color: #60758c;

	font-size: 0.94rem;
	line-height: 1.75;
}

/* =========================================================
   3. FAQ SECTION
   ========================================================= */

.tgx-home .tnx-home-faq {
	padding: 80px 0 94px;

	border-top: 1px solid #e5eef9;

	background: linear-gradient(
		180deg,
		#f7faff,
		#eff6ff
	);
}

/* FAQ Layout */

.tgx-home .tnx-home-faq__inner {
	display: grid;

	grid-template-columns:
		minmax(0, 0.73fr)
		minmax(0, 1.27fr);

	align-items: start;

	gap: clamp(28px, 5vw, 78px);
}

.tgx-home .tnx-home-faq__intro {
	min-width: 0;
}

/* Contact Link */

.tgx-home .tnx-home-faq__contact-link {
	display: inline-flex;
	align-items: center;

	gap: 8px;

	margin-top: 23px;

	color: #2563eb;

	font-size: 0.94rem;
	font-weight: 850;

	text-decoration: none;
}

.tgx-home .tnx-home-faq__contact-link:hover {
	color: #061126;
}

/* FAQ Items */

.tgx-home .tnx-home-faq__questions {
	display: grid;

	gap: 12px;

	min-width: 0;
}

.tgx-home .tnx-home-faq__item {
	min-width: 0;

	border: 1px solid #dce7f5;
	border-radius: 13px;

	background: #ffffff;

	box-shadow:
		0 6px 18px rgba(6, 17, 38, 0.035);
}

.tgx-home .tnx-home-faq__item[open] {
	border-color: #93c5fd;

	box-shadow:
		0 10px 25px rgba(37, 99, 235, 0.07);
}

/* FAQ Question */

.tgx-home .tnx-home-faq__item summary {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 18px;

	min-height: 65px;

	padding: 17px 22px;

	list-style: none;

	color: #0a1c3a;

	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.5;

	cursor: pointer;
}

.tgx-home .tnx-home-faq__item summary::-webkit-details-marker {
	display: none;
}

/* Plus / Minus Icon */

.tgx-home .tnx-home-faq__item summary::after {
	content: "+";

	display: grid;
	place-items: center;

	flex: 0 0 28px;

	width: 28px;
	height: 28px;

	border-radius: 50%;

	background: #eff6ff;

	color: #2563eb;

	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
}

.tgx-home .tnx-home-faq__item[open] summary::after {
	content: "−";
}

/* FAQ Answer */

.tgx-home .tnx-home-faq__item p {
	margin: 0;

	padding: 0 22px 22px;

	color: #526985;

	font-size: 0.94rem;
	line-height: 1.75;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.tgx-home :is(
	.tnx-spotlight__button,
	.tnx-spotlight__secondary,
	.tnx-spotlight__image-link,
	.tnx-home-faq__contact-link,
	.tnx-home-faq__item summary
):focus-visible {
	outline: 3px solid #22d3ee;
	outline-offset: 4px;
}

/* =========================================================
   TABLET — 980px
   ========================================================= */

@media (max-width: 980px) {

	.tgx-home .tnx-spotlight,
	.tgx-home .tnx-home-benefits,
	.tgx-home .tnx-home-faq {
		padding-top: 64px;
		padding-bottom: 68px;
	}

	.tgx-home .tnx-spotlight__panel {
		gap: 24px;
		padding: 35px;
	}

	.tgx-home .tnx-home-benefits__grid {
		gap: 14px;
	}

	.tgx-home .tnx-home-benefits__card {
		padding: 24px;
	}
}

/* =========================================================
   MOBILE — 767px
   ========================================================= */

@media (max-width: 767px) {

	.tgx-home .tnx-spotlight__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.tgx-home .tnx-spotlight__visual {
		justify-content: flex-start;
	}

	.tgx-home .tnx-spotlight__image-link {
		max-width: 420px;
	}

	.tgx-home .tnx-home-benefits__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tgx-home .tnx-home-benefits__card {
		padding: 25px;
	}

	.tgx-home .tnx-home-faq__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
}

/* =========================================================
   SMALL MOBILE — 600px
   ========================================================= */

@media (max-width: 600px) {

	.tgx-home .tnx-spotlight,
	.tgx-home .tnx-home-benefits,
	.tgx-home .tnx-home-faq {
		padding-top: 52px;
		padding-bottom: 56px;
	}

	.tgx-home .tnx-spotlight__panel {
		padding: 28px 21px;
		border-radius: 17px;
	}

	.tgx-home .tnx-spotlight__heading {
		font-size: clamp(1.8rem, 7.2vw, 2.45rem);
	}

	.tgx-home .tnx-spotlight__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.tgx-home .tnx-spotlight__button {
		width: 100%;
	}

	.tgx-home .tnx-spotlight__visual {
		justify-content: center;
	}

	.tgx-home .tnx-spotlight__image-link {
		max-width: 320px;
		border-radius: 16px;
	}

	.tgx-home .tnx-home-benefits__header {
		margin-bottom: 26px;
	}

	.tgx-home .tnx-home-faq__item summary {
		padding: 15px 17px;
		font-size: 0.93rem;
	}

	.tgx-home .tnx-home-faq__item p {
		padding: 0 17px 18px;
	}
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.tgx-home .tnx-spotlight__button,
	.tgx-home .tnx-spotlight__image-link,
	.tgx-home .tnx-home-benefits__card {
		transition: none;
	}

	.tgx-home .tnx-spotlight__button:hover,
	.tgx-home .tnx-spotlight__image-link:hover,
	.tgx-home .tnx-home-benefits__card:hover {
		transform: none;
	}
}