/* ============================================================
 * VaaSBlock — Products & Services card grid
 * ============================================================
 * Pattern slug: vaasblock/products-services
 *
 * Deep navy gradient section with 5 glass-effect product cards
 * in a row. Cards share the same hover lift + scale animation
 * used across Keystone components.
 *
 * Responsive:
 *   ≥ 901px  → 5 columns
 *   ≤ 900px  → 3 columns
 *   ≤ 600px  → 2 columns
 * ============================================================ */

/* ── Section wrapper ───────────────────────────────────────── */

.keystone-product-grid {
	background: linear-gradient(135deg, #07083a 0%, #1a1a72 55%, #0d0e50 100%);
	padding-block: var(--wp--preset--spacing--70);
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	margin-block: 0;
}

/* ── Inner constrained wrapper (uses alignwide = 1340px) ───── */

.keystone-product-grid__inner {
	display:        flex;
	flex-direction: column;
	gap:            var(--wp--preset--spacing--50);
	max-width:      var(--wp--style--global--wide-size, 1340px);
	margin-inline:  auto;
	padding-inline: var(--wp--preset--spacing--50);
}

/* ── Section intro: heading + lead ────────────────────────── */

.keystone-product-grid__heading {
	font-size:      clamp(1.5rem, 2.5vw, 2rem);
	font-weight:    800;
	color:          #fff;
	letter-spacing: -0.02em;
	line-height:    1.15;
	margin:         0 0 10px;
}

.keystone-product-grid__lead {
	font-size:   clamp(0.9rem, 1.4vw, 1rem);
	color:       rgba(255, 255, 255, 0.75);
	line-height: 1.55;
	margin:      0;
}

/* ── Card grid ─────────────────────────────────────────────── */

.keystone-product-grid__grid {
	display:               grid;
	grid-template-columns: repeat(5, 1fr);
	gap:                   16px;
}

/* ── Individual product card ───────────────────────────────── */

.keystone-product-card {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             14px;
	padding:         20px 16px 22px;
	background:      rgba(255, 255, 255, 0.07);
	border:          1px solid rgba(255, 255, 255, 0.13);
	border-radius:   16px;
	text-decoration: none;
	cursor:          pointer;
	transition:      transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.keystone-product-card:hover {
	transform:    translateY(-6px);
	box-shadow:   0 16px 40px rgba(0, 0, 0, 0.45);
	background:   rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
}

/* ── Card image wrapper ────────────────────────────────────── */

.keystone-product-card__img-wrap {
	width:           100%;
	aspect-ratio:    1 / 1;
	display:         flex;
	align-items:     center;
	justify-content: center;
	overflow:        hidden;
	border-radius:   10px;
}

.keystone-product-card__img {
	width:       100%;
	height:      100%;
	object-fit:  contain;
	display:     block;
	transition:  transform 0.3s ease;
	border-radius: 10px;
}

.keystone-product-card:hover .keystone-product-card__img {
	transform: scale(1.05);
}

/* ── Card label ────────────────────────────────────────────── */

.keystone-product-card__label {
	font-size:   clamp(0.8rem, 1.1vw, 0.9rem);
	font-weight: 600;
	color:       rgba(255, 255, 255, 0.92);
	text-align:  center;
	line-height: 1.3;
	margin:      0;
}

/* ── Responsive: tablet ────────────────────────────────────── */

@media (max-width: 900px) {
	.keystone-product-grid__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
}

/* ── Responsive: mobile ────────────────────────────────────── */

@media (max-width: 600px) {
	.keystone-product-grid {
		padding-block: var(--wp--preset--spacing--60);
	}

	.keystone-product-grid__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.keystone-product-grid__heading {
		font-size: 1.35rem;
	}

	.keystone-product-card {
		padding: 14px 12px 16px;
		border-radius: 12px;
	}

	.keystone-product-card__img-wrap {
		border-radius: 8px;
	}
}
