/**
 * TechBBQ Testimonials — infinite single-slide carousel.
 *
 * Figma refs in widget PHP (1440 / 1024 / 768 / 380).
 *
 * Breakpoints (mobile-first): 0–767 (base), 768–1023, 1024–1440, 1440+.
 * Section vertical spacing lives on .techbbq-testimonials-wrap (Elementor container).
 */

.techbbq-testimonials {
	--techbbq-testimonials-section-gap: 48px;
	--techbbq-testimonials-headline-gap: 12px;
	--techbbq-testimonials-description-size: 18px;
	--techbbq-testimonials-panel-padding: 20px;
	--techbbq-testimonials-panel-min-height: auto;
	--techbbq-testimonials-quote-size: 20px;
	--techbbq-testimonials-name-size: 20px;
	--techbbq-testimonials-role-size: 14px;
	--techbbq-testimonials-name-line-height: 1;
	--techbbq-testimonials-role-line-height: 1;
	--techbbq-testimonials-slide-gap: var(--techbbq-space-1);
	--techbbq-testimonials-portrait-width: 0px;
	--techbbq-testimonials-portrait-height: 0px;
	--techbbq-testimonials-meta-gap: var(--techbbq-space-2);
	--techbbq-testimonials-panel-content-gap: var(--techbbq-space-2);
	--techbbq-testimonials-panel-block-gap: 72px;
	--techbbq-testimonials-logo-max-width: 133px;
	--techbbq-testimonials-logo-height: 44px;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-testimonials-section-gap);
	width: 100%;
	padding: 0;
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
}

.techbbq-testimonials > .section-inner {
	display: block;
	width: 100%;
}

/* ── Header ─────────────────────────────────────────────────── */

.techbbq-testimonials__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
}

.techbbq-testimonials__title-block {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--techbbq-section-eyebrow-title-gap);
	min-width: 0;
}

.techbbq-testimonials__headline {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-testimonials-headline-gap);
}

.techbbq-testimonials__title,
.techbbq-testimonials__description {
	margin: 0;
}

.techbbq-testimonials__description {
	max-width: 576px;
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-testimonials-description-size);
	font-weight: 400;
	line-height: var(--techbbq-text-paragraph-line-height);
	color: var(--techbbq-content-secondary);
}

/* ── Nav placement (visuals in components/carousel-nav.css) ─── */

/* Footer nav bar — mobile only (see tablet breakpoint for desktop hide). */
.techbbq-testimonials > .section-inner.techbbq-testimonials__mobile-bar {
	display: block;
}

/* ── Carousel ───────────────────────────────────────────────── */

.techbbq-testimonials__carousel {
	width: 100%;
}

.techbbq-testimonials__swiper:focus-visible {
	outline: 2px solid var(--techbbq-content-accent-1);
	outline-offset: 4px;
}

.techbbq-testimonials .techbbq-swiper .swiper-slide.techbbq-testimonials__slide {
	width: 100%;
	height: auto;
}

.techbbq-testimonials__slide-layout {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.techbbq-testimonials__panel {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--techbbq-testimonials-panel-block-gap);
	justify-content: flex-start;
	min-height: var(--techbbq-testimonials-panel-min-height);
	padding: var(--techbbq-testimonials-panel-padding);
	border-radius: 12px;
	background: var(--techbbq-bg-surface);
	position: relative;
}

.techbbq-testimonials__panel-content {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-testimonials-panel-content-gap);
	align-items: flex-start;
	width: 100%;
}

.techbbq-testimonials__panel-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--techbbq-space-2);
	width: 100%;
}

.techbbq-testimonials__logo {
	display: flex;
	align-items: center;
	max-height: var(--techbbq-testimonials-logo-height);
}

.techbbq-testimonials__logo-image {
	display: block;
	width: auto;
	height: auto;
	max-width: var(--techbbq-testimonials-logo-max-width);
	max-height: var(--techbbq-testimonials-logo-height);
	object-fit: contain;
	object-position: left center;
}

.techbbq-testimonials__logo-text {
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-paragraph-s-size);
	color: var(--techbbq-content-primary);
}

.techbbq-testimonials__quote {
	margin: 0;
}

.techbbq-testimonials__quote p {
	margin: 0;
	font-family: var(--techbbq-font-family-heading);
	font-size: var(--techbbq-testimonials-quote-size);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.techbbq-testimonials__meta {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-testimonials-meta-gap);
}

.techbbq-testimonials__meta-row {
	display: flex;
	gap: var(--techbbq-space-1);
	align-items: flex-start;
}

.techbbq-testimonials__avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: var(--techbbq-radius-pill);
	background: #fff;
}

