/* RMG Client Results Widget — widget.css */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── Wrapper ── */
.rmgcr-wrap {
	background: #0A1628;
	padding: 80px 56px;
	font-family: 'DM Sans', sans-serif;
	color: #fff;
	box-sizing: border-box;
}
.rmgcr-wrap *,
.rmgcr-wrap *::before,
.rmgcr-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Header ── */
.rmgcr-header { text-align: center; margin-bottom: 56px; }
.rmgcr-overline {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #C9A84C;
	margin-bottom: 16px;
}
.rmgcr-heading {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: clamp(24px, 2.8vw, 42px);
	line-height: 1.15;
	color: #fff;
	letter-spacing: -0.5px;
}

/* ── Animated Stats ── */
.rmgcr-stats {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 64px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 16px;
	overflow: hidden;
}
.rmgcr-stat {
	flex: 1;
	text-align: center;
	padding: 36px 24px;
	border-right: 1px solid rgba(255,255,255,0.08);
}
.rmgcr-stat:last-child { border-right: none; }
.rmgcr-counter {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: clamp(32px, 4vw, 52px);
	color: #C9A84C;
	line-height: 1;
	margin-bottom: 8px;
}
.rmgcr-stat-label {
	color: rgba(255,255,255,0.5);
	font-size: 14px;
	margin-top: 6px;
}

/* ── Testimonial Carousel ── */
.rmgcr-tc-wrap {
	overflow: hidden;
	position: relative;
	margin-bottom: 64px;
}
.rmgcr-tc-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.rmgcr-tc-slide {
	flex: 0 0 100%;
	min-width: 100%;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.rmgcr-tc-quote {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255,255,255,0.85);
	margin-bottom: 28px;
	font-style: italic;
}
.rmgcr-tc-author {
	display: flex;
	align-items: center;
	gap: 14px;
}
.rmgcr-tc-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #C9A84C, #8a6e2f);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: #0A1628;
	flex-shrink: 0;
}
.rmgcr-tc-name {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}
.rmgcr-tc-company {
	font-size: 12px;
	color: rgba(255,255,255,0.45);
	margin-top: 2px;
}
.rmgcr-tc-result {
	margin-left: auto;
	background: rgba(201,168,76,0.12);
	border: 1px solid rgba(201,168,76,0.3);
	border-radius: 20px;
	padding: 6px 14px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: #C9A84C;
	white-space: nowrap;
	flex-shrink: 0;
}
.rmgcr-tc-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}
.rmgcr-tc-btn {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.7);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}
.rmgcr-tc-btn:hover {
	background: rgba(201,168,76,0.15);
	border-color: rgba(201,168,76,0.4);
	color: #C9A84C;
}
.rmgcr-tc-dots { display: flex; gap: 8px; align-items: center; }
.rmgcr-tc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s;
}
.rmgcr-tc-dot.active {
	background: #C9A84C;
	transform: scale(1.25);
}

/* ── Case Studies ── */
.rmgcr-cases-section { margin-bottom: 64px; }
.rmgcr-cases-section .rmgcr-overline {
	text-align: left;
	margin-bottom: 24px;
}
.rmgcr-case {
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.rmgcr-case-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 22px;
	cursor: pointer;
	background: rgba(255,255,255,0.03);
	transition: background 0.2s;
	gap: 16px;
}
.rmgcr-case-header:hover { background: rgba(255,255,255,0.06); }
.rmgcr-case-client {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}
.rmgcr-case-cat {
	font-weight: 400;
	color: rgba(255,255,255,0.35);
	font-size: 12px;
	margin-left: 8px;
}
.rmgcr-case-badge {
	background: rgba(201,168,76,0.12);
	border: 1px solid rgba(201,168,76,0.25);
	border-radius: 20px;
	padding: 4px 12px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: #C9A84C;
	white-space: nowrap;
	flex-shrink: 0;
}
.rmgcr-case-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}
.rmgcr-case-content {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
	padding: 20px 22px;
	border-top: 1px solid rgba(255,255,255,0.06);
}
.rmgcr-case-col h4 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.35);
	margin-bottom: 8px;
}
.rmgcr-case-col p {
	font-size: 14px;
	color: rgba(255,255,255,0.65);
	line-height: 1.55;
}
.rmgcr-case-result-text {
	color: #C9A84C !important;
	font-weight: 600 !important;
}

