/**
 * Testimonial card (2026). Figma: BMD Testimonial Cards Web 2026, 1512 frames (Juan, 18 Nov 2026).
 * Phone layout drafted by Web (no phone frames in Figma). Markup: includes/testimonial.php.
 * The 2023 file testimonial.css is a different, older component.
 */
.bmd-tm,
.bmd-tc {
	--tm-band: #0065BD;
	--tm-stripes: #FF595E;
	--tm-lines: #EDB030;
	--tm-card-width: 514px;
	--tm-card-pad-x: 50px;
	--tm-card-pad-y: 44px;
	--tm-gap: 45px;
	--tm-quote-colour: #666666; /* Figma #7C7C7C is under 4.5:1 on white; this passes and looks the same */
	--tm-quote-size: 20px;
	--tm-quote-line: 35.4px;
}

.bmd-tm {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: var(--cs-space-images-label, 80px) 0 0;
	padding: 164px 20px;
	background: var(--tm-band);
}

.bmd-tm--purple { --tm-band: #6459C4; --tm-stripes: #FCC3D4; }
.bmd-tm--navy { --tm-band: #002440; --tm-stripes: #FCC3D4; }

.bmd-tm--long {
	--tm-card-width: 671px;
	--tm-card-pad-x: 80px;
	padding-top: 111px;
	padding-bottom: 112px;
}

/* Single card: the decorations sit round the card */
.bmd-tm-inner {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--tm-card-width);
	margin: 0 auto;
}

.bmd-tm--standard .bmd-tm-inner { left: 41px; }
.bmd-tm--long .bmd-tm-inner { left: 26px; }

.bmd-tm-circle,
.bmd-tm-lines {
	position: absolute;
	display: block;
	height: auto;
	pointer-events: none;
}

.bmd-tm-circle {
	z-index: 0;
	width: 279px;
	left: -161px;
	top: 120px;
	color: var(--tm-stripes);
}

.bmd-tm-lines {
	z-index: 2;
	width: 209px;
	left: 400px;
	top: 36px;
	color: var(--tm-lines);
}

.bmd-tm--long .bmd-tm-circle { left: -192px; top: 178px; }
.bmd-tm--long .bmd-tm-lines { left: 578px; top: 44px; }

/* Two cards: the decorations sit in the band's corners */
.bmd-tm--pair .bmd-tm-inner {
	position: static;
	max-width: calc(2 * var(--tm-card-width) + 33px);
}

.bmd-tm--pair .bmd-tm-circle { width: 404px; left: -242px; top: -120px; }
.bmd-tm--pair .bmd-tm-lines { width: 177px; left: auto; right: 151px; top: 64px; }

.bmd-tm-cards {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 33px;
	align-items: stretch;
}

/* The card */
.bmd-tm-card {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--tm-gap);
	min-width: 0;
	margin: 0;
	padding: var(--tm-card-pad-y) var(--tm-card-pad-x);
	background: #FFFFFF;
	border-radius: 20px;
	box-shadow: 0 1.144px 8px rgba(0, 0, 0, 0.15);
}

.bmd-tm-card .bmd-tm-logo {
	display: block;
	width: auto;
	max-width: 160px;
	height: 31px;
	object-fit: contain;
	object-position: left center;
}

/* Client left logos: the mark fills the middle third of a 91x55 box, so show the box larger and trim the space */
.bmd-tm-card .bmd-tm-logo--boxed {
	max-width: none;
	height: 72px;
	margin: -22px 0 -22px -1px;
}

.bmd-tm-quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.bmd-tm-quote p {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: var(--tm-quote-size);
	line-height: var(--tm-quote-line);
	color: var(--tm-quote-colour);
}

.bmd-tm-quote p::before { content: "\201C"; }
.bmd-tm-quote p::after { content: "\201D"; }

.bmd-tm-person {
	display: flex;
	align-items: flex-start;
	gap: 19px;
	margin: 0;
}

.bmd-tm-person .bmd-tm-photo {
	flex: 0 0 auto;
	width: 49px;
	height: 49px;
	border-radius: 50%;
	border: 0.6px solid #FFFFFF;
	object-fit: cover;
}

.bmd-tm-who {
	display: flex;
	flex-direction: column;
	font-family: "DIN Pro", "DIN-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #000000;
	line-height: 24.2px;
}

.bmd-tm-name {
	font-family: "DIN-Bold", "DIN Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 17px;
}

.bmd-tm-role {
	font-size: 14px;
}

/* Between desktop and phone: decorations pulled in */
@media (max-width: 1100px) {
	.bmd-tm--pair .bmd-tm-circle { width: 300px; left: -200px; top: -110px; }
	.bmd-tm--pair .bmd-tm-lines { right: 40px; top: 40px; }
}

/* Tablet: cards stack, no side shift */
@media (max-width: 900px) {
	.bmd-tm--standard .bmd-tm-inner,
	.bmd-tm--long .bmd-tm-inner { left: 0; }
	.bmd-tm-cards { flex-direction: column; gap: 24px; }
	.bmd-tm--pair .bmd-tm-inner { max-width: var(--tm-card-width); }
	.bmd-tm--long .bmd-tm-inner { max-width: 620px; }
	.bmd-tm--long .bmd-tm-lines { left: auto; right: -40px; }
}

