/* Trust Badges / Why Choose Us — base styles
   Color controls write --tb-primary / --tb-accent onto the wrapper;
   everything else is driven by Elementor's own generated CSS from the
   widget controls. This file only supplies structural + animation rules
   that Elementor's control-to-CSS mapping can't express. */

.tb-trust-badges-wrapper {
	--tb-primary: #173A5E;
	--tb-accent: #F5C518;
	box-sizing: border-box;
}

.tb-trust-badges-wrapper *,
.tb-trust-badges-wrapper *::before,
.tb-trust-badges-wrapper *::after {
	box-sizing: border-box;
}

.tb-header {
	width: 100%;
}

.tb-subtitle {
	font-style: italic;
	letter-spacing: 0.03em;
	margin-bottom: 8px;
}

.tb-title {
	margin: 0;
	line-height: 1.25;
}

/* Grid */
.tb-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	row-gap: 24px;
	column-gap: 24px;
	align-items: start;
}

.tb-grid.tb-stagger .tb-card:nth-child(even) {
	transform: translateY(24px);
}

/* Card */
.tb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	border-radius: 4px;
	background: var(--tb-primary);
	transition: transform 300ms var(--tb-ease, ease-out), box-shadow 300ms var(--tb-ease, ease-out);
	will-change: transform;
}

.tb-card.tb-style-a {
	background-color: var(--tb-primary);
}

.tb-card.tb-style-b {
	background-color: #F7F3EA;
}

/* Hover lift is opt-out via the "Hover Effect" style control; the class
   below is added only when "Lift on Hover" is enabled. */
.tb-card.tb-hover-lift:hover {
	transform: translateY(-6px);
}

.tb-grid.tb-stagger .tb-card.tb-hover-lift:nth-child(even):hover {
	transform: translateY(calc(-6px + var(--tb-stagger-y, 24px)));
}

/* Icon / image */
.tb-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.tb-icon-shape-circle {
	border-radius: 50%;
}

.tb-icon-shape-square {
	border-radius: 14px;
}

.tb-icon i {
	font-size: 36px;
	line-height: 1;
	display: block;
}

.tb-icon svg {
	width: 36px;
	height: 36px;
	display: block;
}

.tb-image {
	width: 48px;
	height: auto;
	display: block;
	object-fit: contain;
}

/* Text */
.tb-card-title {
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.tb-card-desc {
	margin: 0 0 16px 0;
	line-height: 1.6;
}

.tb-card-link {
	display: inline-block;
	font-style: italic;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	transition: color 200ms ease;
}

/* =========================================================
 * Entry animations
 * Elements start in their "hidden" pose; the .tb-in class
 * (added by trust-badges.js via IntersectionObserver) plays
 * the transition into the resting pose.
 * =======================================================*/
.tb-animate {
	opacity: 0;
	transition-property: opacity, transform;
	transition-timing-function: var(--tb-ease, ease-out);
	transition-duration: 600ms;
}

.tb-animate[data-tb-animation="fade-in"] {
	transform: none;
}

.tb-animate[data-tb-animation="fade-in-up"] {
	transform: translateY(40px);
}

.tb-animate[data-tb-animation="fade-in-down"] {
	transform: translateY(-40px);
}

.tb-animate[data-tb-animation="zoom-in"] {
	transform: scale(0.85);
}

.tb-animate[data-tb-animation="slide-in-left"] {
	transform: translateX(-60px);
}

.tb-animate[data-tb-animation="slide-in-right"] {
	transform: translateX(60px);
}

.tb-animate[data-tb-animation="flip-in"] {
	transform: perspective(800px) rotateX(35deg);
}

.tb-animate.tb-in {
	opacity: 1;
	transform: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.tb-animate {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* =========================================================
 * Responsive fallbacks (Elementor's own responsive controls
 * for columns/gaps take priority; these are safety defaults
 * for editors that don't override them).
 * =======================================================*/
@media (max-width: 1024px) {
	.tb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tb-grid {
		grid-template-columns: 1fr;
	}

	.tb-grid.tb-stagger .tb-card:nth-child(even) {
		transform: none;
	}
}
