/* Stonebriar Smile Design — Video Testimonials */
:where(
		.testimonials-hero,
		.testimonials-intro,
		.testimonials-feature,
		.testimonials-library,
		.testimonials-quote,
		.testimonials-next,
		.testimonials-cta
	)
	p,
:where(
		.testimonials-hero,
		.testimonials-intro,
		.testimonials-feature,
		.testimonials-library,
		.testimonials-quote,
		.testimonials-next,
		.testimonials-cta
	)
	figure {
	margin-top: 0;
}
:where(
		.testimonials-hero,
		.testimonials-intro,
		.testimonials-feature,
		.testimonials-library,
		.testimonials-quote,
		.testimonials-next,
		.testimonials-cta
	)
	.button,
:where(
		.testimonials-hero,
		.testimonials-intro,
		.testimonials-feature,
		.testimonials-library,
		.testimonials-quote,
		.testimonials-next,
		.testimonials-cta
	)
	.eyebrow {
	font-size: 0.8rem;
}

.testimonials-hero {
	display: grid;
	min-height: min(900px, 100dvh);
	grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
	color: var(--white);
	background: var(--navy-deep);
}
.testimonials-hero__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(84px, 8vw, 136px) clamp(44px, 5vw, 104px);
}
.testimonials-hero .eyebrow,
.testimonials-hero .heading em {
	color: var(--gold-light);
}
.testimonials-hero .heading {
	width: 100%;
	max-width: 760px;
	margin: 0 0 28px;
	color: var(--white);
	font-size: clamp(3rem, 4.45vw, 5rem);
	letter-spacing: -0.052em;
	line-height: 0.98;
	text-wrap: balance;
}
.testimonials-hero .heading span,
.testimonials-hero .heading em {
	display: block;
}
.testimonials-hero .heading em {
	margin-top: 0.13em;
	font-family: var(--script);
	font-size: 0.61em;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.12;
}
.testimonials-hero__lead {
	max-width: 630px;
	margin-bottom: 34px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
	line-height: 1.65;
}
.testimonials-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px 28px;
}
.testimonials-text-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 13px;
	color: var(--white);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}
.testimonials-text-link span {
	transition: transform 0.3s ease;
}
.testimonials-text-link:hover span {
	transform: translate(3px, -3px);
}
.testimonials-hero__media {
	position: relative;
	min-height: 680px;
	margin: 0;
	overflow: hidden;
	background: #e5edef;
}
.testimonials-hero__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(17, 24, 49, 0.55), transparent 48%);
	content: "";
	pointer-events: none;
}
.testimonials-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.testimonials-hero__media figcaption {
	position: absolute;
	z-index: 2;
	right: clamp(22px, 4vw, 52px);
	bottom: clamp(22px, 4vw, 46px);
	max-width: 350px;
	padding: 16px 20px;
	border-left: 2px solid var(--gold-light);
	color: var(--white);
	background: rgba(17, 24, 49, 0.92);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	line-height: 1.6;
	text-transform: uppercase;
}

.testimonials-intro {
	background: var(--ivory);
}
.testimonials-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(48px, 9vw, 130px);
}
.testimonials-intro__copy {
	padding-top: 34px;
}

