/* =========================================================
   Trusted & Difference Widgets - Mr.D
   ========================================================= */

/* -------- Shared -------- */
.tdw-trusted-stats *,
.tdw-difference-section * {
	box-sizing: border-box;
}

/* =========================================================
   WIDGET 1: Trusted Stats Bar
   ========================================================= */

.tdw-header-wrap {
	text-align: center;
}

.tdw-heading {
	margin: 0 0 8px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
}

.tdw-h-main {
	color: #1a1a1a;
}

.tdw-h-highlight {
	color: #f07c22;
}

.tdw-subheading {
	margin: 0;
	font-size: 15px;
	color: #5a5a5a;
}

.tdw-stats-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fdf3e7;
	border-radius: 24px;
	padding: 40px;
	gap: 16px;
	flex-wrap: wrap;
}

.tdw-stat-item {
	flex: 1 1 0;
	min-width: 140px;
	text-align: center;
	padding: 0 16px;
	position: relative;
	transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
	border-radius: 14px;
}

.tdw-stat-item.tdw-has-divider:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 60%;
	background: rgba(0, 0, 0, 0.15);
}

.tdw-stat-number {
	font-size: 26px;
	font-weight: 800;
	color: #f07c22;
	margin-bottom: 4px;
	transition: transform 0.3s ease;
}

.tdw-stat-label {
	font-size: 15px;
	color: #1a1a1a;
}

/* Hover effects for stat items */
.tdw-hover-lift .tdw-stat-item:hover {
	transform: translateY(-6px);
}

.tdw-hover-scale .tdw-stat-item:hover {
	transform: scale(1.08);
}

.tdw-hover-glow .tdw-stat-item:hover {
	box-shadow: 0 10px 24px rgba(240, 124, 34, 0.25);
	background: rgba(255, 255, 255, 0.5);
}

.tdw-hover-pulse .tdw-stat-item:hover .tdw-stat-number {
	animation: tdw-pulse 0.6s ease;
}

@keyframes tdw-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

/* Responsive - Stats bar */
@media (max-width: 767px) {
	.tdw-stats-box {
		flex-direction: column;
	}

	.tdw-stat-item.tdw-has-divider:not(:last-child) {
		padding-bottom: 16px;
		margin-bottom: 16px;
	}

	.tdw-stat-item.tdw-has-divider:not(:last-child)::after {
		right: 0;
		left: 0;
		top: auto;
		bottom: -8px;
		width: 60%;
		height: 1px;
		margin: 0 auto;
		transform: none;
	}

	.tdw-heading {
		font-size: 26px;
	}
}

/* =========================================================
   WIDGET 2: Difference Split Section
   ========================================================= */

.tdw-diff-box {
	display: flex;
	align-items: stretch;
	background: #fdf3e7;
	border-radius: 24px;
	overflow: hidden;
}

.tdw-diff-box.tdw-order-right {
	flex-direction: row-reverse;
}

.tdw-diff-image-col {
	flex: 0 0 42%;
	max-width: 42%;
	overflow: hidden;
	position: relative;
}

.tdw-diff-image-col img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease, filter 0.6s ease;
}

/* Image hover effects */
.tdw-hover-img-zoom:hover img {
	transform: scale(1.08);
}

.tdw-hover-img-grayscale img {
	filter: grayscale(100%);
}

.tdw-hover-img-grayscale:hover img {
	filter: grayscale(0%);
}

.tdw-diff-content {
	flex: 1;
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tdw-top-label {
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #7a7a7a;
	font-weight: 600;
	margin-bottom: 12px;
}

.tdw-diff-heading {
	margin: 0 0 14px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.3;
}

.tdw-diff-heading .tdw-h-main {
	color: #1a1a1a;
}

.tdw-diff-heading .tdw-h-highlight {
	color: #f07c22;
}

.tdw-diff-desc {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: #5a5a5a;
}

.tdw-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tdw-pill {
	--tdw-pill-hover-bg: #f07c22;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #ffffff;
	border: 1px solid #f0c99b;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	cursor: default;
}

.tdw-pill-icon svg,
.tdw-pill-icon i {
	font-size: 16px;
	line-height: 1;
}

/* Pill hover effects */
.tdw-pill-hover-fill:hover {
	background-color: var(--tdw-pill-hover-bg);
	border-color: var(--tdw-pill-hover-bg);
}

.tdw-pill-hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.tdw-pill-hover-pulse:hover {
	animation: tdw-pulse 0.5s ease;
}

/* Responsive - Difference section */
@media (max-width: 900px) {
	.tdw-diff-box,
	.tdw-diff-box.tdw-order-right {
		flex-direction: column;
	}

	.tdw-diff-image-col {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		height: 260px;
	}

	.tdw-diff-content {
		padding: 32px 24px;
	}

	.tdw-diff-heading {
		font-size: 24px;
	}
}

/* =========================================================
   Scroll-in animation base states (JS toggles .tdw-in)
   ========================================================= */

[data-tdw-animate] {
	opacity: 0;
	will-change: transform, opacity;
	transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-tdw-animate].tdw-in {
	opacity: 1;
	transform: none !important;
}

[data-tdw-animate='fade-up'] {
	transform: translateY(28px);
}

[data-tdw-animate='fade-in'] {
	transform: none;
}

[data-tdw-animate='zoom-in'] {
	transform: scale(0.9);
}

[data-tdw-animate='slide-left'] {
	transform: translateX(-40px);
}

[data-tdw-animate='slide-right'] {
	transform: translateX(40px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	[data-tdw-animate] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Elementor editor: always show elements (avoid hidden-in-editor issue) */
.elementor-editor-active [data-tdw-animate] {
	opacity: 1;
	transform: none;
}