/* Phone (drafted by Web, 18 Nov 2026) */
@media (max-width: 767px) {
	.bmd-tm,
	.bmd-tm--long {
		--tm-card-pad-x: 24px;
		--tm-card-pad-y: 32px;
		--tm-gap: 28px;
		--tm-quote-size: 17px;
		--tm-quote-line: 28px;
		padding: 72px 16px 64px;
	}

	.bmd-tm-circle,
	.bmd-tm--long .bmd-tm-circle {
		width: 150px;
		left: -70px;
		top: auto;
		bottom: -40px;
	}

	.bmd-tm-lines,
	.bmd-tm--long .bmd-tm-lines {
		width: 120px;
		left: auto;
		right: -10px;
		top: -22px;
	}

	.bmd-tm--pair .bmd-tm-inner { position: relative; }
	.bmd-tm--pair .bmd-tm-circle { width: 180px; left: -100px; top: -110px; bottom: auto; }
	.bmd-tm--pair .bmd-tm-lines { width: 110px; right: 0; top: -44px; }

	.bmd-tm-card .bmd-tm-logo { height: 26px; }
	.bmd-tm-card .bmd-tm-logo--boxed { height: 60px; margin: -18px 0 -18px -1px; }
	.bmd-tm-person { gap: 14px; }
	.bmd-tm-person .bmd-tm-photo { width: 44px; height: 44px; }
	.bmd-tm-name { font-size: 16px; }
}

/* Homepage carousel (Figma "Carrousel Home page", 1512 frame) */
.bmd-tc {
	--tc-card-width: 477px;
	--tc-card-space: 44px;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	height: 896px;
	padding-top: 0;
	background: #0065BD;
}

/* Decorations sit on a 1512 frame centred in the band, as in Figma */
.bmd-tc-frame {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1512px;
	height: 100%;
	margin-left: -756px;
	pointer-events: none;
}

.bmd-tc-front { z-index: 3; }

.bmd-tc-frame img { position: absolute; display: block; max-width: none; height: auto; }
.bmd-tc-eye { left: 1172px; top: 60px; width: 100px; }
.bmd-tc-tube { left: 245px; top: 148px; width: 138px; transform: rotate(-45deg); }
.bmd-tc-person { left: 176px; bottom: 2px; width: 244px; }
.bmd-tc-spark { left: 216px; top: 583px; width: 35px; transform: rotate(-39.1deg); }
.bmd-tc-squiggle { left: 300px; top: 780px; width: 153px; }

.bmd-tc-title {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 283px;
	height: 181px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateX(43px);
	font-family: "DIN-Bold", "DIN Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.3;
	text-align: center;
	color: #FFFFFF;
}

.bmd-tc-viewport {
	position: relative;
	z-index: 2;
	overflow: hidden;
}

.bmd-tc-track {
	display: flex;
	align-items: stretch;
	width: max-content;
	animation: bmd-tc-scroll var(--tc-duration, 60s) linear infinite;
}

.bmd-tc .bmd-tm-card {
	flex: 0 0 var(--tc-card-width);
	width: var(--tc-card-width);
	/* !important: inside an Elementor template (case studies) Elementor's figure reset sets margin to 0 */
	margin: 0 var(--tc-card-space) 0 0 !important;
	padding: 50px;
}

/* Cards in a row share one height: the name sits at the bottom */
.bmd-tc .bmd-tm-person { margin-top: auto; }

.bmd-tc:hover .bmd-tc-track,
.bmd-tc:focus-within .bmd-tc-track,
.bmd-tc.is-paused .bmd-tc-track {
	animation-play-state: paused;
}

@keyframes bmd-tc-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.bmd-tc-pause {
	position: absolute;
	z-index: 4;
	right: 24px;
	bottom: 24px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 20px;
	background: transparent;
	color: #FFFFFF;
	font-family: "DIN Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.bmd-tc-pause:hover,
.bmd-tc-pause:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

/* Motion turned off: no movement, scroll by hand, no repeated cards */
@media (prefers-reduced-motion: reduce) {
	.bmd-tc-track { animation: none; padding: 0 20px; }
	.bmd-tc-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
	.bmd-tc .bmd-tm-card { scroll-snap-align: center; }
	.bmd-tc .bmd-tm-card[aria-hidden="true"] { display: none; }
	.bmd-tc-pause { display: none; }
}

/* Phone (drafted by Web, 18 Nov 2026) */
@media (max-width: 767px) {
	.bmd-tc {
		--tc-card-width: 300px;
		--tc-card-space: 16px;
		height: auto;
		padding-bottom: 72px;
	}

	.bmd-tc .bmd-tm-card { padding: 28px 24px; }

	.bmd-tc {
		--tm-quote-size: 17px;
		--tm-quote-line: 28px;
		--tm-gap: 24px;
	}

	.bmd-tc-title {
		width: auto;
		max-width: 260px;
		height: auto;
		padding: 56px 0 32px;
		transform: none;
		font-size: 24px;
	}

	.bmd-tc-frame { left: 0; width: 100%; margin-left: 0; }
	.bmd-tc-eye { left: auto; right: 12px; top: 20px; width: 60px; }
	.bmd-tc-frame .bmd-tc-tube,
	.bmd-tc-frame .bmd-tc-person,
	.bmd-tc-frame .bmd-tc-spark,
	.bmd-tc-frame .bmd-tc-squiggle { display: none; }
	.bmd-tc-pause { right: 16px; bottom: 20px; }
}

/* Plain row (case studies, Juan 18 Nov 2026): no heading or illustrations, height from the cards */
.bmd-tc.bmd-tc--plain { height: auto; margin-top: var(--cs-space-images-label, 80px); padding: 80px 0 88px; }

@media (max-width: 767px) {
	.bmd-tc.bmd-tc--plain { padding: 48px 0 72px; }
}