.techbbq-testimonials__avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.techbbq-testimonials__attribution {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.techbbq-testimonials__name,
.techbbq-testimonials__role {
	margin: 0;
}

.techbbq-testimonials__name {
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-testimonials-name-size);
	font-weight: 500;
	line-height: var(--techbbq-testimonials-name-line-height);
	letter-spacing: -0.01em;
}

.techbbq-testimonials__role {
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-testimonials-role-size);
	font-weight: 400;
	line-height: var(--techbbq-testimonials-role-line-height);
	letter-spacing: -0.01em;
	color: var(--techbbq-content-secondary);
}

.techbbq-testimonials__portrait {
	display: none;
}

.techbbq-testimonials__portrait-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Pager ──────────────────────────────────────────────────── */

.techbbq-testimonials__pager {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: flex-start;
	padding: 4px 12px;
	border-radius: var(--techbbq-radius-pill);
}

.techbbq-testimonials__pager-dot {
	display: block;
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: var(--techbbq-radius-pill);
	background: #818083;
	cursor: pointer;
	transition:
		width 0.25s ease,
		background-color 0.25s ease;
}

.techbbq-testimonials__pager-dot.is-active {
	width: 18px;
	background: #f6f6f6;
}

/* ── Tablet (768–1023) ──────────────────────────────────────── */
@media (min-width: 768px) {
	.techbbq-testimonials {
		--techbbq-testimonials-section-gap: 72px;
		--techbbq-testimonials-description-size: var(--techbbq-text-paragraph-l-size);
		--techbbq-testimonials-panel-padding: var(--techbbq-space-3);
		--techbbq-testimonials-panel-min-height: 412px;
		--techbbq-testimonials-quote-size: var(--techbbq-text-h5-size);
		--techbbq-testimonials-panel-content-gap: var(--techbbq-space-4);
		--techbbq-testimonials-meta-gap: 0;
		--techbbq-testimonials-name-line-height: 1;
		--techbbq-testimonials-role-line-height: 1;
	}

	.techbbq-testimonials__panel {
		justify-content: space-between;
	}

	.techbbq-testimonials__header {
		gap: var(--techbbq-space-7);
	}

	.techbbq-testimonials > .section-inner.techbbq-testimonials__mobile-bar {
		display: none;
	}

	.techbbq-testimonials__pager {
		position: absolute;
		top: var(--techbbq-testimonials-panel-padding);
		right: var(--techbbq-testimonials-panel-padding);
		bottom: auto;
		left: auto;
		z-index: 2;
		justify-content: center;
	}
}

/* ── Desktop (1024–1439) ──────────────────────────────────────── */
@media (min-width: 1024px) {
	.techbbq-testimonials {
		--techbbq-testimonials-section-gap: 72px;
		--techbbq-testimonials-panel-padding: var(--techbbq-space-4);
		--techbbq-testimonials-panel-min-height: 477px;
		--techbbq-testimonials-name-size: var(--techbbq-text-paragraph-m-size);
		--techbbq-testimonials-role-size: var(--techbbq-text-paragraph-s-size);
		--techbbq-testimonials-name-line-height: var(--techbbq-text-paragraph-line-height);
		--techbbq-testimonials-role-line-height: var(--techbbq-text-paragraph-line-height);
		--techbbq-testimonials-slide-gap: var(--techbbq-space-1);
		--techbbq-testimonials-portrait-width: 347px;
		--techbbq-testimonials-portrait-height: 476px;
		--techbbq-testimonials-meta-gap: 0;
	}

	.techbbq-testimonials__slide-layout {
		flex-direction: row;
		gap: var(--techbbq-testimonials-slide-gap);
		align-items: stretch;
	}

	.techbbq-testimonials__panel {
		min-height: var(--techbbq-testimonials-portrait-height);
	}

	.techbbq-testimonials__avatar {
		display: none;
	}

	.techbbq-testimonials__portrait {
		display: block;
		flex: 0 0 var(--techbbq-testimonials-portrait-width);
		width: var(--techbbq-testimonials-portrait-width);
		height: var(--techbbq-testimonials-portrait-height);
		overflow: hidden;
		border-radius: 12px;
		background: var(--techbbq-bg-surface);
	}
}

/* ── Wide screen (1440+) ──────────────────────────────────────── */
@media (min-width: 1440px) {
	.techbbq-testimonials {
		--techbbq-testimonials-section-gap: var(--techbbq-space-10);
		--techbbq-testimonials-panel-min-height: 476px;
	}
}

/* Volunteering Figma: logo-the-atlantic 49×44px */
.techbbq-volunteering-testimonials-wrap {
	--techbbq-testimonials-logo-max-width: 49px;
}