.testimonials-feature {
	padding: clamp(90px, 10vw, 140px) 0;
	color: var(--white);
	background: var(--navy);
}
.testimonials-feature__header {
	max-width: 900px;
	margin: 0 auto 54px;
	text-align: center;
}
.testimonials-feature__header .eyebrow,
.testimonials-feature__header .heading em {
	color: var(--gold-light);
}
.testimonials-feature__header .heading {
	color: var(--white);
}
.testimonials-feature__header > p:last-child {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.75;
}
.testimonials-shorts {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
}
.testimonials-shorts__viewport {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.testimonials-shorts__viewport::-webkit-scrollbar {
	display: none;
}
.testimonials-shorts__track {
	display: flex;
	gap: clamp(18px, 2.4vw, 30px);
}
.testimonials-shorts__track::after {
	min-width: calc(66.666% - 10px);
	content: "";
}
.testimonial-short {
	min-width: calc((100% - clamp(36px, 4.8vw, 60px)) / 3);
	scroll-snap-align: start;
}
.testimonial-short__video {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-height: 520px;
	aspect-ratio: 9/13;
	margin: 0 auto;
	border: 1px solid rgba(203, 156, 77, 0.48);
	background: #081027;
	box-shadow: 0 24px 58px rgba(5, 10, 27, 0.3);
}
.testimonial-short__video iframe,
.testimonial-card__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.testimonial-short .heading {
	margin: 20px 0 0;
	color: var(--white);
	font-family: var(--display);
	font-size: 1.18rem;
	font-weight: 400;
	text-align: center;
}
.testimonials-shorts__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 34px;
}
.testimonials-shorts__arrow {
	position: absolute;
	z-index: 3;
	top: calc(50% - 45px);
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 1px solid rgba(226, 193, 132, 0.62);
	border-radius: 50%;
	color: var(--white);
	background: rgba(17, 24, 49, 0.92);
	font-size: 1.3rem;
	cursor: pointer;
	transform: translateY(-50%);
	transition:
		color 0.3s ease,
		background-color 0.3s ease,
		transform 0.3s ease;
}
.testimonials-shorts__arrow[data-testimonial-previous] {
	left: -74px;
}
.testimonials-shorts__arrow[data-testimonial-next] {
	right: -74px;
}
.testimonials-shorts__arrow:hover {
	color: var(--navy-deep);
	background: var(--gold-light);
	transform: translateY(calc(-50% - 2px));
}
.testimonials-shorts__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}
.testimonials-shorts__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid var(--gold-light);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition:
		width 0.3s ease,
		background-color 0.3s ease;
}
.testimonials-shorts__dot[aria-current="true"] {
	width: 28px;
	border-radius: 999px;
	background: var(--gold-light);
}
.testimonials-shorts__viewport:focus-visible,
.testimonials-shorts__arrow:focus-visible,
.testimonials-shorts__dot:focus-visible {
	outline: 3px solid var(--azure);
	outline-offset: 4px;
}
.testimonial-card__video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
	background: #081027;
	box-shadow: 0 28px 70px rgba(5, 10, 27, 0.3);
}

.testimonials-library {
	background: #edf6f7;
}
.testimonials-library__header {
	max-width: 940px;
	margin: 0 auto 58px;
	text-align: center;
}
.testimonials-library__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.testimonial-card {
	overflow: hidden;
	border: 1px solid rgba(32, 41, 85, 0.14);
	background: var(--white);
	box-shadow: 0 18px 46px rgba(24, 38, 72, 0.08);
}
.testimonial-card__content {
	min-height: 220px;
	padding: clamp(28px, 4vw, 44px);
}
.testimonial-card__name {
	color: #87652e;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.testimonial-card .heading {
	margin: 20px 0 0;
	color: var(--navy);
	font-family: var(--display);
	font-size: clamp(1.35rem, 2.1vw, 1.85rem);
	font-weight: 500;
	line-height: 1.4;
}

.testimonials-quote {
	padding: clamp(90px, 11vw, 150px) 0;
	color: var(--white);
	background: var(--navy-deep);
	overflow: hidden;
}
.testimonials-quote__grid {
	display: grid;
	grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1.55fr);
	gap: clamp(35px, 8vw, 120px);
	align-items: center;
}
.testimonials-quote__mark {
	color: rgba(203, 156, 77, 0.23);
	font-family: var(--display);
	font-size: clamp(13rem, 26vw, 26rem);
	line-height: 0.58;
	text-align: center;
}
.testimonials-quote__content .eyebrow,
.testimonials-quote__content .heading em {
	color: var(--gold-light);
}
.testimonials-quote__content .heading {
	color: var(--white);
}
.testimonials-quote blockquote {
	margin: 30px 0 20px;
	padding-left: 24px;
	border-left: 2px solid var(--gold-light);
}
.testimonials-quote blockquote p {
	color: var(--white);
	font-family: var(--display);
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.5;
}
.testimonials-quote blockquote footer {
	color: var(--gold-light);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.testimonials-quote__note {
	max-width: 700px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	line-height: 1.65;
}

.testimonials-next {
	background: var(--ivory);
}
.testimonials-next__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(48px, 9vw, 130px);
	align-items: center;
}
.testimonials-next__links {
	display: grid;
	border-top: 1px solid rgba(32, 41, 85, 0.18);
}
.testimonials-next__links a {
	display: flex;
	min-height: 110px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 8px;
	border-bottom: 1px solid rgba(32, 41, 85, 0.18);
	color: var(--navy);
	text-decoration: none;
}
.testimonials-next__links a > span:first-child {
	display: grid;
	gap: 7px;
}
.testimonials-next__links small {
	color: #87652e;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.testimonials-next__links strong {
	font-family: var(--display);
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.testimonials-next__links a > span:last-child {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}
.testimonials-next__links a:hover > span:last-child {
	transform: translate(3px, -3px);
}

.testimonials-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(100px, 12vw, 170px) 0;
	color: var(--white);
	background: var(--navy-deep);
	text-align: center;
	isolation: isolate;
}
.testimonials-cta::before {
	position: absolute;
	z-index: -1;
	inset: 6% max(20px, 10vw);
	border: 1px solid rgba(203, 156, 77, 0.22);
	border-radius: 50%;
	content: "";
}
.testimonials-cta__mark {
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: min(42vw, 520px);
	opacity: 0.035;
	transform: translate(-50%, -50%);
}
.testimonials-cta__mark img {
	display: block;
	width: 100%;
	height: auto;
}
.testimonials-cta .eyebrow,
.testimonials-cta .heading em {
	color: var(--gold-light);
}
.testimonials-cta .heading {
	color: var(--white);
}
.testimonials-cta p:not(.eyebrow) {
	max-width: 720px;
	margin: 24px auto 34px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
}