/* ── Waterfall Chart ── */
.rmgcr-rw-wrap {
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.45);
	overflow: hidden;
}
.rmgcr-rw-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: clamp(14px, 2vw, 20px);
	color: #fff;
	margin-bottom: 32px;
	letter-spacing: -0.3px;
	text-transform: uppercase;
}
/* Outer scroll wrapper — lets chart scroll on very small screens */
.rmgcr-rw-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
/* Chart — fixed 260px height (matches $chart_h PHP constant) */
.rmgcr-rw-chart {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	height: 260px;
	min-width: 400px;
}
/* Each bar column fills the chart height, bars anchored to bottom */
.rmgcr-rw-bar-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	min-width: 0;
}
/* Value label above the bar */
.rmgcr-rw-bar-label {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: clamp(10px, 1.2vw, 13px);
	color: #fff;
	margin-bottom: 6px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.6);
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.35s ease;
}
.rmgcr-rw-bar-label.rmgcr-visible { opacity: 1; }
/* Bar — PHP inline style sets height; JS animates on frontend only */
.rmgcr-rw-bar {
	width: 100%;
	border-radius: 6px 6px 0 0;
	/* NO height:0 — PHP sets the correct height via inline style */
	transition: height 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Staggered entrance animation (nth-child delay) */
.rmgcr-rw-bar-wrap:nth-child(1) .rmgcr-rw-bar { transition-delay: 0.00s; }
.rmgcr-rw-bar-wrap:nth-child(2) .rmgcr-rw-bar { transition-delay: 0.15s; }
.rmgcr-rw-bar-wrap:nth-child(3) .rmgcr-rw-bar { transition-delay: 0.30s; }
.rmgcr-rw-bar-wrap:nth-child(4) .rmgcr-rw-bar { transition-delay: 0.45s; }
.rmgcr-rw-bar-wrap:nth-child(5) .rmgcr-rw-bar { transition-delay: 0.60s; }
.rmgcr-rw-bar--red       { background: rgba(192,57,43,0.75);  border-top: 3px solid #C0392B; }
.rmgcr-rw-bar--gold-low  { background: rgba(201,168,76,0.35); border-top: 3px solid #C9A84C; }
.rmgcr-rw-bar--gold-mid  { background: rgba(201,168,76,0.45); border-top: 3px solid #C9A84C; }
.rmgcr-rw-bar--gold-high { background: rgba(201,168,76,0.55); border-top: 3px solid #C9A84C; }
.rmgcr-rw-bar--gold      { background: rgba(201,168,76,0.7);  border-top: 3px solid #C9A84C; }
/* Bar name below */
.rmgcr-rw-bar-name {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: clamp(9px, 1vw, 11px);
	color: rgba(255,255,255,0.45);
	margin-top: 10px;
	text-align: center;
	line-height: 1.3;
	white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.rmgcr-wrap { padding: 56px 24px; }
	.rmgcr-stats { flex-direction: column; border: none; gap: 0; }
	.rmgcr-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
	.rmgcr-stat:last-child { border-bottom: none; }
	.rmgcr-tc-slide { padding: 28px 20px; }
	.rmgcr-tc-result { display: none; }
	.rmgcr-case-content { grid-template-columns: 1fr; }
	.rmgcr-case-header { flex-wrap: wrap; }
	.rmgcr-rw-wrap { padding: 28px 20px; }
}
@media (max-width: 480px) {
	.rmgcr-rw-title { margin-bottom: 20px; }
}
