/* ============================================================
 * VaaSBlock Stat Proof
 * ============================================================
 * Social-proof credibility widget. Two live stats (daily orgs
 * + all-time total) in a dark navy card.
 * Numbers are rendered by PHP shortcodes — no JS required.
 *
 * Lives in the VaaSBlock child theme only (not a global
 * Keystone component).
 * ============================================================ */

.vaasblock-stat-proof {
	padding-block:  clamp(3rem, 6vw, 5rem);
	padding-inline: var(--wp--preset--spacing--50, clamp(30px, 5vw, 50px)) !important;
	margin-top:    0 !important;
	margin-bottom: 0 !important;
}

/* Outer wrapper: constrains title + card to wide-size */
.vaasblock-stat-proof__outer {
	max-width:      var(--wp--style--global--wide-size, 1340px);
	margin-inline:  auto;
	display:        flex;
	flex-direction: column;
	gap:            1.25rem;
}

/* ── Section title ─────────────────────────────────────────── */
.vaasblock-stat-proof__title {
	margin:         0;
	font-size:      clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight:    700;
	line-height:    1.2;
	letter-spacing: -0.01em;
	color:          #1a1a72;
}

/* ── Card ──────────────────────────────────────────────────── */
.vaasblock-stat-proof__inner {
	background:     linear-gradient(135deg, #0a1834 0%, #16307c 60%, #1a1a72 100%);
	border-radius:  20px;
	border:         1px solid rgba(58, 107, 255, 0.25);
	box-shadow:     0 0 48px rgba(58, 107, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
	padding:        clamp(2rem, 5vw, 3rem);
	display:        flex;
	flex-direction: column;
	gap:            1.5rem;
	transition:     box-shadow 0.2s ease, transform 0.2s ease;
}

.vaasblock-stat-proof__inner:hover {
	box-shadow: 0 0 64px rgba(58, 107, 255, 0.2), 0 12px 40px rgba(0, 0, 0, 0.35);
	transform:  var(--keystone-card-hover-transform, scale(1.025));
}

/* ── Live badge ────────────────────────────────────────────── */
.vaasblock-stat-proof__live {
	display:     flex;
	align-items: center;
	gap:         0.5rem;
}

.vaasblock-stat-proof__live-dot {
	display:       block;
	width:         8px;
	height:        8px;
	border-radius: 50%;
	background:    #22c55e;
	animation:     vaasblock-stat-pulse 2s ease-in-out infinite;
}

@keyframes vaasblock-stat-pulse {
	0%,  100% { opacity: 1; box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.5); }
	50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.vaasblock-stat-proof__live-label {
	font-size:      0.75rem;
	font-weight:    600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color:          #22c55e;
}

/* ── Two-column stat grid ──────────────────────────────────── */
.vaasblock-stat-proof__grid {
	display:               grid;
	grid-template-columns: 1fr 1px 1fr;
	gap:                   clamp(1.5rem, 3vw, 2.5rem);
	align-items:           center;
}

.vaasblock-stat-proof__divider {
	background:  rgba(255, 255, 255, 0.15);
	align-self:  stretch;
}

/* ── Stat cell ─────────────────────────────────────────────── */
.vaasblock-stat-proof__cell {
	display:        flex;
	flex-direction: column;
	gap:            0.5rem;
	text-align:     center;
}

.vaasblock-stat-proof__number {
	display:              block;
	font-size:            clamp(2.5rem, 6vw, 4rem);
	font-weight:          800;
	line-height:          1;
	letter-spacing:       -0.02em;
	font-variant-numeric: tabular-nums;
	background:           linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip:      text;
}

.vaasblock-stat-proof__label {
	margin:      0;
	font-size:   clamp(0.875rem, 1.2vw, 1rem);
	line-height: 1.5;
	color:       #c7d1ff;
}

/* ── Mobile: stack cells vertically ───────────────────────── */
@media (max-width: 600px) {
	.vaasblock-stat-proof__grid {
		grid-template-columns: 1fr;
	}

	.vaasblock-stat-proof__divider {
		height:     1px;
		width:      100%;
		align-self: auto;
	}
}

/* ============================================================
 * VaaSBlock RMA Featured Posts section
 * ============================================================
 * Wrapper for the [vaasblock_rma_posts] shortcode output.
 * Applies standard Keystone margin/padding pattern so the
 * keystone-latest-posts component sits flush to theme edges.
 * ============================================================ */

.vaasblock-rma-featured {
	padding-block:  clamp(2.5rem, 6vw, 5rem);
	padding-inline: var(--wp--preset--spacing--50, clamp(30px, 5vw, 50px)) !important;
	margin-top:    0 !important;
	margin-bottom: 0 !important;
}

.vaasblock-rma-featured__inner {
	max-width:      var(--wp--style--global--wide-size, 1340px);
	margin-inline:  auto;
	display:        flex;
	flex-direction: column;
	gap:            clamp(1.5rem, 3vw, 2.5rem);
}

.vaasblock-rma-featured__heading {
	margin:         0;
	font-size:      clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight:    700;
	line-height:    1.2;
	letter-spacing: -0.01em;
	color:          #1a1a72;
}

/* Remove the WP blockGap margin that appears above the footer on pages
 * where the last section is a full-bleed component (pitch-banner, etc.).
 * Scoped to VaaSBlock via the body class so it does not affect other brands. */
body.brand-vaasblock .wp-site-blocks > footer {
	margin-block-start: 0 !important;
}