:where(
		.testimonials-hero,
		.testimonials-intro,
		.testimonials-feature,
		.testimonials-library,
		.testimonials-quote,
		.testimonials-next,
		.testimonials-cta
	)
	a:focus-visible {
	outline: 3px solid var(--azure);
	outline-offset: 4px;
}
@media (max-width: 1100px) {
	.testimonials-hero {
		min-height: auto;
		grid-template-columns: 1fr 1fr;
	}
	.testimonials-hero__content {
		padding: 82px 42px;
	}
	.testimonials-hero .heading {
		font-size: clamp(2.75rem, 5.7vw, 4.2rem);
	}
	.testimonials-shorts {
		max-width: calc(100% - 116px);
	}
}
@media (max-width: 780px) {
	.testimonials-hero {
		grid-template-columns: 1fr;
	}
	.testimonials-hero__content {
		min-height: 640px;
		padding: 78px 24px 62px;
	}
	.testimonials-hero .heading {
		max-width: 630px;
		font-size: clamp(2.65rem, 11.5vw, 4rem);
	}
	.testimonials-hero__media {
		min-height: 520px;
	}
	.testimonials-intro__grid,
	.testimonials-next__grid {
		grid-template-columns: 1fr;
	}
	.testimonials-intro__copy {
		padding-top: 0;
	}
	.testimonial-short {
		min-width: calc((100% - 22px) / 2);
	}
	.testimonials-shorts__track::after {
		min-width: calc(50% - 11px);
	}
	.testimonials-library__grid {
		grid-template-columns: 1fr;
	}
	.testimonials-quote__grid {
		grid-template-columns: 1fr;
	}
	.testimonials-quote__mark {
		height: 100px;
		font-size: 15rem;
		line-height: 0.7;
		text-align: left;
	}
	.testimonials-cta::before {
		inset: 5% -20%;
	}
	.testimonials-cta__mark {
		width: min(78vw, 430px);
	}
}
@media (max-width: 520px) {
	.testimonials-hero__content {
		min-height: 600px;
	}
	.testimonials-hero__actions,
	.testimonials-hero__actions .button {
		width: 100%;
	}
	.testimonials-hero__actions .button {
		justify-content: center;
	}
	.testimonials-hero__media {
		min-height: 430px;
	}
	.testimonials-hero__media figcaption {
		right: 18px;
		bottom: 18px;
		left: 18px;
		max-width: none;
	}
	.testimonial-short {
		min-width: 86%;
	}
	.testimonials-shorts {
		max-width: 100%;
	}
	.testimonials-shorts__track::after {
		min-width: 14%;
	}
	.testimonials-shorts__controls {
		gap: 16px;
	}
	.testimonials-shorts__arrow {
		top: calc(50% - 42px);
		width: 46px;
		height: 46px;
		background: rgba(17, 24, 49, 0.96);
	}
	.testimonials-shorts__arrow[data-testimonial-previous] {
		left: 10px;
	}
	.testimonials-shorts__arrow[data-testimonial-next] {
		right: 10px;
	}
	.testimonial-card__content {
		min-height: auto;
		padding: 30px 24px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.testimonials-text-link span,
	.testimonials-next__links a > span:last-child,
	.testimonials-shorts__arrow,
	.testimonials-shorts__dot {
		transition: none;
	}
	.testimonials-shorts__viewport {
		scroll-behavior: auto;
	}
}
